diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index da99d96..f1b8e5c 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -12,7 +12,8 @@
"eamodio.gitlens",
"ms-vscode.vscode-typescript-next",
"Orta.vscode-jest",
- "dbaeumer.vscode-eslint"
+ "dbaeumer.vscode-eslint",
+ "github.vscode-github-actions"
]
}
},
diff --git a/.github/changelog/pre_commit_hook.js b/.github/changelog/pre_commit_hook.js
index be4bc4e..c2b807c 100644
--- a/.github/changelog/pre_commit_hook.js
+++ b/.github/changelog/pre_commit_hook.js
@@ -1,13 +1,65 @@
'use strict'
+const path = require('path');
+const fs = require('fs').promises;
const core = require('@actions/core');
const {exec, getExecOutput} = require('@actions/exec');
+const yaml = require('js-yaml');
+const semver = require('semver');
+const PackageJson = require('@npmcli/package-json');
-exports.preCommit = async (props) => {
+const SWIFT_ORG_BUILD = path.join('swiftorg', '_data', 'builds');
+
+async function swiftorgCommit() {
const gitOptions = {cwd: 'swiftorg'};
const {stdout} = await getExecOutput('git', ['rev-parse', '--verify', 'HEAD'], gitOptions);
- const swiftorg = stdout.trim();
- core.info(`Updating swiftorg to "${swiftorg}"`);
- await exec('npm', ['pkg', 'set', `swiftorg=${swiftorg}`]);
+ return stdout.trim();
+}
+
+async function latestRelease() {
+ const swiftRelease = path.join(SWIFT_ORG_BUILD, 'swift_releases.yml');
+ const releaseData = await fs.readFile(swiftRelease, 'utf-8');
+ const releases = yaml.load(releaseData);
+ return releases[releases.length - 1];
+}
+
+async function latestDevRelease() {
+ const buildEntries = await fs.readdir(SWIFT_ORG_BUILD, { withFileTypes: true });
+ const devBranchRegex = /swift-(.*)-branch/;
+ const devDirs = buildEntries.flatMap(entry => {
+ if (!entry.isDirectory() || !devBranchRegex.exec(entry.name)) {
+ return [];
+ }
+ return entry.name;
+ }).sort((dir1, dir2) => {
+ const ver1 = devBranchRegex.exec(dir1)[1].replace('_', '.');
+ const ver2 = devBranchRegex.exec(dir2)[1].replace('_', '.');
+ return semver.gt(semver.coerce(ver2), semver.coerce(ver1)) ? 1 : -1;
+ });
+ const devVer = devBranchRegex.exec(devDirs[0])[1].replace('_', '.');
+ const xcodeSnapshot = path.join(SWIFT_ORG_BUILD,devDirs[0], 'xcode.yml');
+ const devReleaseData = await fs.readFile(xcodeSnapshot, 'utf-8');
+ const devReleases = yaml.load(devReleaseData);
+ return { name: devVer, date: devReleases[0].date, tag: devReleases[0].dir };
+}
+
+async function latestSnapshot() {
+ const xcodeSnapshot = path.join(SWIFT_ORG_BUILD, 'development', 'xcode.yml');
+ const devSnapshotsData = await fs.readFile(xcodeSnapshot, 'utf-8');
+ const snapshots = yaml.load(devSnapshotsData);
+ return { date: snapshots[0].date, tag: snapshots[0].dir };
+}
+
+exports.preCommit = async (props) => {
+ const commit = await swiftorgCommit();
+ const release = await latestRelease();
+ const dev = await latestDevRelease();
+ const snapshot = await latestSnapshot();
+
+ const swiftorg = { commit: commit, release: release, dev: dev, snapshot: snapshot };
+ const pkgJson = await PackageJson.load('./');
+ core.info(`Updating swiftorg metadata to "${JSON.stringify(swiftorg)}"`);
+ pkgJson.update({ swiftorg: swiftorg });
+ await pkgJson.save();
core.startGroup(`Bundling`);
await exec('npm install');
diff --git a/.github/workflows/approve.yml b/.github/workflows/approve.yml
index 2b859e0..29a35ef 100644
--- a/.github/workflows/approve.yml
+++ b/.github/workflows/approve.yml
@@ -15,12 +15,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Approve pull request if not already approved
- run: |
- gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
- if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
- then gh pr review --approve "$PR_URL"
- else echo "PR already approved, skipping additional approvals to minimize emails/notification noise.";
- fi
+ run: gh pr review --approve "${{ github.event.issue.pull_request.html_url }}"
env:
- PR_URL: ${{ github.event.issue.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.COMMIT_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 51411bd..5b253b7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -18,31 +18,131 @@ on:
type: string
jobs:
- ci:
- name: Check requirements
+ dependabot:
+ name: Check dependabot PR raised updating swiftorg
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
+ concurrency:
+ group: dependabot-${{ github.ref }}
+ cancel-in-progress: true
+ permissions:
+ contents: write
+ pull-requests: write
outputs:
- run: ${{ github.event_name != 'push' && steps.skip.outputs.result != 'true' }}
- release: ${{ (steps.check_version_bump.outputs.release_type != '' && github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true') }}
+ ci: ${{ !contains(steps.metadata.outputs.dependency-names, 'swiftorg') }}
+ merge: ${{ steps.update-swiftorg.outputs.result == 'true' }}
+ approve: ${{ steps.auto-approve.outputs.result == 'true' }}
steps:
+ - name: Dependabot metadata
+ id: metadata
+ uses: dependabot/fetch-metadata@v1
+ with:
+ github-token: ${{ secrets.COMMIT_TOKEN }}
+
- name: Checkout repository
- if: github.event.pull_request.head.sha != ''
+ if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
uses: actions/checkout@v3
with:
- ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 0
+ submodules: true
+ ref: ${{ github.event.pull_request.head.ref }}
+ token: ${{ secrets.COMMIT_TOKEN }}
+
+ - name: Import GPG
+ if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
+ uses: crazy-max/ghaction-import-gpg@v5.3.0
+ with:
+ gpg_private_key: ${{ secrets.COMMIT_SIGN_KEY }}
+ passphrase: ${{ secrets.COMMIT_SIGN_KEY_PASSPHRASE }}
+ git_user_signingkey: true
+ git_commit_gpgsign: true
+ git_tag_gpgsign: true
+ git_push_gpgsign: if-asked
+
+ - name: Changed Files
+ if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
+ id: changed-submodule-files
+ uses: tj-actions/changed-files@v38.2.0
+ with:
+ fetch_additional_submodule_history: true
+ files: |
+ swiftorg/download/index.md
+ swiftorg/download/_older-releases.md
+ swiftorg/_data/builds/**/*
+
+ - name: Setup Node.js
+ if: steps.changed-submodule-files.outputs.any_changed == 'true'
+ id: setup-node
+ uses: actions/setup-node@v3
+ with:
+ cache: npm
+
+ - name: Cache dependencies
+ if: steps.changed-submodule-files.outputs.any_changed == 'true'
+ id: cache-node
+ uses: actions/cache@v3.3.1
+ with:
+ key: node-${{ github.ref }}
+ path: node_modules
+
+ - name: Setup npm pacakges
+ if: steps.changed-submodule-files.outputs.any_changed == 'true'
+ run: npm install
+
+ - name: Update submodule ref in package.json
+ if: steps.changed-submodule-files.outputs.any_changed == 'true'
+ id: update-swiftorg
+ uses: actions/github-script@v6
+ with:
+ github-token: ${{ secrets.COMMIT_TOKEN }}
+ script: |
+ const hook = require('.github/changelog/pre_commit_hook.js');
+ await hook.preCommit();
+ await exec.exec('git', ['commit', '--all', '-S', '--message', `[skip dependabot] wip: update package.json`]);
+ await exec.exec('git', ['push', '--signed=if-asked']);
+ return true;
+
+ - name: Check if auto-approval needed
+ if: steps.changed-submodule-files.outputs.any_changed == 'true'
+ id: auto-approve
+ uses: actions/github-script@v6
+ with:
+ script: |
+ const changedFiles = '${{ steps.changed-submodule-files.outputs.all_changed_and_modified_files }}'.split(' ');
+ return changedFiles.some(file => /swiftorg\/_data\/builds\/(swift-.*-release.*|swift_releases\.yml)/.exec(file));
- - name: Check dependabot skip commit
- if: github.event.pull_request.head.sha != ''
- id: skip
+ - name: Close PR for unnecessary swiftorg changes
+ if: contains(steps.metadata.outputs.dependency-names, 'swiftorg') && steps.update-swiftorg.outputs.result != 'true'
uses: actions/github-script@v6
with:
+ github-token: ${{ secrets.COMMIT_TOKEN }}
script: |
- const {stdout} = await exec.getExecOutput('git', ['show', '-s', '--format=%s']);
- return stdout.includes('[skip dependabot]');
+ github.rest.issues.createComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ state: 'closed'
+ });
+
+ ci:
+ name: Check requirements
+ if: |
+ always() &&
+ (needs.dependabot.result == 'skipped' || (needs.dependabot.result == 'success' && needs.dependabot.outputs.ci == 'true'))
+ needs: dependabot
+ runs-on: ubuntu-latest
+ outputs:
+ run: ${{ github.event_name != 'push' }}
+ release: ${{ (steps.check_version_bump.outputs.release_type != '' && github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true') }}
+
+ steps:
+ - name: Checkout repository
+ if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'build(swift-org-website):')
+ uses: actions/checkout@v3
- name: Check version bump
- if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'build(swift-org-website):')) || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true')
+ if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'build(swift-org-website):')
id: check_version_bump
uses: mathieudutour/github-tag-action@v6.1
with:
@@ -53,12 +153,14 @@ jobs:
analyze:
name: Run CodeQL analysis
- if: github.event_name != 'workflow_dispatch'
+ if: |
+ always() && needs.ci.result == 'success' &&
+ github.event_name != 'workflow_dispatch'
needs: ci
runs-on: ubuntu-latest
concurrency:
group: analyze-${{ github.ref }}
- cancel-in-progress: ${{ needs.ci.outputs.run == 'true' || github.event_name == 'push' }}
+ cancel-in-progress: true
permissions:
actions: read
contents: read
@@ -66,44 +168,39 @@ jobs:
steps:
- name: Checkout repository
- if: needs.ci.outputs.run == 'true' || github.event_name == 'push'
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- if: needs.ci.outputs.run == 'true' || github.event_name == 'push'
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Perform CodeQL Analysis
- if: needs.ci.outputs.run == 'true' || github.event_name == 'push'
uses: github/codeql-action/analyze@v2
unit-test:
name: Run unit tests
+ if: always() && needs.ci.result == 'success'
needs: ci
runs-on: ubuntu-latest
concurrency:
group: unit-test-${{ github.ref }}
- cancel-in-progress: ${{ needs.ci.outputs.run == 'true' }}
+ cancel-in-progress: true
steps:
- name: Checkout repository
- if: needs.ci.outputs.run == 'true'
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Node.js
- if: needs.ci.outputs.run == 'true'
id: setup-node
uses: actions/setup-node@v3
with:
cache: npm
- name: Cache dependencies
- if: needs.ci.outputs.run == 'true'
id: cache-node
uses: actions/cache@v3.3.1
with:
@@ -111,17 +208,14 @@ jobs:
path: node_modules
- name: Setup npm pacakges
- if: needs.ci.outputs.run == 'true'
run: npm install
- name: Run unit tests
- if: needs.ci.outputs.run == 'true'
run: |
npm run lint
npm run test
- name: Codecov upload
- if: needs.ci.outputs.run == 'true'
uses: codecov/codecov-action@v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
@@ -129,11 +223,14 @@ jobs:
integration-test:
name: Integrate Swift ${{ matrix.swift }} on ${{ matrix.os }} with development ${{ matrix.development }}
+ if: |
+ always() && needs.ci.result == 'success' &&
+ needs.ci.outputs.run == 'true'
needs: ci
runs-on: ${{ matrix.os }}
concurrency:
group: integration-test-${{ github.ref }}-${{ matrix.os }}-${{ matrix.swift }}-${{ matrix.development }}
- cancel-in-progress: ${{ needs.ci.outputs.run == 'true' }}
+ cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -155,18 +252,15 @@ jobs:
steps:
- name: Checkout repository
- if: needs.ci.outputs.run == 'true'
uses: actions/checkout@v3
- name: Setup Node.js
- if: needs.ci.outputs.run == 'true'
id: setup-node
uses: actions/setup-node@v3
with:
cache: npm
- name: Cache dependencies
- if: needs.ci.outputs.run == 'true'
id: cache-node
uses: actions/cache@v3.3.1
with:
@@ -174,15 +268,12 @@ jobs:
path: node_modules
- name: Setup npm pacakges
- if: needs.ci.outputs.run == 'true'
run: npm install
- name: Build
- if: needs.ci.outputs.run == 'true'
run: npm run build && npm run package
- name: Run
- if: needs.ci.outputs.run == 'true'
id: setup-swift
uses: ./
with:
@@ -192,35 +283,34 @@ jobs:
cache-snapshot: ${{ !matrix.development }}
- name: Verify Swift version in macos
- if: needs.ci.outputs.run == 'true' && runner.os == 'macOS'
+ if: runner.os == 'macOS'
run: xcrun --toolchain ${{ env.TOOLCHAINS || '""' }} swift --version | grep ${{ steps.setup-swift.outputs.swift-version }} || exit 1
- name: Verify Swift version
- if: needs.ci.outputs.run == 'true'
run: swift --version | grep ${{ steps.setup-swift.outputs.swift-version }} || exit 1
dry-run:
name: Check action with dry run
+ if: |
+ always() && needs.ci.result == 'success' &&
+ needs.ci.outputs.run == 'true'
needs: ci
runs-on: ubuntu-latest
concurrency:
group: dry-run-${{ github.ref }}
- cancel-in-progress: ${{ needs.ci.outputs.run == 'true' }}
+ cancel-in-progress: true
steps:
- name: Checkout repository
- if: needs.ci.outputs.run == 'true'
uses: actions/checkout@v3
- name: Setup Node.js
- if: needs.ci.outputs.run == 'true'
id: setup-node
uses: actions/setup-node@v3
with:
cache: npm
- name: Cache dependencies
- if: needs.ci.outputs.run == 'true'
id: cache-node
uses: actions/cache@v3.3.1
with:
@@ -228,15 +318,12 @@ jobs:
path: node_modules
- name: Setup npm pacakges
- if: needs.ci.outputs.run == 'true'
run: npm install
- name: Build
- if: needs.ci.outputs.run == 'true'
run: npm run build && npm run package
- name: Run
- if: needs.ci.outputs.run == 'true'
id: setup-swift
uses: ./
with:
@@ -244,114 +331,21 @@ jobs:
dry-run: true
- name: Verify Swift version
- if: needs.ci.outputs.run == 'true'
uses: addnab/docker-run-action@v3
with:
image: swift:${{ fromJSON(steps.setup-swift.outputs.toolchain).docker }}
run: swift --version | grep ${{ steps.setup-swift.outputs.swift-version }} || exit 1
- dependabot:
- name: Check dependabot PR raised updating swiftorg
- if: needs.ci.outputs.run == 'true' && github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
- needs: ci
- runs-on: ubuntu-latest
- concurrency:
- group: dependabot-${{ github.ref }}
- cancel-in-progress: true
- permissions:
- contents: write
- pull-requests: write
- outputs:
- merge: ${{ steps.update-swiftorg.outputs.result == 'true' }}
- approve: ${{ steps.auto-approve.outputs.result == 'true' }}
-
- steps:
- - name: Dependabot metadata
- id: metadata
- uses: dependabot/fetch-metadata@v1
- with:
- github-token: ${{ secrets.COMMIT_TOKEN }}
-
- - name: Checkout repository
- if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
- uses: actions/checkout@v3
- with:
- fetch-depth: 0
- submodules: true
- ref: ${{ github.event.pull_request.head.ref }}
- token: ${{ secrets.COMMIT_TOKEN }}
-
- - name: Import GPG
- if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
- uses: crazy-max/ghaction-import-gpg@v5.3.0
- with:
- gpg_private_key: ${{ secrets.COMMIT_SIGN_KEY }}
- passphrase: ${{ secrets.COMMIT_SIGN_KEY_PASSPHRASE }}
- git_user_signingkey: true
- git_commit_gpgsign: true
- git_tag_gpgsign: true
- git_push_gpgsign: if-asked
-
- - name: Changed Files
- if: contains(steps.metadata.outputs.dependency-names, 'swiftorg')
- id: changed-submodule-files
- uses: tj-actions/changed-files@v38.2.0
- with:
- fetch_additional_submodule_history: true
- files: |
- swiftorg/download/index.md
- swiftorg/download/_older-releases.md
- swiftorg/_data/builds/**/*
-
- - name: Update submodule ref in package.json
- if: steps.changed-submodule-files.outputs.any_changed == 'true'
- id: update-swiftorg
- uses: actions/github-script@v6
- with:
- github-token: ${{ secrets.COMMIT_TOKEN }}
- script: |
- const gitOptions = {cwd: 'swiftorg'};
- const {stdout} = await exec.getExecOutput('git', ['rev-parse', '--verify', 'HEAD'], gitOptions);
- const swiftorg = stdout.trim();
- core.info(`Updating swiftorg to "${swiftorg}"`);
- await exec.exec('npm', ['pkg', 'set', `swiftorg=${swiftorg}`]);
- await exec.exec('git', ['commit', '--all', '-S', '--message', `[skip dependabot] wip: update package.json`]);
- await exec.exec('git', ['push', '--signed=if-asked']);
- return true;
-
- - name: Check if auto-approval needed
- if: steps.changed-submodule-files.outputs.any_changed == 'true'
- id: auto-approve
- uses: actions/github-script@v6
- with:
- script: |
- const changedFiles = '${{ steps.changed-submodule-files.outputs.all_changed_and_modified_files }}'.split(' ');
- return changedFiles.some(file => /swiftorg\/_data\/builds\/swift-.*-release.*/.exec(file));
-
- - name: Close PR for unnecessary swiftorg changes
- if: contains(steps.metadata.outputs.dependency-names, 'swiftorg') && steps.update-swiftorg.outputs.result != 'true'
- uses: actions/github-script@v6
- with:
- github-token: ${{ secrets.COMMIT_TOKEN }}
- script: |
- github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: context.issue.number,
- state: 'closed'
- });
-
e2e-test:
name: End-to-end test latest Swift on ${{ matrix.os }}
if: |
- always() &&
- (needs.ci.result == 'success' || needs.ci.result == 'skipped') &&
- (needs.dependabot.result == 'success' || needs.dependabot.result == 'skipped')
- needs: [ci, dependabot]
+ always() && needs.ci.result == 'success' &&
+ needs.ci.outputs.run == 'true'
+ needs: ci
runs-on: ${{ matrix.os }}
concurrency:
group: e2e-test-${{ github.ref }}-${{ matrix.os }}
- cancel-in-progress: ${{ needs.ci.outputs.run == 'true' }}
+ cancel-in-progress: true
env:
COMPOSITE: ./.ref-download-test
strategy:
@@ -359,7 +353,6 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Setup wrapper composite action at ${{ env.COMPOSITE }}
- if: needs.ci.outputs.run == 'true'
uses: actions/github-script@v6
with:
script: |
@@ -402,7 +395,6 @@ jobs:
await fs.writeFile(path.join(composite, 'action.yml'), content);
- name: Run composite action ${{ env.COMPOSITE }}
- if: needs.ci.outputs.run == 'true'
id: setup-swift
uses: ./.ref-download-test
@@ -414,15 +406,13 @@ jobs:
script: await io.rmRF('${{ env.COMPOSITE }}');
- name: Verify Swift version in macos
- if: needs.ci.outputs.run == 'true' && runner.os == 'macOS'
+ if: runner.os == 'macOS'
run: xcrun --toolchain ${{ env.TOOLCHAINS || '""' }} swift --version | grep ${{ steps.setup-swift.outputs.swift-version }} || exit 1
- name: Verify Swift version
- if: needs.ci.outputs.run == 'true'
run: swift --version | grep ${{ steps.setup-swift.outputs.swift-version }} || exit 1
- name: Test Swift package
- if: needs.ci.outputs.run == 'true'
run: |
swift package init --type library --name SetupLib
swift build --build-tests
@@ -430,8 +420,8 @@ jobs:
merge:
name: Auto-merge submodule update PR
- if: needs.ci.outputs.run == 'true' && needs.dependabot.outputs.merge == 'true'
- needs: [ci, analyze, unit-test, integration-test, dry-run, dependabot, e2e-test]
+ if: needs.dependabot.outputs.merge == 'true'
+ needs: dependabot
runs-on: ubuntu-latest
concurrency:
group: swiftorg-update
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 16e52f2..8e46c80 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -2,6 +2,7 @@
"recommendations": [
"ms-vscode.vscode-typescript-next",
"Orta.vscode-jest",
- "dbaeumer.vscode-eslint"
+ "dbaeumer.vscode-eslint",
+ "github.vscode-github-actions"
]
}
diff --git a/README.md b/README.md
index 092ba9d..76f1101 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,11 @@
[](https://github.com/marketplace/actions/setup-swift-environment-for-macos-linux-and-windows)
[](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources)
-[](https://swift.org)
[](https://github.com/SwiftyLab/setup-swift/actions/workflows/main.yml)
[](https://www.codefactor.io/repository/github/swiftylab/setup-swift)
[](https://codecov.io/gh/SwiftyLab/setup-swift)
[](https://github.com/marketplace/actions/setup-swift-environment-for-macos-linux-and-windows)
-
-
[GitHub Action](https://github.com/features/actions) that will setup [Swift](https://swift.org) environment with specified version.
This action supports the following functionalities:
@@ -22,6 +19,12 @@ This action supports the following functionalities:
- Caches installed setup in tool cache.
- Allows fetching snapshot metadata without installation (can be used to setup docker images).
+| Release Type | Latest Available |
+|--------------|------------------|
+| Stable | [](https://www.swift.org/download/#releases)
[](https://www.swift.org/download/#releases) |
+| Development | [](https://www.swift.org/download/#snapshots)
[](https://www.swift.org/download/#snapshots)
[](https://www.swift.org/download/#snapshots) |
+| Trunk Development | [](https://www.swift.org/download/#snapshots)
[](https://www.swift.org/download/#snapshots) |
+
## Usage
To run the action with the latest stable release swift version available, simply add the action as a step in your workflow:
diff --git a/__tests__/snapshot/linux.test.ts b/__tests__/snapshot/linux.test.ts
index 709819b..e497b42 100644
--- a/__tests__/snapshot/linux.test.ts
+++ b/__tests__/snapshot/linux.test.ts
@@ -64,6 +64,23 @@ describe('fetch linux tool data based on options', () => {
expect(lTool.docker).toBe('5.5-bionic')
})
+ it('fetches ubuntu 20.04 arm64 latest swift 5.6.0 tool', async () => {
+ setos({os: 'linux', dist: 'Ubuntu', release: '20.04'})
+ jest.spyOn(os, 'arch').mockReturnValue('arm64')
+ const ver5_6_0 = ToolchainVersion.create('5.6.0', false)
+ const tool = await Platform.toolchain(ver5_6_0)
+ expect(tool).toBeTruthy()
+ const lTool = tool as LinuxToolchainSnapshot
+ expect(lTool.download).toBe('swift-5.6-RELEASE-ubuntu20.04-aarch64.tar.gz')
+ expect(lTool.dir).toBe('swift-5.6-RELEASE')
+ expect(lTool.platform).toBe('ubuntu2004-aarch64')
+ expect(lTool.branch).toBe('swift-5.6-release')
+ expect(lTool.download_signature).toBe(
+ 'swift-5.6-RELEASE-ubuntu20.04-aarch64.tar.gz.sig'
+ )
+ expect(lTool.docker).toBe('5.6-focal')
+ })
+
it('fetches ubuntu 18.04 latest swift 5.5 tool', async () => {
setos({os: 'linux', dist: 'Ubuntu', release: '18.04'})
jest.spyOn(os, 'arch').mockReturnValue('x64')
@@ -232,12 +249,20 @@ describe('fetch linux tool data based on options', () => {
expect(tools.length).toBe(103)
})
- it('fetches ubuntu 16.04 latest swift 5.6 tools', async () => {
+ it('fetches ubuntu 16.04 latest swift 5.6.1 tools', async () => {
setos({os: 'linux', dist: 'Ubuntu', release: '16.04'})
jest.spyOn(os, 'arch').mockReturnValue('x64')
const ver5_6_1 = ToolchainVersion.create('5.6.1', false)
const tools = await Platform.toolchains(ver5_6_1)
- expect(tools.length).toBe(2)
+ expect(tools.length).toBe(1)
+ })
+
+ it('fetches ubuntu 16.04 latest swift 5.7 dev tools', async () => {
+ setos({os: 'linux', dist: 'Ubuntu', release: '16.04'})
+ jest.spyOn(os, 'arch').mockReturnValue('x64')
+ const dev5_7 = ToolchainVersion.create('5.7', true)
+ const tools = await Platform.toolchains(dev5_7)
+ expect(tools.length).toBe(8)
})
it('fetches ubuntu 20.04 latest swift 5.2 tools', async () => {
diff --git a/__tests__/snapshot/xcode.test.ts b/__tests__/snapshot/xcode.test.ts
index 63c1d11..46777c4 100644
--- a/__tests__/snapshot/xcode.test.ts
+++ b/__tests__/snapshot/xcode.test.ts
@@ -181,20 +181,6 @@ describe('fetch macos tool data based on options', () => {
expect(earliestTool.platform).toBe('xcode')
expect(earliestTool.branch).toBe('swift-2.2-release')
expect(earliestTool.download).toBe('swift-2.2-RELEASE-osx.pkg')
- expect(earliestTool.symbols).toBeUndefined()
-
- const earliestDownloadableTool = tools
- .slice()
- .reverse()
- .find(tool => tool.symbols)
- expect(earliestDownloadableTool?.xcode).toBe('8')
- expect(earliestDownloadableTool?.dir).toBe('swift-3.0-RELEASE')
- expect(earliestDownloadableTool?.download).toBe('swift-3.0-RELEASE-osx.pkg')
- expect(earliestDownloadableTool?.symbols).toBe(
- 'swift-3.0-RELEASE-osx-symbols.pkg'
- )
- expect(earliestDownloadableTool?.platform).toBe('xcode')
- expect(earliestDownloadableTool?.branch).toBe('swift-3.0-release')
})
it('fetches macOS latest swift 5.5 tools', async () => {
diff --git a/dist/index.js b/dist/index.js
index 499d4a7..702ec50 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
-/***/ 46695:
+/***/ 6695:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -31,13 +31,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MODULE_DIR = void 0;
-const path = __importStar(__nccwpck_require__(71017));
+const path = __importStar(__nccwpck_require__(1017));
exports.MODULE_DIR = path.dirname(__dirname);
/***/ }),
-/***/ 55686:
+/***/ 5686:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -76,13 +76,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ToolchainInstaller = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const core = __importStar(__nccwpck_require__(42186));
-const exec_1 = __nccwpck_require__(71514);
-const cache = __importStar(__nccwpck_require__(27799));
-const toolCache = __importStar(__nccwpck_require__(27784));
-const semver_1 = __nccwpck_require__(11383);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const core = __importStar(__nccwpck_require__(2186));
+const exec_1 = __nccwpck_require__(1514);
+const cache = __importStar(__nccwpck_require__(7799));
+const toolCache = __importStar(__nccwpck_require__(7784));
+const semver_1 = __nccwpck_require__(1383);
class ToolchainInstaller {
constructor(data) {
this.data = data;
@@ -160,7 +160,7 @@ exports.ToolchainInstaller = ToolchainInstaller;
/***/ }),
-/***/ 48979:
+/***/ 8979:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -180,16 +180,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(55686), exports);
-__exportStar(__nccwpck_require__(38780), exports);
-__exportStar(__nccwpck_require__(60983), exports);
-__exportStar(__nccwpck_require__(56969), exports);
-__exportStar(__nccwpck_require__(13807), exports);
+__exportStar(__nccwpck_require__(5686), exports);
+__exportStar(__nccwpck_require__(8780), exports);
+__exportStar(__nccwpck_require__(983), exports);
+__exportStar(__nccwpck_require__(6969), exports);
+__exportStar(__nccwpck_require__(3807), exports);
/***/ }),
-/***/ 60983:
+/***/ 983:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -228,13 +228,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LinuxToolchainInstaller = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const toolCache = __importStar(__nccwpck_require__(27784));
-const verify_1 = __nccwpck_require__(38780);
-const package_manager_1 = __nccwpck_require__(11401);
-const const_1 = __nccwpck_require__(46695);
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const toolCache = __importStar(__nccwpck_require__(7784));
+const verify_1 = __nccwpck_require__(8780);
+const package_manager_1 = __nccwpck_require__(1401);
+const const_1 = __nccwpck_require__(6695);
class LinuxToolchainInstaller extends verify_1.VerifyingToolchainInstaller {
installDependencies() {
return __awaiter(this, void 0, void 0, function* () {
@@ -309,7 +309,7 @@ exports.LinuxToolchainInstaller = LinuxToolchainInstaller;
/***/ }),
-/***/ 11401:
+/***/ 1401:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -325,7 +325,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PackageManager = void 0;
-const exec_1 = __nccwpck_require__(71514);
+const exec_1 = __nccwpck_require__(1514);
class PackageManager {
constructor(installationCommands) {
this.installationCommands = installationCommands;
@@ -350,7 +350,7 @@ exports.PackageManager = PackageManager;
/***/ }),
-/***/ 38780:
+/***/ 8780:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -389,10 +389,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.VerifyingToolchainInstaller = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const toolCache = __importStar(__nccwpck_require__(27784));
-const gpg = __importStar(__nccwpck_require__(39787));
-const base_1 = __nccwpck_require__(55686);
+const core = __importStar(__nccwpck_require__(2186));
+const toolCache = __importStar(__nccwpck_require__(7784));
+const gpg = __importStar(__nccwpck_require__(9787));
+const base_1 = __nccwpck_require__(5686);
class VerifyingToolchainInstaller extends base_1.ToolchainInstaller {
download() {
const _super = Object.create(null, {
@@ -416,7 +416,7 @@ exports.VerifyingToolchainInstaller = VerifyingToolchainInstaller;
/***/ }),
-/***/ 56969:
+/***/ 6969:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -455,14 +455,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.WindowsToolchainInstaller = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const exec_1 = __nccwpck_require__(71514);
-const semver = __importStar(__nccwpck_require__(11383));
-const verify_1 = __nccwpck_require__(38780);
-const utils_1 = __nccwpck_require__(11606);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const exec_1 = __nccwpck_require__(1514);
+const semver = __importStar(__nccwpck_require__(1383));
+const verify_1 = __nccwpck_require__(8780);
+const utils_1 = __nccwpck_require__(1606);
const installation_1 = __nccwpck_require__(539);
class WindowsToolchainInstaller extends verify_1.VerifyingToolchainInstaller {
get vsRequirement() {
@@ -575,9 +575,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Installation = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
class Installation {
constructor(location, toolchain, sdkroot, runtime, devdir) {
this.location = location;
@@ -643,7 +643,7 @@ exports.Installation = Installation;
/***/ }),
-/***/ 13807:
+/***/ 3807:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -682,13 +682,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.XcodeToolchainInstaller = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const exec_1 = __nccwpck_require__(71514);
-const toolCache = __importStar(__nccwpck_require__(27784));
-const plist = __importStar(__nccwpck_require__(91933));
-const base_1 = __nccwpck_require__(55686);
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const exec_1 = __nccwpck_require__(1514);
+const toolCache = __importStar(__nccwpck_require__(7784));
+const plist = __importStar(__nccwpck_require__(1933));
+const base_1 = __nccwpck_require__(5686);
class XcodeToolchainInstaller extends base_1.ToolchainInstaller {
swiftVersionCommand(toolchain) {
var _a;
@@ -836,10 +836,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const version_1 = __nccwpck_require__(14428);
-const swiftorg_1 = __nccwpck_require__(75010);
-const platform_1 = __nccwpck_require__(91190);
+const core = __importStar(__nccwpck_require__(2186));
+const version_1 = __nccwpck_require__(4428);
+const swiftorg_1 = __nccwpck_require__(5010);
+const platform_1 = __nccwpck_require__(1190);
function run() {
var _a;
return __awaiter(this, void 0, void 0, function* () {
@@ -893,7 +893,7 @@ if (process.env.JEST_WORKER_ID === undefined) {
/***/ }),
-/***/ 11568:
+/***/ 1568:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -932,18 +932,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Platform = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const yaml = __importStar(__nccwpck_require__(21917));
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const yaml = __importStar(__nccwpck_require__(1917));
+const const_1 = __nccwpck_require__(6695);
+const RELEASE_FILE = path.join(const_1.MODULE_DIR, 'swiftorg', '_data', 'builds', 'swift_releases.yml');
class Platform {
toolFiles(version) {
return __awaiter(this, void 0, void 0, function* () {
return yield version.toolFiles(this.fileGlob);
});
}
+ releases() {
+ return __awaiter(this, void 0, void 0, function* () {
+ const data = yield fs_1.promises.readFile(RELEASE_FILE, 'utf-8');
+ return yaml.load(data);
+ });
+ }
tools(version) {
return __awaiter(this, void 0, void 0, function* () {
+ const snapshots = yield this.releasedTools(version);
+ if (snapshots.length && !version.dev) {
+ return snapshots.sort((item1, item2) => item2.date.getTime() -
+ item1.date.getTime());
+ }
const files = yield this.toolFiles(version);
core.debug(`Using files "${files}" to get toolchains snapshot data`);
const snapshotsCollection = yield Promise.all(files.map((file) => __awaiter(this, void 0, void 0, function* () {
@@ -957,14 +970,15 @@ class Platform {
branch
};
})));
- return snapshotsCollection
- .flatMap(snapshots => {
- return snapshots.data.map(data => {
- return Object.assign(Object.assign({}, data), { platform: snapshots.platform, branch: snapshots.branch });
+ const devSnapshots = snapshotsCollection
+ .flatMap(collection => {
+ return collection.data.map(data => {
+ return Object.assign(Object.assign({}, data), { platform: collection.platform, branch: collection.branch });
});
})
- .filter(item => version.satisfiedBy(item.dir))
- .sort((item1, item2) => item2.date.getTime() -
+ .filter(item => version.satisfiedBy(item.dir));
+ snapshots.push(...devSnapshots);
+ return snapshots.sort((item1, item2) => item2.date.getTime() -
item1.date.getTime());
});
}
@@ -974,7 +988,7 @@ exports.Platform = Platform;
/***/ }),
-/***/ 91190:
+/***/ 1190:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1018,13 +1032,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const os = __importStar(__nccwpck_require__(22037));
-const core = __importStar(__nccwpck_require__(42186));
-const getos_1 = __importDefault(__nccwpck_require__(76068));
-const base_1 = __nccwpck_require__(11568);
-const xcode_1 = __nccwpck_require__(85671);
-const linux_1 = __nccwpck_require__(5522);
-const windows_1 = __nccwpck_require__(48144);
+const os = __importStar(__nccwpck_require__(2037));
+const core = __importStar(__nccwpck_require__(2186));
+const getos_1 = __importDefault(__nccwpck_require__(6068));
+const base_1 = __nccwpck_require__(1568);
+const xcode_1 = __nccwpck_require__(5671);
+const linux_1 = __nccwpck_require__(9466);
+const windows_1 = __nccwpck_require__(8144);
base_1.Platform.currentPlatform = () => __awaiter(void 0, void 0, void 0, function* () {
let arch;
switch (os.arch()) {
@@ -1091,16 +1105,16 @@ base_1.Platform.install = (version) => __awaiter(void 0, void 0, void 0, functio
core.endGroup();
return installer;
});
-__exportStar(__nccwpck_require__(11568), exports);
-__exportStar(__nccwpck_require__(71325), exports);
-__exportStar(__nccwpck_require__(5522), exports);
-__exportStar(__nccwpck_require__(48144), exports);
-__exportStar(__nccwpck_require__(85671), exports);
+__exportStar(__nccwpck_require__(1568), exports);
+__exportStar(__nccwpck_require__(1325), exports);
+__exportStar(__nccwpck_require__(9466), exports);
+__exportStar(__nccwpck_require__(8144), exports);
+__exportStar(__nccwpck_require__(5671), exports);
/***/ }),
-/***/ 5522:
+/***/ 9466:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1139,12 +1153,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LinuxPlatform = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const versioned_1 = __nccwpck_require__(71325);
-const installer_1 = __nccwpck_require__(48979);
-const const_1 = __nccwpck_require__(46695);
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const versioned_1 = __nccwpck_require__(1325);
+const installer_1 = __nccwpck_require__(8979);
+const const_1 = __nccwpck_require__(6695);
class LinuxPlatform extends versioned_1.VersionedPlatform {
+ get downloadExtension() {
+ return 'tar.gz';
+ }
html() {
return __awaiter(this, void 0, void 0, function* () {
const doc = path.join(const_1.MODULE_DIR, 'swiftorg', 'download', 'index.md');
@@ -1211,7 +1228,7 @@ exports.LinuxPlatform = LinuxPlatform;
/***/ }),
-/***/ 71325:
+/***/ 1325:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1250,9 +1267,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.VersionedPlatform = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const core = __importStar(__nccwpck_require__(42186));
-const base_1 = __nccwpck_require__(11568);
+const path = __importStar(__nccwpck_require__(1017));
+const core = __importStar(__nccwpck_require__(2186));
+const base_1 = __nccwpck_require__(1568);
class VersionedPlatform extends base_1.Platform {
constructor(name, version, arch) {
super();
@@ -1260,9 +1277,11 @@ class VersionedPlatform extends base_1.Platform {
this.version = version;
this.arch = arch;
}
+ get archSuffix() {
+ return this.arch === 'x86_64' ? '' : `-${this.arch}`;
+ }
fileForVersion(version) {
- const archSuffix = this.arch === 'x86_64' ? '' : `-${this.arch}`;
- return this.name + version + archSuffix;
+ return this.name + version + this.archSuffix;
}
get file() {
return this.fileForVersion(this.version);
@@ -1270,18 +1289,15 @@ class VersionedPlatform extends base_1.Platform {
get fileGlob() {
return this.fileForVersion('*');
}
- fallbackFiles(files) {
+ get nameRegex() {
+ return new RegExp(`${this.name}(?[0-9]*)(-.*)?`);
+ }
+ fallbackPlatformVersion(platforms) {
var _a;
- if (!files.length) {
- return [];
- }
- const fileRegex = new RegExp(`${this.name}(?[0-9]*)(-.*)?`);
let maxVer;
let minVer;
- for (const file of files) {
- const yml = path.extname(file);
- const filename = path.basename(file, yml);
- const match = fileRegex.exec(filename);
+ for (const platform of platforms) {
+ const match = this.nameRegex.exec(platform);
const version = (_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.version;
if (!version) {
continue;
@@ -1292,23 +1308,31 @@ class VersionedPlatform extends base_1.Platform {
if (minVer === undefined || minVer > ver)
minVer = ver;
}
- const selectedVer = maxVer !== null && maxVer !== void 0 ? maxVer : minVer;
- if (!selectedVer || !files.length) {
+ return maxVer !== null && maxVer !== void 0 ? maxVer : minVer;
+ }
+ fallbackFiles(files) {
+ if (!files.length) {
+ return [];
+ }
+ const fallbackVer = this.fallbackPlatformVersion(files.map(file => {
+ const yml = path.extname(file);
+ return path.basename(file, yml);
+ }));
+ if (!fallbackVer || !files.length) {
return [];
}
- const fallbackFiles = files.filter(file => {
+ return files.filter(file => {
var _a;
const yml = path.extname(file);
const filename = path.basename(file, yml);
- const match = fileRegex.exec(filename);
- const version = (_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.version;
- if (!version) {
+ const match = this.nameRegex.exec(filename);
+ const versionStr = (_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.version;
+ if (!versionStr) {
return false;
}
- const ver = parseInt(version);
- return ver === selectedVer;
+ const ver = parseInt(versionStr);
+ return ver === fallbackVer;
});
- return fallbackFiles;
}
toolFiles(version) {
const _super = Object.create(null, {
@@ -1330,13 +1354,56 @@ class VersionedPlatform extends base_1.Platform {
return files;
});
}
+ releasedTools(version) {
+ return __awaiter(this, void 0, void 0, function* () {
+ const releases = yield this.releases();
+ const allReleasedTools = releases
+ .filter(release => version.satisfiedBy(release.tag))
+ .flatMap(release => {
+ return release.platforms.flatMap(platform => {
+ var _a, _b;
+ const pName = (_a = platform.dir) !== null && _a !== void 0 ? _a : platform.name.replaceAll(/\s+|\./g, '').toLowerCase();
+ const pDownloadName = (_b = platform.dir) !== null && _b !== void 0 ? _b : platform.name.replaceAll(/\s+/g, '').toLowerCase();
+ const download = `${release.tag}-${pDownloadName}${this.archSuffix}.${this.downloadExtension}`;
+ return platform.archs.includes(this.arch)
+ ? {
+ name: platform.name,
+ date: release.date,
+ download,
+ download_signature: `${download}.sig`,
+ dir: release.tag,
+ platform: pName + this.archSuffix,
+ branch: release.tag.toLocaleLowerCase(),
+ docker: platform.docker,
+ windows: pName.startsWith('windows')
+ }
+ : [];
+ });
+ });
+ const platformReleasedTools = allReleasedTools.filter(tool => tool.platform === this.file);
+ if (platformReleasedTools.length) {
+ return platformReleasedTools;
+ }
+ const fallbackVer = this.fallbackPlatformVersion(allReleasedTools.map(tool => tool.platform));
+ return allReleasedTools.filter(tool => {
+ var _a;
+ const match = this.nameRegex.exec(tool.platform);
+ const versionStr = (_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.version;
+ if (!versionStr) {
+ return false;
+ }
+ const ver = parseInt(versionStr);
+ return ver === fallbackVer;
+ });
+ });
+ }
}
exports.VersionedPlatform = VersionedPlatform;
/***/ }),
-/***/ 48144:
+/***/ 8144:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1352,9 +1419,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.WindowsPlatform = void 0;
-const versioned_1 = __nccwpck_require__(71325);
-const installer_1 = __nccwpck_require__(48979);
+const versioned_1 = __nccwpck_require__(1325);
+const installer_1 = __nccwpck_require__(8979);
class WindowsPlatform extends versioned_1.VersionedPlatform {
+ get downloadExtension() {
+ return 'exe';
+ }
install(data) {
return __awaiter(this, void 0, void 0, function* () {
const installer = new installer_1.WindowsToolchainInstaller(data);
@@ -1368,34 +1438,11 @@ exports.WindowsPlatform = WindowsPlatform;
/***/ }),
-/***/ 85671:
+/***/ 5671:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
@@ -1407,13 +1454,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.XcodePlatform = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const marked = __importStar(__nccwpck_require__(65741));
-const jsdom_1 = __nccwpck_require__(46123);
-const base_1 = __nccwpck_require__(11568);
-const installer_1 = __nccwpck_require__(48979);
-const const_1 = __nccwpck_require__(46695);
+const base_1 = __nccwpck_require__(1568);
+const installer_1 = __nccwpck_require__(8979);
class XcodePlatform extends base_1.Platform {
constructor(arch) {
super();
@@ -1428,163 +1470,24 @@ class XcodePlatform extends base_1.Platform {
get fileGlob() {
return this.name;
}
- // eslint-disable-next-line no-undef
- extractDate(element) {
- var _a;
- let nextElement = element.nextElementSibling;
- while (nextElement) {
- if (nextElement.nodeName === 'TABLE' &&
- nextElement.className === 'downloads') {
- const times = nextElement.getElementsByTagName('time');
- if (times.length && times[0].textContent) {
- return new Date(times[0].textContent);
- }
- break;
- }
- const match = (_a = nextElement.textContent) === null || _a === void 0 ? void 0 : _a.match(/Date: (.*)/);
- if (match && match.length > 1) {
- return new Date(match[1]);
- }
- nextElement = nextElement.nextElementSibling;
- }
- }
- // eslint-disable-next-line no-undef
- extractDir(element) {
- var _a, _b, _c, _d;
- const header = element.textContent;
- let nextElement = element.nextElementSibling;
- while (nextElement) {
- if (nextElement.nodeName === 'TABLE' &&
- nextElement.className === 'downloads') {
- for (const tag of nextElement.getElementsByTagName('a')) {
- switch (String((_a = tag.parentElement) === null || _a === void 0 ? void 0 : _a.className)) {
- case 'download': {
- const comps = tag.href.trim().split('/');
- if (comps.length > 1) {
- return comps[comps.length - 2];
- }
- break;
- }
- default:
- break;
- }
- }
- break;
- }
- if (!((_b = nextElement.textContent) === null || _b === void 0 ? void 0 : _b.match(/Tag: .*/))) {
- nextElement = nextElement.nextElementSibling;
- continue;
- }
- const tags = nextElement.getElementsByTagName('a');
- if (tags.length) {
- return (_c = tags[0].textContent) === null || _c === void 0 ? void 0 : _c.trim();
- }
- while (nextElement) {
- if (nextElement.nodeName === 'TABLE' &&
- nextElement.className === 'downloads') {
- break;
- }
- if (nextElement.nodeName === 'A') {
- return (_d = nextElement.textContent) === null || _d === void 0 ? void 0 : _d.trim();
- }
- nextElement = nextElement.nextElementSibling;
- }
- break;
- }
- if (!header) {
- return;
- }
- return `${header.toLowerCase().replaceAll(' ', '-')}-RELEASE`;
- }
- // eslint-disable-next-line no-undef
- extractToolUsageData(element) {
- var _a, _b, _c;
- let xcode;
- let download;
- let symbols;
- let nextElement = element.nextElementSibling;
- while (nextElement) {
- if (nextElement.nodeName === 'TABLE' &&
- nextElement.className === 'downloads') {
- break;
- }
- nextElement = nextElement.nextElementSibling;
- }
- for (const tag of (_a = nextElement === null || nextElement === void 0 ? void 0 : nextElement.getElementsByTagName('a')) !== null && _a !== void 0 ? _a : []) {
- switch (String((_b = tag.parentElement) === null || _b === void 0 ? void 0 : _b.className)) {
- case 'release': {
- // Extract Xcode data
- const match = (_c = tag.textContent) === null || _c === void 0 ? void 0 : _c.trim().match(/Xcode\s+(.*)/);
- if (match && match.length > 1) {
- xcode = match[1];
- }
- break;
- }
- case 'download': {
- // Extract download data
- const resource = tag.href.trim().split('/').pop();
- if (tag.className === 'signature' ||
- tag.title === 'Debugging Symbols') {
- symbols = resource;
- }
- else {
- download = resource;
- }
- break;
- }
- default:
- break;
- }
- }
- return { xcode, download, symbols };
- }
- stableBuildData(version) {
- var _a;
+ releasedTools(version) {
return __awaiter(this, void 0, void 0, function* () {
- const data = [];
- const docs = [
- path.join(const_1.MODULE_DIR, 'swiftorg', 'download', 'index.md'),
- path.join(const_1.MODULE_DIR, 'swiftorg', 'download', '_older-releases.md')
- ];
- for (const doc of docs) {
- const content = yield fs_1.promises.readFile(doc, 'utf8');
- const dom = new jsdom_1.JSDOM(marked.parse(content));
- for (const element of dom.window.document.querySelectorAll('h3')) {
- if (!((_a = element.textContent) === null || _a === void 0 ? void 0 : _a.match(/Swift .*/))) {
- continue;
- }
- const header = element.textContent;
- const date = this.extractDate(element);
- const dir = this.extractDir(element);
- const { xcode, download, symbols } = this.extractToolUsageData(element);
- if (date && dir && version.satisfiedBy(dir) && (download || xcode)) {
- data.push({
- name: `Xcode ${header}`,
- date,
- download: download !== null && download !== void 0 ? download : `${dir}-osx.pkg`,
- symbols,
- dir,
- xcode,
- platform: this.name,
- branch: dir.toLocaleLowerCase()
- });
- }
- }
- }
- return data;
- });
- }
- tools(version) {
- const _super = Object.create(null, {
- tools: { get: () => super.tools }
- });
- return __awaiter(this, void 0, void 0, function* () {
- const stableTools = yield this.stableBuildData(version);
- if (!stableTools.length || version.dev) {
- const devTools = yield _super.tools.call(this, version);
- stableTools.push(...devTools);
- }
- return stableTools.sort((item1, item2) => item2.date.getTime() - item1.date.getTime());
+ const releases = yield this.releases();
+ return releases
+ .filter(release => version.satisfiedBy(release.tag))
+ .map(release => {
+ const xMatch = /Xcode\s+(.*)/.exec(release.xcode);
+ return {
+ name: `Xcode Swift ${release.name}`,
+ date: release.date,
+ download: `${release.tag}-osx.pkg`,
+ symbols: `${release.tag}-osx-symbols.pkg`,
+ dir: release.tag,
+ xcode: xMatch && xMatch.length > 1 ? xMatch[1] : undefined,
+ platform: this.name,
+ branch: release.tag.toLocaleLowerCase()
+ };
+ });
});
}
install(data) {
@@ -1600,7 +1503,7 @@ exports.XcodePlatform = XcodePlatform;
/***/ }),
-/***/ 75010:
+/***/ 5010:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1639,17 +1542,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Swiftorg = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const exec_1 = __nccwpck_require__(71514);
-const const_1 = __nccwpck_require__(46695);
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const exec_1 = __nccwpck_require__(1514);
+const const_1 = __nccwpck_require__(6695);
const SWIFTORG = 'swiftorg';
class Swiftorg {
constructor(checkLatest) {
this.checkLatest = checkLatest;
}
addSwiftorgSubmodule() {
+ var _a;
return __awaiter(this, void 0, void 0, function* () {
const swiftorg = path.join(const_1.MODULE_DIR, SWIFTORG);
try {
@@ -1673,7 +1577,8 @@ class Swiftorg {
}
const packagePath = path.join(const_1.MODULE_DIR, 'package.json');
const packageContent = yield fs_1.promises.readFile(packagePath, 'utf-8');
- const commit = JSON.parse(packageContent).swiftorg;
+ const commit = (_a = JSON.parse(packageContent)
+ .swiftorg) === null || _a === void 0 ? void 0 : _a.commit;
if (!commit) {
core.debug(`No commit tracked in "${packageContent}, skipping switching`);
return;
@@ -1713,7 +1618,7 @@ exports.Swiftorg = Swiftorg;
/***/ }),
-/***/ 39787:
+/***/ 9787:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1752,9 +1657,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.verify = exports.setupKeys = void 0;
-const exec_1 = __nccwpck_require__(71514);
-const core = __importStar(__nccwpck_require__(42186));
-const toolCache = __importStar(__nccwpck_require__(27784));
+const exec_1 = __nccwpck_require__(1514);
+const core = __importStar(__nccwpck_require__(2186));
+const toolCache = __importStar(__nccwpck_require__(7784));
function setupKeys() {
return __awaiter(this, void 0, void 0, function* () {
try {
@@ -1828,7 +1733,7 @@ function refreshKeysFromServer(server) {
/***/ }),
-/***/ 11606:
+/***/ 1606:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1848,13 +1753,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(39787), exports);
-__exportStar(__nccwpck_require__(81893), exports);
+__exportStar(__nccwpck_require__(9787), exports);
+__exportStar(__nccwpck_require__(1893), exports);
/***/ }),
-/***/ 1333:
+/***/ 1906:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1893,9 +1798,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.VisualStudio = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const exec_1 = __nccwpck_require__(71514);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const exec_1 = __nccwpck_require__(1514);
class VisualStudio {
constructor(installationPath, installationVersion, catalog, properties) {
this.installationPath = installationPath;
@@ -1935,7 +1840,7 @@ exports.VisualStudio = VisualStudio;
/***/ }),
-/***/ 81893:
+/***/ 1893:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -1955,14 +1860,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(1333), exports);
-__exportStar(__nccwpck_require__(19482), exports);
-__exportStar(__nccwpck_require__(48777), exports);
+__exportStar(__nccwpck_require__(1906), exports);
+__exportStar(__nccwpck_require__(9482), exports);
+__exportStar(__nccwpck_require__(8777), exports);
/***/ }),
-/***/ 19482:
+/***/ 9482:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2000,10 +1905,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const core = __importStar(__nccwpck_require__(42186));
-const exec_1 = __nccwpck_require__(71514);
-const base_1 = __nccwpck_require__(1333);
-const vswhere_1 = __nccwpck_require__(82167);
+const core = __importStar(__nccwpck_require__(2186));
+const exec_1 = __nccwpck_require__(1514);
+const base_1 = __nccwpck_require__(1906);
+const vswhere_1 = __nccwpck_require__(2167);
let shared;
/// set up required visual studio tools for swift on windows
base_1.VisualStudio.setup = function (requirement) {
@@ -2060,7 +1965,7 @@ base_1.VisualStudio.setup = function (requirement) {
/***/ }),
-/***/ 48777:
+/***/ 8777:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2098,10 +2003,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const core = __importStar(__nccwpck_require__(42186));
-const base_1 = __nccwpck_require__(1333);
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const core = __importStar(__nccwpck_require__(2186));
+const base_1 = __nccwpck_require__(1906);
/// Update swift version based additional support files setup
base_1.VisualStudio.prototype.update = function (sdkroot) {
return __awaiter(this, void 0, void 0, function* () {
@@ -2148,7 +2053,7 @@ base_1.VisualStudio.prototype.update = function (sdkroot) {
/***/ }),
-/***/ 82167:
+/***/ 2167:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2187,10 +2092,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.VSWhere = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const fs_1 = __nccwpck_require__(57147);
-const io = __importStar(__nccwpck_require__(47351));
-const core = __importStar(__nccwpck_require__(42186));
+const path = __importStar(__nccwpck_require__(1017));
+const fs_1 = __nccwpck_require__(7147);
+const io = __importStar(__nccwpck_require__(7436));
+const core = __importStar(__nccwpck_require__(2186));
var VSWhere;
(function (VSWhere) {
/// Get vswhere and vs_installer paths
@@ -2275,12 +2180,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ToolchainVersion = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const core = __importStar(__nccwpck_require__(42186));
-const glob_1 = __nccwpck_require__(23277);
-const const_1 = __nccwpck_require__(46695);
-const SWIFT_RELEASE_REGEX = /swift-.*-release/;
+exports.ToolchainVersion = exports.SWIFT_RELEASE_REGEX = void 0;
+const path = __importStar(__nccwpck_require__(1017));
+const core = __importStar(__nccwpck_require__(2186));
+const glob_1 = __nccwpck_require__(3277);
+const const_1 = __nccwpck_require__(6695);
+exports.SWIFT_RELEASE_REGEX = /swift-(.*)-release/;
class ToolchainVersion {
constructor(dev) {
this.dev = dev;
@@ -2293,7 +2198,7 @@ class ToolchainVersion {
core.debug(`Retrieved files "${files}" for glob "${pattern}"`);
if (!this.dev) {
const stableFiles = files.filter(file => {
- return SWIFT_RELEASE_REGEX.exec(path.basename(path.dirname(file)));
+ return exports.SWIFT_RELEASE_REGEX.exec(path.basename(path.dirname(file)));
});
if (stableFiles.length) {
files = stableFiles;
@@ -2311,7 +2216,7 @@ exports.ToolchainVersion = ToolchainVersion;
/***/ }),
-/***/ 14428:
+/***/ 4428:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2343,12 +2248,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-const core = __importStar(__nccwpck_require__(42186));
-const semver_1 = __nccwpck_require__(11383);
+const core = __importStar(__nccwpck_require__(2186));
+const semver_1 = __nccwpck_require__(1383);
const base_1 = __nccwpck_require__(2120);
-const latest_1 = __nccwpck_require__(28363);
-const semver_2 = __nccwpck_require__(30916);
-const name_1 = __nccwpck_require__(43987);
+const latest_1 = __nccwpck_require__(8363);
+const semver_2 = __nccwpck_require__(916);
+const name_1 = __nccwpck_require__(3987);
base_1.ToolchainVersion.create = (requested, dev = false) => {
if (requested === 'latest' || requested === 'current') {
core.debug(`Using latest ${dev ? 'development ' : ''}toolchain requirement`);
@@ -2375,14 +2280,14 @@ base_1.ToolchainVersion.create = (requested, dev = false) => {
return new semver_2.SemanticToolchainVersion(requested, semver, dev);
};
__exportStar(__nccwpck_require__(2120), exports);
-__exportStar(__nccwpck_require__(28363), exports);
-__exportStar(__nccwpck_require__(30916), exports);
-__exportStar(__nccwpck_require__(43987), exports);
+__exportStar(__nccwpck_require__(8363), exports);
+__exportStar(__nccwpck_require__(916), exports);
+__exportStar(__nccwpck_require__(3987), exports);
/***/ }),
-/***/ 28363:
+/***/ 8363:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -2406,14 +2311,14 @@ exports.LatestToolchainVersion = LatestToolchainVersion;
/***/ }),
-/***/ 43987:
+/***/ 3987:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ToolchainSnapshotName = exports.DEVELOPMENT_SNAPSHOT = void 0;
-const semver_1 = __nccwpck_require__(11383);
+const semver_1 = __nccwpck_require__(1383);
const base_1 = __nccwpck_require__(2120);
exports.DEVELOPMENT_SNAPSHOT = 'DEVELOPMENT-SNAPSHOT';
class ToolchainSnapshotName extends base_1.ToolchainVersion {
@@ -2427,12 +2332,18 @@ class ToolchainSnapshotName extends base_1.ToolchainVersion {
}
return `swift-${this.name}`;
}
- get dirGlob() {
+ get version() {
const match = /swift-([^-]*)-/.exec(this.dir);
if (!match || match.length < 2 || !(0, semver_1.coerce)(match[1])) {
+ return;
+ }
+ return match[1];
+ }
+ get dirGlob() {
+ if (!this.version) {
return '*';
}
- return `swift-${match[1].replaceAll('.', '_')}-*`;
+ return `swift-${this.version.replaceAll('.', '_')}-*`;
}
get dirRegex() {
return new RegExp(this.dir);
@@ -2446,7 +2357,7 @@ exports.ToolchainSnapshotName = ToolchainSnapshotName;
/***/ }),
-/***/ 30916:
+/***/ 916:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -2491,7 +2402,7 @@ exports.SemanticToolchainVersion = SemanticToolchainVersion;
/***/ }),
-/***/ 27799:
+/***/ 7799:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2530,11 +2441,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const path = __importStar(__nccwpck_require__(71017));
-const utils = __importStar(__nccwpck_require__(75340));
-const cacheHttpClient = __importStar(__nccwpck_require__(98245));
-const tar_1 = __nccwpck_require__(56490);
+const core = __importStar(__nccwpck_require__(2186));
+const path = __importStar(__nccwpck_require__(1017));
+const utils = __importStar(__nccwpck_require__(1518));
+const cacheHttpClient = __importStar(__nccwpck_require__(8245));
+const tar_1 = __nccwpck_require__(6490);
class ValidationError extends Error {
constructor(message) {
super(message);
@@ -2733,7 +2644,7 @@ exports.saveCache = saveCache;
/***/ }),
-/***/ 98245:
+/***/ 8245:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -2772,16 +2683,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.saveCache = exports.reserveCache = exports.downloadCache = exports.getCacheEntry = exports.getCacheVersion = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const auth_1 = __nccwpck_require__(35526);
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const auth_1 = __nccwpck_require__(5526);
const crypto = __importStar(__nccwpck_require__(6113));
-const fs = __importStar(__nccwpck_require__(57147));
-const url_1 = __nccwpck_require__(57310);
-const utils = __importStar(__nccwpck_require__(75340));
-const downloadUtils_1 = __nccwpck_require__(55500);
-const options_1 = __nccwpck_require__(76215);
-const requestUtils_1 = __nccwpck_require__(13981);
+const fs = __importStar(__nccwpck_require__(7147));
+const url_1 = __nccwpck_require__(7310);
+const utils = __importStar(__nccwpck_require__(1518));
+const downloadUtils_1 = __nccwpck_require__(5500);
+const options_1 = __nccwpck_require__(6215);
+const requestUtils_1 = __nccwpck_require__(3981);
const versionSalt = '1.0';
function getCacheApiUrl(resource) {
const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
@@ -3001,7 +2912,7 @@ exports.saveCache = saveCache;
/***/ }),
-/***/ 75340:
+/***/ 1518:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3047,16 +2958,16 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isGhes = exports.assertDefined = exports.getGnuTarPathOnWindows = exports.getCacheFileName = exports.getCompressionMethod = exports.unlinkFile = exports.resolvePaths = exports.getArchiveFileSizeInBytes = exports.createTempDirectory = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const exec = __importStar(__nccwpck_require__(71514));
-const glob = __importStar(__nccwpck_require__(28090));
-const io = __importStar(__nccwpck_require__(47351));
-const fs = __importStar(__nccwpck_require__(57147));
-const path = __importStar(__nccwpck_require__(71017));
+const core = __importStar(__nccwpck_require__(2186));
+const exec = __importStar(__nccwpck_require__(1514));
+const glob = __importStar(__nccwpck_require__(8090));
+const io = __importStar(__nccwpck_require__(7436));
+const fs = __importStar(__nccwpck_require__(7147));
+const path = __importStar(__nccwpck_require__(1017));
const semver = __importStar(__nccwpck_require__(3771));
-const util = __importStar(__nccwpck_require__(73837));
-const uuid_1 = __nccwpck_require__(94138);
-const constants_1 = __nccwpck_require__(88840);
+const util = __importStar(__nccwpck_require__(3837));
+const uuid_1 = __nccwpck_require__(4138);
+const constants_1 = __nccwpck_require__(8840);
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
function createTempDirectory() {
return __awaiter(this, void 0, void 0, function* () {
@@ -3208,7 +3119,7 @@ exports.isGhes = isGhes;
/***/ }),
-/***/ 88840:
+/***/ 8840:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -3251,7 +3162,7 @@ exports.ManifestFilename = 'manifest.txt';
/***/ }),
-/***/ 55500:
+/***/ 5500:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3290,17 +3201,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.downloadCacheStorageSDK = exports.downloadCacheHttpClientConcurrent = exports.downloadCacheHttpClient = exports.DownloadProgress = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const storage_blob_1 = __nccwpck_require__(84100);
-const buffer = __importStar(__nccwpck_require__(14300));
-const fs = __importStar(__nccwpck_require__(57147));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const utils = __importStar(__nccwpck_require__(75340));
-const constants_1 = __nccwpck_require__(88840);
-const requestUtils_1 = __nccwpck_require__(13981);
-const abort_controller_1 = __nccwpck_require__(52557);
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const storage_blob_1 = __nccwpck_require__(4100);
+const buffer = __importStar(__nccwpck_require__(4300));
+const fs = __importStar(__nccwpck_require__(7147));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const utils = __importStar(__nccwpck_require__(1518));
+const constants_1 = __nccwpck_require__(8840);
+const requestUtils_1 = __nccwpck_require__(3981);
+const abort_controller_1 = __nccwpck_require__(2557);
/**
* Pipes the body of a HTTP response to a stream
*
@@ -3636,7 +3547,7 @@ const promiseWithTimeout = (timeoutMs, promise) => __awaiter(void 0, void 0, voi
/***/ }),
-/***/ 13981:
+/***/ 3981:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3675,9 +3586,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.retryHttpClientResponse = exports.retryTypedResponse = exports.retry = exports.isRetryableStatusCode = exports.isServerErrorStatusCode = exports.isSuccessStatusCode = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const http_client_1 = __nccwpck_require__(96255);
-const constants_1 = __nccwpck_require__(88840);
+const core = __importStar(__nccwpck_require__(2186));
+const http_client_1 = __nccwpck_require__(6255);
+const constants_1 = __nccwpck_require__(8840);
function isSuccessStatusCode(statusCode) {
if (!statusCode) {
return false;
@@ -3780,7 +3691,7 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
/***/ }),
-/***/ 56490:
+/***/ 6490:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -3819,12 +3730,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createTar = exports.extractTar = exports.listTar = void 0;
-const exec_1 = __nccwpck_require__(71514);
-const io = __importStar(__nccwpck_require__(47351));
-const fs_1 = __nccwpck_require__(57147);
-const path = __importStar(__nccwpck_require__(71017));
-const utils = __importStar(__nccwpck_require__(75340));
-const constants_1 = __nccwpck_require__(88840);
+const exec_1 = __nccwpck_require__(1514);
+const io = __importStar(__nccwpck_require__(7436));
+const fs_1 = __nccwpck_require__(7147);
+const path = __importStar(__nccwpck_require__(1017));
+const utils = __importStar(__nccwpck_require__(1518));
+const constants_1 = __nccwpck_require__(8840);
const IS_WINDOWS = process.platform === 'win32';
// Returns tar path and type: BSD or GNU
function getTarPath() {
@@ -4059,7 +3970,7 @@ exports.createTar = createTar;
/***/ }),
-/***/ 76215:
+/***/ 6215:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -4089,7 +4000,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getDownloadOptions = exports.getUploadOptions = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Returns a copy of the upload options with defaults filled in.
*
@@ -5816,10 +5727,10 @@ function coerce (version, options) {
/***/ }),
-/***/ 94138:
+/***/ 4138:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var v1 = __nccwpck_require__(61610);
+var v1 = __nccwpck_require__(1610);
var v4 = __nccwpck_require__(8373);
var uuid = v4;
@@ -5831,7 +5742,7 @@ module.exports = uuid;
/***/ }),
-/***/ 65694:
+/***/ 5694:
/***/ ((module) => {
/**
@@ -5864,7 +5775,7 @@ module.exports = bytesToUuid;
/***/ }),
-/***/ 34069:
+/***/ 4069:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
// Unique ID creation requires a high quality random # generator. In node.js
@@ -5879,11 +5790,11 @@ module.exports = function nodeRNG() {
/***/ }),
-/***/ 61610:
+/***/ 1610:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var rng = __nccwpck_require__(34069);
-var bytesToUuid = __nccwpck_require__(65694);
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
// **`v1()` - Generate time-based UUID**
//
@@ -5998,8 +5909,8 @@ module.exports = v1;
/***/ 8373:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var rng = __nccwpck_require__(34069);
-var bytesToUuid = __nccwpck_require__(65694);
+var rng = __nccwpck_require__(4069);
+var bytesToUuid = __nccwpck_require__(5694);
function v4(options, buf, offset) {
var i = buf && offset || 0;
@@ -6031,7 +5942,7 @@ module.exports = v4;
/***/ }),
-/***/ 87351:
+/***/ 7351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -6057,7 +5968,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.issue = exports.issueCommand = void 0;
-const os = __importStar(__nccwpck_require__(22037));
+const os = __importStar(__nccwpck_require__(2037));
const utils_1 = __nccwpck_require__(5278);
/**
* Commands
@@ -6130,7 +6041,7 @@ function escapeProperty(s) {
/***/ }),
-/***/ 42186:
+/***/ 2186:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -6165,12 +6076,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
-const command_1 = __nccwpck_require__(87351);
+const command_1 = __nccwpck_require__(7351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(5278);
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const oidc_utils_1 = __nccwpck_require__(98041);
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const oidc_utils_1 = __nccwpck_require__(8041);
/**
* The code to exit an action
*/
@@ -6455,12 +6366,12 @@ exports.getIDToken = getIDToken;
/**
* Summary exports
*/
-var summary_1 = __nccwpck_require__(81327);
+var summary_1 = __nccwpck_require__(1327);
Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } }));
/**
* @deprecated use core.summary
*/
-var summary_2 = __nccwpck_require__(81327);
+var summary_2 = __nccwpck_require__(1327);
Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } }));
/**
* Path exports
@@ -6502,9 +6413,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
-const fs = __importStar(__nccwpck_require__(57147));
-const os = __importStar(__nccwpck_require__(22037));
-const uuid_1 = __nccwpck_require__(75840);
+const fs = __importStar(__nccwpck_require__(7147));
+const os = __importStar(__nccwpck_require__(2037));
+const uuid_1 = __nccwpck_require__(5840);
const utils_1 = __nccwpck_require__(5278);
function issueFileCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
@@ -6538,7 +6449,7 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage;
/***/ }),
-/***/ 98041:
+/***/ 8041:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -6554,9 +6465,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.OidcClient = void 0;
-const http_client_1 = __nccwpck_require__(96255);
-const auth_1 = __nccwpck_require__(35526);
-const core_1 = __nccwpck_require__(42186);
+const http_client_1 = __nccwpck_require__(6255);
+const auth_1 = __nccwpck_require__(5526);
+const core_1 = __nccwpck_require__(2186);
class OidcClient {
static createHttpClient(allowRetry = true, maxRetry = 10) {
const requestOptions = {
@@ -6648,7 +6559,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
-const path = __importStar(__nccwpck_require__(71017));
+const path = __importStar(__nccwpck_require__(1017));
/**
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
* replaced with /.
@@ -6687,7 +6598,7 @@ exports.toPlatformPath = toPlatformPath;
/***/ }),
-/***/ 81327:
+/***/ 1327:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -6703,8 +6614,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
-const os_1 = __nccwpck_require__(22037);
-const fs_1 = __nccwpck_require__(57147);
+const os_1 = __nccwpck_require__(2037);
+const fs_1 = __nccwpck_require__(7147);
const { access, appendFile, writeFile } = fs_1.promises;
exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
@@ -7024,7 +6935,7 @@ exports.toCommandProperties = toCommandProperties;
/***/ }),
-/***/ 71514:
+/***/ 1514:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7059,8 +6970,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getExecOutput = exports.exec = void 0;
-const string_decoder_1 = __nccwpck_require__(71576);
-const tr = __importStar(__nccwpck_require__(88159));
+const string_decoder_1 = __nccwpck_require__(1576);
+const tr = __importStar(__nccwpck_require__(8159));
/**
* Exec a command.
* Output will be streamed to the live console.
@@ -7134,7 +7045,7 @@ exports.getExecOutput = getExecOutput;
/***/ }),
-/***/ 88159:
+/***/ 8159:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7169,13 +7080,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.argStringToArray = exports.ToolRunner = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const events = __importStar(__nccwpck_require__(82361));
-const child = __importStar(__nccwpck_require__(32081));
-const path = __importStar(__nccwpck_require__(71017));
-const io = __importStar(__nccwpck_require__(47351));
-const ioUtil = __importStar(__nccwpck_require__(81962));
-const timers_1 = __nccwpck_require__(39512);
+const os = __importStar(__nccwpck_require__(2037));
+const events = __importStar(__nccwpck_require__(2361));
+const child = __importStar(__nccwpck_require__(2081));
+const path = __importStar(__nccwpck_require__(1017));
+const io = __importStar(__nccwpck_require__(7436));
+const ioUtil = __importStar(__nccwpck_require__(1962));
+const timers_1 = __nccwpck_require__(9512);
/* eslint-disable @typescript-eslint/unbound-method */
const IS_WINDOWS = process.platform === 'win32';
/*
@@ -7759,7 +7670,7 @@ class ExecState extends events.EventEmitter {
/***/ }),
-/***/ 28090:
+/***/ 8090:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7775,7 +7686,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.create = void 0;
-const internal_globber_1 = __nccwpck_require__(28298);
+const internal_globber_1 = __nccwpck_require__(8298);
/**
* Constructs a globber
*
@@ -7792,7 +7703,7 @@ exports.create = create;
/***/ }),
-/***/ 51026:
+/***/ 1026:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7818,7 +7729,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getOptions = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Returns a copy with defaults filled in.
*/
@@ -7849,7 +7760,7 @@ exports.getOptions = getOptions;
/***/ }),
-/***/ 28298:
+/***/ 8298:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -7903,14 +7814,14 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DefaultGlobber = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const fs = __importStar(__nccwpck_require__(57147));
-const globOptionsHelper = __importStar(__nccwpck_require__(51026));
-const path = __importStar(__nccwpck_require__(71017));
-const patternHelper = __importStar(__nccwpck_require__(29005));
-const internal_match_kind_1 = __nccwpck_require__(81063);
-const internal_pattern_1 = __nccwpck_require__(64536);
-const internal_search_state_1 = __nccwpck_require__(89117);
+const core = __importStar(__nccwpck_require__(2186));
+const fs = __importStar(__nccwpck_require__(7147));
+const globOptionsHelper = __importStar(__nccwpck_require__(1026));
+const path = __importStar(__nccwpck_require__(1017));
+const patternHelper = __importStar(__nccwpck_require__(9005));
+const internal_match_kind_1 = __nccwpck_require__(1063);
+const internal_pattern_1 = __nccwpck_require__(4536);
+const internal_search_state_1 = __nccwpck_require__(9117);
const IS_WINDOWS = process.platform === 'win32';
class DefaultGlobber {
constructor(options) {
@@ -8091,7 +8002,7 @@ exports.DefaultGlobber = DefaultGlobber;
/***/ }),
-/***/ 81063:
+/***/ 1063:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -8145,8 +8056,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.safeTrimTrailingSeparator = exports.normalizeSeparators = exports.hasRoot = exports.hasAbsoluteRoot = exports.ensureAbsoluteRoot = exports.dirname = void 0;
-const path = __importStar(__nccwpck_require__(71017));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const path = __importStar(__nccwpck_require__(1017));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Similar to path.dirname except normalizes the path separators and slightly better handling for Windows UNC paths.
@@ -8321,7 +8232,7 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator;
/***/ }),
-/***/ 96836:
+/***/ 6836:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8350,9 +8261,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Path = void 0;
-const path = __importStar(__nccwpck_require__(71017));
+const path = __importStar(__nccwpck_require__(1017));
const pathHelper = __importStar(__nccwpck_require__(1849));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
+const assert_1 = __importDefault(__nccwpck_require__(9491));
const IS_WINDOWS = process.platform === 'win32';
/**
* Helper class for parsing paths into segments
@@ -8441,7 +8352,7 @@ exports.Path = Path;
/***/ }),
-/***/ 29005:
+/***/ 9005:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8468,7 +8379,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.partialMatch = exports.match = exports.getSearchPaths = void 0;
const pathHelper = __importStar(__nccwpck_require__(1849));
-const internal_match_kind_1 = __nccwpck_require__(81063);
+const internal_match_kind_1 = __nccwpck_require__(1063);
const IS_WINDOWS = process.platform === 'win32';
/**
* Given an array of patterns, returns an array of paths to search.
@@ -8542,7 +8453,7 @@ exports.partialMatch = partialMatch;
/***/ }),
-/***/ 64536:
+/***/ 4536:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8571,13 +8482,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Pattern = void 0;
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
const pathHelper = __importStar(__nccwpck_require__(1849));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
-const minimatch_1 = __nccwpck_require__(83973);
-const internal_match_kind_1 = __nccwpck_require__(81063);
-const internal_path_1 = __nccwpck_require__(96836);
+const assert_1 = __importDefault(__nccwpck_require__(9491));
+const minimatch_1 = __nccwpck_require__(3973);
+const internal_match_kind_1 = __nccwpck_require__(1063);
+const internal_path_1 = __nccwpck_require__(6836);
const IS_WINDOWS = process.platform === 'win32';
class Pattern {
constructor(patternOrNegate, isImplicitPattern = false, segments, homedir) {
@@ -8804,7 +8715,7 @@ exports.Pattern = Pattern;
/***/ }),
-/***/ 89117:
+/***/ 9117:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -8822,7 +8733,7 @@ exports.SearchState = SearchState;
/***/ }),
-/***/ 35526:
+/***/ 5526:
/***/ (function(__unused_webpack_module, exports) {
"use strict";
@@ -8910,7 +8821,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
/***/ }),
-/***/ 96255:
+/***/ 6255:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -8946,10 +8857,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
-const http = __importStar(__nccwpck_require__(13685));
-const https = __importStar(__nccwpck_require__(95687));
-const pm = __importStar(__nccwpck_require__(19835));
-const tunnel = __importStar(__nccwpck_require__(74294));
+const http = __importStar(__nccwpck_require__(3685));
+const https = __importStar(__nccwpck_require__(5687));
+const pm = __importStar(__nccwpck_require__(9835));
+const tunnel = __importStar(__nccwpck_require__(4294));
var HttpCodes;
(function (HttpCodes) {
HttpCodes[HttpCodes["OK"] = 200] = "OK";
@@ -9535,7 +9446,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa
/***/ }),
-/***/ 19835:
+/***/ 9835:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -9624,7 +9535,7 @@ function isLoopbackAddress(host) {
/***/ }),
-/***/ 81962:
+/***/ 1962:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -9660,8 +9571,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
var _a;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
-const fs = __importStar(__nccwpck_require__(57147));
-const path = __importStar(__nccwpck_require__(71017));
+const fs = __importStar(__nccwpck_require__(7147));
+const path = __importStar(__nccwpck_require__(1017));
_a = fs.promises
// export const {open} = 'fs'
, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
@@ -9814,7 +9725,7 @@ exports.getCmdPath = getCmdPath;
/***/ }),
-/***/ 47351:
+/***/ 7436:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -9849,9 +9760,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
-const assert_1 = __nccwpck_require__(39491);
-const path = __importStar(__nccwpck_require__(71017));
-const ioUtil = __importStar(__nccwpck_require__(81962));
+const assert_1 = __nccwpck_require__(9491);
+const path = __importStar(__nccwpck_require__(1017));
+const ioUtil = __importStar(__nccwpck_require__(1962));
/**
* Copies a file or folder.
* Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
@@ -10120,7 +10031,7 @@ function copyFile(srcFile, destFile, force) {
/***/ }),
-/***/ 32473:
+/***/ 2473:
/***/ (function(module, exports, __nccwpck_require__) {
"use strict";
@@ -10155,13 +10066,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports._readLinuxVersionFile = exports._getOsVersion = exports._findMatch = void 0;
-const semver = __importStar(__nccwpck_require__(70562));
-const core_1 = __nccwpck_require__(42186);
+const semver = __importStar(__nccwpck_require__(562));
+const core_1 = __nccwpck_require__(2186);
// needs to be require for core node modules to be mocked
/* eslint @typescript-eslint/no-require-imports: 0 */
-const os = __nccwpck_require__(22037);
-const cp = __nccwpck_require__(32081);
-const fs = __nccwpck_require__(57147);
+const os = __nccwpck_require__(2037);
+const cp = __nccwpck_require__(2081);
+const fs = __nccwpck_require__(7147);
function _findMatch(versionSpec, stable, candidates, archFilter) {
return __awaiter(this, void 0, void 0, function* () {
const platFilter = os.platform();
@@ -10255,7 +10166,7 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
/***/ }),
-/***/ 38279:
+/***/ 8279:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -10290,7 +10201,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RetryHelper = void 0;
-const core = __importStar(__nccwpck_require__(42186));
+const core = __importStar(__nccwpck_require__(2186));
/**
* Internal class for retries
*/
@@ -10345,7 +10256,7 @@ exports.RetryHelper = RetryHelper;
/***/ }),
-/***/ 27784:
+/***/ 7784:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -10383,20 +10294,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
-const core = __importStar(__nccwpck_require__(42186));
-const io = __importStar(__nccwpck_require__(47351));
-const fs = __importStar(__nccwpck_require__(57147));
-const mm = __importStar(__nccwpck_require__(32473));
-const os = __importStar(__nccwpck_require__(22037));
-const path = __importStar(__nccwpck_require__(71017));
-const httpm = __importStar(__nccwpck_require__(96255));
-const semver = __importStar(__nccwpck_require__(70562));
-const stream = __importStar(__nccwpck_require__(12781));
-const util = __importStar(__nccwpck_require__(73837));
-const assert_1 = __nccwpck_require__(39491);
-const v4_1 = __importDefault(__nccwpck_require__(17468));
-const exec_1 = __nccwpck_require__(71514);
-const retry_helper_1 = __nccwpck_require__(38279);
+const core = __importStar(__nccwpck_require__(2186));
+const io = __importStar(__nccwpck_require__(7436));
+const fs = __importStar(__nccwpck_require__(7147));
+const mm = __importStar(__nccwpck_require__(2473));
+const os = __importStar(__nccwpck_require__(2037));
+const path = __importStar(__nccwpck_require__(1017));
+const httpm = __importStar(__nccwpck_require__(6255));
+const semver = __importStar(__nccwpck_require__(562));
+const stream = __importStar(__nccwpck_require__(2781));
+const util = __importStar(__nccwpck_require__(3837));
+const assert_1 = __nccwpck_require__(9491);
+const v4_1 = __importDefault(__nccwpck_require__(7468));
+const exec_1 = __nccwpck_require__(1514);
+const retry_helper_1 = __nccwpck_require__(8279);
class HTTPError extends Error {
constructor(httpStatusCode) {
super(`Unexpected HTTP response: ${httpStatusCode}`);
@@ -11017,7 +10928,7 @@ function _unique(values) {
/***/ }),
-/***/ 70562:
+/***/ 562:
/***/ ((module, exports) => {
exports = module.exports = SemVer
@@ -12700,7 +12611,7 @@ module.exports = bytesToUuid;
/***/ }),
-/***/ 37269:
+/***/ 7269:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
// Unique ID creation requires a high quality random # generator. In node.js
@@ -12715,10 +12626,10 @@ module.exports = function nodeRNG() {
/***/ }),
-/***/ 17468:
+/***/ 7468:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var rng = __nccwpck_require__(37269);
+var rng = __nccwpck_require__(7269);
var bytesToUuid = __nccwpck_require__(7701);
function v4(options, buf, offset) {
@@ -12751,7 +12662,7 @@ module.exports = v4;
/***/ }),
-/***/ 52557:
+/***/ 2557:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -12998,7 +12909,7 @@ exports.AbortSignal = AbortSignal;
/***/ }),
-/***/ 39645:
+/***/ 9645:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -13006,7 +12917,7 @@ exports.AbortSignal = AbortSignal;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var coreUtil = __nccwpck_require__(51333);
+var coreUtil = __nccwpck_require__(1333);
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
@@ -13184,7 +13095,7 @@ exports.isTokenCredential = isTokenCredential;
/***/ }),
-/***/ 24607:
+/***/ 4607:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -13192,22 +13103,22 @@ exports.isTokenCredential = isTokenCredential;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var uuid = __nccwpck_require__(75840);
-var util = __nccwpck_require__(73837);
+var uuid = __nccwpck_require__(5840);
+var util = __nccwpck_require__(3837);
var tslib = __nccwpck_require__(4351);
-var xml2js = __nccwpck_require__(66189);
-var coreUtil = __nccwpck_require__(51333);
+var xml2js = __nccwpck_require__(6189);
+var coreUtil = __nccwpck_require__(1333);
var logger$1 = __nccwpck_require__(3233);
-var coreAuth = __nccwpck_require__(39645);
-var os = __nccwpck_require__(22037);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var abortController = __nccwpck_require__(52557);
-var tunnel = __nccwpck_require__(74294);
-var stream = __nccwpck_require__(12781);
-var FormData = __nccwpck_require__(64334);
-var node_fetch = __nccwpck_require__(80467);
-var coreTracing = __nccwpck_require__(94175);
+var coreAuth = __nccwpck_require__(9645);
+var os = __nccwpck_require__(2037);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var abortController = __nccwpck_require__(2557);
+var tunnel = __nccwpck_require__(4294);
+var stream = __nccwpck_require__(2781);
+var FormData = __nccwpck_require__(4334);
+var node_fetch = __nccwpck_require__(467);
+var coreTracing = __nccwpck_require__(4175);
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -18657,7 +18568,7 @@ exports.userAgentPolicy = userAgentPolicy;
/***/ }),
-/***/ 27094:
+/***/ 7094:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -18666,8 +18577,8 @@ exports.userAgentPolicy = userAgentPolicy;
Object.defineProperty(exports, "__esModule", ({ value: true }));
var logger$1 = __nccwpck_require__(3233);
-var abortController = __nccwpck_require__(52557);
-var coreUtil = __nccwpck_require__(51333);
+var abortController = __nccwpck_require__(2557);
+var coreUtil = __nccwpck_require__(1333);
// Copyright (c) Microsoft Corporation.
/**
@@ -19833,7 +19744,7 @@ exports.createHttpPoller = createHttpPoller;
/***/ }),
-/***/ 74559:
+/***/ 4559:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -19945,7 +19856,7 @@ exports.getPagedAsyncIterator = getPagedAsyncIterator;
/***/ }),
-/***/ 94175:
+/***/ 4175:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -19953,7 +19864,7 @@ exports.getPagedAsyncIterator = getPagedAsyncIterator;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var api = __nccwpck_require__(65163);
+var api = __nccwpck_require__(5163);
// Copyright (c) Microsoft Corporation.
(function (SpanKind) {
@@ -20172,7 +20083,7 @@ exports.setSpanContext = setSpanContext;
/***/ }),
-/***/ 51333:
+/***/ 1333:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20180,7 +20091,7 @@ exports.setSpanContext = setSpanContext;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var abortController = __nccwpck_require__(52557);
+var abortController = __nccwpck_require__(2557);
var crypto = __nccwpck_require__(6113);
// Copyright (c) Microsoft Corporation.
@@ -20573,8 +20484,8 @@ exports.uint8ArrayToString = uint8ArrayToString;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var os = __nccwpck_require__(22037);
-var util = __nccwpck_require__(73837);
+var os = __nccwpck_require__(2037);
+var util = __nccwpck_require__(3837);
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -20781,7 +20692,7 @@ exports.setLogLevel = setLogLevel;
/***/ }),
-/***/ 84100:
+/***/ 4100:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -20789,19 +20700,19 @@ exports.setLogLevel = setLogLevel;
Object.defineProperty(exports, "__esModule", ({ value: true }));
-var coreHttp = __nccwpck_require__(24607);
+var coreHttp = __nccwpck_require__(4607);
var tslib = __nccwpck_require__(4351);
-var coreTracing = __nccwpck_require__(94175);
+var coreTracing = __nccwpck_require__(4175);
var logger$1 = __nccwpck_require__(3233);
-var abortController = __nccwpck_require__(52557);
-var os = __nccwpck_require__(22037);
+var abortController = __nccwpck_require__(2557);
+var os = __nccwpck_require__(2037);
var crypto = __nccwpck_require__(6113);
-var stream = __nccwpck_require__(12781);
-__nccwpck_require__(74559);
-var coreLro = __nccwpck_require__(27094);
-var events = __nccwpck_require__(82361);
-var fs = __nccwpck_require__(57147);
-var util = __nccwpck_require__(73837);
+var stream = __nccwpck_require__(2781);
+__nccwpck_require__(4559);
+var coreLro = __nccwpck_require__(7094);
+var events = __nccwpck_require__(2361);
+var fs = __nccwpck_require__(7147);
+var util = __nccwpck_require__(3837);
function _interopNamespace(e) {
if (e && e.__esModule) return e;
@@ -39565,7 +39476,7 @@ class BuffersStream extends stream.Readable {
* maxBufferLength is max size of each buffer in the pooled buffers.
*/
// Can't use import as Typescript doesn't recognize "buffer".
-const maxBufferLength = (__nccwpck_require__(14300).constants.MAX_LENGTH);
+const maxBufferLength = (__nccwpck_require__(4300).constants.MAX_LENGTH);
/**
* This class provides a buffer container which conceptually has no hard size limit.
* It accepts a capacity, an array of input buffers and the total length of input data.
@@ -45906,7 +45817,7 @@ exports.newPipeline = newPipeline;
/***/ }),
-/***/ 57171:
+/***/ 7171:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -45928,9 +45839,9 @@ exports.newPipeline = newPipeline;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ContextAPI = void 0;
-const NoopContextManager_1 = __nccwpck_require__(54118);
-const global_utils_1 = __nccwpck_require__(85135);
-const diag_1 = __nccwpck_require__(11877);
+const NoopContextManager_1 = __nccwpck_require__(4118);
+const global_utils_1 = __nccwpck_require__(5135);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'context';
const NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager();
/**
@@ -45994,7 +45905,7 @@ exports.ContextAPI = ContextAPI;
/***/ }),
-/***/ 11877:
+/***/ 1877:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46016,10 +45927,10 @@ exports.ContextAPI = ContextAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DiagAPI = void 0;
-const ComponentLogger_1 = __nccwpck_require__(17978);
-const logLevelLogger_1 = __nccwpck_require__(99639);
-const types_1 = __nccwpck_require__(78077);
-const global_utils_1 = __nccwpck_require__(85135);
+const ComponentLogger_1 = __nccwpck_require__(7978);
+const logLevelLogger_1 = __nccwpck_require__(9639);
+const types_1 = __nccwpck_require__(8077);
+const global_utils_1 = __nccwpck_require__(5135);
const API_NAME = 'diag';
/**
* Singleton object which represents the entry point to the OpenTelemetry internal
@@ -46094,7 +46005,7 @@ exports.DiagAPI = DiagAPI;
/***/ }),
-/***/ 17696:
+/***/ 7696:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46116,9 +46027,9 @@ exports.DiagAPI = DiagAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MetricsAPI = void 0;
-const NoopMeterProvider_1 = __nccwpck_require__(72647);
-const global_utils_1 = __nccwpck_require__(85135);
-const diag_1 = __nccwpck_require__(11877);
+const NoopMeterProvider_1 = __nccwpck_require__(2647);
+const global_utils_1 = __nccwpck_require__(5135);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'metrics';
/**
* Singleton object which represents the entry point to the OpenTelemetry Metrics API
@@ -46162,7 +46073,7 @@ exports.MetricsAPI = MetricsAPI;
/***/ }),
-/***/ 89909:
+/***/ 9909:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46184,12 +46095,12 @@ exports.MetricsAPI = MetricsAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PropagationAPI = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
-const NoopTextMapPropagator_1 = __nccwpck_require__(72368);
-const TextMapPropagator_1 = __nccwpck_require__(80865);
-const context_helpers_1 = __nccwpck_require__(37682);
-const utils_1 = __nccwpck_require__(28136);
-const diag_1 = __nccwpck_require__(11877);
+const global_utils_1 = __nccwpck_require__(5135);
+const NoopTextMapPropagator_1 = __nccwpck_require__(2368);
+const TextMapPropagator_1 = __nccwpck_require__(865);
+const context_helpers_1 = __nccwpck_require__(7682);
+const utils_1 = __nccwpck_require__(8136);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'propagation';
const NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator();
/**
@@ -46258,7 +46169,7 @@ exports.PropagationAPI = PropagationAPI;
/***/ }),
-/***/ 81539:
+/***/ 1539:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46280,11 +46191,11 @@ exports.PropagationAPI = PropagationAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TraceAPI = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
+const global_utils_1 = __nccwpck_require__(5135);
const ProxyTracerProvider_1 = __nccwpck_require__(2285);
-const spancontext_utils_1 = __nccwpck_require__(49745);
-const context_utils_1 = __nccwpck_require__(23326);
-const diag_1 = __nccwpck_require__(11877);
+const spancontext_utils_1 = __nccwpck_require__(9745);
+const context_utils_1 = __nccwpck_require__(3326);
+const diag_1 = __nccwpck_require__(1877);
const API_NAME = 'trace';
/**
* Singleton object which represents the entry point to the OpenTelemetry Tracing API
@@ -46344,7 +46255,7 @@ exports.TraceAPI = TraceAPI;
/***/ }),
-/***/ 37682:
+/***/ 7682:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46366,8 +46277,8 @@ exports.TraceAPI = TraceAPI;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = void 0;
-const context_1 = __nccwpck_require__(57171);
-const context_2 = __nccwpck_require__(78242);
+const context_1 = __nccwpck_require__(7171);
+const context_2 = __nccwpck_require__(8242);
/**
* Baggage key
*/
@@ -46414,7 +46325,7 @@ exports.deleteBaggage = deleteBaggage;
/***/ }),
-/***/ 84811:
+/***/ 4811:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -46476,7 +46387,7 @@ exports.BaggageImpl = BaggageImpl;
/***/ }),
-/***/ 23542:
+/***/ 3542:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -46506,7 +46417,7 @@ exports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
/***/ }),
-/***/ 28136:
+/***/ 8136:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46528,9 +46439,9 @@ exports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.baggageEntryMetadataFromString = exports.createBaggage = void 0;
-const diag_1 = __nccwpck_require__(11877);
-const baggage_impl_1 = __nccwpck_require__(84811);
-const symbol_1 = __nccwpck_require__(23542);
+const diag_1 = __nccwpck_require__(1877);
+const baggage_impl_1 = __nccwpck_require__(4811);
+const symbol_1 = __nccwpck_require__(3542);
const diag = diag_1.DiagAPI.instance();
/**
* Create a new Baggage with optional entries
@@ -46588,14 +46499,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.context = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const context_1 = __nccwpck_require__(57171);
+const context_1 = __nccwpck_require__(7171);
/** Entrypoint for context API */
exports.context = context_1.ContextAPI.getInstance();
//# sourceMappingURL=context-api.js.map
/***/ }),
-/***/ 54118:
+/***/ 4118:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46617,7 +46528,7 @@ exports.context = context_1.ContextAPI.getInstance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopContextManager = void 0;
-const context_1 = __nccwpck_require__(78242);
+const context_1 = __nccwpck_require__(8242);
class NoopContextManager {
active() {
return context_1.ROOT_CONTEXT;
@@ -46640,7 +46551,7 @@ exports.NoopContextManager = NoopContextManager;
/***/ }),
-/***/ 78242:
+/***/ 8242:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -46702,7 +46613,7 @@ exports.ROOT_CONTEXT = new BaseContext();
/***/ }),
-/***/ 39721:
+/***/ 9721:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46726,7 +46637,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.diag = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const diag_1 = __nccwpck_require__(11877);
+const diag_1 = __nccwpck_require__(1877);
/**
* Entrypoint for Diag API.
* Defines Diagnostic handler used for internal diagnostic logging operations.
@@ -46738,7 +46649,7 @@ exports.diag = diag_1.DiagAPI.instance();
/***/ }),
-/***/ 17978:
+/***/ 7978:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46760,7 +46671,7 @@ exports.diag = diag_1.DiagAPI.instance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DiagComponentLogger = void 0;
-const global_utils_1 = __nccwpck_require__(85135);
+const global_utils_1 = __nccwpck_require__(5135);
/**
* Component Logger which is meant to be used as part of any component which
* will add automatically additional namespace in front of the log message.
@@ -46868,7 +46779,7 @@ exports.DiagConsoleLogger = DiagConsoleLogger;
/***/ }),
-/***/ 99639:
+/***/ 9639:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46890,7 +46801,7 @@ exports.DiagConsoleLogger = DiagConsoleLogger;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createLogLevelDiagLogger = void 0;
-const types_1 = __nccwpck_require__(78077);
+const types_1 = __nccwpck_require__(8077);
function createLogLevelDiagLogger(maxLevel, logger) {
if (maxLevel < types_1.DiagLogLevel.NONE) {
maxLevel = types_1.DiagLogLevel.NONE;
@@ -46920,7 +46831,7 @@ exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
/***/ }),
-/***/ 78077:
+/***/ 8077:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -46971,7 +46882,7 @@ var DiagLogLevel;
/***/ }),
-/***/ 65163:
+/***/ 5163:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -46993,45 +46904,45 @@ var DiagLogLevel;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.trace = exports.propagation = exports.metrics = exports.diag = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.TraceFlags = exports.SpanStatusCode = exports.SpanKind = exports.SamplingDecision = exports.ProxyTracerProvider = exports.ProxyTracer = exports.defaultTextMapSetter = exports.defaultTextMapGetter = exports.ValueType = exports.createNoopMeter = exports.DiagLogLevel = exports.DiagConsoleLogger = exports.ROOT_CONTEXT = exports.createContextKey = exports.baggageEntryMetadataFromString = void 0;
-var utils_1 = __nccwpck_require__(28136);
+var utils_1 = __nccwpck_require__(8136);
Object.defineProperty(exports, "baggageEntryMetadataFromString", ({ enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } }));
// Context APIs
-var context_1 = __nccwpck_require__(78242);
+var context_1 = __nccwpck_require__(8242);
Object.defineProperty(exports, "createContextKey", ({ enumerable: true, get: function () { return context_1.createContextKey; } }));
Object.defineProperty(exports, "ROOT_CONTEXT", ({ enumerable: true, get: function () { return context_1.ROOT_CONTEXT; } }));
// Diag APIs
var consoleLogger_1 = __nccwpck_require__(3041);
Object.defineProperty(exports, "DiagConsoleLogger", ({ enumerable: true, get: function () { return consoleLogger_1.DiagConsoleLogger; } }));
-var types_1 = __nccwpck_require__(78077);
+var types_1 = __nccwpck_require__(8077);
Object.defineProperty(exports, "DiagLogLevel", ({ enumerable: true, get: function () { return types_1.DiagLogLevel; } }));
// Metrics APIs
var NoopMeter_1 = __nccwpck_require__(4837);
Object.defineProperty(exports, "createNoopMeter", ({ enumerable: true, get: function () { return NoopMeter_1.createNoopMeter; } }));
-var Metric_1 = __nccwpck_require__(89999);
+var Metric_1 = __nccwpck_require__(9999);
Object.defineProperty(exports, "ValueType", ({ enumerable: true, get: function () { return Metric_1.ValueType; } }));
// Propagation APIs
-var TextMapPropagator_1 = __nccwpck_require__(80865);
+var TextMapPropagator_1 = __nccwpck_require__(865);
Object.defineProperty(exports, "defaultTextMapGetter", ({ enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapGetter; } }));
Object.defineProperty(exports, "defaultTextMapSetter", ({ enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapSetter; } }));
-var ProxyTracer_1 = __nccwpck_require__(43503);
+var ProxyTracer_1 = __nccwpck_require__(3503);
Object.defineProperty(exports, "ProxyTracer", ({ enumerable: true, get: function () { return ProxyTracer_1.ProxyTracer; } }));
var ProxyTracerProvider_1 = __nccwpck_require__(2285);
Object.defineProperty(exports, "ProxyTracerProvider", ({ enumerable: true, get: function () { return ProxyTracerProvider_1.ProxyTracerProvider; } }));
-var SamplingResult_1 = __nccwpck_require__(33209);
+var SamplingResult_1 = __nccwpck_require__(3209);
Object.defineProperty(exports, "SamplingDecision", ({ enumerable: true, get: function () { return SamplingResult_1.SamplingDecision; } }));
-var span_kind_1 = __nccwpck_require__(31424);
+var span_kind_1 = __nccwpck_require__(1424);
Object.defineProperty(exports, "SpanKind", ({ enumerable: true, get: function () { return span_kind_1.SpanKind; } }));
-var status_1 = __nccwpck_require__(48845);
+var status_1 = __nccwpck_require__(8845);
Object.defineProperty(exports, "SpanStatusCode", ({ enumerable: true, get: function () { return status_1.SpanStatusCode; } }));
-var trace_flags_1 = __nccwpck_require__(26905);
+var trace_flags_1 = __nccwpck_require__(6905);
Object.defineProperty(exports, "TraceFlags", ({ enumerable: true, get: function () { return trace_flags_1.TraceFlags; } }));
-var utils_2 = __nccwpck_require__(32615);
+var utils_2 = __nccwpck_require__(2615);
Object.defineProperty(exports, "createTraceState", ({ enumerable: true, get: function () { return utils_2.createTraceState; } }));
-var spancontext_utils_1 = __nccwpck_require__(49745);
+var spancontext_utils_1 = __nccwpck_require__(9745);
Object.defineProperty(exports, "isSpanContextValid", ({ enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } }));
Object.defineProperty(exports, "isValidTraceId", ({ enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } }));
Object.defineProperty(exports, "isValidSpanId", ({ enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } }));
-var invalid_span_constants_1 = __nccwpck_require__(91760);
+var invalid_span_constants_1 = __nccwpck_require__(1760);
Object.defineProperty(exports, "INVALID_SPANID", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPANID; } }));
Object.defineProperty(exports, "INVALID_TRACEID", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_TRACEID; } }));
Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", ({ enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPAN_CONTEXT; } }));
@@ -47039,13 +46950,13 @@ Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", ({ enumerable: true, get:
// tree-shaking on each api instance.
const context_api_1 = __nccwpck_require__(7393);
Object.defineProperty(exports, "context", ({ enumerable: true, get: function () { return context_api_1.context; } }));
-const diag_api_1 = __nccwpck_require__(39721);
+const diag_api_1 = __nccwpck_require__(9721);
Object.defineProperty(exports, "diag", ({ enumerable: true, get: function () { return diag_api_1.diag; } }));
-const metrics_api_1 = __nccwpck_require__(72601);
+const metrics_api_1 = __nccwpck_require__(2601);
Object.defineProperty(exports, "metrics", ({ enumerable: true, get: function () { return metrics_api_1.metrics; } }));
-const propagation_api_1 = __nccwpck_require__(17591);
+const propagation_api_1 = __nccwpck_require__(7591);
Object.defineProperty(exports, "propagation", ({ enumerable: true, get: function () { return propagation_api_1.propagation; } }));
-const trace_api_1 = __nccwpck_require__(98989);
+const trace_api_1 = __nccwpck_require__(8989);
Object.defineProperty(exports, "trace", ({ enumerable: true, get: function () { return trace_api_1.trace; } }));
// Default export.
exports["default"] = {
@@ -47059,7 +46970,7 @@ exports["default"] = {
/***/ }),
-/***/ 85135:
+/***/ 5135:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47081,9 +46992,9 @@ exports["default"] = {
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;
-const platform_1 = __nccwpck_require__(99957);
-const version_1 = __nccwpck_require__(98996);
-const semver_1 = __nccwpck_require__(81522);
+const platform_1 = __nccwpck_require__(9957);
+const version_1 = __nccwpck_require__(8996);
+const semver_1 = __nccwpck_require__(1522);
const major = version_1.VERSION.split('.')[0];
const GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
const _global = platform_1._globalThis;
@@ -47130,7 +47041,7 @@ exports.unregisterGlobal = unregisterGlobal;
/***/ }),
-/***/ 81522:
+/***/ 1522:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47152,7 +47063,7 @@ exports.unregisterGlobal = unregisterGlobal;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isCompatible = exports._makeCompatibilityCheck = void 0;
-const version_1 = __nccwpck_require__(98996);
+const version_1 = __nccwpck_require__(8996);
const re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
/**
* Create a function to test an API version to see if it is compatible with the provided ownVersion.
@@ -47259,7 +47170,7 @@ exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
/***/ }),
-/***/ 72601:
+/***/ 2601:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47283,14 +47194,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.metrics = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const metrics_1 = __nccwpck_require__(17696);
+const metrics_1 = __nccwpck_require__(7696);
/** Entrypoint for metrics API */
exports.metrics = metrics_1.MetricsAPI.getInstance();
//# sourceMappingURL=metrics-api.js.map
/***/ }),
-/***/ 89999:
+/***/ 9999:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -47445,7 +47356,7 @@ exports.createNoopMeter = createNoopMeter;
/***/ }),
-/***/ 72647:
+/***/ 2647:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47483,7 +47394,7 @@ exports.NOOP_METER_PROVIDER = new NoopMeterProvider();
/***/ }),
-/***/ 99957:
+/***/ 9957:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -47514,12 +47425,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(87200), exports);
+__exportStar(__nccwpck_require__(7200), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 89406:
+/***/ 9406:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -47548,7 +47459,7 @@ exports._globalThis = typeof globalThis === 'object' ? globalThis : global;
/***/ }),
-/***/ 87200:
+/***/ 7200:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
@@ -47579,12 +47490,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
-__exportStar(__nccwpck_require__(89406), exports);
+__exportStar(__nccwpck_require__(9406), exports);
//# sourceMappingURL=index.js.map
/***/ }),
-/***/ 17591:
+/***/ 7591:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47608,14 +47519,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.propagation = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const propagation_1 = __nccwpck_require__(89909);
+const propagation_1 = __nccwpck_require__(9909);
/** Entrypoint for propagation API */
exports.propagation = propagation_1.PropagationAPI.getInstance();
//# sourceMappingURL=propagation-api.js.map
/***/ }),
-/***/ 72368:
+/***/ 2368:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -47656,7 +47567,7 @@ exports.NoopTextMapPropagator = NoopTextMapPropagator;
/***/ }),
-/***/ 80865:
+/***/ 865:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -47704,7 +47615,7 @@ exports.defaultTextMapSetter = {
/***/ }),
-/***/ 98989:
+/***/ 8989:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47728,14 +47639,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.trace = void 0;
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
-const trace_1 = __nccwpck_require__(81539);
+const trace_1 = __nccwpck_require__(1539);
/** Entrypoint for trace API */
exports.trace = trace_1.TraceAPI.getInstance();
//# sourceMappingURL=trace-api.js.map
/***/ }),
-/***/ 81462:
+/***/ 1462:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47757,7 +47668,7 @@ exports.trace = trace_1.TraceAPI.getInstance();
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NonRecordingSpan = void 0;
-const invalid_span_constants_1 = __nccwpck_require__(91760);
+const invalid_span_constants_1 = __nccwpck_require__(1760);
/**
* The NonRecordingSpan is the default {@link Span} that is used when no Span
* implementation is available. All operations are no-op including context
@@ -47805,7 +47716,7 @@ exports.NonRecordingSpan = NonRecordingSpan;
/***/ }),
-/***/ 17606:
+/***/ 7606:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47827,10 +47738,10 @@ exports.NonRecordingSpan = NonRecordingSpan;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopTracer = void 0;
-const context_1 = __nccwpck_require__(57171);
-const context_utils_1 = __nccwpck_require__(23326);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
-const spancontext_utils_1 = __nccwpck_require__(49745);
+const context_1 = __nccwpck_require__(7171);
+const context_utils_1 = __nccwpck_require__(3326);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
+const spancontext_utils_1 = __nccwpck_require__(9745);
const contextApi = context_1.ContextAPI.getInstance();
/**
* No-op implementations of {@link Tracer}.
@@ -47887,7 +47798,7 @@ function isSpanContext(spanContext) {
/***/ }),
-/***/ 23259:
+/***/ 3259:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47909,7 +47820,7 @@ function isSpanContext(spanContext) {
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.NoopTracerProvider = void 0;
-const NoopTracer_1 = __nccwpck_require__(17606);
+const NoopTracer_1 = __nccwpck_require__(7606);
/**
* An implementation of the {@link TracerProvider} which returns an impotent
* Tracer for all calls to `getTracer`.
@@ -47926,7 +47837,7 @@ exports.NoopTracerProvider = NoopTracerProvider;
/***/ }),
-/***/ 43503:
+/***/ 3503:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -47948,7 +47859,7 @@ exports.NoopTracerProvider = NoopTracerProvider;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ProxyTracer = void 0;
-const NoopTracer_1 = __nccwpck_require__(17606);
+const NoopTracer_1 = __nccwpck_require__(7606);
const NOOP_TRACER = new NoopTracer_1.NoopTracer();
/**
* Proxy tracer provided by the proxy tracer provider
@@ -48010,8 +47921,8 @@ exports.ProxyTracer = ProxyTracer;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ProxyTracerProvider = void 0;
-const ProxyTracer_1 = __nccwpck_require__(43503);
-const NoopTracerProvider_1 = __nccwpck_require__(23259);
+const ProxyTracer_1 = __nccwpck_require__(3503);
+const NoopTracerProvider_1 = __nccwpck_require__(3259);
const NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider();
/**
* Tracer provider which provides {@link ProxyTracer}s.
@@ -48049,7 +47960,7 @@ exports.ProxyTracerProvider = ProxyTracerProvider;
/***/ }),
-/***/ 33209:
+/***/ 3209:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48098,7 +48009,7 @@ var SamplingDecision;
/***/ }),
-/***/ 23326:
+/***/ 3326:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -48120,9 +48031,9 @@ var SamplingDecision;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = void 0;
-const context_1 = __nccwpck_require__(78242);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
-const context_2 = __nccwpck_require__(57171);
+const context_1 = __nccwpck_require__(8242);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
+const context_2 = __nccwpck_require__(7171);
/**
* span key
*/
@@ -48187,7 +48098,7 @@ exports.getSpanContext = getSpanContext;
/***/ }),
-/***/ 62110:
+/***/ 2110:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -48209,7 +48120,7 @@ exports.getSpanContext = getSpanContext;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TraceStateImpl = void 0;
-const tracestate_validators_1 = __nccwpck_require__(54864);
+const tracestate_validators_1 = __nccwpck_require__(4864);
const MAX_TRACE_STATE_ITEMS = 32;
const MAX_TRACE_STATE_LEN = 512;
const LIST_MEMBERS_SEPARATOR = ',';
@@ -48297,7 +48208,7 @@ exports.TraceStateImpl = TraceStateImpl;
/***/ }),
-/***/ 54864:
+/***/ 4864:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48350,7 +48261,7 @@ exports.validateValue = validateValue;
/***/ }),
-/***/ 32615:
+/***/ 2615:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -48372,7 +48283,7 @@ exports.validateValue = validateValue;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createTraceState = void 0;
-const tracestate_impl_1 = __nccwpck_require__(62110);
+const tracestate_impl_1 = __nccwpck_require__(2110);
function createTraceState(rawTraceState) {
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
}
@@ -48381,7 +48292,7 @@ exports.createTraceState = createTraceState;
/***/ }),
-/***/ 91760:
+/***/ 1760:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -48403,7 +48314,7 @@ exports.createTraceState = createTraceState;
*/
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
-const trace_flags_1 = __nccwpck_require__(26905);
+const trace_flags_1 = __nccwpck_require__(6905);
exports.INVALID_SPANID = '0000000000000000';
exports.INVALID_TRACEID = '00000000000000000000000000000000';
exports.INVALID_SPAN_CONTEXT = {
@@ -48415,7 +48326,7 @@ exports.INVALID_SPAN_CONTEXT = {
/***/ }),
-/***/ 31424:
+/***/ 1424:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48468,7 +48379,7 @@ var SpanKind;
/***/ }),
-/***/ 49745:
+/***/ 9745:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
@@ -48490,8 +48401,8 @@ exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = e
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-const invalid_span_constants_1 = __nccwpck_require__(91760);
-const NonRecordingSpan_1 = __nccwpck_require__(81462);
+const invalid_span_constants_1 = __nccwpck_require__(1760);
+const NonRecordingSpan_1 = __nccwpck_require__(1462);
const VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
const VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
function isValidTraceId(traceId) {
@@ -48524,7 +48435,7 @@ exports.wrapSpanContext = wrapSpanContext;
/***/ }),
-/***/ 48845:
+/***/ 8845:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48554,7 +48465,7 @@ var SpanStatusCode;
/***/ }),
-/***/ 26905:
+/***/ 6905:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48587,7 +48498,7 @@ var TraceFlags;
/***/ }),
-/***/ 98996:
+/***/ 8996:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48615,38 +48526,7 @@ exports.VERSION = '1.4.1';
/***/ }),
-/***/ 81040:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-function once(emitter, name, { signal } = {}) {
- return new Promise((resolve, reject) => {
- function cleanup() {
- signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', cleanup);
- emitter.removeListener(name, onEvent);
- emitter.removeListener('error', onError);
- }
- function onEvent(...args) {
- cleanup();
- resolve(args);
- }
- function onError(err) {
- cleanup();
- reject(err);
- }
- signal === null || signal === void 0 ? void 0 : signal.addEventListener('abort', cleanup);
- emitter.on(name, onEvent);
- emitter.on('error', onError);
- });
-}
-exports["default"] = once;
-//# sourceMappingURL=index.js.map
-
-/***/ }),
-
-/***/ 49756:
+/***/ 9756:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -48857,14 +48737,14 @@ exports.NAMESPACE = NAMESPACE;
/***/ }),
-/***/ 75072:
+/***/ 5072:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
var __webpack_unused_export__;
-var conventions = __nccwpck_require__(49756);
+var conventions = __nccwpck_require__(9756);
var dom = __nccwpck_require__(1389)
-var entities = __nccwpck_require__(18508);
-var sax = __nccwpck_require__(86058);
+var entities = __nccwpck_require__(8508);
+var sax = __nccwpck_require__(6058);
var DOMImplementation = dom.DOMImplementation;
@@ -49190,7 +49070,7 @@ exports.DOMParser = DOMParser;
/***/ 1389:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-var conventions = __nccwpck_require__(49756);
+var conventions = __nccwpck_require__(9756);
var find = conventions.find;
var NAMESPACE = conventions.NAMESPACE;
@@ -51034,13 +50914,13 @@ try{
/***/ }),
-/***/ 18508:
+/***/ 8508:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
-var freeze = (__nccwpck_require__(49756).freeze);
+var freeze = (__nccwpck_require__(9756).freeze);
/**
* The entities that are predefined in every XML document.
@@ -53208,21 +53088,21 @@ exports.entityMap = exports.HTML_ENTITIES;
/***/ }),
-/***/ 49213:
+/***/ 9213:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
var dom = __nccwpck_require__(1389)
exports.DOMImplementation = dom.DOMImplementation
exports.XMLSerializer = dom.XMLSerializer
-exports.DOMParser = __nccwpck_require__(75072).DOMParser
+exports.DOMParser = __nccwpck_require__(5072).DOMParser
/***/ }),
-/***/ 86058:
+/***/ 6058:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-var NAMESPACE = (__nccwpck_require__(49756).NAMESPACE);
+var NAMESPACE = (__nccwpck_require__(9756).NAMESPACE);
//[4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
//[4a] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]
@@ -53888,438 +53768,7 @@ exports.ParseError = ParseError;
/***/ }),
-/***/ 75696:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const atob = __nccwpck_require__(84732);
-const btoa = __nccwpck_require__(50012);
-
-module.exports = {
- atob,
- btoa
-};
-
-
-/***/ }),
-
-/***/ 84732:
-/***/ ((module) => {
-
-"use strict";
-
-
-/**
- * Implementation of atob() according to the HTML and Infra specs, except that
- * instead of throwing INVALID_CHARACTER_ERR we return null.
- */
-function atob(data) {
- if (arguments.length === 0) {
- throw new TypeError("1 argument required, but only 0 present.");
- }
-
- // Web IDL requires DOMStrings to just be converted using ECMAScript
- // ToString, which in our case amounts to using a template literal.
- data = `${data}`;
- // "Remove all ASCII whitespace from data."
- data = data.replace(/[ \t\n\f\r]/g, "");
- // "If data's length divides by 4 leaving no remainder, then: if data ends
- // with one or two U+003D (=) code points, then remove them from data."
- if (data.length % 4 === 0) {
- data = data.replace(/==?$/, "");
- }
- // "If data's length divides by 4 leaving a remainder of 1, then return
- // failure."
- //
- // "If data contains a code point that is not one of
- //
- // U+002B (+)
- // U+002F (/)
- // ASCII alphanumeric
- //
- // then return failure."
- if (data.length % 4 === 1 || /[^+/0-9A-Za-z]/.test(data)) {
- return null;
- }
- // "Let output be an empty byte sequence."
- let output = "";
- // "Let buffer be an empty buffer that can have bits appended to it."
- //
- // We append bits via left-shift and or. accumulatedBits is used to track
- // when we've gotten to 24 bits.
- let buffer = 0;
- let accumulatedBits = 0;
- // "Let position be a position variable for data, initially pointing at the
- // start of data."
- //
- // "While position does not point past the end of data:"
- for (let i = 0; i < data.length; i++) {
- // "Find the code point pointed to by position in the second column of
- // Table 1: The Base 64 Alphabet of RFC 4648. Let n be the number given in
- // the first cell of the same row.
- //
- // "Append to buffer the six bits corresponding to n, most significant bit
- // first."
- //
- // atobLookup() implements the table from RFC 4648.
- buffer <<= 6;
- buffer |= atobLookup(data[i]);
- accumulatedBits += 6;
- // "If buffer has accumulated 24 bits, interpret them as three 8-bit
- // big-endian numbers. Append three bytes with values equal to those
- // numbers to output, in the same order, and then empty buffer."
- if (accumulatedBits === 24) {
- output += String.fromCharCode((buffer & 0xff0000) >> 16);
- output += String.fromCharCode((buffer & 0xff00) >> 8);
- output += String.fromCharCode(buffer & 0xff);
- buffer = accumulatedBits = 0;
- }
- // "Advance position by 1."
- }
- // "If buffer is not empty, it contains either 12 or 18 bits. If it contains
- // 12 bits, then discard the last four and interpret the remaining eight as
- // an 8-bit big-endian number. If it contains 18 bits, then discard the last
- // two and interpret the remaining 16 as two 8-bit big-endian numbers. Append
- // the one or two bytes with values equal to those one or two numbers to
- // output, in the same order."
- if (accumulatedBits === 12) {
- buffer >>= 4;
- output += String.fromCharCode(buffer);
- } else if (accumulatedBits === 18) {
- buffer >>= 2;
- output += String.fromCharCode((buffer & 0xff00) >> 8);
- output += String.fromCharCode(buffer & 0xff);
- }
- // "Return output."
- return output;
-}
-/**
- * A lookup table for atob(), which converts an ASCII character to the
- * corresponding six-bit number.
- */
-
-const keystr =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-
-function atobLookup(chr) {
- const index = keystr.indexOf(chr);
- // Throw exception if character is not in the lookup string; should not be hit in tests
- return index < 0 ? undefined : index;
-}
-
-module.exports = atob;
-
-
-/***/ }),
-
-/***/ 50012:
-/***/ ((module) => {
-
-"use strict";
-
-
-/**
- * btoa() as defined by the HTML and Infra specs, which mostly just references
- * RFC 4648.
- */
-function btoa(s) {
- if (arguments.length === 0) {
- throw new TypeError("1 argument required, but only 0 present.");
- }
-
- let i;
- // String conversion as required by Web IDL.
- s = `${s}`;
- // "The btoa() method must throw an "InvalidCharacterError" DOMException if
- // data contains any character whose code point is greater than U+00FF."
- for (i = 0; i < s.length; i++) {
- if (s.charCodeAt(i) > 255) {
- return null;
- }
- }
- let out = "";
- for (i = 0; i < s.length; i += 3) {
- const groupsOfSix = [undefined, undefined, undefined, undefined];
- groupsOfSix[0] = s.charCodeAt(i) >> 2;
- groupsOfSix[1] = (s.charCodeAt(i) & 0x03) << 4;
- if (s.length > i + 1) {
- groupsOfSix[1] |= s.charCodeAt(i + 1) >> 4;
- groupsOfSix[2] = (s.charCodeAt(i + 1) & 0x0f) << 2;
- }
- if (s.length > i + 2) {
- groupsOfSix[2] |= s.charCodeAt(i + 2) >> 6;
- groupsOfSix[3] = s.charCodeAt(i + 2) & 0x3f;
- }
- for (let j = 0; j < groupsOfSix.length; j++) {
- if (typeof groupsOfSix[j] === "undefined") {
- out += "=";
- } else {
- out += btoaLookup(groupsOfSix[j]);
- }
- }
- }
- return out;
-}
-
-/**
- * Lookup table for btoa(), which converts a six-bit number into the
- * corresponding ASCII character.
- */
-const keystr =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-
-function btoaLookup(index) {
- if (index >= 0 && index < 64) {
- return keystr[index];
- }
-
- // Throw INVALID_CHARACTER_ERR exception here -- won't be hit in the tests.
- return undefined;
-}
-
-module.exports = btoa;
-
-
-/***/ }),
-
-/***/ 49690:
-/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
-
-"use strict";
-
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-const events_1 = __nccwpck_require__(82361);
-const debug_1 = __importDefault(__nccwpck_require__(38237));
-const promisify_1 = __importDefault(__nccwpck_require__(66570));
-const debug = debug_1.default('agent-base');
-function isAgent(v) {
- return Boolean(v) && typeof v.addRequest === 'function';
-}
-function isSecureEndpoint() {
- const { stack } = new Error();
- if (typeof stack !== 'string')
- return false;
- return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
-}
-function createAgent(callback, opts) {
- return new createAgent.Agent(callback, opts);
-}
-(function (createAgent) {
- /**
- * Base `http.Agent` implementation.
- * No pooling/keep-alive is implemented by default.
- *
- * @param {Function} callback
- * @api public
- */
- class Agent extends events_1.EventEmitter {
- constructor(callback, _opts) {
- super();
- let opts = _opts;
- if (typeof callback === 'function') {
- this.callback = callback;
- }
- else if (callback) {
- opts = callback;
- }
- // Timeout for the socket to be returned from the callback
- this.timeout = null;
- if (opts && typeof opts.timeout === 'number') {
- this.timeout = opts.timeout;
- }
- // These aren't actually used by `agent-base`, but are required
- // for the TypeScript definition files in `@types/node` :/
- this.maxFreeSockets = 1;
- this.maxSockets = 1;
- this.maxTotalSockets = Infinity;
- this.sockets = {};
- this.freeSockets = {};
- this.requests = {};
- this.options = {};
- }
- get defaultPort() {
- if (typeof this.explicitDefaultPort === 'number') {
- return this.explicitDefaultPort;
- }
- return isSecureEndpoint() ? 443 : 80;
- }
- set defaultPort(v) {
- this.explicitDefaultPort = v;
- }
- get protocol() {
- if (typeof this.explicitProtocol === 'string') {
- return this.explicitProtocol;
- }
- return isSecureEndpoint() ? 'https:' : 'http:';
- }
- set protocol(v) {
- this.explicitProtocol = v;
- }
- callback(req, opts, fn) {
- throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
- }
- /**
- * Called by node-core's "_http_client.js" module when creating
- * a new HTTP request with this Agent instance.
- *
- * @api public
- */
- addRequest(req, _opts) {
- const opts = Object.assign({}, _opts);
- if (typeof opts.secureEndpoint !== 'boolean') {
- opts.secureEndpoint = isSecureEndpoint();
- }
- if (opts.host == null) {
- opts.host = 'localhost';
- }
- if (opts.port == null) {
- opts.port = opts.secureEndpoint ? 443 : 80;
- }
- if (opts.protocol == null) {
- opts.protocol = opts.secureEndpoint ? 'https:' : 'http:';
- }
- if (opts.host && opts.path) {
- // If both a `host` and `path` are specified then it's most
- // likely the result of a `url.parse()` call... we need to
- // remove the `path` portion so that `net.connect()` doesn't
- // attempt to open that as a unix socket file.
- delete opts.path;
- }
- delete opts.agent;
- delete opts.hostname;
- delete opts._defaultAgent;
- delete opts.defaultPort;
- delete opts.createConnection;
- // Hint to use "Connection: close"
- // XXX: non-documented `http` module API :(
- req._last = true;
- req.shouldKeepAlive = false;
- let timedOut = false;
- let timeoutId = null;
- const timeoutMs = opts.timeout || this.timeout;
- const onerror = (err) => {
- if (req._hadError)
- return;
- req.emit('error', err);
- // For Safety. Some additional errors might fire later on
- // and we need to make sure we don't double-fire the error event.
- req._hadError = true;
- };
- const ontimeout = () => {
- timeoutId = null;
- timedOut = true;
- const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
- err.code = 'ETIMEOUT';
- onerror(err);
- };
- const callbackError = (err) => {
- if (timedOut)
- return;
- if (timeoutId !== null) {
- clearTimeout(timeoutId);
- timeoutId = null;
- }
- onerror(err);
- };
- const onsocket = (socket) => {
- if (timedOut)
- return;
- if (timeoutId != null) {
- clearTimeout(timeoutId);
- timeoutId = null;
- }
- if (isAgent(socket)) {
- // `socket` is actually an `http.Agent` instance, so
- // relinquish responsibility for this `req` to the Agent
- // from here on
- debug('Callback returned another Agent instance %o', socket.constructor.name);
- socket.addRequest(req, opts);
- return;
- }
- if (socket) {
- socket.once('free', () => {
- this.freeSocket(socket, opts);
- });
- req.onSocket(socket);
- return;
- }
- const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
- onerror(err);
- };
- if (typeof this.callback !== 'function') {
- onerror(new Error('`callback` is not defined'));
- return;
- }
- if (!this.promisifiedCallback) {
- if (this.callback.length >= 3) {
- debug('Converting legacy callback function to promise');
- this.promisifiedCallback = promisify_1.default(this.callback);
- }
- else {
- this.promisifiedCallback = this.callback;
- }
- }
- if (typeof timeoutMs === 'number' && timeoutMs > 0) {
- timeoutId = setTimeout(ontimeout, timeoutMs);
- }
- if ('port' in opts && typeof opts.port !== 'number') {
- opts.port = Number(opts.port);
- }
- try {
- debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`);
- Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
- }
- catch (err) {
- Promise.reject(err).catch(callbackError);
- }
- }
- freeSocket(socket, opts) {
- debug('Freeing socket %o %o', socket.constructor.name, opts);
- socket.destroy();
- }
- destroy() {
- debug('Destroying agent %o', this.constructor.name);
- }
- }
- createAgent.Agent = Agent;
- // So that `instanceof` works correctly
- createAgent.prototype = createAgent.Agent.prototype;
-})(createAgent || (createAgent = {}));
-module.exports = createAgent;
-//# sourceMappingURL=index.js.map
-
-/***/ }),
-
-/***/ 66570:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-function promisify(fn) {
- return function (req, opts) {
- return new Promise((resolve, reject) => {
- fn.call(this, req, opts, (err, rtn) => {
- if (err) {
- reject(err);
- }
- else {
- resolve(rtn);
- }
- });
- });
- };
-}
-exports["default"] = promisify;
-//# sourceMappingURL=promisify.js.map
-
-/***/ }),
-
-/***/ 57888:
+/***/ 7888:
/***/ (function(__unused_webpack_module, exports) {
(function (global, factory) {
@@ -60384,13 +59833,13 @@ exports["default"] = promisify;
/***/ }),
-/***/ 14812:
+/***/ 4812:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
module.exports =
{
parallel : __nccwpck_require__(8210),
- serial : __nccwpck_require__(50445),
+ serial : __nccwpck_require__(445),
serialOrdered : __nccwpck_require__(3578)
};
@@ -60433,10 +59882,10 @@ function clean(key)
/***/ }),
-/***/ 72794:
+/***/ 2794:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var defer = __nccwpck_require__(15295);
+var defer = __nccwpck_require__(5295);
// API
module.exports = async;
@@ -60474,7 +59923,7 @@ function async(callback)
/***/ }),
-/***/ 15295:
+/***/ 5295:
/***/ ((module) => {
module.exports = defer;
@@ -60510,7 +59959,7 @@ function defer(fn)
/***/ 9023:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var async = __nccwpck_require__(72794)
+var async = __nccwpck_require__(2794)
, abort = __nccwpck_require__(1700)
;
@@ -60589,7 +60038,7 @@ function runJob(iterator, key, item, callback)
/***/ }),
-/***/ 42474:
+/***/ 2474:
/***/ ((module) => {
// API
@@ -60633,11 +60082,11 @@ function state(list, sortMethod)
/***/ }),
-/***/ 37942:
+/***/ 7942:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var abort = __nccwpck_require__(1700)
- , async = __nccwpck_require__(72794)
+ , async = __nccwpck_require__(2794)
;
// API
@@ -60673,8 +60122,8 @@ function terminator(callback)
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var iterate = __nccwpck_require__(9023)
- , initState = __nccwpck_require__(42474)
- , terminator = __nccwpck_require__(37942)
+ , initState = __nccwpck_require__(2474)
+ , terminator = __nccwpck_require__(7942)
;
// Public API
@@ -60719,7 +60168,7 @@ function parallel(list, iterator, callback)
/***/ }),
-/***/ 50445:
+/***/ 445:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var serialOrdered = __nccwpck_require__(3578);
@@ -60747,8 +60196,8 @@ function serial(list, iterator, callback)
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
var iterate = __nccwpck_require__(9023)
- , initState = __nccwpck_require__(42474)
- , terminator = __nccwpck_require__(37942)
+ , initState = __nccwpck_require__(2474)
+ , terminator = __nccwpck_require__(7942)
;
// Public API
@@ -60895,7 +60344,7 @@ function range(a, b, str) {
/***/ }),
-/***/ 26463:
+/***/ 2244:
/***/ ((__unused_webpack_module, exports) => {
"use strict";
@@ -61053,10 +60502,10 @@ function fromByteArray (uint8) {
/***/ }),
-/***/ 33717:
+/***/ 3717:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var concatMap = __nccwpck_require__(86891);
+var concatMap = __nccwpck_require__(6891);
var balanced = __nccwpck_require__(9417);
module.exports = expandTop;
@@ -61261,12 +60710,12 @@ function expand(str, isTop) {
/***/ }),
-/***/ 85443:
+/***/ 5443:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var util = __nccwpck_require__(73837);
-var Stream = (__nccwpck_require__(12781).Stream);
-var DelayedStream = __nccwpck_require__(18611);
+var util = __nccwpck_require__(3837);
+var Stream = (__nccwpck_require__(2781).Stream);
+var DelayedStream = __nccwpck_require__(8611);
module.exports = CombinedStream;
function CombinedStream() {
@@ -61476,7 +60925,7 @@ CombinedStream.prototype._emitError = function(err) {
/***/ }),
-/***/ 86891:
+/***/ 6891:
/***/ ((module) => {
module.exports = function (xs, fn) {
@@ -61496,155280 +60945,17777 @@ var isArray = Array.isArray || function (xs) {
/***/ }),
-/***/ 15674:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ 8611:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-"use strict";
-/*********************************************************************
- * This is a fork from the CSS Style Declaration part of
- * https://github.com/NV/CSSOM
- ********************************************************************/
+var Stream = (__nccwpck_require__(2781).Stream);
+var util = __nccwpck_require__(3837);
-var CSSOM = __nccwpck_require__(98508);
-var allProperties = __nccwpck_require__(36685);
-var allExtraProperties = __nccwpck_require__(92461);
-var implementedProperties = __nccwpck_require__(93398);
-var { dashedToCamelCase } = __nccwpck_require__(37032);
-var getBasicPropertyDescriptor = __nccwpck_require__(95721);
+module.exports = DelayedStream;
+function DelayedStream() {
+ this.source = null;
+ this.dataSize = 0;
+ this.maxDataSize = 1024 * 1024;
+ this.pauseStream = true;
-/**
- * @constructor
- * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration
- */
-var CSSStyleDeclaration = function CSSStyleDeclaration(onChangeCallback) {
- this._values = {};
- this._importants = {};
- this._length = 0;
- this._onChange =
- onChangeCallback ||
- function () {
- return;
- };
-};
-CSSStyleDeclaration.prototype = {
- constructor: CSSStyleDeclaration,
+ this._maxDataSizeExceeded = false;
+ this._released = false;
+ this._bufferedEvents = [];
+}
+util.inherits(DelayedStream, Stream);
- /**
- *
- * @param {string} name
- * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-getPropertyValue
- * @return {string} the value of the property if it has been explicitly set for this declaration block.
- * Returns the empty string if the property has not been set.
- */
- getPropertyValue: function (name) {
- if (!this._values.hasOwnProperty(name)) {
- return '';
- }
- return this._values[name].toString();
- },
+DelayedStream.create = function(source, options) {
+ var delayedStream = new this();
- /**
- *
- * @param {string} name
- * @param {string} value
- * @param {string} [priority=null] "important" or null
- * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-setProperty
- */
- setProperty: function (name, value, priority) {
- if (value === undefined) {
- return;
- }
- if (value === null || value === '') {
- this.removeProperty(name);
- return;
- }
- var isCustomProperty = name.indexOf('--') === 0;
- if (isCustomProperty) {
- this._setProperty(name, value, priority);
- return;
- }
- var lowercaseName = name.toLowerCase();
- if (!allProperties.has(lowercaseName) && !allExtraProperties.has(lowercaseName)) {
- return;
- }
+ options = options || {};
+ for (var option in options) {
+ delayedStream[option] = options[option];
+ }
- this[lowercaseName] = value;
- this._importants[lowercaseName] = priority;
- },
- _setProperty: function (name, value, priority) {
- if (value === undefined) {
- return;
- }
- if (value === null || value === '') {
- this.removeProperty(name);
- return;
- }
- if (this._values[name]) {
- // Property already exist. Overwrite it.
- var index = Array.prototype.indexOf.call(this, name);
- if (index < 0) {
- this[this._length] = name;
- this._length++;
- }
- } else {
- // New property.
- this[this._length] = name;
- this._length++;
- }
- this._values[name] = value;
- this._importants[name] = priority;
- this._onChange(this.cssText);
- },
+ delayedStream.source = source;
- /**
- *
- * @param {string} name
- * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-removeProperty
- * @return {string} the value of the property if it has been explicitly set for this declaration block.
- * Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.
- */
- removeProperty: function (name) {
- if (!this._values.hasOwnProperty(name)) {
- return '';
- }
+ var realEmit = source.emit;
+ source.emit = function() {
+ delayedStream._handleEmit(arguments);
+ return realEmit.apply(source, arguments);
+ };
- var prevValue = this._values[name];
- delete this._values[name];
- delete this._importants[name];
+ source.on('error', function() {});
+ if (delayedStream.pauseStream) {
+ source.pause();
+ }
- var index = Array.prototype.indexOf.call(this, name);
- if (index < 0) {
- return prevValue;
- }
+ return delayedStream;
+};
- // That's what WebKit and Opera do
- Array.prototype.splice.call(this, index, 1);
+Object.defineProperty(DelayedStream.prototype, 'readable', {
+ configurable: true,
+ enumerable: true,
+ get: function() {
+ return this.source.readable;
+ }
+});
- // That's what Firefox does
- //this[index] = ""
+DelayedStream.prototype.setEncoding = function() {
+ return this.source.setEncoding.apply(this.source, arguments);
+};
- this._onChange(this.cssText);
- return prevValue;
- },
+DelayedStream.prototype.resume = function() {
+ if (!this._released) {
+ this.release();
+ }
- /**
- *
- * @param {String} name
- */
- getPropertyPriority: function (name) {
- return this._importants[name] || '';
- },
+ this.source.resume();
+};
- getPropertyCSSValue: function () {
- //FIXME
- return;
- },
+DelayedStream.prototype.pause = function() {
+ this.source.pause();
+};
- /**
- * element.style.overflow = "auto"
- * element.style.getPropertyShorthand("overflow-x")
- * -> "overflow"
- */
- getPropertyShorthand: function () {
- //FIXME
- return;
- },
+DelayedStream.prototype.release = function() {
+ this._released = true;
- isPropertyImplicit: function () {
- //FIXME
- return;
- },
+ this._bufferedEvents.forEach(function(args) {
+ this.emit.apply(this, args);
+ }.bind(this));
+ this._bufferedEvents = [];
+};
- /**
- * http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-item
- */
- item: function (index) {
- index = parseInt(index, 10);
- if (index < 0 || index >= this._length) {
- return '';
- }
- return this[index];
- },
+DelayedStream.prototype.pipe = function() {
+ var r = Stream.prototype.pipe.apply(this, arguments);
+ this.resume();
+ return r;
};
-Object.defineProperties(CSSStyleDeclaration.prototype, {
- cssText: {
- get: function () {
- var properties = [];
- var i;
- var name;
- var value;
- var priority;
- for (i = 0; i < this._length; i++) {
- name = this[i];
- value = this.getPropertyValue(name);
- priority = this.getPropertyPriority(name);
- if (priority !== '') {
- priority = ' !' + priority;
- }
- properties.push([name, ': ', value, priority, ';'].join(''));
- }
- return properties.join(' ');
- },
- set: function (value) {
- var i;
- this._values = {};
- Array.prototype.splice.call(this, 0, this._length);
- this._importants = {};
- var dummyRule;
- try {
- dummyRule = CSSOM.parse('#bogus{' + value + '}').cssRules[0].style;
- } catch (err) {
- // malformed css, just return
- return;
- }
- var rule_length = dummyRule.length;
- var name;
- for (i = 0; i < rule_length; ++i) {
- name = dummyRule[i];
- this.setProperty(
- dummyRule[i],
- dummyRule.getPropertyValue(name),
- dummyRule.getPropertyPriority(name)
- );
- }
- this._onChange(this.cssText);
- },
- enumerable: true,
- configurable: true,
- },
- parentRule: {
- get: function () {
- return null;
- },
- enumerable: true,
- configurable: true,
- },
- length: {
- get: function () {
- return this._length;
- },
- /**
- * This deletes indices if the new length is less then the current
- * length. If the new length is more, it does nothing, the new indices
- * will be undefined until set.
- **/
- set: function (value) {
- var i;
- for (i = value; i < this._length; i++) {
- delete this[i];
- }
- this._length = value;
- },
- enumerable: true,
- configurable: true,
- },
-});
+DelayedStream.prototype._handleEmit = function(args) {
+ if (this._released) {
+ this.emit.apply(this, args);
+ return;
+ }
+
+ if (args[0] === 'data') {
+ this.dataSize += args[1].length;
+ this._checkIfMaxDataSizeExceeded();
+ }
-__nccwpck_require__(13480)(CSSStyleDeclaration.prototype);
+ this._bufferedEvents.push(args);
+};
-allProperties.forEach(function (property) {
- if (!implementedProperties.has(property)) {
- var declaration = getBasicPropertyDescriptor(property);
- Object.defineProperty(CSSStyleDeclaration.prototype, property, declaration);
- Object.defineProperty(CSSStyleDeclaration.prototype, dashedToCamelCase(property), declaration);
+DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
+ if (this._maxDataSizeExceeded) {
+ return;
}
-});
-allExtraProperties.forEach(function (property) {
- if (!implementedProperties.has(property)) {
- var declaration = getBasicPropertyDescriptor(property);
- Object.defineProperty(CSSStyleDeclaration.prototype, property, declaration);
- Object.defineProperty(CSSStyleDeclaration.prototype, dashedToCamelCase(property), declaration);
+ if (this.dataSize <= this.maxDataSize) {
+ return;
}
-});
-exports.CSSStyleDeclaration = CSSStyleDeclaration;
+ this._maxDataSizeExceeded = true;
+ var message =
+ 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'
+ this.emit('error', new Error(message));
+};
/***/ }),
-/***/ 92461:
+/***/ 4334:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-"use strict";
+var CombinedStream = __nccwpck_require__(5443);
+var util = __nccwpck_require__(3837);
+var path = __nccwpck_require__(1017);
+var http = __nccwpck_require__(3685);
+var https = __nccwpck_require__(5687);
+var parseUrl = (__nccwpck_require__(7310).parse);
+var fs = __nccwpck_require__(7147);
+var Stream = (__nccwpck_require__(2781).Stream);
+var mime = __nccwpck_require__(3583);
+var asynckit = __nccwpck_require__(4812);
+var populate = __nccwpck_require__(7142);
+
+// Public API
+module.exports = FormData;
+// make it a Stream
+util.inherits(FormData, CombinedStream);
/**
- * This file contains all implemented properties that are not a part of any
- * current specifications or drafts, but are handled by browsers nevertheless.
- */
-
-var allWebkitProperties = __nccwpck_require__(39483);
-
-module.exports = new Set(
- [
- 'background-position-x',
- 'background-position-y',
- 'background-repeat-x',
- 'background-repeat-y',
- 'color-interpolation',
- 'color-profile',
- 'color-rendering',
- 'css-float',
- 'enable-background',
- 'fill',
- 'fill-opacity',
- 'fill-rule',
- 'glyph-orientation-horizontal',
- 'image-rendering',
- 'kerning',
- 'marker',
- 'marker-end',
- 'marker-mid',
- 'marker-offset',
- 'marker-start',
- 'marks',
- 'pointer-events',
- 'shape-rendering',
- 'size',
- 'src',
- 'stop-color',
- 'stop-opacity',
- 'stroke',
- 'stroke-dasharray',
- 'stroke-dashoffset',
- 'stroke-linecap',
- 'stroke-linejoin',
- 'stroke-miterlimit',
- 'stroke-opacity',
- 'stroke-width',
- 'text-anchor',
- 'text-line-through',
- 'text-line-through-color',
- 'text-line-through-mode',
- 'text-line-through-style',
- 'text-line-through-width',
- 'text-overline',
- 'text-overline-color',
- 'text-overline-mode',
- 'text-overline-style',
- 'text-overline-width',
- 'text-rendering',
- 'text-underline',
- 'text-underline-color',
- 'text-underline-mode',
- 'text-underline-style',
- 'text-underline-width',
- 'unicode-range',
- 'vector-effect',
- ].concat(allWebkitProperties)
-);
+ * Create readable "multipart/form-data" streams.
+ * Can be used to submit forms
+ * and file uploads to other web applications.
+ *
+ * @constructor
+ * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
+ */
+function FormData(options) {
+ if (!(this instanceof FormData)) {
+ return new FormData(options);
+ }
+ this._overheadLength = 0;
+ this._valueLength = 0;
+ this._valuesToMeasure = [];
-/***/ }),
+ CombinedStream.call(this);
-/***/ 36685:
-/***/ ((module) => {
+ options = options || {};
+ for (var option in options) {
+ this[option] = options[option];
+ }
+}
-"use strict";
+FormData.LINE_BREAK = '\r\n';
+FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
+FormData.prototype.append = function(field, value, options) {
-// autogenerated - 1/22/2023
+ options = options || {};
-/*
- *
- * https://www.w3.org/Style/CSS/all-properties.en.html
- */
-
-module.exports = new Set([
- '-webkit-line-clamp',
- 'accent-color',
- 'align-content',
- 'align-items',
- 'align-self',
- 'alignment-baseline',
- 'all',
- 'animation',
- 'animation-delay',
- 'animation-delay-end',
- 'animation-delay-start',
- 'animation-direction',
- 'animation-duration',
- 'animation-fill-mode',
- 'animation-iteration-count',
- 'animation-name',
- 'animation-play-state',
- 'animation-range',
- 'animation-timing-function',
- 'appearance',
- 'aspect-ratio',
- 'azimuth',
- 'backface-visibility',
- 'background',
- 'background-attachment',
- 'background-blend-mode',
- 'background-clip',
- 'background-color',
- 'background-image',
- 'background-origin',
- 'background-position',
- 'background-repeat',
- 'background-size',
- 'baseline-shift',
- 'baseline-source',
- 'block-ellipsis',
- 'block-size',
- 'bookmark-label',
- 'bookmark-level',
- 'bookmark-state',
- 'border',
- 'border-block',
- 'border-block-color',
- 'border-block-end',
- 'border-block-end-color',
- 'border-block-end-style',
- 'border-block-end-width',
- 'border-block-start',
- 'border-block-start-color',
- 'border-block-start-style',
- 'border-block-start-width',
- 'border-block-style',
- 'border-block-width',
- 'border-bottom',
- 'border-bottom-color',
- 'border-bottom-left-radius',
- 'border-bottom-right-radius',
- 'border-bottom-style',
- 'border-bottom-width',
- 'border-boundary',
- 'border-collapse',
- 'border-color',
- 'border-end-end-radius',
- 'border-end-start-radius',
- 'border-image',
- 'border-image-outset',
- 'border-image-repeat',
- 'border-image-slice',
- 'border-image-source',
- 'border-image-width',
- 'border-inline',
- 'border-inline-color',
- 'border-inline-end',
- 'border-inline-end-color',
- 'border-inline-end-style',
- 'border-inline-end-width',
- 'border-inline-start',
- 'border-inline-start-color',
- 'border-inline-start-style',
- 'border-inline-start-width',
- 'border-inline-style',
- 'border-inline-width',
- 'border-left',
- 'border-left-color',
- 'border-left-style',
- 'border-left-width',
- 'border-radius',
- 'border-right',
- 'border-right-color',
- 'border-right-style',
- 'border-right-width',
- 'border-spacing',
- 'border-start-end-radius',
- 'border-start-start-radius',
- 'border-style',
- 'border-top',
- 'border-top-color',
- 'border-top-left-radius',
- 'border-top-right-radius',
- 'border-top-style',
- 'border-top-width',
- 'border-width',
- 'bottom',
- 'box-decoration-break',
- 'box-shadow',
- 'box-sizing',
- 'box-snap',
- 'break-after',
- 'break-before',
- 'break-inside',
- 'caption-side',
- 'caret',
- 'caret-color',
- 'caret-shape',
- 'chains',
- 'clear',
- 'clip',
- 'clip-path',
- 'clip-rule',
- 'color',
- 'color-adjust',
- 'color-interpolation-filters',
- 'color-scheme',
- 'column-count',
- 'column-fill',
- 'column-gap',
- 'column-rule',
- 'column-rule-color',
- 'column-rule-style',
- 'column-rule-width',
- 'column-span',
- 'column-width',
- 'columns',
- 'contain',
- 'contain-intrinsic-block-size',
- 'contain-intrinsic-height',
- 'contain-intrinsic-inline-size',
- 'contain-intrinsic-size',
- 'contain-intrinsic-width',
- 'container',
- 'container-name',
- 'container-type',
- 'content',
- 'content-visibility',
- 'continue',
- 'counter-increment',
- 'counter-reset',
- 'counter-set',
- 'cue',
- 'cue-after',
- 'cue-before',
- 'cursor',
- 'direction',
- 'display',
- 'dominant-baseline',
- 'elevation',
- 'empty-cells',
- 'filter',
- 'flex',
- 'flex-basis',
- 'flex-direction',
- 'flex-flow',
- 'flex-grow',
- 'flex-shrink',
- 'flex-wrap',
- 'float',
- 'flood-color',
- 'flood-opacity',
- 'flow',
- 'flow-from',
- 'flow-into',
- 'font',
- 'font-family',
- 'font-feature-settings',
- 'font-kerning',
- 'font-language-override',
- 'font-optical-sizing',
- 'font-palette',
- 'font-size',
- 'font-size-adjust',
- 'font-stretch',
- 'font-style',
- 'font-synthesis',
- 'font-synthesis-small-caps',
- 'font-synthesis-style',
- 'font-synthesis-weight',
- 'font-variant',
- 'font-variant-alternates',
- 'font-variant-caps',
- 'font-variant-east-asian',
- 'font-variant-emoji',
- 'font-variant-ligatures',
- 'font-variant-numeric',
- 'font-variant-position',
- 'font-variation-settings',
- 'font-weight',
- 'footnote-display',
- 'footnote-policy',
- 'forced-color-adjust',
- 'gap',
- 'glyph-orientation-vertical',
- 'grid',
- 'grid-area',
- 'grid-auto-columns',
- 'grid-auto-flow',
- 'grid-auto-rows',
- 'grid-column',
- 'grid-column-end',
- 'grid-column-start',
- 'grid-row',
- 'grid-row-end',
- 'grid-row-start',
- 'grid-template',
- 'grid-template-areas',
- 'grid-template-columns',
- 'grid-template-rows',
- 'hanging-punctuation',
- 'height',
- 'hyphenate-character',
- 'hyphenate-limit-chars',
- 'hyphenate-limit-last',
- 'hyphenate-limit-lines',
- 'hyphenate-limit-zone',
- 'hyphens',
- 'image-orientation',
- 'image-rendering',
- 'image-resolution',
- 'initial-letter',
- 'initial-letter-align',
- 'initial-letter-wrap',
- 'inline-size',
- 'inline-sizing',
- 'inset',
- 'inset-block',
- 'inset-block-end',
- 'inset-block-start',
- 'inset-inline',
- 'inset-inline-end',
- 'inset-inline-start',
- 'isolation',
- 'justify-content',
- 'justify-items',
- 'justify-self',
- 'leading-trim',
- 'left',
- 'letter-spacing',
- 'lighting-color',
- 'line-break',
- 'line-clamp',
- 'line-grid',
- 'line-height',
- 'line-padding',
- 'line-snap',
- 'list-style',
- 'list-style-image',
- 'list-style-position',
- 'list-style-type',
- 'margin',
- 'margin-block',
- 'margin-block-end',
- 'margin-block-start',
- 'margin-bottom',
- 'margin-inline',
- 'margin-inline-end',
- 'margin-inline-start',
- 'margin-left',
- 'margin-right',
- 'margin-top',
- 'margin-trim',
- 'marker-side',
- 'mask',
- 'mask-border',
- 'mask-border-mode',
- 'mask-border-outset',
- 'mask-border-repeat',
- 'mask-border-slice',
- 'mask-border-source',
- 'mask-border-width',
- 'mask-clip',
- 'mask-composite',
- 'mask-image',
- 'mask-mode',
- 'mask-origin',
- 'mask-position',
- 'mask-repeat',
- 'mask-size',
- 'mask-type',
- 'max-block-size',
- 'max-height',
- 'max-inline-size',
- 'max-lines',
- 'max-width',
- 'min-block-size',
- 'min-height',
- 'min-inline-size',
- 'min-intrinsic-sizing',
- 'min-width',
- 'mix-blend-mode',
- 'nav-down',
- 'nav-left',
- 'nav-right',
- 'nav-up',
- 'object-fit',
- 'object-position',
- 'offset',
- 'offset-anchor',
- 'offset-distance',
- 'offset-path',
- 'offset-position',
- 'offset-rotate',
- 'opacity',
- 'order',
- 'orphans',
- 'outline',
- 'outline-color',
- 'outline-offset',
- 'outline-style',
- 'outline-width',
- 'overflow',
- 'overflow-anchor',
- 'overflow-block',
- 'overflow-clip-margin',
- 'overflow-clip-margin-block',
- 'overflow-clip-margin-block-end',
- 'overflow-clip-margin-block-start',
- 'overflow-clip-margin-bottom',
- 'overflow-clip-margin-inline',
- 'overflow-clip-margin-inline-end',
- 'overflow-clip-margin-inline-start',
- 'overflow-clip-margin-left',
- 'overflow-clip-margin-right',
- 'overflow-clip-margin-top',
- 'overflow-inline',
- 'overflow-wrap',
- 'overflow-x',
- 'overflow-y',
- 'padding',
- 'padding-block',
- 'padding-block-end',
- 'padding-block-start',
- 'padding-bottom',
- 'padding-inline',
- 'padding-inline-end',
- 'padding-inline-start',
- 'padding-left',
- 'padding-right',
- 'padding-top',
- 'page',
- 'page-break-after',
- 'page-break-before',
- 'page-break-inside',
- 'pause',
- 'pause-after',
- 'pause-before',
- 'perspective',
- 'perspective-origin',
- 'pitch',
- 'pitch-range',
- 'place-content',
- 'place-items',
- 'place-self',
- 'play-during',
- 'position',
- 'print-color-adjust',
- 'quotes',
- 'region-fragment',
- 'resize',
- 'rest',
- 'rest-after',
- 'rest-before',
- 'richness',
- 'right',
- 'rotate',
- 'row-gap',
- 'ruby-align',
- 'ruby-merge',
- 'ruby-overhang',
- 'ruby-position',
- 'running',
- 'scale',
- 'scroll-behavior',
- 'scroll-margin',
- 'scroll-margin-block',
- 'scroll-margin-block-end',
- 'scroll-margin-block-start',
- 'scroll-margin-bottom',
- 'scroll-margin-inline',
- 'scroll-margin-inline-end',
- 'scroll-margin-inline-start',
- 'scroll-margin-left',
- 'scroll-margin-right',
- 'scroll-margin-top',
- 'scroll-padding',
- 'scroll-padding-block',
- 'scroll-padding-block-end',
- 'scroll-padding-block-start',
- 'scroll-padding-bottom',
- 'scroll-padding-inline',
- 'scroll-padding-inline-end',
- 'scroll-padding-inline-start',
- 'scroll-padding-left',
- 'scroll-padding-right',
- 'scroll-padding-top',
- 'scroll-snap-align',
- 'scroll-snap-stop',
- 'scroll-snap-type',
- 'scroll-timeline',
- 'scroll-timeline-axis',
- 'scroll-timeline-name',
- 'scrollbar-color',
- 'scrollbar-gutter',
- 'scrollbar-width',
- 'shape-image-threshold',
- 'shape-inside',
- 'shape-margin',
- 'shape-outside',
- 'spatial-navigation-action',
- 'spatial-navigation-contain',
- 'spatial-navigation-function',
- 'speak',
- 'speak-as',
- 'speak-header',
- 'speak-numeral',
- 'speak-punctuation',
- 'speech-rate',
- 'stress',
- 'string-set',
- 'tab-size',
- 'table-layout',
- 'text-align',
- 'text-align-all',
- 'text-align-last',
- 'text-combine-upright',
- 'text-decoration',
- 'text-decoration-color',
- 'text-decoration-line',
- 'text-decoration-skip',
- 'text-decoration-skip-box',
- 'text-decoration-skip-ink',
- 'text-decoration-skip-inset',
- 'text-decoration-skip-self',
- 'text-decoration-skip-spaces',
- 'text-decoration-style',
- 'text-decoration-thickness',
- 'text-edge',
- 'text-emphasis',
- 'text-emphasis-color',
- 'text-emphasis-position',
- 'text-emphasis-skip',
- 'text-emphasis-style',
- 'text-group-align',
- 'text-indent',
- 'text-justify',
- 'text-orientation',
- 'text-overflow',
- 'text-shadow',
- 'text-space-collapse',
- 'text-space-trim',
- 'text-spacing',
- 'text-transform',
- 'text-underline-offset',
- 'text-underline-position',
- 'text-wrap',
- 'top',
- 'transform',
- 'transform-box',
- 'transform-origin',
- 'transform-style',
- 'transition',
- 'transition-delay',
- 'transition-duration',
- 'transition-property',
- 'transition-timing-function',
- 'translate',
- 'unicode-bidi',
- 'user-select',
- 'vertical-align',
- 'view-timeline',
- 'view-timeline-axis',
- 'view-timeline-inset',
- 'view-timeline-name',
- 'view-transition-name',
- 'visibility',
- 'voice-balance',
- 'voice-duration',
- 'voice-family',
- 'voice-pitch',
- 'voice-range',
- 'voice-rate',
- 'voice-stress',
- 'voice-volume',
- 'volume',
- 'white-space',
- 'widows',
- 'width',
- 'will-change',
- 'word-boundary-detection',
- 'word-boundary-expansion',
- 'word-break',
- 'word-spacing',
- 'word-wrap',
- 'wrap-after',
- 'wrap-before',
- 'wrap-flow',
- 'wrap-inside',
- 'wrap-through',
- 'writing-mode',
- 'z-index',
-]);
+ // allow filename as single option
+ if (typeof options == 'string') {
+ options = {filename: options};
+ }
+ var append = CombinedStream.prototype.append.bind(this);
-/***/ }),
+ // all that streamy business can't handle numbers
+ if (typeof value == 'number') {
+ value = '' + value;
+ }
-/***/ 39483:
-/***/ ((module) => {
+ // https://github.com/felixge/node-form-data/issues/38
+ if (util.isArray(value)) {
+ // Please convert your array into string
+ // the way web server expects it
+ this._error(new Error('Arrays are not supported.'));
+ return;
+ }
-"use strict";
+ var header = this._multiPartHeader(field, value, options);
+ var footer = this._multiPartFooter();
+ append(header);
+ append(value);
+ append(footer);
-/**
- * This file contains all implemented properties that are not a part of any
- * current specifications or drafts, but are handled by browsers nevertheless.
- */
-
-module.exports = [
- 'animation',
- 'animation-delay',
- 'animation-direction',
- 'animation-duration',
- 'animation-fill-mode',
- 'animation-iteration-count',
- 'animation-name',
- 'animation-play-state',
- 'animation-timing-function',
- 'appearance',
- 'aspect-ratio',
- 'backface-visibility',
- 'background-clip',
- 'background-composite',
- 'background-origin',
- 'background-size',
- 'border-after',
- 'border-after-color',
- 'border-after-style',
- 'border-after-width',
- 'border-before',
- 'border-before-color',
- 'border-before-style',
- 'border-before-width',
- 'border-end',
- 'border-end-color',
- 'border-end-style',
- 'border-end-width',
- 'border-fit',
- 'border-horizontal-spacing',
- 'border-image',
- 'border-radius',
- 'border-start',
- 'border-start-color',
- 'border-start-style',
- 'border-start-width',
- 'border-vertical-spacing',
- 'box-align',
- 'box-direction',
- 'box-flex',
- 'box-flex-group',
- 'box-lines',
- 'box-ordinal-group',
- 'box-orient',
- 'box-pack',
- 'box-reflect',
- 'box-shadow',
- 'color-correction',
- 'column-axis',
- 'column-break-after',
- 'column-break-before',
- 'column-break-inside',
- 'column-count',
- 'column-gap',
- 'column-rule',
- 'column-rule-color',
- 'column-rule-style',
- 'column-rule-width',
- 'columns',
- 'column-span',
- 'column-width',
- 'filter',
- 'flex-align',
- 'flex-direction',
- 'flex-flow',
- 'flex-item-align',
- 'flex-line-pack',
- 'flex-order',
- 'flex-pack',
- 'flex-wrap',
- 'flow-from',
- 'flow-into',
- 'font-feature-settings',
- 'font-kerning',
- 'font-size-delta',
- 'font-smoothing',
- 'font-variant-ligatures',
- 'highlight',
- 'hyphenate-character',
- 'hyphenate-limit-after',
- 'hyphenate-limit-before',
- 'hyphenate-limit-lines',
- 'hyphens',
- 'line-align',
- 'line-box-contain',
- 'line-break',
- 'line-clamp',
- 'line-grid',
- 'line-snap',
- 'locale',
- 'logical-height',
- 'logical-width',
- 'margin-after',
- 'margin-after-collapse',
- 'margin-before',
- 'margin-before-collapse',
- 'margin-bottom-collapse',
- 'margin-collapse',
- 'margin-end',
- 'margin-start',
- 'margin-top-collapse',
- 'marquee',
- 'marquee-direction',
- 'marquee-increment',
- 'marquee-repetition',
- 'marquee-speed',
- 'marquee-style',
- 'mask',
- 'mask-attachment',
- 'mask-box-image',
- 'mask-box-image-outset',
- 'mask-box-image-repeat',
- 'mask-box-image-slice',
- 'mask-box-image-source',
- 'mask-box-image-width',
- 'mask-clip',
- 'mask-composite',
- 'mask-image',
- 'mask-origin',
- 'mask-position',
- 'mask-position-x',
- 'mask-position-y',
- 'mask-repeat',
- 'mask-repeat-x',
- 'mask-repeat-y',
- 'mask-size',
- 'match-nearest-mail-blockquote-color',
- 'max-logical-height',
- 'max-logical-width',
- 'min-logical-height',
- 'min-logical-width',
- 'nbsp-mode',
- 'overflow-scrolling',
- 'padding-after',
- 'padding-before',
- 'padding-end',
- 'padding-start',
- 'perspective',
- 'perspective-origin',
- 'perspective-origin-x',
- 'perspective-origin-y',
- 'print-color-adjust',
- 'region-break-after',
- 'region-break-before',
- 'region-break-inside',
- 'region-overflow',
- 'rtl-ordering',
- 'svg-shadow',
- 'tap-highlight-color',
- 'text-combine',
- 'text-decorations-in-effect',
- 'text-emphasis',
- 'text-emphasis-color',
- 'text-emphasis-position',
- 'text-emphasis-style',
- 'text-fill-color',
- 'text-orientation',
- 'text-security',
- 'text-size-adjust',
- 'text-stroke',
- 'text-stroke-color',
- 'text-stroke-width',
- 'transform',
- 'transform-origin',
- 'transform-origin-x',
- 'transform-origin-y',
- 'transform-origin-z',
- 'transform-style',
- 'transition',
- 'transition-delay',
- 'transition-duration',
- 'transition-property',
- 'transition-timing-function',
- 'user-drag',
- 'user-modify',
- 'user-select',
- 'wrap',
- 'wrap-flow',
- 'wrap-margin',
- 'wrap-padding',
- 'wrap-shape-inside',
- 'wrap-shape-outside',
- 'wrap-through',
- 'writing-mode',
- 'zoom',
-].map((prop) => 'webkit-' + prop);
+ // pass along options.knownLength
+ this._trackLength(header, value, options);
+};
+FormData.prototype._trackLength = function(header, value, options) {
+ var valueLength = 0;
-/***/ }),
+ // used w/ getLengthSync(), when length is known.
+ // e.g. for streaming directly from a remote server,
+ // w/ a known file a size, and not wanting to wait for
+ // incoming file to finish to get its size.
+ if (options.knownLength != null) {
+ valueLength += +options.knownLength;
+ } else if (Buffer.isBuffer(value)) {
+ valueLength = value.length;
+ } else if (typeof value === 'string') {
+ valueLength = Buffer.byteLength(value);
+ }
-/***/ 39139:
-/***/ ((module) => {
+ this._valueLength += valueLength;
-"use strict";
+ // @check why add CRLF? does this account for custom/multiple CRLFs?
+ this._overheadLength +=
+ Buffer.byteLength(header) +
+ FormData.LINE_BREAK.length;
+ // empty or either doesn't have path or not an http response or not a stream
+ if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {
+ return;
+ }
-module.exports.POSITION_AT_SHORTHAND = {
- first: 0,
- second: 1,
+ // no need to bother with the length
+ if (!options.knownLength) {
+ this._valuesToMeasure.push(value);
+ }
};
+FormData.prototype._lengthRetriever = function(value, callback) {
-/***/ }),
+ if (value.hasOwnProperty('fd')) {
-/***/ 93398:
-/***/ ((module) => {
+ // take read range into a account
+ // `end` = Infinity –> read file till the end
+ //
+ // TODO: Looks like there is bug in Node fs.createReadStream
+ // it doesn't respect `end` options without `start` options
+ // Fix it when node fixes it.
+ // https://github.com/joyent/node/issues/7819
+ if (value.end != undefined && value.end != Infinity && value.start != undefined) {
-"use strict";
+ // when end specified
+ // no need to calculate range
+ // inclusive, starts with 0
+ callback(null, value.end + 1 - (value.start ? value.start : 0));
+ // not that fast snoopy
+ } else {
+ // still need to fetch file size from fs
+ fs.stat(value.path, function(err, stat) {
-// autogenerated - 2/12/2023
+ var fileSize;
-/*
- *
- * https://www.w3.org/Style/CSS/all-properties.en.html
- */
-
-var implementedProperties = new Set();
-implementedProperties.add("azimuth");
-implementedProperties.add("background");
-implementedProperties.add("background-attachment");
-implementedProperties.add("background-color");
-implementedProperties.add("background-image");
-implementedProperties.add("background-position");
-implementedProperties.add("background-repeat");
-implementedProperties.add("border");
-implementedProperties.add("border-bottom");
-implementedProperties.add("border-bottom-color");
-implementedProperties.add("border-bottom-style");
-implementedProperties.add("border-bottom-width");
-implementedProperties.add("border-collapse");
-implementedProperties.add("border-color");
-implementedProperties.add("border-left");
-implementedProperties.add("border-left-color");
-implementedProperties.add("border-left-style");
-implementedProperties.add("border-left-width");
-implementedProperties.add("border-right");
-implementedProperties.add("border-right-color");
-implementedProperties.add("border-right-style");
-implementedProperties.add("border-right-width");
-implementedProperties.add("border-spacing");
-implementedProperties.add("border-style");
-implementedProperties.add("border-top");
-implementedProperties.add("border-top-color");
-implementedProperties.add("border-top-style");
-implementedProperties.add("border-top-width");
-implementedProperties.add("border-width");
-implementedProperties.add("bottom");
-implementedProperties.add("clear");
-implementedProperties.add("clip");
-implementedProperties.add("color");
-implementedProperties.add("css-float");
-implementedProperties.add("flex");
-implementedProperties.add("flex-basis");
-implementedProperties.add("flex-grow");
-implementedProperties.add("flex-shrink");
-implementedProperties.add("float");
-implementedProperties.add("flood-color");
-implementedProperties.add("font");
-implementedProperties.add("font-family");
-implementedProperties.add("font-size");
-implementedProperties.add("font-style");
-implementedProperties.add("font-variant");
-implementedProperties.add("font-weight");
-implementedProperties.add("height");
-implementedProperties.add("left");
-implementedProperties.add("lighting-color");
-implementedProperties.add("line-height");
-implementedProperties.add("margin");
-implementedProperties.add("margin-bottom");
-implementedProperties.add("margin-left");
-implementedProperties.add("margin-right");
-implementedProperties.add("margin-top");
-implementedProperties.add("opacity");
-implementedProperties.add("outline-color");
-implementedProperties.add("padding");
-implementedProperties.add("padding-bottom");
-implementedProperties.add("padding-left");
-implementedProperties.add("padding-right");
-implementedProperties.add("padding-top");
-implementedProperties.add("right");
-implementedProperties.add("stop-color");
-implementedProperties.add("text-line-through-color");
-implementedProperties.add("text-overline-color");
-implementedProperties.add("text-underline-color");
-implementedProperties.add("top");
-implementedProperties.add("webkit-border-after-color");
-implementedProperties.add("webkit-border-before-color");
-implementedProperties.add("webkit-border-end-color");
-implementedProperties.add("webkit-border-start-color");
-implementedProperties.add("webkit-column-rule-color");
-implementedProperties.add("webkit-match-nearest-mail-blockquote-color");
-implementedProperties.add("webkit-tap-highlight-color");
-implementedProperties.add("webkit-text-emphasis-color");
-implementedProperties.add("webkit-text-fill-color");
-implementedProperties.add("webkit-text-stroke-color");
-implementedProperties.add("width");
-module.exports = implementedProperties;
+ if (err) {
+ callback(err);
+ return;
+ }
+ // update final size based on the range options
+ fileSize = stat.size - (value.start ? value.start : 0);
+ callback(null, fileSize);
+ });
+ }
-/***/ }),
+ // or http response
+ } else if (value.hasOwnProperty('httpVersion')) {
+ callback(null, +value.headers['content-length']);
-/***/ 37032:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ // or request stream http://github.com/mikeal/request
+ } else if (value.hasOwnProperty('httpModule')) {
+ // wait till response come back
+ value.on('response', function(response) {
+ value.pause();
+ callback(null, +response.headers['content-length']);
+ });
+ value.resume();
-"use strict";
-/*********************************************************************
- * These are commonly used parsers for CSS Values they take a string *
- * to parse and return a string after it's been converted, if needed *
- ********************************************************************/
-
-
-const namedColors = __nccwpck_require__(3800);
-const { hslToRgb } = __nccwpck_require__(90515);
-
-exports.TYPES = {
- INTEGER: 1,
- NUMBER: 2,
- LENGTH: 3,
- PERCENT: 4,
- URL: 5,
- COLOR: 6,
- STRING: 7,
- ANGLE: 8,
- KEYWORD: 9,
- NULL_OR_EMPTY_STR: 10,
- CALC: 11,
-};
-
-// rough regular expressions
-var integerRegEx = /^[-+]?[0-9]+$/;
-var numberRegEx = /^[-+]?[0-9]*\.?[0-9]+$/;
-var lengthRegEx = /^(0|[-+]?[0-9]*\.?[0-9]+(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch))$/;
-var percentRegEx = /^[-+]?[0-9]*\.?[0-9]+%$/;
-var urlRegEx = /^url\(\s*([^)]*)\s*\)$/;
-var stringRegEx = /^("[^"]*"|'[^']*')$/;
-var colorRegEx1 = /^#([0-9a-fA-F]{3,4}){1,2}$/;
-var colorRegEx2 = /^rgb\(([^)]*)\)$/;
-var colorRegEx3 = /^rgba\(([^)]*)\)$/;
-var calcRegEx = /^calc\(([^)]*)\)$/;
-var colorRegEx4 =
- /^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)/;
-var angleRegEx = /^([-+]?[0-9]*\.?[0-9]+)(deg|grad|rad)$/;
-
-// This will return one of the above types based on the passed in string
-exports.valueType = function valueType(val) {
- if (val === '' || val === null) {
- return exports.TYPES.NULL_OR_EMPTY_STR;
- }
- if (typeof val === 'number') {
- val = val.toString();
- }
-
- if (typeof val !== 'string') {
- return undefined;
+ // something else
+ } else {
+ callback('Unknown stream');
}
+};
- if (integerRegEx.test(val)) {
- return exports.TYPES.INTEGER;
- }
- if (numberRegEx.test(val)) {
- return exports.TYPES.NUMBER;
- }
- if (lengthRegEx.test(val)) {
- return exports.TYPES.LENGTH;
- }
- if (percentRegEx.test(val)) {
- return exports.TYPES.PERCENT;
- }
- if (urlRegEx.test(val)) {
- return exports.TYPES.URL;
- }
- if (calcRegEx.test(val)) {
- return exports.TYPES.CALC;
- }
- if (stringRegEx.test(val)) {
- return exports.TYPES.STRING;
- }
- if (angleRegEx.test(val)) {
- return exports.TYPES.ANGLE;
+FormData.prototype._multiPartHeader = function(field, value, options) {
+ // custom header specified (as string)?
+ // it becomes responsible for boundary
+ // (e.g. to handle extra CRLFs on .NET servers)
+ if (typeof options.header == 'string') {
+ return options.header;
}
- if (colorRegEx1.test(val)) {
- return exports.TYPES.COLOR;
+
+ var contentDisposition = this._getContentDisposition(value, options);
+ var contentType = this._getContentType(value, options);
+
+ var contents = '';
+ var headers = {
+ // add custom disposition as third element or keep it two elements if not
+ 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
+ // if no content type. allow it to be empty array
+ 'Content-Type': [].concat(contentType || [])
+ };
+
+ // allow custom headers.
+ if (typeof options.header == 'object') {
+ populate(headers, options.header);
}
- var res = colorRegEx2.exec(val);
- var parts;
- if (res !== null) {
- parts = res[1].split(/\s*,\s*/);
- if (parts.length !== 3) {
- return undefined;
- }
- if (
- parts.every(percentRegEx.test.bind(percentRegEx)) ||
- parts.every(integerRegEx.test.bind(integerRegEx))
- ) {
- return exports.TYPES.COLOR;
+ var header;
+ for (var prop in headers) {
+ if (!headers.hasOwnProperty(prop)) continue;
+ header = headers[prop];
+
+ // skip nullish headers.
+ if (header == null) {
+ continue;
}
- return undefined;
- }
- res = colorRegEx3.exec(val);
- if (res !== null) {
- parts = res[1].split(/\s*,\s*/);
- if (parts.length !== 4) {
- return undefined;
+
+ // convert all headers to arrays.
+ if (!Array.isArray(header)) {
+ header = [header];
}
- if (
- parts.slice(0, 3).every(percentRegEx.test.bind(percentRegEx)) ||
- parts.slice(0, 3).every(integerRegEx.test.bind(integerRegEx))
- ) {
- if (numberRegEx.test(parts[3])) {
- return exports.TYPES.COLOR;
- }
+
+ // add non-empty headers.
+ if (header.length) {
+ contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
}
- return undefined;
}
- if (colorRegEx4.test(val)) {
- return exports.TYPES.COLOR;
- }
-
- // could still be a color, one of the standard keyword colors
- val = val.toLowerCase();
-
- if (namedColors.includes(val)) {
- return exports.TYPES.COLOR;
- }
-
- switch (val) {
- // the following are deprecated in CSS3
- case 'activeborder':
- case 'activecaption':
- case 'appworkspace':
- case 'background':
- case 'buttonface':
- case 'buttonhighlight':
- case 'buttonshadow':
- case 'buttontext':
- case 'captiontext':
- case 'graytext':
- case 'highlight':
- case 'highlighttext':
- case 'inactiveborder':
- case 'inactivecaption':
- case 'inactivecaptiontext':
- case 'infobackground':
- case 'infotext':
- case 'menu':
- case 'menutext':
- case 'scrollbar':
- case 'threeddarkshadow':
- case 'threedface':
- case 'threedhighlight':
- case 'threedlightshadow':
- case 'threedshadow':
- case 'window':
- case 'windowframe':
- case 'windowtext':
- return exports.TYPES.COLOR;
- default:
- return exports.TYPES.KEYWORD;
- }
+ return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
};
-exports.parseInteger = function parseInteger(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.INTEGER) {
- return undefined;
- }
- return String(parseInt(val, 10));
-};
+FormData.prototype._getContentDisposition = function(value, options) {
-exports.parseNumber = function parseNumber(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.NUMBER && type !== exports.TYPES.INTEGER) {
- return undefined;
- }
- return String(parseFloat(val));
-};
+ var filename
+ , contentDisposition
+ ;
-exports.parseLength = function parseLength(val) {
- if (val === 0 || val === '0') {
- return '0px';
- }
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.LENGTH) {
- return undefined;
+ if (typeof options.filepath === 'string') {
+ // custom filepath for relative paths
+ filename = path.normalize(options.filepath).replace(/\\/g, '/');
+ } else if (options.filename || value.name || value.path) {
+ // custom filename take precedence
+ // formidable and the browser add a name property
+ // fs- and request- streams have path property
+ filename = path.basename(options.filename || value.name || value.path);
+ } else if (value.readable && value.hasOwnProperty('httpVersion')) {
+ // or try http response
+ filename = path.basename(value.client._httpMessage.path || '');
}
- return val;
-};
-exports.parsePercent = function parsePercent(val) {
- if (val === 0 || val === '0') {
- return '0%';
- }
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.PERCENT) {
- return undefined;
+ if (filename) {
+ contentDisposition = 'filename="' + filename + '"';
}
- return val;
+
+ return contentDisposition;
};
-// either a length or a percent
-exports.parseMeasurement = function parseMeasurement(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.CALC) {
- return val;
- }
+FormData.prototype._getContentType = function(value, options) {
- var length = exports.parseLength(val);
- if (length !== undefined) {
- return length;
- }
- return exports.parsePercent(val);
-};
+ // use custom content-type above all
+ var contentType = options.contentType;
-exports.parseUrl = function parseUrl(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
+ // or try `name` from formidable, browser
+ if (!contentType && value.name) {
+ contentType = mime.lookup(value.name);
}
- var res = urlRegEx.exec(val);
- // does it match the regex?
- if (!res) {
- return undefined;
+
+ // or try `path` from fs-, request- streams
+ if (!contentType && value.path) {
+ contentType = mime.lookup(value.path);
}
- var str = res[1];
- // if it starts with single or double quotes, does it end with the same?
- if ((str[0] === '"' || str[0] === "'") && str[0] !== str[str.length - 1]) {
- return undefined;
+
+ // or if it's http-reponse
+ if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
+ contentType = value.headers['content-type'];
}
- if (str[0] === '"' || str[0] === "'") {
- str = str.substr(1, str.length - 2);
+
+ // or guess it from the filepath or filename
+ if (!contentType && (options.filepath || options.filename)) {
+ contentType = mime.lookup(options.filepath || options.filename);
}
- var i;
- for (i = 0; i < str.length; i++) {
- switch (str[i]) {
- case '(':
- case ')':
- case ' ':
- case '\t':
- case '\n':
- case "'":
- case '"':
- return undefined;
- case '\\':
- i++;
- break;
- }
+ // fallback to the default content type if `value` is not simple value
+ if (!contentType && typeof value == 'object') {
+ contentType = FormData.DEFAULT_CONTENT_TYPE;
}
- return 'url(' + str + ')';
+ return contentType;
};
-exports.parseString = function parseString(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.STRING) {
- return undefined;
- }
- var i;
- for (i = 1; i < val.length - 1; i++) {
- switch (val[i]) {
- case val[0]:
- return undefined;
- case '\\':
- i++;
- while (i < val.length - 1 && /[0-9A-Fa-f]/.test(val[i])) {
- i++;
- }
- break;
- }
- }
- if (i >= val.length) {
- return undefined;
- }
- return val;
-};
-
-exports.parseColor = function parseColor(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- var red,
- green,
- blue,
- hue,
- saturation,
- lightness,
- alpha = 1;
- var parts;
- var res = colorRegEx1.exec(val);
- // is it #aaa, #ababab, #aaaa, #abababaa
- if (res) {
- var defaultHex = val.substr(1);
- var hex = val.substr(1);
- if (hex.length === 3 || hex.length === 4) {
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
-
- if (defaultHex.length === 4) {
- hex = hex + defaultHex[3] + defaultHex[3];
- }
- }
- red = parseInt(hex.substr(0, 2), 16);
- green = parseInt(hex.substr(2, 2), 16);
- blue = parseInt(hex.substr(4, 2), 16);
- if (hex.length === 8) {
- var hexAlpha = hex.substr(6, 2);
- var hexAlphaToRgbaAlpha = Number((parseInt(hexAlpha, 16) / 255).toFixed(3));
-
- return 'rgba(' + red + ', ' + green + ', ' + blue + ', ' + hexAlphaToRgbaAlpha + ')';
- }
- return 'rgb(' + red + ', ' + green + ', ' + blue + ')';
- }
-
- res = colorRegEx2.exec(val);
- if (res) {
- parts = res[1].split(/\s*,\s*/);
- if (parts.length !== 3) {
- return undefined;
- }
- if (parts.every(percentRegEx.test.bind(percentRegEx))) {
- red = Math.floor((parseFloat(parts[0].slice(0, -1)) * 255) / 100);
- green = Math.floor((parseFloat(parts[1].slice(0, -1)) * 255) / 100);
- blue = Math.floor((parseFloat(parts[2].slice(0, -1)) * 255) / 100);
- } else if (parts.every(integerRegEx.test.bind(integerRegEx))) {
- red = parseInt(parts[0], 10);
- green = parseInt(parts[1], 10);
- blue = parseInt(parts[2], 10);
- } else {
- return undefined;
- }
- red = Math.min(255, Math.max(0, red));
- green = Math.min(255, Math.max(0, green));
- blue = Math.min(255, Math.max(0, blue));
- return 'rgb(' + red + ', ' + green + ', ' + blue + ')';
- }
-
- res = colorRegEx3.exec(val);
- if (res) {
- parts = res[1].split(/\s*,\s*/);
- if (parts.length !== 4) {
- return undefined;
- }
- if (parts.slice(0, 3).every(percentRegEx.test.bind(percentRegEx))) {
- red = Math.floor((parseFloat(parts[0].slice(0, -1)) * 255) / 100);
- green = Math.floor((parseFloat(parts[1].slice(0, -1)) * 255) / 100);
- blue = Math.floor((parseFloat(parts[2].slice(0, -1)) * 255) / 100);
- alpha = parseFloat(parts[3]);
- } else if (parts.slice(0, 3).every(integerRegEx.test.bind(integerRegEx))) {
- red = parseInt(parts[0], 10);
- green = parseInt(parts[1], 10);
- blue = parseInt(parts[2], 10);
- alpha = parseFloat(parts[3]);
- } else {
- return undefined;
- }
- if (isNaN(alpha)) {
- alpha = 1;
- }
- red = Math.min(255, Math.max(0, red));
- green = Math.min(255, Math.max(0, green));
- blue = Math.min(255, Math.max(0, blue));
- alpha = Math.min(1, Math.max(0, alpha));
- if (alpha === 1) {
- return 'rgb(' + red + ', ' + green + ', ' + blue + ')';
- }
- return 'rgba(' + red + ', ' + green + ', ' + blue + ', ' + alpha + ')';
- }
+FormData.prototype._multiPartFooter = function() {
+ return function(next) {
+ var footer = FormData.LINE_BREAK;
- res = colorRegEx4.exec(val);
- if (res) {
- const [, _hue, _saturation, _lightness, _alphaString = ''] = res;
- const _alpha = parseFloat(_alphaString.replace(',', '').trim());
- if (!_hue || !_saturation || !_lightness) {
- return undefined;
- }
- hue = parseFloat(_hue);
- saturation = parseInt(_saturation, 10);
- lightness = parseInt(_lightness, 10);
- if (_alpha && numberRegEx.test(_alpha)) {
- alpha = parseFloat(_alpha);
+ var lastPart = (this._streams.length === 0);
+ if (lastPart) {
+ footer += this._lastBoundary();
}
- const [r, g, b] = hslToRgb(hue, saturation / 100, lightness / 100);
- if (!_alphaString || alpha === 1) {
- return 'rgb(' + r + ', ' + g + ', ' + b + ')';
- }
- return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')';
- }
+ next(footer);
+ }.bind(this);
+};
- if (type === exports.TYPES.COLOR) {
- return val;
- }
- return undefined;
+FormData.prototype._lastBoundary = function() {
+ return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
};
-exports.parseAngle = function parseAngle(val) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.ANGLE) {
- return undefined;
- }
- var res = angleRegEx.exec(val);
- var flt = parseFloat(res[1]);
- if (res[2] === 'rad') {
- flt *= 180 / Math.PI;
- } else if (res[2] === 'grad') {
- flt *= 360 / 400;
- }
+FormData.prototype.getHeaders = function(userHeaders) {
+ var header;
+ var formHeaders = {
+ 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
+ };
- while (flt < 0) {
- flt += 360;
- }
- while (flt > 360) {
- flt -= 360;
+ for (header in userHeaders) {
+ if (userHeaders.hasOwnProperty(header)) {
+ formHeaders[header.toLowerCase()] = userHeaders[header];
+ }
}
- return flt + 'deg';
+
+ return formHeaders;
};
-exports.parseKeyword = function parseKeyword(val, valid_keywords) {
- var type = exports.valueType(val);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- return val;
- }
- if (type !== exports.TYPES.KEYWORD) {
- return undefined;
- }
- val = val.toString().toLowerCase();
- var i;
- for (i = 0; i < valid_keywords.length; i++) {
- if (valid_keywords[i].toLowerCase() === val) {
- return valid_keywords[i];
- }
- }
- return undefined;
+FormData.prototype.setBoundary = function(boundary) {
+ this._boundary = boundary;
};
-// utility to translate from border-width to borderWidth
-var dashedToCamelCase = function (dashed) {
- var i;
- var camel = '';
- var nextCap = false;
- for (i = 0; i < dashed.length; i++) {
- if (dashed[i] !== '-') {
- camel += nextCap ? dashed[i].toUpperCase() : dashed[i];
- nextCap = false;
- } else {
- nextCap = true;
- }
+FormData.prototype.getBoundary = function() {
+ if (!this._boundary) {
+ this._generateBoundary();
}
- return camel;
+
+ return this._boundary;
};
-exports.dashedToCamelCase = dashedToCamelCase;
-var is_space = /\s/;
-var opening_deliminators = ['"', "'", '('];
-var closing_deliminators = ['"', "'", ')'];
-// this splits on whitespace, but keeps quoted and parened parts together
-var getParts = function (str) {
- var deliminator_stack = [];
- var length = str.length;
- var i;
- var parts = [];
- var current_part = '';
- var opening_index;
- var closing_index;
- for (i = 0; i < length; i++) {
- opening_index = opening_deliminators.indexOf(str[i]);
- closing_index = closing_deliminators.indexOf(str[i]);
- if (is_space.test(str[i])) {
- if (deliminator_stack.length === 0) {
- if (current_part !== '') {
- parts.push(current_part);
- }
- current_part = '';
- } else {
- current_part += str[i];
- }
- } else {
- if (str[i] === '\\') {
- i++;
- current_part += str[i];
- } else {
- current_part += str[i];
- if (
- closing_index !== -1 &&
- closing_index === deliminator_stack[deliminator_stack.length - 1]
- ) {
- deliminator_stack.pop();
- } else if (opening_index !== -1) {
- deliminator_stack.push(opening_index);
- }
+FormData.prototype.getBuffer = function() {
+ var dataBuffer = new Buffer.alloc( 0 );
+ var boundary = this.getBoundary();
+
+ // Create the form content. Add Line breaks to the end of data.
+ for (var i = 0, len = this._streams.length; i < len; i++) {
+ if (typeof this._streams[i] !== 'function') {
+
+ // Add content to the buffer.
+ if(Buffer.isBuffer(this._streams[i])) {
+ dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);
+ }else {
+ dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);
+ }
+
+ // Add break after content.
+ if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {
+ dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );
}
}
}
- if (current_part !== '') {
- parts.push(current_part);
- }
- return parts;
+
+ // Add the footer and return the Buffer object.
+ return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );
};
-/*
- * this either returns undefined meaning that it isn't valid
- * or returns an object where the keys are dashed short
- * hand properties and the values are the values to set
- * on them
- */
-exports.shorthandParser = function parse(v, shorthand_for) {
- var obj = {};
- var type = exports.valueType(v);
- if (type === exports.TYPES.NULL_OR_EMPTY_STR) {
- Object.keys(shorthand_for).forEach(function (property) {
- obj[property] = '';
- });
- return obj;
+FormData.prototype._generateBoundary = function() {
+ // This generates a 50 character boundary similar to those used by Firefox.
+ // They are optimized for boyer-moore parsing.
+ var boundary = '--------------------------';
+ for (var i = 0; i < 24; i++) {
+ boundary += Math.floor(Math.random() * 10).toString(16);
}
- if (typeof v === 'number') {
- v = v.toString();
- }
+ this._boundary = boundary;
+};
- if (typeof v !== 'string') {
- return undefined;
- }
+// Note: getLengthSync DOESN'T calculate streams length
+// As workaround one can calculate file size manually
+// and add it as knownLength option
+FormData.prototype.getLengthSync = function() {
+ var knownLength = this._overheadLength + this._valueLength;
- if (v.toLowerCase() === 'inherit') {
- return {};
+ // Don't get confused, there are 3 "internal" streams for each keyval pair
+ // so it basically checks if there is any value added to the form
+ if (this._streams.length) {
+ knownLength += this._lastBoundary().length;
}
- var parts = getParts(v);
- var valid = true;
- parts.forEach(function (part, i) {
- var part_valid = false;
- Object.keys(shorthand_for).forEach(function (property) {
- if (shorthand_for[property].isValid(part, i)) {
- part_valid = true;
- obj[property] = part;
- }
- });
- valid = valid && part_valid;
- });
- if (!valid) {
- return undefined;
+
+ // https://github.com/form-data/form-data/issues/40
+ if (!this.hasKnownLength()) {
+ // Some async length retrievers are present
+ // therefore synchronous length calculation is false.
+ // Please use getLength(callback) to get proper length
+ this._error(new Error('Cannot calculate proper length in synchronous way.'));
}
- return obj;
-};
-exports.shorthandSetter = function (property, shorthand_for) {
- return function (v) {
- var obj = exports.shorthandParser(v, shorthand_for);
- if (obj === undefined) {
- return;
- }
- //console.log('shorthandSetter for:', property, 'obj:', obj);
- Object.keys(obj).forEach(function (subprop) {
- // in case subprop is an implicit property, this will clear
- // *its* subpropertiesX
- var camel = dashedToCamelCase(subprop);
- this[camel] = obj[subprop];
- // in case it gets translated into something else (0 -> 0px)
- obj[subprop] = this[camel];
- this.removeProperty(subprop);
- // don't add in empty properties
- if (obj[subprop] !== '') {
- this._values[subprop] = obj[subprop];
- }
- }, this);
- Object.keys(shorthand_for).forEach(function (subprop) {
- if (!obj.hasOwnProperty(subprop)) {
- this.removeProperty(subprop);
- delete this._values[subprop];
- }
- }, this);
- // in case the value is something like 'none' that removes all values,
- // check that the generated one is not empty, first remove the property
- // if it already exists, then call the shorthandGetter, if it's an empty
- // string, don't set the property
- this.removeProperty(property);
- var calculated = exports.shorthandGetter(property, shorthand_for).call(this);
- if (calculated !== '') {
- this._setProperty(property, calculated);
- }
- };
+ return knownLength;
};
-exports.shorthandGetter = function (property, shorthand_for) {
- return function () {
- if (this._values[property] !== undefined) {
- return this.getPropertyValue(property);
- }
- return Object.keys(shorthand_for)
- .map(function (subprop) {
- return this.getPropertyValue(subprop);
- }, this)
- .filter(function (value) {
- return value !== '';
- })
- .join(' ');
- };
+// Public API to check if length of added values is known
+// https://github.com/form-data/form-data/issues/196
+// https://github.com/form-data/form-data/issues/262
+FormData.prototype.hasKnownLength = function() {
+ var hasKnownLength = true;
+
+ if (this._valuesToMeasure.length) {
+ hasKnownLength = false;
+ }
+
+ return hasKnownLength;
};
-// isValid(){1,4} | inherit
-// if one, it applies to all
-// if two, the first applies to the top and bottom, and the second to left and right
-// if three, the first applies to the top, the second to left and right, the third bottom
-// if four, top, right, bottom, left
-exports.implicitSetter = function (property_before, property_after, isValid, parser) {
- property_after = property_after || '';
- if (property_after !== '') {
- property_after = '-' + property_after;
+FormData.prototype.getLength = function(cb) {
+ var knownLength = this._overheadLength + this._valueLength;
+
+ if (this._streams.length) {
+ knownLength += this._lastBoundary().length;
}
- var part_names = ['top', 'right', 'bottom', 'left'];
- return function (v) {
- if (typeof v === 'number') {
- v = v.toString();
- }
- if (typeof v !== 'string') {
- return undefined;
- }
- var parts;
- if (v.toLowerCase() === 'inherit' || v === '') {
- parts = [v];
- } else {
- parts = getParts(v);
- }
- if (parts.length < 1 || parts.length > 4) {
- return undefined;
- }
+ if (!this._valuesToMeasure.length) {
+ process.nextTick(cb.bind(this, null, knownLength));
+ return;
+ }
- if (!parts.every(isValid)) {
- return undefined;
+ asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
+ if (err) {
+ cb(err);
+ return;
}
- parts = parts.map(function (part) {
- return parser(part);
+ values.forEach(function(length) {
+ knownLength += length;
});
- this._setProperty(property_before + property_after, parts.join(' '));
- if (parts.length === 1) {
- parts[1] = parts[0];
- }
- if (parts.length === 2) {
- parts[2] = parts[0];
- }
- if (parts.length === 3) {
- parts[3] = parts[1];
- }
- for (var i = 0; i < 4; i++) {
- var property = property_before + '-' + part_names[i] + property_after;
- this.removeProperty(property);
- if (parts[i] !== '') {
- this._values[property] = parts[i];
- }
- }
- return v;
- };
+ cb(null, knownLength);
+ });
};
-//
-// Companion to implicitSetter, but for the individual parts.
-// This sets the individual value, and checks to see if all four
-// sub-parts are set. If so, it sets the shorthand version and removes
-// the individual parts from the cssText.
-//
-exports.subImplicitSetter = function (prefix, part, isValid, parser) {
- var property = prefix + '-' + part;
- var subparts = [prefix + '-top', prefix + '-right', prefix + '-bottom', prefix + '-left'];
+FormData.prototype.submit = function(params, cb) {
+ var request
+ , options
+ , defaults = {method: 'post'}
+ ;
- return function (v) {
- if (typeof v === 'number') {
- v = v.toString();
- }
- if (typeof v !== 'string') {
- return undefined;
- }
- if (!isValid(v)) {
- return undefined;
- }
- v = parser(v);
- this._setProperty(property, v);
- var parts = [];
- for (var i = 0; i < 4; i++) {
- if (this._values[subparts[i]] == null || this._values[subparts[i]] === '') {
- break;
- }
- parts.push(this._values[subparts[i]]);
- }
- if (parts.length === 4) {
- for (i = 0; i < 4; i++) {
- this.removeProperty(subparts[i]);
- this._values[subparts[i]] = parts[i];
- }
- this._setProperty(prefix, parts.join(' '));
- }
- return v;
- };
-};
+ // parse provided url if it's string
+ // or treat it as options object
+ if (typeof params == 'string') {
-var camel_to_dashed = /[A-Z]/g;
-var first_segment = /^\([^-]\)-/;
-var vendor_prefixes = ['o', 'moz', 'ms', 'webkit'];
-exports.camelToDashed = function (camel_case) {
- var match;
- var dashed = camel_case.replace(camel_to_dashed, '-$&').toLowerCase();
- match = dashed.match(first_segment);
- if (match && vendor_prefixes.indexOf(match[1]) !== -1) {
- dashed = '-' + dashed;
- }
- return dashed;
-};
+ params = parseUrl(params);
+ options = populate({
+ port: params.port,
+ path: params.pathname,
+ host: params.hostname,
+ protocol: params.protocol
+ }, defaults);
+ // use custom params
+ } else {
-/***/ }),
+ options = populate(params, defaults);
+ // if no port provided use default one
+ if (!options.port) {
+ options.port = options.protocol == 'https:' ? 443 : 80;
+ }
+ }
-/***/ 13480:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ // put that good code in getHeaders to some use
+ options.headers = this.getHeaders(params.headers);
-"use strict";
+ // https if specified, fallback to http in any other case
+ if (options.protocol == 'https:') {
+ request = https.request(options);
+ } else {
+ request = http.request(options);
+ }
+ // get content length and fire away
+ this.getLength(function(err, length) {
+ if (err && err !== 'Unknown stream') {
+ this._error(err);
+ return;
+ }
-// autogenerated - 2/12/2023
+ // add content length
+ if (length) {
+ request.setHeader('Content-Length', length);
+ }
-/*
- *
- * https://www.w3.org/Style/CSS/all-properties.en.html
- */
+ this.pipe(request);
+ if (cb) {
+ var onResponse;
-var external_dependency_parsers_0 = __nccwpck_require__(37032);
+ var callback = function (error, responce) {
+ request.removeListener('error', callback);
+ request.removeListener('response', onResponse);
-var external_dependency_constants_1 = __nccwpck_require__(39139);
+ return cb.call(this, error, responce);
+ };
-var azimuth_export_definition;
-azimuth_export_definition = {
- set: function (v) {
- var valueType = external_dependency_parsers_0.valueType(v);
+ onResponse = callback.bind(this, null);
- if (valueType === external_dependency_parsers_0.TYPES.ANGLE) {
- return this._setProperty('azimuth', external_dependency_parsers_0.parseAngle(v));
+ request.on('error', callback);
+ request.on('response', onResponse);
}
+ }.bind(this));
- if (valueType === external_dependency_parsers_0.TYPES.KEYWORD) {
- var keywords = v.toLowerCase().trim().split(/\s+/);
- var hasBehind = false;
+ return request;
+};
- if (keywords.length > 2) {
- return;
- }
+FormData.prototype._error = function(err) {
+ if (!this.error) {
+ this.error = err;
+ this.pause();
+ this.emit('error', err);
+ }
+};
- var behindIndex = keywords.indexOf('behind');
- hasBehind = behindIndex !== -1;
+FormData.prototype.toString = function () {
+ return '[object FormData]';
+};
- if (keywords.length === 2) {
- if (!hasBehind) {
- return;
- }
- keywords.splice(behindIndex, 1);
- }
+/***/ }),
- if (keywords[0] === 'leftwards' || keywords[0] === 'rightwards') {
- if (hasBehind) {
- return;
- }
+/***/ 7142:
+/***/ ((module) => {
- return this._setProperty('azimuth', keywords[0]);
- }
+// populates missing values
+module.exports = function(dst, src) {
- if (keywords[0] === 'behind') {
- return this._setProperty('azimuth', '180deg');
- }
+ Object.keys(src).forEach(function(prop)
+ {
+ dst[prop] = dst[prop] || src[prop];
+ });
- switch (keywords[0]) {
- case 'left-side':
- return this._setProperty('azimuth', '270deg');
+ return dst;
+};
- case 'far-left':
- return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg');
- case 'left':
- return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg');
+/***/ }),
- case 'center-left':
- return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg');
+/***/ 6068:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- case 'center':
- return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg');
+/**
+ * Things we will need
+ */
+function __ncc_wildcard$0 (arg) {
+ if (arg === "alpine") return __nccwpck_require__(1068);
+ else if (arg === "amazon") return __nccwpck_require__(6466);
+ else if (arg === "arch") return __nccwpck_require__(9511);
+ else if (arg === "centos") return __nccwpck_require__(9012);
+ else if (arg === "debian") return __nccwpck_require__(6212);
+ else if (arg === "fedora") return __nccwpck_require__(1422);
+ else if (arg === "kde") return __nccwpck_require__(3541);
+ else if (arg === "manjaro") return __nccwpck_require__(770);
+ else if (arg === "mint") return __nccwpck_require__(2430);
+ else if (arg === "raspbian") return __nccwpck_require__(484);
+ else if (arg === "red") return __nccwpck_require__(8310);
+ else if (arg === "suse") return __nccwpck_require__(8264);
+ else if (arg === "ubuntu") return __nccwpck_require__(6478);
+ else if (arg === "zorin") return __nccwpck_require__(7054);
+}
+var async = __nccwpck_require__(7888)
+var distros = __nccwpck_require__(1405)
+var fs = __nccwpck_require__(7147)
+var os = __nccwpck_require__(2037)
- case 'center-right':
- return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg');
+/**
+ * Begin definition of globals.
+ */
+var cachedDistro = null // Store result of getLinuxDistro() after first call
- case 'right':
- return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg');
+/**
+ * Module definition.
+ */
+module.exports = function getOs (cb) {
+ // Node builtin as first line of defense.
+ var osName = os.platform()
+ // Linux is a special case.
+ if (osName === 'linux') return getLinuxDistro(cb)
+ // Else, node's builtin is acceptable.
+ return cb(null, { os: osName })
+}
- case 'far-right':
- return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg');
+/**
+ * Identify the actual distribution name on a linux box.
+ */
+function getLinuxDistro (cb) {
+ /**
+ * First, we check to see if this function has been called before.
+ * Since an OS doesn't change during runtime, its safe to cache
+ * the result and return it for future calls.
+ */
+ if (cachedDistro) return cb(null, cachedDistro)
- case 'right-side':
- return this._setProperty('azimuth', '90deg');
+ /**
+ * We are going to take our list of release files from os.json and
+ * check to see which one exists. It is safe to assume that no more
+ * than 1 file in the list from os.json will exist on a distribution.
+ */
+ getReleaseFile(Object.keys(distros), function (e, file) {
+ if (e) return cb(e)
- default:
- return;
- }
- }
- },
- get: function () {
- return this.getPropertyValue('azimuth');
- },
- enumerable: true,
- configurable: true
-};
-var backgroundColor_export_isValid, backgroundColor_export_definition;
+ /**
+ * Multiple distributions may share the same release file.
+ * We get our array of candidates and match the format of the release
+ * files and match them to a potential distribution
+ */
+ var candidates = distros[file]
+ var os = { os: 'linux', dist: candidates[0] }
-var backgroundColor_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseColor(v);
+ fs.readFile(file, 'utf-8', function (e, file) {
+ if (e) return cb(e)
- if (parsed !== undefined) {
- return parsed;
- }
+ /**
+ * If we only know of one distribution that has this file, its
+ * somewhat safe to assume that it is the distribution we are
+ * running on.
+ */
+ if (candidates.length === 1) {
+ return customLogic(os, getName(os.dist), file, function (e, os) {
+ if (e) return cb(e)
+ cachedDistro = os
+ return cb(null, os)
+ })
+ }
+ /**
+ * First, set everything to lower case to keep inconsistent
+ * specifications from mucking up our logic.
+ */
+ file = file.toLowerCase()
+ /**
+ * Now we need to check all of our potential candidates one by one.
+ * If their name is in the release file, it is guarenteed to be the
+ * distribution we are running on. If distributions share the same
+ * release file, it is reasonably safe to assume they will have the
+ * distribution name stored in their release file.
+ */
+ async.each(candidates, function (candidate, done) {
+ var name = getName(candidate)
+ if (file.indexOf(name) >= 0) {
+ os.dist = candidate
+ return customLogic(os, name, file, function (e, augmentedOs) {
+ if (e) return done(e)
+ os = augmentedOs
+ return done()
+ })
+ } else {
+ return done()
+ }
+ }, function (e) {
+ if (e) return cb(e)
+ cachedDistro = os
+ return cb(null, os)
+ })
+ })
+ })() // sneaky sneaky.
+}
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inherit')) {
- return v;
+function getName (candidate) {
+ /**
+ * We only care about the first word. I.E. for Arch Linux it is safe
+ * to simply search for "arch". Also note, we force lower case to
+ * match file.toLowerCase() above.
+ */
+ var index = 0
+ var name = 'linux'
+ /**
+ * Don't include 'linux' when searching since it is too aggressive when
+ * matching (see #54)
+ */
+ while (name === 'linux') {
+ name = candidate.split(' ')[index++].toLowerCase()
}
+ return name
+}
- return undefined;
-};
+/**
+ * Loads a custom logic module to populate additional distribution information
+ */
+function customLogic (os, name, file, cb) {
+ try { __ncc_wildcard$0(name)(os, file, cb) } catch (e) { cb(null, os) }
+}
-backgroundColor_export_isValid = function isValid(v) {
- return backgroundColor_local_var_parse(v) !== undefined;
-};
+/**
+ * getReleaseFile() checks an array of filenames and returns the first one it
+ * finds on the filesystem.
+ */
+function getReleaseFile (names, cb) {
+ var index = 0 // Lets keep track of which file we are on.
+ /**
+ * checkExists() is a first class function that we are using for recursion.
+ */
+ return function checkExists () {
+ /**
+ * Lets get the file metadata off the current file.
+ */
+ fs.stat(names[index], function (e, stat) {
+ /**
+ * Now we check if either the file didn't exist, or it is something
+ * other than a file for some very very bizzar reason.
+ */
+ if (e || !stat.isFile()) {
+ index++ // If it is not a file, we will check the next one!
+ if (names.length <= index) { // Unless we are out of files.
+ return cb(new Error('No unique release file found!')) // Then error.
+ }
+ return checkExists() // Re-call this function to check the next file.
+ }
+ cb(null, names[index]) // If we found a file, return it!
+ })
+ }
+}
-backgroundColor_export_definition = {
- set: function (v) {
- var parsed = backgroundColor_local_var_parse(v);
- if (parsed === undefined) {
- return;
- }
+/***/ }),
- this._setProperty('background-color', parsed);
- },
- get: function () {
- return this.getPropertyValue('background-color');
- },
- enumerable: true,
- configurable: true
-};
-var backgroundImage_export_isValid, backgroundImage_export_definition;
+/***/ 1068:
+/***/ ((module) => {
-var backgroundImage_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseUrl(v);
+var releaseRegex = /(.*)/
- if (parsed !== undefined) {
- return parsed;
- }
+module.exports = function alpineCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'none' || v.toLowerCase() === 'inherit')) {
- return v;
- }
- return undefined;
-};
+/***/ }),
-backgroundImage_export_isValid = function isValid(v) {
- return backgroundImage_local_var_parse(v) !== undefined;
-};
+/***/ 6466:
+/***/ ((module) => {
-backgroundImage_export_definition = {
- set: function (v) {
- this._setProperty('background-image', backgroundImage_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-image');
- },
- enumerable: true,
- configurable: true
-};
-var backgroundRepeat_export_isValid, backgroundRepeat_export_definition;
+var releaseRegex = /release (.*)/
-var backgroundRepeat_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'repeat' || v.toLowerCase() === 'repeat-x' || v.toLowerCase() === 'repeat-y' || v.toLowerCase() === 'no-repeat' || v.toLowerCase() === 'inherit')) {
- return v;
- }
+module.exports = function amazonCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- return undefined;
-};
-backgroundRepeat_export_isValid = function isValid(v) {
- return backgroundRepeat_local_var_parse(v) !== undefined;
-};
+/***/ }),
-backgroundRepeat_export_definition = {
- set: function (v) {
- this._setProperty('background-repeat', backgroundRepeat_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-repeat');
- },
- enumerable: true,
- configurable: true
-};
-var backgroundAttachment_export_isValid, backgroundAttachment_export_definition;
+/***/ 9511:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var backgroundAttachment_local_var_isValid = backgroundAttachment_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit');
-};
+module.exports = __nccwpck_require__(6478)
-backgroundAttachment_export_definition = {
- set: function (v) {
- if (!backgroundAttachment_local_var_isValid(v)) {
- return;
- }
- this._setProperty('background-attachment', v);
- },
- get: function () {
- return this.getPropertyValue('background-attachment');
- },
- enumerable: true,
- configurable: true
-};
-var backgroundPosition_export_isValid, backgroundPosition_export_definition;
-var backgroundPosition_local_var_valid_keywords = ['top', 'center', 'bottom', 'left', 'right'];
+/***/ }),
-var backgroundPosition_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
+/***/ 9012:
+/***/ ((module) => {
- var parts = v.split(/\s+/);
+var releaseRegex = /release ([^ ]+)/
+var codenameRegex = /\((.*)\)/
- if (parts.length > 2 || parts.length < 1) {
- return undefined;
- }
+module.exports = function centosCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ var codename = file.match(codenameRegex)
+ if (codename && codename.length === 2) os.codename = codename[1]
+ cb(null, os)
+}
- var types = [];
- parts.forEach(function (part, index) {
- types[index] = external_dependency_parsers_0.valueType(part);
- });
- if (parts.length === 1) {
- if (types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) {
- return v;
- }
+/***/ }),
- if (types[0] === external_dependency_parsers_0.TYPES.KEYWORD) {
- if (backgroundPosition_local_var_valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') {
- return v;
- }
- }
+/***/ 6212:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- return undefined;
- }
+var exec = (__nccwpck_require__(2081).exec)
+var lsbRelease = /Release:\t(.*)/
+var lsbCodename = /Codename:\t(.*)/
+var releaseRegex = /(.*)/
- if ((types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) && (types[1] === external_dependency_parsers_0.TYPES.LENGTH || types[1] === external_dependency_parsers_0.TYPES.PERCENT)) {
- return v;
- }
+module.exports = function (os, file, cb) {
+ // first try lsb_release
+ return lsbrelease(os, file, cb)
+}
- if (types[0] !== external_dependency_parsers_0.TYPES.KEYWORD || types[1] !== external_dependency_parsers_0.TYPES.KEYWORD) {
- return undefined;
- }
+function lsbrelease (os, file, cb) {
+ exec('lsb_release -a', function (e, stdout, stderr) {
+ if (e) return releasefile(os, file, cb)
+ var release = stdout.match(lsbRelease)
+ if (release && release.length === 2) os.release = release[1]
+ var codename = stdout.match(lsbCodename)
+ if (codename && release.length === 2) os.codename = codename[1]
+ cb(null, os)
+ })
+}
- if (backgroundPosition_local_var_valid_keywords.indexOf(parts[0]) !== -1 && backgroundPosition_local_var_valid_keywords.indexOf(parts[1]) !== -1) {
- return v;
- }
+function releasefile (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- return undefined;
-};
-backgroundPosition_export_isValid = function isValid(v) {
- return backgroundPosition_local_var_parse(v) !== undefined;
-};
+/***/ }),
-backgroundPosition_export_definition = {
- set: function (v) {
- this._setProperty('background-position', backgroundPosition_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-position');
- },
- enumerable: true,
- configurable: true
-};
-var background_export_definition;
-var background_local_var_shorthand_for = {
- 'background-color': {
- isValid: backgroundColor_export_isValid,
- definition: backgroundColor_export_definition
- },
- 'background-image': {
- isValid: backgroundImage_export_isValid,
- definition: backgroundImage_export_definition
- },
- 'background-repeat': {
- isValid: backgroundRepeat_export_isValid,
- definition: backgroundRepeat_export_definition
- },
- 'background-attachment': {
- isValid: backgroundAttachment_export_isValid,
- definition: backgroundAttachment_export_definition
- },
- 'background-position': {
- isValid: backgroundPosition_export_isValid,
- definition: backgroundPosition_export_definition
- }
-};
-background_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('background', background_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('background', background_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var borderWidth_export_isValid, borderWidth_export_definition;
-// the valid border-widths:
-var borderWidth_local_var_widths = ['thin', 'medium', 'thick'];
+/***/ 1422:
+/***/ ((module) => {
-borderWidth_export_isValid = function parse(v) {
- var length = external_dependency_parsers_0.parseLength(v);
+var releaseRegex = /release (..)/
+var codenameRegex = /\((.*)\)/
- if (length !== undefined) {
- return true;
- }
+module.exports = function fedoraCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ var codename = file.match(codenameRegex)
+ if (codename && codename.length === 2) os.codename = codename[1]
+ cb(null, os)
+}
- if (typeof v !== 'string') {
- return false;
- }
- if (v === '') {
- return true;
- }
+/***/ }),
- v = v.toLowerCase();
+/***/ 3541:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- if (borderWidth_local_var_widths.indexOf(v) === -1) {
- return false;
- }
+module.exports = __nccwpck_require__(6478)
- return true;
-};
-var borderWidth_local_var_isValid = borderWidth_export_isValid;
+/***/ }),
-var borderWidth_local_var_parser = function (v) {
- var length = external_dependency_parsers_0.parseLength(v);
+/***/ 770:
+/***/ ((module) => {
- if (length !== undefined) {
- return length;
- }
+var releaseRegex = /distrib_release=(.*)/
+var codenameRegex = /distrib_codename=(.*)/
- if (borderWidth_local_var_isValid(v)) {
- return v.toLowerCase();
- }
+module.exports = function ubuntuCustomLogic (os, file, cb) {
+ var codename = file.match(codenameRegex)
+ if (codename && codename.length === 2) os.codename = codename[1]
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- return undefined;
-};
-borderWidth_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'width', borderWidth_local_var_isValid, borderWidth_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-width');
- },
- enumerable: true,
- configurable: true
-};
-var borderStyle_export_isValid, borderStyle_export_definition;
-// the valid border-styles:
-var borderStyle_local_var_styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
+/***/ }),
-borderStyle_export_isValid = function parse(v) {
- return typeof v === 'string' && (v === '' || borderStyle_local_var_styles.indexOf(v) !== -1);
-};
+/***/ 2430:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-var borderStyle_local_var_isValid = borderStyle_export_isValid;
+module.exports = __nccwpck_require__(6478)
-var borderStyle_local_var_parser = function (v) {
- if (borderStyle_local_var_isValid(v)) {
- return v.toLowerCase();
- }
- return undefined;
-};
+/***/ }),
-borderStyle_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'style', borderStyle_local_var_isValid, borderStyle_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-style');
- },
- enumerable: true,
- configurable: true
-};
-var borderColor_export_isValid, borderColor_export_definition;
+/***/ 484:
+/***/ ((module) => {
-borderColor_export_isValid = function parse(v) {
- if (typeof v !== 'string') {
- return false;
- }
+var releaseRegex = /VERSION_ID="(.*)"/
+var codenameRegex = /VERSION="[0-9] \((.*)\)"/
- return v === '' || v.toLowerCase() === 'transparent' || external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.COLOR;
-};
+module.exports = function raspbianCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ var codename = file.match(codenameRegex)
+ if (codename && codename.length === 2) os.codename = codename[1]
+ cb(null, os)
+}
-var borderColor_local_var_isValid = borderColor_export_isValid;
-var borderColor_local_var_parser = function (v) {
- if (borderColor_local_var_isValid(v)) {
- return v.toLowerCase();
- }
+/***/ }),
- return undefined;
-};
+/***/ 8310:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-borderColor_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'color', borderColor_local_var_isValid, borderColor_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-color');
- },
- enumerable: true,
- configurable: true
-};
-var border_export_definition;
-var border_local_var_shorthand_for = {
- 'border-width': {
- isValid: borderWidth_export_isValid,
- definition: borderWidth_export_definition
- },
- 'border-style': {
- isValid: borderStyle_export_isValid,
- definition: borderStyle_export_definition
- },
- 'border-color': {
- isValid: borderColor_export_isValid,
- definition: borderColor_export_definition
- }
-};
-var border_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('border', border_local_var_shorthand_for);
-var border_local_var_myShorthandGetter = external_dependency_parsers_0.shorthandGetter('border', border_local_var_shorthand_for);
-border_export_definition = {
- set: function (v) {
- if (v.toString().toLowerCase() === 'none') {
- v = '';
- }
-
- border_local_var_myShorthandSetter.call(this, v);
- this.removeProperty('border-top');
- this.removeProperty('border-left');
- this.removeProperty('border-right');
- this.removeProperty('border-bottom');
- this._values['border-top'] = this._values.border;
- this._values['border-left'] = this._values.border;
- this._values['border-right'] = this._values.border;
- this._values['border-bottom'] = this._values.border;
- },
- get: border_local_var_myShorthandGetter,
- enumerable: true,
- configurable: true
-};
-var borderBottomWidth_export_isValid, borderBottomWidth_export_definition;
-var borderBottomWidth_local_var_isValid = borderBottomWidth_export_isValid = borderWidth_export_isValid;
-borderBottomWidth_export_definition = {
- set: function (v) {
- if (borderBottomWidth_local_var_isValid(v)) {
- this._setProperty('border-bottom-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-width');
- },
- enumerable: true,
- configurable: true
-};
-var borderBottomStyle_export_isValid, borderBottomStyle_export_definition;
-borderBottomStyle_export_isValid = borderStyle_export_isValid;
-borderBottomStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-bottom-width');
- }
+module.exports = __nccwpck_require__(9012)
- this._setProperty('border-bottom-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-style');
- },
- enumerable: true,
- configurable: true
-};
-var borderBottomColor_export_isValid, borderBottomColor_export_definition;
-var borderBottomColor_local_var_isValid = borderBottomColor_export_isValid = borderColor_export_isValid;
-borderBottomColor_export_definition = {
- set: function (v) {
- if (borderBottomColor_local_var_isValid(v)) {
- this._setProperty('border-bottom-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-color');
- },
- enumerable: true,
- configurable: true
-};
-var borderBottom_export_definition;
-var borderBottom_local_var_shorthand_for = {
- 'border-bottom-width': {
- isValid: borderBottomWidth_export_isValid,
- definition: borderBottomWidth_export_definition
- },
- 'border-bottom-style': {
- isValid: borderBottomStyle_export_isValid,
- definition: borderBottomStyle_export_definition
- },
- 'border-bottom-color': {
- isValid: borderBottomColor_export_isValid,
- definition: borderBottomColor_export_definition
- }
-};
-borderBottom_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-bottom', borderBottom_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-bottom', borderBottom_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var borderCollapse_export_definition;
-var borderCollapse_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'collapse' || v.toLowerCase() === 'separate' || v.toLowerCase() === 'inherit')) {
- return v;
- }
+/***/ }),
- return undefined;
-};
+/***/ 8264:
+/***/ ((module) => {
-borderCollapse_export_definition = {
- set: function (v) {
- this._setProperty('border-collapse', borderCollapse_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-collapse');
- },
- enumerable: true,
- configurable: true
-};
-var borderLeftWidth_export_isValid, borderLeftWidth_export_definition;
-var borderLeftWidth_local_var_isValid = borderLeftWidth_export_isValid = borderWidth_export_isValid;
-borderLeftWidth_export_definition = {
- set: function (v) {
- if (borderLeftWidth_local_var_isValid(v)) {
- this._setProperty('border-left-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-width');
- },
- enumerable: true,
- configurable: true
-};
-var borderLeftStyle_export_isValid, borderLeftStyle_export_definition;
-borderLeftStyle_export_isValid = borderStyle_export_isValid;
-borderLeftStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-left-width');
- }
+var releaseRegex = /VERSION = (.*)\n/
- this._setProperty('border-left-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-style');
- },
- enumerable: true,
- configurable: true
-};
-var borderLeftColor_export_isValid, borderLeftColor_export_definition;
-var borderLeftColor_local_var_isValid = borderLeftColor_export_isValid = borderColor_export_isValid;
-borderLeftColor_export_definition = {
- set: function (v) {
- if (borderLeftColor_local_var_isValid(v)) {
- this._setProperty('border-left-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-color');
- },
- enumerable: true,
- configurable: true
-};
-var borderLeft_export_definition;
-var borderLeft_local_var_shorthand_for = {
- 'border-left-width': {
- isValid: borderLeftWidth_export_isValid,
- definition: borderLeftWidth_export_definition
- },
- 'border-left-style': {
- isValid: borderLeftStyle_export_isValid,
- definition: borderLeftStyle_export_definition
- },
- 'border-left-color': {
- isValid: borderLeftColor_export_isValid,
- definition: borderLeftColor_export_definition
- }
-};
-borderLeft_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-left', borderLeft_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-left', borderLeft_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var borderRightWidth_export_isValid, borderRightWidth_export_definition;
-var borderRightWidth_local_var_isValid = borderRightWidth_export_isValid = borderWidth_export_isValid;
-borderRightWidth_export_definition = {
- set: function (v) {
- if (borderRightWidth_local_var_isValid(v)) {
- this._setProperty('border-right-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-width');
- },
- enumerable: true,
- configurable: true
-};
-var borderRightStyle_export_isValid, borderRightStyle_export_definition;
-borderRightStyle_export_isValid = borderStyle_export_isValid;
-borderRightStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-right-width');
- }
+module.exports = function suseCustomLogic (os, file, cb) {
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- this._setProperty('border-right-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-style');
- },
- enumerable: true,
- configurable: true
-};
-var borderRightColor_export_isValid, borderRightColor_export_definition;
-var borderRightColor_local_var_isValid = borderRightColor_export_isValid = borderColor_export_isValid;
-borderRightColor_export_definition = {
- set: function (v) {
- if (borderRightColor_local_var_isValid(v)) {
- this._setProperty('border-right-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-color');
- },
- enumerable: true,
- configurable: true
-};
-var borderRight_export_definition;
-var borderRight_local_var_shorthand_for = {
- 'border-right-width': {
- isValid: borderRightWidth_export_isValid,
- definition: borderRightWidth_export_definition
- },
- 'border-right-style': {
- isValid: borderRightStyle_export_isValid,
- definition: borderRightStyle_export_definition
- },
- 'border-right-color': {
- isValid: borderRightColor_export_isValid,
- definition: borderRightColor_export_definition
- }
-};
-borderRight_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-right', borderRight_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-right', borderRight_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var borderSpacing_export_definition;
-// ? | inherit
-// if one, it applies to both horizontal and verical spacing
-// if two, the first applies to the horizontal and the second applies to vertical spacing
-var borderSpacing_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
+/***/ }),
- if (v === 0) {
- return '0px';
- }
+/***/ 6478:
+/***/ ((module) => {
- if (v.toLowerCase() === 'inherit') {
- return v;
- }
+var releaseRegex = /distrib_release=(.*)/
+var codenameRegex = /distrib_codename=(.*)/
- var parts = v.split(/\s+/);
+module.exports = function ubuntuCustomLogic (os, file, cb) {
+ var codename = file.match(codenameRegex)
+ if (codename && codename.length === 2) os.codename = codename[1]
+ var release = file.match(releaseRegex)
+ if (release && release.length === 2) os.release = release[1]
+ cb(null, os)
+}
- if (parts.length !== 1 && parts.length !== 2) {
- return undefined;
- }
- parts.forEach(function (part) {
- if (external_dependency_parsers_0.valueType(part) !== external_dependency_parsers_0.TYPES.LENGTH) {
- return undefined;
- }
- });
- return v;
-};
+/***/ }),
-borderSpacing_export_definition = {
- set: function (v) {
- this._setProperty('border-spacing', borderSpacing_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-spacing');
- },
- enumerable: true,
- configurable: true
-};
-var borderTopWidth_export_isValid, borderTopWidth_export_definition;
-borderTopWidth_export_isValid = borderWidth_export_isValid;
-borderTopWidth_export_definition = {
- set: function (v) {
- if (borderWidth_export_isValid(v)) {
- this._setProperty('border-top-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-width');
- },
- enumerable: true,
- configurable: true
-};
-var borderTopStyle_export_isValid, borderTopStyle_export_definition;
-borderTopStyle_export_isValid = borderStyle_export_isValid;
-borderTopStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-top-width');
- }
+/***/ 7054:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- this._setProperty('border-top-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-style');
- },
- enumerable: true,
- configurable: true
-};
-var borderTopColor_export_isValid, borderTopColor_export_definition;
-var borderTopColor_local_var_isValid = borderTopColor_export_isValid = borderColor_export_isValid;
-borderTopColor_export_definition = {
- set: function (v) {
- if (borderTopColor_local_var_isValid(v)) {
- this._setProperty('border-top-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-color');
- },
- enumerable: true,
- configurable: true
-};
-var borderTop_export_definition;
-var borderTop_local_var_shorthand_for = {
- 'border-top-width': {
- isValid: borderTopWidth_export_isValid,
- definition: borderTopWidth_export_definition
- },
- 'border-top-style': {
- isValid: borderTopStyle_export_isValid,
- definition: borderTopStyle_export_definition
- },
- 'border-top-color': {
- isValid: borderTopColor_export_isValid,
- definition: borderTopColor_export_definition
- }
-};
-borderTop_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-top', borderTop_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-top', borderTop_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var bottom_export_definition;
-bottom_export_definition = {
- set: function (v) {
- this._setProperty('bottom', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('bottom');
- },
- enumerable: true,
- configurable: true
-};
-var clear_export_definition;
-var clear_local_var_clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
-clear_export_definition = {
- set: function (v) {
- this._setProperty('clear', external_dependency_parsers_0.parseKeyword(v, clear_local_var_clear_keywords));
- },
- get: function () {
- return this.getPropertyValue('clear');
- },
- enumerable: true,
- configurable: true
-};
-var clip_export_definition;
-var clip_local_var_shape_regex = /^rect\((.*)\)$/i;
+module.exports = __nccwpck_require__(6478)
-var clip_local_var_parse = function (val) {
- if (val === '' || val === null) {
- return val;
- }
- if (typeof val !== 'string') {
- return undefined;
- }
+/***/ }),
- val = val.toLowerCase();
+/***/ 1046:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
- if (val === 'auto' || val === 'inherit') {
- return val;
- }
+var balanced = __nccwpck_require__(9417);
- var matches = val.match(clip_local_var_shape_regex);
+module.exports = expandTop;
- if (!matches) {
- return undefined;
- }
+var escSlash = '\0SLASH'+Math.random()+'\0';
+var escOpen = '\0OPEN'+Math.random()+'\0';
+var escClose = '\0CLOSE'+Math.random()+'\0';
+var escComma = '\0COMMA'+Math.random()+'\0';
+var escPeriod = '\0PERIOD'+Math.random()+'\0';
- var parts = matches[1].split(/\s*,\s*/);
+function numeric(str) {
+ return parseInt(str, 10) == str
+ ? parseInt(str, 10)
+ : str.charCodeAt(0);
+}
- if (parts.length !== 4) {
- return undefined;
- }
+function escapeBraces(str) {
+ return str.split('\\\\').join(escSlash)
+ .split('\\{').join(escOpen)
+ .split('\\}').join(escClose)
+ .split('\\,').join(escComma)
+ .split('\\.').join(escPeriod);
+}
- var valid = parts.every(function (part, index) {
- var measurement = external_dependency_parsers_0.parseMeasurement(part);
- parts[index] = measurement;
- return measurement !== undefined;
- });
+function unescapeBraces(str) {
+ return str.split(escSlash).join('\\')
+ .split(escOpen).join('{')
+ .split(escClose).join('}')
+ .split(escComma).join(',')
+ .split(escPeriod).join('.');
+}
- if (!valid) {
- return undefined;
- }
- parts = parts.join(', ');
- return val.replace(matches[1], parts);
-};
+// Basically just str.split(","), but handling cases
+// where we have nested braced sections, which should be
+// treated as individual members, like {a,{b,c},d}
+function parseCommaParts(str) {
+ if (!str)
+ return [''];
-clip_export_definition = {
- set: function (v) {
- this._setProperty('clip', clip_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('clip');
- },
- enumerable: true,
- configurable: true
-};
-var color_export_definition;
-color_export_definition = {
- set: function (v) {
- this._setProperty('color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('color');
- },
- enumerable: true,
- configurable: true
-};
-var cssFloat_export_definition;
-cssFloat_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
-};
-var flexGrow_export_isValid, flexGrow_export_definition;
+ var parts = [];
+ var m = balanced('{', '}', str);
-flexGrow_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.first;
-};
+ if (!m)
+ return str.split(',');
-flexGrow_export_definition = {
- set: function (v) {
- this._setProperty('flex-grow', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-grow');
- },
- enumerable: true,
- configurable: true
-};
-var flexShrink_export_isValid, flexShrink_export_definition;
+ var pre = m.pre;
+ var body = m.body;
+ var post = m.post;
+ var p = pre.split(',');
-flexShrink_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.second;
-};
+ p[p.length-1] += '{' + body + '}';
+ var postParts = parseCommaParts(post);
+ if (post.length) {
+ p[p.length-1] += postParts.shift();
+ p.push.apply(p, postParts);
+ }
-flexShrink_export_definition = {
- set: function (v) {
- this._setProperty('flex-shrink', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-shrink');
- },
- enumerable: true,
- configurable: true
-};
-var flexBasis_export_isValid, flexBasis_export_definition;
+ parts.push.apply(parts, p);
-function flexBasis_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
+ return parts;
+}
+
+function expandTop(str) {
+ if (!str)
+ return [];
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
+ // I don't know why Bash 4.3 does this, but it does.
+ // Anything starting with {} will have the first two bytes preserved
+ // but *only* at the top level, so {},a}b will not expand to anything,
+ // but a{},b}c will be expanded to [a}c,abc].
+ // One could argue that this is a bug in Bash, but since the goal of
+ // this module is to match Bash's rules, we escape a leading {}
+ if (str.substr(0, 2) === '{}') {
+ str = '\\{\\}' + str.substr(2);
}
- return external_dependency_parsers_0.parseMeasurement(v);
+ return expand(escapeBraces(str), true).map(unescapeBraces);
}
-flexBasis_export_isValid = function isValid(v) {
- return flexBasis_local_fn_parse(v) !== undefined;
-};
+function embrace(str) {
+ return '{' + str + '}';
+}
+function isPadded(el) {
+ return /^-?0\d/.test(el);
+}
-flexBasis_export_definition = {
- set: function (v) {
- this._setProperty('flex-basis', flexBasis_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('flex-basis');
- },
- enumerable: true,
- configurable: true
-};
-var flex_export_isValid, flex_export_definition;
-var flex_local_var_shorthand_for = {
- 'flex-grow': {
- isValid: flexGrow_export_isValid,
- definition: flexGrow_export_definition
- },
- 'flex-shrink': {
- isValid: flexShrink_export_isValid,
- definition: flexShrink_export_definition
- },
- 'flex-basis': {
- isValid: flexBasis_export_isValid,
- definition: flexBasis_export_definition
- }
-};
-var flex_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('flex', flex_local_var_shorthand_for);
+function lte(i, y) {
+ return i <= y;
+}
+function gte(i, y) {
+ return i >= y;
+}
-flex_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.shorthandParser(v, flex_local_var_shorthand_for) !== undefined;
-};
+function expand(str, isTop) {
+ var expansions = [];
-flex_export_definition = {
- set: function (v) {
- var normalizedValue = String(v).trim().toLowerCase();
+ var m = balanced('{', '}', str);
+ if (!m) return [str];
- if (normalizedValue === 'none') {
- flex_local_var_myShorthandSetter.call(this, '0 0 auto');
- return;
- }
+ // no need to expand pre, since it is guaranteed to be free of brace-sets
+ var pre = m.pre;
+ var post = m.post.length
+ ? expand(m.post, false)
+ : [''];
- if (normalizedValue === 'initial') {
- flex_local_var_myShorthandSetter.call(this, '0 1 auto');
- return;
+ if (/\$$/.test(m.pre)) {
+ for (var k = 0; k < post.length; k++) {
+ var expansion = pre+ '{' + m.body + '}' + post[k];
+ expansions.push(expansion);
+ }
+ } else {
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
+ var isSequence = isNumericSequence || isAlphaSequence;
+ var isOptions = m.body.indexOf(',') >= 0;
+ if (!isSequence && !isOptions) {
+ // {a},b}
+ if (m.post.match(/,.*\}/)) {
+ str = m.pre + '{' + m.body + escClose + m.post;
+ return expand(str);
+ }
+ return [str];
}
- if (normalizedValue === 'auto') {
- this.removeProperty('flex-grow');
- this.removeProperty('flex-shrink');
- this.setProperty('flex-basis', normalizedValue);
- return;
+ var n;
+ if (isSequence) {
+ n = m.body.split(/\.\./);
+ } else {
+ n = parseCommaParts(m.body);
+ if (n.length === 1) {
+ // x{{a,b}}y ==> x{a}y x{b}y
+ n = expand(n[0], false).map(embrace);
+ if (n.length === 1) {
+ return post.map(function(p) {
+ return m.pre + n[0] + p;
+ });
+ }
+ }
}
- flex_local_var_myShorthandSetter.call(this, v);
- },
- get: external_dependency_parsers_0.shorthandGetter('flex', flex_local_var_shorthand_for),
- enumerable: true,
- configurable: true
-};
-var float_export_definition;
-float_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
-};
-var floodColor_export_definition;
-floodColor_export_definition = {
- set: function (v) {
- this._setProperty('flood-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('flood-color');
- },
- enumerable: true,
- configurable: true
-};
-var fontFamily_export_isValid, fontFamily_export_definition;
-var fontFamily_local_var_partsRegEx = /\s*,\s*/;
+ // at this point, n is the parts, and we know it's not a comma set
+ // with a single entry.
+ var N;
-fontFamily_export_isValid = function isValid(v) {
- if (v === '' || v === null) {
- return true;
- }
+ if (isSequence) {
+ var x = numeric(n[0]);
+ var y = numeric(n[1]);
+ var width = Math.max(n[0].length, n[1].length)
+ var incr = n.length == 3
+ ? Math.abs(numeric(n[2]))
+ : 1;
+ var test = lte;
+ var reverse = y < x;
+ if (reverse) {
+ incr *= -1;
+ test = gte;
+ }
+ var pad = n.some(isPadded);
- var parts = v.split(fontFamily_local_var_partsRegEx);
- var len = parts.length;
- var i;
- var type;
+ N = [];
+
+ for (var i = x; test(i, y); i += incr) {
+ var c;
+ if (isAlphaSequence) {
+ c = String.fromCharCode(i);
+ if (c === '\\')
+ c = '';
+ } else {
+ c = String(i);
+ if (pad) {
+ var need = width - c.length;
+ if (need > 0) {
+ var z = new Array(need + 1).join('0');
+ if (i < 0)
+ c = '-' + z + c.slice(1);
+ else
+ c = z + c;
+ }
+ }
+ }
+ N.push(c);
+ }
+ } else {
+ N = [];
- for (i = 0; i < len; i++) {
- type = external_dependency_parsers_0.valueType(parts[i]);
+ for (var j = 0; j < n.length; j++) {
+ N.push.apply(N, expand(n[j], false));
+ }
+ }
- if (type === external_dependency_parsers_0.TYPES.STRING || type === external_dependency_parsers_0.TYPES.KEYWORD) {
- return true;
+ for (var j = 0; j < N.length; j++) {
+ for (var k = 0; k < post.length; k++) {
+ var expansion = pre + N[j] + post[k];
+ if (!isTop || isSequence || expansion)
+ expansions.push(expansion);
+ }
}
}
- return false;
-};
+ return expansions;
+}
-fontFamily_export_definition = {
- set: function (v) {
- this._setProperty('font-family', v);
- },
- get: function () {
- return this.getPropertyValue('font-family');
- },
- enumerable: true,
- configurable: true
-};
-var fontSize_export_isValid, fontSize_export_definition;
-var fontSize_local_var_absoluteSizes = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
-var fontSize_local_var_relativeSizes = ['larger', 'smaller'];
-fontSize_export_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v.toLowerCase());
- return type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_absoluteSizes.indexOf(v.toLowerCase()) !== -1 || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_relativeSizes.indexOf(v.toLowerCase()) !== -1;
-};
-function fontSize_local_fn_parse(v) {
- const valueAsString = String(v).toLowerCase();
- const optionalArguments = fontSize_local_var_absoluteSizes.concat(fontSize_local_var_relativeSizes);
- const isOptionalArgument = optionalArguments.some(stringValue => stringValue.toLowerCase() === valueAsString);
- return isOptionalArgument ? valueAsString : external_dependency_parsers_0.parseMeasurement(v);
-}
+/***/ }),
-fontSize_export_definition = {
- set: function (v) {
- this._setProperty('font-size', fontSize_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('font-size');
- },
- enumerable: true,
- configurable: true
-};
-var fontStyle_export_isValid, fontStyle_export_definition;
-var fontStyle_local_var_valid_styles = ['normal', 'italic', 'oblique', 'inherit'];
+/***/ 1917:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-fontStyle_export_isValid = function (v) {
- return fontStyle_local_var_valid_styles.indexOf(v.toLowerCase()) !== -1;
-};
+"use strict";
-fontStyle_export_definition = {
- set: function (v) {
- this._setProperty('font-style', v);
- },
- get: function () {
- return this.getPropertyValue('font-style');
- },
- enumerable: true,
- configurable: true
-};
-var fontVariant_export_isValid, fontVariant_export_definition;
-var fontVariant_local_var_valid_variants = ['normal', 'small-caps', 'inherit'];
-fontVariant_export_isValid = function isValid(v) {
- return fontVariant_local_var_valid_variants.indexOf(v.toLowerCase()) !== -1;
-};
-fontVariant_export_definition = {
- set: function (v) {
- this._setProperty('font-variant', v);
- },
- get: function () {
- return this.getPropertyValue('font-variant');
- },
- enumerable: true,
- configurable: true
-};
-var fontWeight_export_isValid, fontWeight_export_definition;
-var fontWeight_local_var_valid_weights = ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit'];
-
-fontWeight_export_isValid = function isValid(v) {
- return fontWeight_local_var_valid_weights.indexOf(v.toLowerCase()) !== -1;
-};
+var loader = __nccwpck_require__(1161);
+var dumper = __nccwpck_require__(8866);
-fontWeight_export_definition = {
- set: function (v) {
- this._setProperty('font-weight', v);
- },
- get: function () {
- return this.getPropertyValue('font-weight');
- },
- enumerable: true,
- configurable: true
-};
-var lineHeight_export_isValid, lineHeight_export_definition;
-lineHeight_export_isValid = function isValid(v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === external_dependency_parsers_0.TYPES.KEYWORD && v.toLowerCase() === 'normal' || v.toLowerCase() === 'inherit' || type === external_dependency_parsers_0.TYPES.NUMBER || type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT;
-};
+function renamed(from, to) {
+ return function () {
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
+ 'Use yaml.' + to + ' instead, which is now safe by default.');
+ };
+}
-lineHeight_export_definition = {
- set: function (v) {
- this._setProperty('line-height', v);
- },
- get: function () {
- return this.getPropertyValue('line-height');
- },
- enumerable: true,
- configurable: true
-};
-var font_export_definition;
-var font_local_var_shorthand_for = {
- 'font-family': {
- isValid: fontFamily_export_isValid,
- definition: fontFamily_export_definition
- },
- 'font-size': {
- isValid: fontSize_export_isValid,
- definition: fontSize_export_definition
- },
- 'font-style': {
- isValid: fontStyle_export_isValid,
- definition: fontStyle_export_definition
- },
- 'font-variant': {
- isValid: fontVariant_export_isValid,
- definition: fontVariant_export_definition
- },
- 'font-weight': {
- isValid: fontWeight_export_isValid,
- definition: fontWeight_export_definition
- },
- 'line-height': {
- isValid: lineHeight_export_isValid,
- definition: lineHeight_export_definition
- }
-};
-var font_local_var_static_fonts = ['caption', 'icon', 'menu', 'message-box', 'small-caption', 'status-bar', 'inherit'];
-var font_local_var_setter = external_dependency_parsers_0.shorthandSetter('font', font_local_var_shorthand_for);
-font_export_definition = {
- set: function (v) {
- var short = external_dependency_parsers_0.shorthandParser(v, font_local_var_shorthand_for);
- if (short !== undefined) {
- return font_local_var_setter.call(this, v);
- }
+module.exports.Type = __nccwpck_require__(6073);
+module.exports.Schema = __nccwpck_require__(1082);
+module.exports.FAILSAFE_SCHEMA = __nccwpck_require__(8562);
+module.exports.JSON_SCHEMA = __nccwpck_require__(1035);
+module.exports.CORE_SCHEMA = __nccwpck_require__(2011);
+module.exports.DEFAULT_SCHEMA = __nccwpck_require__(8759);
+module.exports.load = loader.load;
+module.exports.loadAll = loader.loadAll;
+module.exports.dump = dumper.dump;
+module.exports.YAMLException = __nccwpck_require__(8179);
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && font_local_var_static_fonts.indexOf(v.toLowerCase()) !== -1) {
- this._setProperty('font', v);
- }
- },
- get: external_dependency_parsers_0.shorthandGetter('font', font_local_var_shorthand_for),
- enumerable: true,
- configurable: true
+// Re-export all types in case user wants to create custom schema
+module.exports.types = {
+ binary: __nccwpck_require__(7900),
+ float: __nccwpck_require__(2705),
+ map: __nccwpck_require__(6150),
+ null: __nccwpck_require__(721),
+ pairs: __nccwpck_require__(6860),
+ set: __nccwpck_require__(9548),
+ timestamp: __nccwpck_require__(9212),
+ bool: __nccwpck_require__(4993),
+ int: __nccwpck_require__(1615),
+ merge: __nccwpck_require__(6104),
+ omap: __nccwpck_require__(9046),
+ seq: __nccwpck_require__(7283),
+ str: __nccwpck_require__(3619)
};
-var height_export_definition;
-
-function height_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
+// Removed functions from JS-YAML 3.0.x
+module.exports.safeLoad = renamed('safeLoad', 'load');
+module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');
+module.exports.safeDump = renamed('safeDump', 'dump');
- return external_dependency_parsers_0.parseMeasurement(v);
-}
-height_export_definition = {
- set: function (v) {
- this._setProperty('height', height_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('height');
- },
- enumerable: true,
- configurable: true
-};
-var left_export_definition;
-left_export_definition = {
- set: function (v) {
- this._setProperty('left', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('left');
- },
- enumerable: true,
- configurable: true
-};
-var lightingColor_export_definition;
-lightingColor_export_definition = {
- set: function (v) {
- this._setProperty('lighting-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('lighting-color');
- },
- enumerable: true,
- configurable: true
-};
-var margin_export_definition, margin_export_isValid, margin_export_parser;
-var margin_local_var_TYPES = external_dependency_parsers_0.TYPES;
+/***/ }),
-var margin_local_var_isValid = function (v) {
- if (v.toLowerCase() === 'auto') {
- return true;
- }
+/***/ 6829:
+/***/ ((module) => {
- var type = external_dependency_parsers_0.valueType(v);
- return type === margin_local_var_TYPES.LENGTH || type === margin_local_var_TYPES.PERCENT || type === margin_local_var_TYPES.INTEGER && (v === '0' || v === 0);
-};
+"use strict";
-var margin_local_var_parser = function (v) {
- var V = v.toLowerCase();
- if (V === 'auto') {
- return V;
- }
- return external_dependency_parsers_0.parseMeasurement(v);
-};
+function isNothing(subject) {
+ return (typeof subject === 'undefined') || (subject === null);
+}
-var margin_local_var_mySetter = external_dependency_parsers_0.implicitSetter('margin', '', margin_local_var_isValid, margin_local_var_parser);
-var margin_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('margin', '', function () {
- return true;
-}, function (v) {
- return v;
-});
-margin_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
- if (typeof v !== 'string') {
- return;
- }
+function isObject(subject) {
+ return (typeof subject === 'object') && (subject !== null);
+}
- var V = v.toLowerCase();
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- margin_local_var_myGlobal.call(this, V);
- break;
+function toArray(sequence) {
+ if (Array.isArray(sequence)) return sequence;
+ else if (isNothing(sequence)) return [];
- default:
- margin_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('margin');
- },
- enumerable: true,
- configurable: true
-};
-margin_export_isValid = margin_local_var_isValid;
-margin_export_parser = margin_local_var_parser;
-var marginBottom_export_definition;
-marginBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'bottom', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-bottom');
- },
- enumerable: true,
- configurable: true
-};
-var marginLeft_export_definition;
-marginLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'left', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-left');
- },
- enumerable: true,
- configurable: true
-};
-var marginRight_export_definition;
-marginRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'right', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-right');
- },
- enumerable: true,
- configurable: true
-};
-var marginTop_export_definition;
-marginTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'top', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-top');
- },
- enumerable: true,
- configurable: true
-};
-var opacity_export_definition;
-opacity_export_definition = {
- set: function (v) {
- this._setProperty('opacity', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('opacity');
- },
- enumerable: true,
- configurable: true
-};
-var outlineColor_export_definition;
-outlineColor_export_definition = {
- set: function (v) {
- this._setProperty('outline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('outline-color');
- },
- enumerable: true,
- configurable: true
-};
-var padding_export_definition, padding_export_isValid, padding_export_parser;
-var padding_local_var_TYPES = external_dependency_parsers_0.TYPES;
+ return [ sequence ];
+}
-var padding_local_var_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === padding_local_var_TYPES.LENGTH || type === padding_local_var_TYPES.PERCENT || type === padding_local_var_TYPES.INTEGER && (v === '0' || v === 0);
-};
-var padding_local_var_parser = function (v) {
- return external_dependency_parsers_0.parseMeasurement(v);
-};
+function extend(target, source) {
+ var index, length, key, sourceKeys;
-var padding_local_var_mySetter = external_dependency_parsers_0.implicitSetter('padding', '', padding_local_var_isValid, padding_local_var_parser);
-var padding_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('padding', '', function () {
- return true;
-}, function (v) {
- return v;
-});
-padding_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
+ if (source) {
+ sourceKeys = Object.keys(source);
- if (typeof v !== 'string') {
- return;
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
+ key = sourceKeys[index];
+ target[key] = source[key];
}
+ }
- var V = v.toLowerCase();
+ return target;
+}
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- padding_local_var_myGlobal.call(this, V);
- break;
- default:
- padding_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('padding');
- },
- enumerable: true,
- configurable: true
-};
-padding_export_isValid = padding_local_var_isValid;
-padding_export_parser = padding_local_var_parser;
-var paddingBottom_export_definition;
-paddingBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'bottom', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-bottom');
- },
- enumerable: true,
- configurable: true
-};
-var paddingLeft_export_definition;
-paddingLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'left', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-left');
- },
- enumerable: true,
- configurable: true
-};
-var paddingRight_export_definition;
-paddingRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'right', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-right');
- },
- enumerable: true,
- configurable: true
-};
-var paddingTop_export_definition;
-paddingTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'top', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-top');
- },
- enumerable: true,
- configurable: true
-};
-var right_export_definition;
-right_export_definition = {
- set: function (v) {
- this._setProperty('right', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('right');
- },
- enumerable: true,
- configurable: true
-};
-var stopColor_export_definition;
-stopColor_export_definition = {
- set: function (v) {
- this._setProperty('stop-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('stop-color');
- },
- enumerable: true,
- configurable: true
-};
-var textLineThroughColor_export_definition;
-textLineThroughColor_export_definition = {
- set: function (v) {
- this._setProperty('text-line-through-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-line-through-color');
- },
- enumerable: true,
- configurable: true
-};
-var textOverlineColor_export_definition;
-textOverlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-overline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-overline-color');
- },
- enumerable: true,
- configurable: true
-};
-var textUnderlineColor_export_definition;
-textUnderlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-underline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-underline-color');
- },
- enumerable: true,
- configurable: true
-};
-var top_export_definition;
-top_export_definition = {
- set: function (v) {
- this._setProperty('top', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('top');
- },
- enumerable: true,
- configurable: true
-};
-var webkitBorderAfterColor_export_definition;
-webkitBorderAfterColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-after-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-after-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitBorderBeforeColor_export_definition;
-webkitBorderBeforeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-before-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-before-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitBorderEndColor_export_definition;
-webkitBorderEndColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-end-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-end-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitBorderStartColor_export_definition;
-webkitBorderStartColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-start-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-start-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitColumnRuleColor_export_definition;
-webkitColumnRuleColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-column-rule-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-column-rule-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitMatchNearestMailBlockquoteColor_export_definition;
-webkitMatchNearestMailBlockquoteColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-match-nearest-mail-blockquote-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-match-nearest-mail-blockquote-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitTapHighlightColor_export_definition;
-webkitTapHighlightColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-tap-highlight-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-tap-highlight-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitTextEmphasisColor_export_definition;
-webkitTextEmphasisColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-emphasis-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-emphasis-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitTextFillColor_export_definition;
-webkitTextFillColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-fill-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-fill-color');
- },
- enumerable: true,
- configurable: true
-};
-var webkitTextStrokeColor_export_definition;
-webkitTextStrokeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-stroke-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-stroke-color');
- },
- enumerable: true,
- configurable: true
-};
-var width_export_definition;
+function repeat(string, count) {
+ var result = '', cycle;
-function width_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
+ for (cycle = 0; cycle < count; cycle += 1) {
+ result += string;
}
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
+ return result;
+}
+
- return external_dependency_parsers_0.parseMeasurement(v);
+function isNegativeZero(number) {
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
}
-width_export_definition = {
- set: function (v) {
- this._setProperty('width', width_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('width');
- },
- enumerable: true,
- configurable: true
-};
-module.exports = function (prototype) {
- Object.defineProperties(prototype, {
- azimuth: azimuth_export_definition,
- backgroundColor: backgroundColor_export_definition,
- "background-color": backgroundColor_export_definition,
- backgroundImage: backgroundImage_export_definition,
- "background-image": backgroundImage_export_definition,
- backgroundRepeat: backgroundRepeat_export_definition,
- "background-repeat": backgroundRepeat_export_definition,
- backgroundAttachment: backgroundAttachment_export_definition,
- "background-attachment": backgroundAttachment_export_definition,
- backgroundPosition: backgroundPosition_export_definition,
- "background-position": backgroundPosition_export_definition,
- background: background_export_definition,
- borderWidth: borderWidth_export_definition,
- "border-width": borderWidth_export_definition,
- borderStyle: borderStyle_export_definition,
- "border-style": borderStyle_export_definition,
- borderColor: borderColor_export_definition,
- "border-color": borderColor_export_definition,
- border: border_export_definition,
- borderBottomWidth: borderBottomWidth_export_definition,
- "border-bottom-width": borderBottomWidth_export_definition,
- borderBottomStyle: borderBottomStyle_export_definition,
- "border-bottom-style": borderBottomStyle_export_definition,
- borderBottomColor: borderBottomColor_export_definition,
- "border-bottom-color": borderBottomColor_export_definition,
- borderBottom: borderBottom_export_definition,
- "border-bottom": borderBottom_export_definition,
- borderCollapse: borderCollapse_export_definition,
- "border-collapse": borderCollapse_export_definition,
- borderLeftWidth: borderLeftWidth_export_definition,
- "border-left-width": borderLeftWidth_export_definition,
- borderLeftStyle: borderLeftStyle_export_definition,
- "border-left-style": borderLeftStyle_export_definition,
- borderLeftColor: borderLeftColor_export_definition,
- "border-left-color": borderLeftColor_export_definition,
- borderLeft: borderLeft_export_definition,
- "border-left": borderLeft_export_definition,
- borderRightWidth: borderRightWidth_export_definition,
- "border-right-width": borderRightWidth_export_definition,
- borderRightStyle: borderRightStyle_export_definition,
- "border-right-style": borderRightStyle_export_definition,
- borderRightColor: borderRightColor_export_definition,
- "border-right-color": borderRightColor_export_definition,
- borderRight: borderRight_export_definition,
- "border-right": borderRight_export_definition,
- borderSpacing: borderSpacing_export_definition,
- "border-spacing": borderSpacing_export_definition,
- borderTopWidth: borderTopWidth_export_definition,
- "border-top-width": borderTopWidth_export_definition,
- borderTopStyle: borderTopStyle_export_definition,
- "border-top-style": borderTopStyle_export_definition,
- borderTopColor: borderTopColor_export_definition,
- "border-top-color": borderTopColor_export_definition,
- borderTop: borderTop_export_definition,
- "border-top": borderTop_export_definition,
- bottom: bottom_export_definition,
- clear: clear_export_definition,
- clip: clip_export_definition,
- color: color_export_definition,
- cssFloat: cssFloat_export_definition,
- "css-float": cssFloat_export_definition,
- flexGrow: flexGrow_export_definition,
- "flex-grow": flexGrow_export_definition,
- flexShrink: flexShrink_export_definition,
- "flex-shrink": flexShrink_export_definition,
- flexBasis: flexBasis_export_definition,
- "flex-basis": flexBasis_export_definition,
- flex: flex_export_definition,
- float: float_export_definition,
- floodColor: floodColor_export_definition,
- "flood-color": floodColor_export_definition,
- fontFamily: fontFamily_export_definition,
- "font-family": fontFamily_export_definition,
- fontSize: fontSize_export_definition,
- "font-size": fontSize_export_definition,
- fontStyle: fontStyle_export_definition,
- "font-style": fontStyle_export_definition,
- fontVariant: fontVariant_export_definition,
- "font-variant": fontVariant_export_definition,
- fontWeight: fontWeight_export_definition,
- "font-weight": fontWeight_export_definition,
- lineHeight: lineHeight_export_definition,
- "line-height": lineHeight_export_definition,
- font: font_export_definition,
- height: height_export_definition,
- left: left_export_definition,
- lightingColor: lightingColor_export_definition,
- "lighting-color": lightingColor_export_definition,
- margin: margin_export_definition,
- marginBottom: marginBottom_export_definition,
- "margin-bottom": marginBottom_export_definition,
- marginLeft: marginLeft_export_definition,
- "margin-left": marginLeft_export_definition,
- marginRight: marginRight_export_definition,
- "margin-right": marginRight_export_definition,
- marginTop: marginTop_export_definition,
- "margin-top": marginTop_export_definition,
- opacity: opacity_export_definition,
- outlineColor: outlineColor_export_definition,
- "outline-color": outlineColor_export_definition,
- padding: padding_export_definition,
- paddingBottom: paddingBottom_export_definition,
- "padding-bottom": paddingBottom_export_definition,
- paddingLeft: paddingLeft_export_definition,
- "padding-left": paddingLeft_export_definition,
- paddingRight: paddingRight_export_definition,
- "padding-right": paddingRight_export_definition,
- paddingTop: paddingTop_export_definition,
- "padding-top": paddingTop_export_definition,
- right: right_export_definition,
- stopColor: stopColor_export_definition,
- "stop-color": stopColor_export_definition,
- textLineThroughColor: textLineThroughColor_export_definition,
- "text-line-through-color": textLineThroughColor_export_definition,
- textOverlineColor: textOverlineColor_export_definition,
- "text-overline-color": textOverlineColor_export_definition,
- textUnderlineColor: textUnderlineColor_export_definition,
- "text-underline-color": textUnderlineColor_export_definition,
- top: top_export_definition,
- webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
- "webkit-border-after-color": webkitBorderAfterColor_export_definition,
- webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
- "webkit-border-before-color": webkitBorderBeforeColor_export_definition,
- webkitBorderEndColor: webkitBorderEndColor_export_definition,
- "webkit-border-end-color": webkitBorderEndColor_export_definition,
- webkitBorderStartColor: webkitBorderStartColor_export_definition,
- "webkit-border-start-color": webkitBorderStartColor_export_definition,
- webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
- "webkit-column-rule-color": webkitColumnRuleColor_export_definition,
- webkitMatchNearestMailBlockquoteColor: webkitMatchNearestMailBlockquoteColor_export_definition,
- "webkit-match-nearest-mail-blockquote-color": webkitMatchNearestMailBlockquoteColor_export_definition,
- webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
- "webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
- webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
- "webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
- webkitTextFillColor: webkitTextFillColor_export_definition,
- "webkit-text-fill-color": webkitTextFillColor_export_definition,
- webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
- "webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
- width: width_export_definition
- });
-};
+module.exports.isNothing = isNothing;
+module.exports.isObject = isObject;
+module.exports.toArray = toArray;
+module.exports.repeat = repeat;
+module.exports.isNegativeZero = isNegativeZero;
+module.exports.extend = extend;
/***/ }),
-/***/ 90515:
-/***/ ((__unused_webpack_module, exports) => {
+/***/ 8866:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
-const hueToRgb = (t1, t2, hue) => {
- if (hue < 0) hue += 6;
- if (hue >= 6) hue -= 6;
-
- if (hue < 1) return (t2 - t1) * hue + t1;
- else if (hue < 3) return t2;
- else if (hue < 4) return (t2 - t1) * (4 - hue) + t1;
- else return t1;
-};
-
-// https://www.w3.org/TR/css-color-4/#hsl-to-rgb
-exports.hslToRgb = (hue, sat, light) => {
- const t2 = light <= 0.5 ? light * (sat + 1) : light + sat - light * sat;
- const t1 = light * 2 - t2;
- const r = hueToRgb(t1, t2, hue + 2);
- const g = hueToRgb(t1, t2, hue);
- const b = hueToRgb(t1, t2, hue - 2);
- return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];
-};
-
+/*eslint-disable no-use-before-define*/
-/***/ }),
+var common = __nccwpck_require__(6829);
+var YAMLException = __nccwpck_require__(8179);
+var DEFAULT_SCHEMA = __nccwpck_require__(8759);
-/***/ 95721:
-/***/ ((module) => {
+var _toString = Object.prototype.toString;
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
-"use strict";
+var CHAR_BOM = 0xFEFF;
+var CHAR_TAB = 0x09; /* Tab */
+var CHAR_LINE_FEED = 0x0A; /* LF */
+var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
+var CHAR_SPACE = 0x20; /* Space */
+var CHAR_EXCLAMATION = 0x21; /* ! */
+var CHAR_DOUBLE_QUOTE = 0x22; /* " */
+var CHAR_SHARP = 0x23; /* # */
+var CHAR_PERCENT = 0x25; /* % */
+var CHAR_AMPERSAND = 0x26; /* & */
+var CHAR_SINGLE_QUOTE = 0x27; /* ' */
+var CHAR_ASTERISK = 0x2A; /* * */
+var CHAR_COMMA = 0x2C; /* , */
+var CHAR_MINUS = 0x2D; /* - */
+var CHAR_COLON = 0x3A; /* : */
+var CHAR_EQUALS = 0x3D; /* = */
+var CHAR_GREATER_THAN = 0x3E; /* > */
+var CHAR_QUESTION = 0x3F; /* ? */
+var CHAR_COMMERCIAL_AT = 0x40; /* @ */
+var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
+var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
+var CHAR_GRAVE_ACCENT = 0x60; /* ` */
+var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
+var CHAR_VERTICAL_LINE = 0x7C; /* | */
+var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
+var ESCAPE_SEQUENCES = {};
-module.exports = function getBasicPropertyDescriptor(name) {
- return {
- set: function (v) {
- this._setProperty(name, v);
- },
- get: function () {
- return this.getPropertyValue(name);
- },
- enumerable: true,
- configurable: true,
- };
-};
+ESCAPE_SEQUENCES[0x00] = '\\0';
+ESCAPE_SEQUENCES[0x07] = '\\a';
+ESCAPE_SEQUENCES[0x08] = '\\b';
+ESCAPE_SEQUENCES[0x09] = '\\t';
+ESCAPE_SEQUENCES[0x0A] = '\\n';
+ESCAPE_SEQUENCES[0x0B] = '\\v';
+ESCAPE_SEQUENCES[0x0C] = '\\f';
+ESCAPE_SEQUENCES[0x0D] = '\\r';
+ESCAPE_SEQUENCES[0x1B] = '\\e';
+ESCAPE_SEQUENCES[0x22] = '\\"';
+ESCAPE_SEQUENCES[0x5C] = '\\\\';
+ESCAPE_SEQUENCES[0x85] = '\\N';
+ESCAPE_SEQUENCES[0xA0] = '\\_';
+ESCAPE_SEQUENCES[0x2028] = '\\L';
+ESCAPE_SEQUENCES[0x2029] = '\\P';
+var DEPRECATED_BOOLEANS_SYNTAX = [
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
+];
-/***/ }),
+var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
-/***/ 18326:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+function compileStyleMap(schema, map) {
+ var result, keys, index, length, tag, style, type;
-"use strict";
+ if (map === null) return {};
-const MIMEType = __nccwpck_require__(59488);
-const { parseURL, serializeURL, percentDecodeString } = __nccwpck_require__(66365);
-const { stripLeadingAndTrailingASCIIWhitespace, isomorphicDecode, forgivingBase64Decode } = __nccwpck_require__(5505);
+ result = {};
+ keys = Object.keys(map);
-module.exports = stringInput => {
- const urlRecord = parseURL(stringInput);
+ for (index = 0, length = keys.length; index < length; index += 1) {
+ tag = keys[index];
+ style = String(map[tag]);
- if (urlRecord === null) {
- return null;
- }
+ if (tag.slice(0, 2) === '!!') {
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
+ }
+ type = schema.compiledTypeMap['fallback'][tag];
- return module.exports.fromURLRecord(urlRecord);
-};
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
+ style = type.styleAliases[style];
+ }
-module.exports.fromURLRecord = urlRecord => {
- if (urlRecord.scheme !== "data") {
- return null;
+ result[tag] = style;
}
- const input = serializeURL(urlRecord, true).substring("data:".length);
+ return result;
+}
- let position = 0;
+function encodeHex(character) {
+ var string, handle, length;
- let mimeType = "";
- while (position < input.length && input[position] !== ",") {
- mimeType += input[position];
- ++position;
- }
- mimeType = stripLeadingAndTrailingASCIIWhitespace(mimeType);
+ string = character.toString(16).toUpperCase();
- if (position === input.length) {
- return null;
+ if (character <= 0xFF) {
+ handle = 'x';
+ length = 2;
+ } else if (character <= 0xFFFF) {
+ handle = 'u';
+ length = 4;
+ } else if (character <= 0xFFFFFFFF) {
+ handle = 'U';
+ length = 8;
+ } else {
+ throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
}
- ++position;
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
+}
- const encodedBody = input.substring(position);
- let body = percentDecodeString(encodedBody);
+var QUOTING_TYPE_SINGLE = 1,
+ QUOTING_TYPE_DOUBLE = 2;
- // Can't use /i regexp flag because it isn't restricted to ASCII.
- const mimeTypeBase64MatchResult = /(.*); *[Bb][Aa][Ss][Ee]64$/u.exec(mimeType);
- if (mimeTypeBase64MatchResult) {
- const stringBody = isomorphicDecode(body);
- body = forgivingBase64Decode(stringBody);
+function State(options) {
+ this.schema = options['schema'] || DEFAULT_SCHEMA;
+ this.indent = Math.max(1, (options['indent'] || 2));
+ this.noArrayIndent = options['noArrayIndent'] || false;
+ this.skipInvalid = options['skipInvalid'] || false;
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
+ this.sortKeys = options['sortKeys'] || false;
+ this.lineWidth = options['lineWidth'] || 80;
+ this.noRefs = options['noRefs'] || false;
+ this.noCompatMode = options['noCompatMode'] || false;
+ this.condenseFlow = options['condenseFlow'] || false;
+ this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
+ this.forceQuotes = options['forceQuotes'] || false;
+ this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
- if (body === null) {
- return null;
- }
- mimeType = mimeTypeBase64MatchResult[1];
- }
+ this.implicitTypes = this.schema.compiledImplicit;
+ this.explicitTypes = this.schema.compiledExplicit;
- if (mimeType.startsWith(";")) {
- mimeType = `text/plain${mimeType}`;
- }
+ this.tag = null;
+ this.result = '';
- let mimeTypeRecord;
- try {
- mimeTypeRecord = new MIMEType(mimeType);
- } catch (e) {
- mimeTypeRecord = new MIMEType("text/plain;charset=US-ASCII");
- }
+ this.duplicates = [];
+ this.usedDuplicates = null;
+}
- return {
- mimeType: mimeTypeRecord,
- body
- };
-};
+// Indents every line in a string. Empty lines (\n only) are not indented.
+function indentString(string, spaces) {
+ var ind = common.repeat(' ', spaces),
+ position = 0,
+ next = -1,
+ result = '',
+ line,
+ length = string.length;
+ while (position < length) {
+ next = string.indexOf('\n', position);
+ if (next === -1) {
+ line = string.slice(position);
+ position = length;
+ } else {
+ line = string.slice(position, next + 1);
+ position = next + 1;
+ }
-/***/ }),
+ if (line.length && line !== '\n') result += ind;
-/***/ 5505:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+ result += line;
+ }
-"use strict";
+ return result;
+}
-const { atob } = __nccwpck_require__(75696);
+function generateNextLine(state, level) {
+ return '\n' + common.repeat(' ', state.indent * level);
+}
-exports.stripLeadingAndTrailingASCIIWhitespace = string => {
- return string.replace(/^[ \t\n\f\r]+/u, "").replace(/[ \t\n\f\r]+$/u, "");
-};
+function testImplicitResolving(state, str) {
+ var index, length, type;
-exports.isomorphicDecode = input => {
- return Array.from(input, byte => String.fromCodePoint(byte)).join("");
-};
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
+ type = state.implicitTypes[index];
-exports.forgivingBase64Decode = data => {
- const asString = atob(data);
- if (asString === null) {
- return null;
+ if (type.resolve(str)) {
+ return true;
+ }
}
- return Uint8Array.from(asString, c => c.codePointAt(0));
-};
-
-/***/ }),
+ return false;
+}
-/***/ 28222:
-/***/ ((module, exports, __nccwpck_require__) => {
+// [33] s-white ::= s-space | s-tab
+function isWhitespace(c) {
+ return c === CHAR_SPACE || c === CHAR_TAB;
+}
-/* eslint-env browser */
+// Returns true if the character can be printed without escaping.
+// From YAML 1.2: "any allowed characters known to be non-printable
+// should also be escaped. [However,] This isn’t mandatory"
+// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
+function isPrintable(c) {
+ return (0x00020 <= c && c <= 0x00007E)
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
+ || (0x10000 <= c && c <= 0x10FFFF);
+}
-/**
- * This is the web browser implementation of `debug()`.
- */
+// [34] ns-char ::= nb-char - s-white
+// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
+// [26] b-char ::= b-line-feed | b-carriage-return
+// Including s-white (for some reason, examples doesn't match specs in this aspect)
+// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
+function isNsCharOrWhitespace(c) {
+ return isPrintable(c)
+ && c !== CHAR_BOM
+ // - b-char
+ && c !== CHAR_CARRIAGE_RETURN
+ && c !== CHAR_LINE_FEED;
+}
-exports.formatArgs = formatArgs;
-exports.save = save;
-exports.load = load;
-exports.useColors = useColors;
-exports.storage = localstorage();
-exports.destroy = (() => {
- let warned = false;
-
- return () => {
- if (!warned) {
- warned = true;
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
- }
- };
-})();
-
-/**
- * Colors.
- */
-
-exports.colors = [
- '#0000CC',
- '#0000FF',
- '#0033CC',
- '#0033FF',
- '#0066CC',
- '#0066FF',
- '#0099CC',
- '#0099FF',
- '#00CC00',
- '#00CC33',
- '#00CC66',
- '#00CC99',
- '#00CCCC',
- '#00CCFF',
- '#3300CC',
- '#3300FF',
- '#3333CC',
- '#3333FF',
- '#3366CC',
- '#3366FF',
- '#3399CC',
- '#3399FF',
- '#33CC00',
- '#33CC33',
- '#33CC66',
- '#33CC99',
- '#33CCCC',
- '#33CCFF',
- '#6600CC',
- '#6600FF',
- '#6633CC',
- '#6633FF',
- '#66CC00',
- '#66CC33',
- '#9900CC',
- '#9900FF',
- '#9933CC',
- '#9933FF',
- '#99CC00',
- '#99CC33',
- '#CC0000',
- '#CC0033',
- '#CC0066',
- '#CC0099',
- '#CC00CC',
- '#CC00FF',
- '#CC3300',
- '#CC3333',
- '#CC3366',
- '#CC3399',
- '#CC33CC',
- '#CC33FF',
- '#CC6600',
- '#CC6633',
- '#CC9900',
- '#CC9933',
- '#CCCC00',
- '#CCCC33',
- '#FF0000',
- '#FF0033',
- '#FF0066',
- '#FF0099',
- '#FF00CC',
- '#FF00FF',
- '#FF3300',
- '#FF3333',
- '#FF3366',
- '#FF3399',
- '#FF33CC',
- '#FF33FF',
- '#FF6600',
- '#FF6633',
- '#FF9900',
- '#FF9933',
- '#FFCC00',
- '#FFCC33'
-];
-
-/**
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
- * and the Firebug extension (any Firefox version) are known
- * to support "%c" CSS customizations.
- *
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
- */
-
-// eslint-disable-next-line complexity
-function useColors() {
- // NB: In an Electron preload script, document will be defined but not fully
- // initialized. Since we know we're in Chrome, we'll just detect this case
- // explicitly
- if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
- return true;
- }
-
- // Internet Explorer and Edge do not support colors.
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
- return false;
- }
-
- // Is webkit? http://stackoverflow.com/a/16459606/376773
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
- // Is firebug? http://stackoverflow.com/a/398120/376773
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
- // Is firefox >= v31?
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
- // Double check webkit in userAgent just in case we are in a worker
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
+// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
+// c = flow-in ⇒ ns-plain-safe-in
+// c = block-key ⇒ ns-plain-safe-out
+// c = flow-key ⇒ ns-plain-safe-in
+// [128] ns-plain-safe-out ::= ns-char
+// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
+// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
+// | ( /* An ns-char preceding */ “#” )
+// | ( “:” /* Followed by an ns-plain-safe(c) */ )
+function isPlainSafe(c, prev, inblock) {
+ var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
+ var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
+ return (
+ // ns-plain-safe
+ inblock ? // c = flow-in
+ cIsNsCharOrWhitespace
+ : cIsNsCharOrWhitespace
+ // - c-flow-indicator
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ )
+ // ns-plain-char
+ && c !== CHAR_SHARP // false on '#'
+ && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
+ || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
+ || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
}
-/**
- * Colorize log arguments if enabled.
- *
- * @api public
- */
-
-function formatArgs(args) {
- args[0] = (this.useColors ? '%c' : '') +
- this.namespace +
- (this.useColors ? ' %c' : ' ') +
- args[0] +
- (this.useColors ? '%c ' : ' ') +
- '+' + module.exports.humanize(this.diff);
-
- if (!this.useColors) {
- return;
- }
-
- const c = 'color: ' + this.color;
- args.splice(1, 0, c, 'color: inherit');
-
- // The final "%c" is somewhat tricky, because there could be other
- // arguments passed either before or after the %c, so we need to
- // figure out the correct index to insert the CSS into
- let index = 0;
- let lastC = 0;
- args[0].replace(/%[a-zA-Z%]/g, match => {
- if (match === '%%') {
- return;
- }
- index++;
- if (match === '%c') {
- // We only are interested in the *last* %c
- // (the user may have provided their own)
- lastC = index;
- }
- });
-
- args.splice(lastC, 0, c);
+// Simplified test for values allowed as the first character in plain style.
+function isPlainSafeFirst(c) {
+ // Uses a subset of ns-char - c-indicator
+ // where ns-char = nb-char - s-white.
+ // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
+ return isPrintable(c) && c !== CHAR_BOM
+ && !isWhitespace(c) // - s-white
+ // - (c-indicator ::=
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
+ && c !== CHAR_MINUS
+ && c !== CHAR_QUESTION
+ && c !== CHAR_COLON
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
+ && c !== CHAR_SHARP
+ && c !== CHAR_AMPERSAND
+ && c !== CHAR_ASTERISK
+ && c !== CHAR_EXCLAMATION
+ && c !== CHAR_VERTICAL_LINE
+ && c !== CHAR_EQUALS
+ && c !== CHAR_GREATER_THAN
+ && c !== CHAR_SINGLE_QUOTE
+ && c !== CHAR_DOUBLE_QUOTE
+ // | “%” | “@” | “`”)
+ && c !== CHAR_PERCENT
+ && c !== CHAR_COMMERCIAL_AT
+ && c !== CHAR_GRAVE_ACCENT;
}
-/**
- * Invokes `console.debug()` when available.
- * No-op when `console.debug` is not a "function".
- * If `console.debug` is not available, falls back
- * to `console.log`.
- *
- * @api public
- */
-exports.log = console.debug || console.log || (() => {});
+// Simplified test for values allowed as the last character in plain style.
+function isPlainSafeLast(c) {
+ // just not whitespace or colon, it will be checked to be plain character later
+ return !isWhitespace(c) && c !== CHAR_COLON;
+}
-/**
- * Save `namespaces`.
- *
- * @param {String} namespaces
- * @api private
- */
-function save(namespaces) {
- try {
- if (namespaces) {
- exports.storage.setItem('debug', namespaces);
- } else {
- exports.storage.removeItem('debug');
- }
- } catch (error) {
- // Swallow
- // XXX (@Qix-) should we be logging these?
- }
+// Same as 'string'.codePointAt(pos), but works in older browsers.
+function codePointAt(string, pos) {
+ var first = string.charCodeAt(pos), second;
+ if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
+ second = string.charCodeAt(pos + 1);
+ if (second >= 0xDC00 && second <= 0xDFFF) {
+ // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
+ }
+ }
+ return first;
}
-/**
- * Load `namespaces`.
- *
- * @return {String} returns the previously persisted debug modes
- * @api private
- */
-function load() {
- let r;
- try {
- r = exports.storage.getItem('debug');
- } catch (error) {
- // Swallow
- // XXX (@Qix-) should we be logging these?
- }
+// Determines whether block indentation indicator is required.
+function needIndentIndicator(string) {
+ var leadingSpaceRe = /^\n* /;
+ return leadingSpaceRe.test(string);
+}
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
- if (!r && typeof process !== 'undefined' && 'env' in process) {
- r = process.env.DEBUG;
- }
+var STYLE_PLAIN = 1,
+ STYLE_SINGLE = 2,
+ STYLE_LITERAL = 3,
+ STYLE_FOLDED = 4,
+ STYLE_DOUBLE = 5;
- return r;
-}
+// Determines which scalar styles are possible and returns the preferred style.
+// lineWidth = -1 => no limit.
+// Pre-conditions: str.length > 0.
+// Post-conditions:
+// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
+// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
+// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
+function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
+ testAmbiguousType, quotingType, forceQuotes, inblock) {
-/**
- * Localstorage attempts to return the localstorage.
- *
- * This is necessary because safari throws
- * when a user disables cookies/localstorage
- * and you attempt to access it.
- *
- * @return {LocalStorage}
- * @api private
- */
+ var i;
+ var char = 0;
+ var prevChar = null;
+ var hasLineBreak = false;
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
+ var shouldTrackWidth = lineWidth !== -1;
+ var previousLineBreak = -1; // count the first line correctly
+ var plain = isPlainSafeFirst(codePointAt(string, 0))
+ && isPlainSafeLast(codePointAt(string, string.length - 1));
-function localstorage() {
- try {
- // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
- // The Browser also has localStorage in the global context.
- return localStorage;
- } catch (error) {
- // Swallow
- // XXX (@Qix-) should we be logging these?
- }
+ if (singleLineOnly || forceQuotes) {
+ // Case: no block styles.
+ // Check for disallowed characters to rule out plain and single.
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i);
+ if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ plain = plain && isPlainSafe(char, prevChar, inblock);
+ prevChar = char;
+ }
+ } else {
+ // Case: block styles permitted.
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i);
+ if (char === CHAR_LINE_FEED) {
+ hasLineBreak = true;
+ // Check if any line can be folded.
+ if (shouldTrackWidth) {
+ hasFoldableLine = hasFoldableLine ||
+ // Foldable line = too long, and not more-indented.
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' ');
+ previousLineBreak = i;
+ }
+ } else if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ plain = plain && isPlainSafe(char, prevChar, inblock);
+ prevChar = char;
+ }
+ // in case the end is missing a \n
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' '));
+ }
+ // Although every style can represent \n without escaping, prefer block styles
+ // for multiline, since they're more readable and they don't add empty lines.
+ // Also prefer folding a super-long line.
+ if (!hasLineBreak && !hasFoldableLine) {
+ // Strings interpretable as another type have to be quoted;
+ // e.g. the string 'true' vs. the boolean true.
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
+ return STYLE_PLAIN;
+ }
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
+ }
+ // Edge case: block indentation indicator can only have one digit.
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
+ return STYLE_DOUBLE;
+ }
+ // At this point we know block styles are valid.
+ // Prefer literal style unless we want to fold.
+ if (!forceQuotes) {
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
+ }
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
}
-module.exports = __nccwpck_require__(46243)(exports);
+// Note: line breaking/folding is implemented for only the folded style.
+// NB. We drop the last trailing newline (if any) of a returned block scalar
+// since the dumper adds its own newline. This always works:
+// • No ending newline => unaffected; already using strip "-" chomping.
+// • Ending newline => removed then restored.
+// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
+function writeScalar(state, string, level, iskey, inblock) {
+ state.dump = (function () {
+ if (string.length === 0) {
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
+ }
+ if (!state.noCompatMode) {
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
+ }
+ }
-const {formatters} = module.exports;
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
+ // As indentation gets deeper, let the width decrease monotonically
+ // to the lower bound min(state.lineWidth, 40).
+ // Note that this implies
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
+ // This behaves better than a constant minimum width which disallows narrower options,
+ // or an indent threshold which causes the width to suddenly increase.
+ var lineWidth = state.lineWidth === -1
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
-/**
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
- */
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
+ var singleLineOnly = iskey
+ // No block styles in flow mode.
+ || (state.flowLevel > -1 && level >= state.flowLevel);
+ function testAmbiguity(string) {
+ return testImplicitResolving(state, string);
+ }
-formatters.j = function (v) {
- try {
- return JSON.stringify(v);
- } catch (error) {
- return '[UnexpectedJSONParseError]: ' + error.message;
- }
-};
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
+ testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
+ case STYLE_PLAIN:
+ return string;
+ case STYLE_SINGLE:
+ return "'" + string.replace(/'/g, "''") + "'";
+ case STYLE_LITERAL:
+ return '|' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(string, indent));
+ case STYLE_FOLDED:
+ return '>' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
+ case STYLE_DOUBLE:
+ return '"' + escapeString(string, lineWidth) + '"';
+ default:
+ throw new YAMLException('impossible error: invalid scalar style');
+ }
+ }());
+}
-/***/ }),
+// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
+function blockHeader(string, indentPerLevel) {
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
-/***/ 46243:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ // note the special case: the string '\n' counts as a "trailing" empty line.
+ var clip = string[string.length - 1] === '\n';
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
+ var chomp = keep ? '+' : (clip ? '' : '-');
+ return indentIndicator + chomp + '\n';
+}
-/**
- * This is the common logic for both the Node.js and web browser
- * implementations of `debug()`.
- */
+// (See the note for writeScalar.)
+function dropEndingNewline(string) {
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
+}
-function setup(env) {
- createDebug.debug = createDebug;
- createDebug.default = createDebug;
- createDebug.coerce = coerce;
- createDebug.disable = disable;
- createDebug.enable = enable;
- createDebug.enabled = enabled;
- createDebug.humanize = __nccwpck_require__(80900);
- createDebug.destroy = destroy;
+// Note: a long line without a suitable break point will exceed the width limit.
+// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
+function foldString(string, width) {
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
+ // unless they're before or after a more-indented line, or at the very
+ // beginning or end, in which case $k$ maps to $k$.
+ // Therefore, parse each chunk as newline(s) followed by a content line.
+ var lineRe = /(\n+)([^\n]*)/g;
- Object.keys(env).forEach(key => {
- createDebug[key] = env[key];
- });
+ // first line (possibly an empty line)
+ var result = (function () {
+ var nextLF = string.indexOf('\n');
+ nextLF = nextLF !== -1 ? nextLF : string.length;
+ lineRe.lastIndex = nextLF;
+ return foldLine(string.slice(0, nextLF), width);
+ }());
+ // If we haven't reached the first content line yet, don't add an extra \n.
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
+ var moreIndented;
- /**
- * The currently active debug mode names, and names to skip.
- */
+ // rest of the lines
+ var match;
+ while ((match = lineRe.exec(string))) {
+ var prefix = match[1], line = match[2];
+ moreIndented = (line[0] === ' ');
+ result += prefix
+ + (!prevMoreIndented && !moreIndented && line !== ''
+ ? '\n' : '')
+ + foldLine(line, width);
+ prevMoreIndented = moreIndented;
+ }
- createDebug.names = [];
- createDebug.skips = [];
+ return result;
+}
- /**
- * Map of special "%n" handling functions, for the debug "format" argument.
- *
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
- */
- createDebug.formatters = {};
+// Greedy line breaking.
+// Picks the longest line under the limit each time,
+// otherwise settles for the shortest line over the limit.
+// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
+function foldLine(line, width) {
+ if (line === '' || line[0] === ' ') return line;
- /**
- * Selects a color for a debug namespace
- * @param {String} namespace The namespace string for the debug instance to be colored
- * @return {Number|String} An ANSI color code for the given namespace
- * @api private
- */
- function selectColor(namespace) {
- let hash = 0;
-
- for (let i = 0; i < namespace.length; i++) {
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
- hash |= 0; // Convert to 32bit integer
- }
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
+ var match;
+ // start is an inclusive index. end, curr, and next are exclusive.
+ var start = 0, end, curr = 0, next = 0;
+ var result = '';
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
- }
- createDebug.selectColor = selectColor;
+ // Invariants: 0 <= start <= length-1.
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
+ // Inside the loop:
+ // A match implies length >= 2, so curr and next are <= length-2.
+ while ((match = breakRe.exec(line))) {
+ next = match.index;
+ // maintain invariant: curr - start <= width
+ if (next - start > width) {
+ end = (curr > start) ? curr : next; // derive end <= length-2
+ result += '\n' + line.slice(start, end);
+ // skip the space that was output as \n
+ start = end + 1; // derive start <= length-1
+ }
+ curr = next;
+ }
- /**
- * Create a debugger with the given `namespace`.
- *
- * @param {String} namespace
- * @return {Function}
- * @api public
- */
- function createDebug(namespace) {
- let prevTime;
- let enableOverride = null;
- let namespacesCache;
- let enabledCache;
-
- function debug(...args) {
- // Disabled?
- if (!debug.enabled) {
- return;
- }
+ // By the invariants, start <= length-1, so there is something left over.
+ // It is either the whole string or a part starting from non-whitespace.
+ result += '\n';
+ // Insert a break if the remainder is too long and there is a break available.
+ if (line.length - start > width && curr > start) {
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
+ } else {
+ result += line.slice(start);
+ }
- const self = debug;
+ return result.slice(1); // drop extra \n joiner
+}
- // Set `diff` timestamp
- const curr = Number(new Date());
- const ms = curr - (prevTime || curr);
- self.diff = ms;
- self.prev = prevTime;
- self.curr = curr;
- prevTime = curr;
+// Escapes a double-quoted string.
+function escapeString(string) {
+ var result = '';
+ var char = 0;
+ var escapeSeq;
- args[0] = createDebug.coerce(args[0]);
+ for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i);
+ escapeSeq = ESCAPE_SEQUENCES[char];
- if (typeof args[0] !== 'string') {
- // Anything else let's inspect with %O
- args.unshift('%O');
- }
+ if (!escapeSeq && isPrintable(char)) {
+ result += string[i];
+ if (char >= 0x10000) result += string[i + 1];
+ } else {
+ result += escapeSeq || encodeHex(char);
+ }
+ }
- // Apply any `formatters` transformations
- let index = 0;
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
- // If we encounter an escaped % then don't increase the array index
- if (match === '%%') {
- return '%';
- }
- index++;
- const formatter = createDebug.formatters[format];
- if (typeof formatter === 'function') {
- const val = args[index];
- match = formatter.call(self, val);
-
- // Now we need to remove `args[index]` since it's inlined in the `format`
- args.splice(index, 1);
- index--;
- }
- return match;
- });
+ return result;
+}
- // Apply env-specific formatting (colors, etc.)
- createDebug.formatArgs.call(self, args);
+function writeFlowSequence(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length,
+ value;
- const logFn = self.log || createDebug.log;
- logFn.apply(self, args);
- }
+ for (index = 0, length = object.length; index < length; index += 1) {
+ value = object[index];
- debug.namespace = namespace;
- debug.useColors = createDebug.useColors();
- debug.color = createDebug.selectColor(namespace);
- debug.extend = extend;
- debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
-
- Object.defineProperty(debug, 'enabled', {
- enumerable: true,
- configurable: false,
- get: () => {
- if (enableOverride !== null) {
- return enableOverride;
- }
- if (namespacesCache !== createDebug.namespaces) {
- namespacesCache = createDebug.namespaces;
- enabledCache = createDebug.enabled(namespace);
- }
+ if (state.replacer) {
+ value = state.replacer.call(object, String(index), value);
+ }
- return enabledCache;
- },
- set: v => {
- enableOverride = v;
- }
- });
+ // Write only valid elements, put null instead of invalid elements.
+ if (writeNode(state, level, value, false, false) ||
+ (typeof value === 'undefined' &&
+ writeNode(state, level, null, false, false))) {
- // Env-specific initialization logic for debug instances
- if (typeof createDebug.init === 'function') {
- createDebug.init(debug);
- }
+ if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
+ _result += state.dump;
+ }
+ }
- return debug;
- }
+ state.tag = _tag;
+ state.dump = '[' + _result + ']';
+}
- function extend(namespace, delimiter) {
- const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
- newDebug.log = this.log;
- return newDebug;
- }
+function writeBlockSequence(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length,
+ value;
- /**
- * Enables a debug mode by namespaces. This can include modes
- * separated by a colon and wildcards.
- *
- * @param {String} namespaces
- * @api public
- */
- function enable(namespaces) {
- createDebug.save(namespaces);
- createDebug.namespaces = namespaces;
-
- createDebug.names = [];
- createDebug.skips = [];
-
- let i;
- const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
- const len = split.length;
-
- for (i = 0; i < len; i++) {
- if (!split[i]) {
- // ignore empty strings
- continue;
- }
+ for (index = 0, length = object.length; index < length; index += 1) {
+ value = object[index];
- namespaces = split[i].replace(/\*/g, '.*?');
+ if (state.replacer) {
+ value = state.replacer.call(object, String(index), value);
+ }
- if (namespaces[0] === '-') {
- createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
- } else {
- createDebug.names.push(new RegExp('^' + namespaces + '$'));
- }
- }
- }
+ // Write only valid elements, put null instead of invalid elements.
+ if (writeNode(state, level + 1, value, true, true, false, true) ||
+ (typeof value === 'undefined' &&
+ writeNode(state, level + 1, null, true, true, false, true))) {
- /**
- * Disable debug output.
- *
- * @return {String} namespaces
- * @api public
- */
- function disable() {
- const namespaces = [
- ...createDebug.names.map(toNamespace),
- ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
- ].join(',');
- createDebug.enable('');
- return namespaces;
- }
+ if (!compact || _result !== '') {
+ _result += generateNextLine(state, level);
+ }
- /**
- * Returns true if the given mode name is enabled, false otherwise.
- *
- * @param {String} name
- * @return {Boolean}
- * @api public
- */
- function enabled(name) {
- if (name[name.length - 1] === '*') {
- return true;
- }
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ _result += '-';
+ } else {
+ _result += '- ';
+ }
- let i;
- let len;
+ _result += state.dump;
+ }
+ }
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
- if (createDebug.skips[i].test(name)) {
- return false;
- }
- }
+ state.tag = _tag;
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
+}
- for (i = 0, len = createDebug.names.length; i < len; i++) {
- if (createDebug.names[i].test(name)) {
- return true;
- }
- }
+function writeFlowMapping(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ pairBuffer;
- return false;
- }
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
- /**
- * Convert regexp to namespace
- *
- * @param {RegExp} regxep
- * @return {String} namespace
- * @api private
- */
- function toNamespace(regexp) {
- return regexp.toString()
- .substring(2, regexp.toString().length - 2)
- .replace(/\.\*\?$/, '*');
- }
+ pairBuffer = '';
+ if (_result !== '') pairBuffer += ', ';
- /**
- * Coerce `val`.
- *
- * @param {Mixed} val
- * @return {Mixed}
- * @api private
- */
- function coerce(val) {
- if (val instanceof Error) {
- return val.stack || val.message;
- }
- return val;
- }
+ if (state.condenseFlow) pairBuffer += '"';
- /**
- * XXX DO NOT USE. This is a temporary stub function.
- * XXX It WILL be removed in the next major release.
- */
- function destroy() {
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
- }
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
- createDebug.enable(createDebug.load());
+ if (state.replacer) {
+ objectValue = state.replacer.call(object, objectKey, objectValue);
+ }
- return createDebug;
-}
+ if (!writeNode(state, level, objectKey, false, false)) {
+ continue; // Skip this pair because of invalid key;
+ }
-module.exports = setup;
+ if (state.dump.length > 1024) pairBuffer += '? ';
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
-/***/ }),
+ if (!writeNode(state, level, objectValue, false, false)) {
+ continue; // Skip this pair because of invalid value.
+ }
-/***/ 38237:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
+ pairBuffer += state.dump;
-/**
- * Detect Electron renderer / nwjs process, which is node, but we should
- * treat as a browser.
- */
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
-if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
- module.exports = __nccwpck_require__(28222);
-} else {
- module.exports = __nccwpck_require__(35332);
+ state.tag = _tag;
+ state.dump = '{' + _result + '}';
}
+function writeBlockMapping(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ explicitPair,
+ pairBuffer;
-/***/ }),
-
-/***/ 35332:
-/***/ ((module, exports, __nccwpck_require__) => {
-
-/**
- * Module dependencies.
- */
+ // Allow sorting keys so that the output file is deterministic
+ if (state.sortKeys === true) {
+ // Default sorting
+ objectKeyList.sort();
+ } else if (typeof state.sortKeys === 'function') {
+ // Custom sort function
+ objectKeyList.sort(state.sortKeys);
+ } else if (state.sortKeys) {
+ // Something is wrong
+ throw new YAMLException('sortKeys must be a boolean or a function');
+ }
-const tty = __nccwpck_require__(76224);
-const util = __nccwpck_require__(73837);
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ pairBuffer = '';
-/**
- * This is the Node.js implementation of `debug()`.
- */
+ if (!compact || _result !== '') {
+ pairBuffer += generateNextLine(state, level);
+ }
-exports.init = init;
-exports.log = log;
-exports.formatArgs = formatArgs;
-exports.save = save;
-exports.load = load;
-exports.useColors = useColors;
-exports.destroy = util.deprecate(
- () => {},
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
-);
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
-/**
- * Colors.
- */
+ if (state.replacer) {
+ objectValue = state.replacer.call(object, objectKey, objectValue);
+ }
+
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
+ continue; // Skip this pair because of invalid key.
+ }
-exports.colors = [6, 2, 3, 4, 5, 1];
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
+ (state.dump && state.dump.length > 1024);
-try {
- // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
- // eslint-disable-next-line import/no-extraneous-dependencies
- const supportsColor = __nccwpck_require__(59318);
-
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
- exports.colors = [
- 20,
- 21,
- 26,
- 27,
- 32,
- 33,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 56,
- 57,
- 62,
- 63,
- 68,
- 69,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 92,
- 93,
- 98,
- 99,
- 112,
- 113,
- 128,
- 129,
- 134,
- 135,
- 148,
- 149,
- 160,
- 161,
- 162,
- 163,
- 164,
- 165,
- 166,
- 167,
- 168,
- 169,
- 170,
- 171,
- 172,
- 173,
- 178,
- 179,
- 184,
- 185,
- 196,
- 197,
- 198,
- 199,
- 200,
- 201,
- 202,
- 203,
- 204,
- 205,
- 206,
- 207,
- 208,
- 209,
- 214,
- 215,
- 220,
- 221
- ];
- }
-} catch (error) {
- // Swallow - we only care if `supports-color` is available; it doesn't have to be.
+ if (explicitPair) {
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += '?';
+ } else {
+ pairBuffer += '? ';
+ }
+ }
+
+ pairBuffer += state.dump;
+
+ if (explicitPair) {
+ pairBuffer += generateNextLine(state, level);
+ }
+
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
+ continue; // Skip this pair because of invalid value.
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += ':';
+ } else {
+ pairBuffer += ': ';
+ }
+
+ pairBuffer += state.dump;
+
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
+
+ state.tag = _tag;
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
}
-/**
- * Build up the default `inspectOpts` object from the environment variables.
- *
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
- */
-
-exports.inspectOpts = Object.keys(process.env).filter(key => {
- return /^debug_/i.test(key);
-}).reduce((obj, key) => {
- // Camel-case
- const prop = key
- .substring(6)
- .toLowerCase()
- .replace(/_([a-z])/g, (_, k) => {
- return k.toUpperCase();
- });
+function detectType(state, object, explicit) {
+ var _result, typeList, index, length, type, style;
- // Coerce string value into JS value
- let val = process.env[key];
- if (/^(yes|on|true|enabled)$/i.test(val)) {
- val = true;
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
- val = false;
- } else if (val === 'null') {
- val = null;
- } else {
- val = Number(val);
- }
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
- obj[prop] = val;
- return obj;
-}, {});
+ for (index = 0, length = typeList.length; index < length; index += 1) {
+ type = typeList[index];
-/**
- * Is stdout a TTY? Colored output is enabled when `true`.
- */
+ if ((type.instanceOf || type.predicate) &&
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
+ (!type.predicate || type.predicate(object))) {
+
+ if (explicit) {
+ if (type.multi && type.representName) {
+ state.tag = type.representName(object);
+ } else {
+ state.tag = type.tag;
+ }
+ } else {
+ state.tag = '?';
+ }
+
+ if (type.represent) {
+ style = state.styleMap[type.tag] || type.defaultStyle;
+
+ if (_toString.call(type.represent) === '[object Function]') {
+ _result = type.represent(object, style);
+ } else if (_hasOwnProperty.call(type.represent, style)) {
+ _result = type.represent[style](object, style);
+ } else {
+ throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
+ }
+
+ state.dump = _result;
+ }
+
+ return true;
+ }
+ }
-function useColors() {
- return 'colors' in exports.inspectOpts ?
- Boolean(exports.inspectOpts.colors) :
- tty.isatty(process.stderr.fd);
+ return false;
}
-/**
- * Adds ANSI color escape codes if enabled.
- *
- * @api public
- */
+// Serializes `object` and writes it to global `result`.
+// Returns true on success, or false on invalid object.
+//
+function writeNode(state, level, object, block, compact, iskey, isblockseq) {
+ state.tag = null;
+ state.dump = object;
-function formatArgs(args) {
- const {namespace: name, useColors} = this;
+ if (!detectType(state, object, false)) {
+ detectType(state, object, true);
+ }
- if (useColors) {
- const c = this.color;
- const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
+ var type = _toString.call(state.dump);
+ var inblock = block;
+ var tagStr;
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
- args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
- } else {
- args[0] = getDate() + name + ' ' + args[0];
- }
+ if (block) {
+ block = (state.flowLevel < 0 || state.flowLevel > level);
+ }
+
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
+ duplicateIndex,
+ duplicate;
+
+ if (objectOrArray) {
+ duplicateIndex = state.duplicates.indexOf(object);
+ duplicate = duplicateIndex !== -1;
+ }
+
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
+ compact = false;
+ }
+
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
+ state.dump = '*ref_' + duplicateIndex;
+ } else {
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
+ state.usedDuplicates[duplicateIndex] = true;
+ }
+ if (type === '[object Object]') {
+ if (block && (Object.keys(state.dump).length !== 0)) {
+ writeBlockMapping(state, level, state.dump, compact);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowMapping(state, level, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object Array]') {
+ if (block && (state.dump.length !== 0)) {
+ if (state.noArrayIndent && !isblockseq && level > 0) {
+ writeBlockSequence(state, level - 1, state.dump, compact);
+ } else {
+ writeBlockSequence(state, level, state.dump, compact);
+ }
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowSequence(state, level, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object String]') {
+ if (state.tag !== '?') {
+ writeScalar(state, state.dump, level, iskey, inblock);
+ }
+ } else if (type === '[object Undefined]') {
+ return false;
+ } else {
+ if (state.skipInvalid) return false;
+ throw new YAMLException('unacceptable kind of an object to dump ' + type);
+ }
+
+ if (state.tag !== null && state.tag !== '?') {
+ // Need to encode all characters except those allowed by the spec:
+ //
+ // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
+ // [36] ns-hex-digit ::= ns-dec-digit
+ // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
+ // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
+ // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
+ // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
+ // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
+ // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
+ //
+ // Also need to encode '!' because it has special meaning (end of tag prefix).
+ //
+ tagStr = encodeURI(
+ state.tag[0] === '!' ? state.tag.slice(1) : state.tag
+ ).replace(/!/g, '%21');
+
+ if (state.tag[0] === '!') {
+ tagStr = '!' + tagStr;
+ } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
+ tagStr = '!!' + tagStr.slice(18);
+ } else {
+ tagStr = '!<' + tagStr + '>';
+ }
+
+ state.dump = tagStr + ' ' + state.dump;
+ }
+ }
+
+ return true;
}
-function getDate() {
- if (exports.inspectOpts.hideDate) {
- return '';
- }
- return new Date().toISOString() + ' ';
+function getDuplicateReferences(object, state) {
+ var objects = [],
+ duplicatesIndexes = [],
+ index,
+ length;
+
+ inspectNode(object, objects, duplicatesIndexes);
+
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
+ }
+ state.usedDuplicates = new Array(length);
}
-/**
- * Invokes `util.format()` with the specified arguments and writes to stderr.
- */
+function inspectNode(object, objects, duplicatesIndexes) {
+ var objectKeyList,
+ index,
+ length;
+
+ if (object !== null && typeof object === 'object') {
+ index = objects.indexOf(object);
+ if (index !== -1) {
+ if (duplicatesIndexes.indexOf(index) === -1) {
+ duplicatesIndexes.push(index);
+ }
+ } else {
+ objects.push(object);
+
+ if (Array.isArray(object)) {
+ for (index = 0, length = object.length; index < length; index += 1) {
+ inspectNode(object[index], objects, duplicatesIndexes);
+ }
+ } else {
+ objectKeyList = Object.keys(object);
-function log(...args) {
- return process.stderr.write(util.format(...args) + '\n');
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
+ }
+ }
+ }
+ }
}
-/**
- * Save `namespaces`.
- *
- * @param {String} namespaces
- * @api private
- */
-function save(namespaces) {
- if (namespaces) {
- process.env.DEBUG = namespaces;
- } else {
- // If you set a process.env field to null or undefined, it gets cast to the
- // string 'null' or 'undefined'. Just delete instead.
- delete process.env.DEBUG;
- }
+function dump(input, options) {
+ options = options || {};
+
+ var state = new State(options);
+
+ if (!state.noRefs) getDuplicateReferences(input, state);
+
+ var value = input;
+
+ if (state.replacer) {
+ value = state.replacer.call({ '': value }, '', value);
+ }
+
+ if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
+
+ return '';
}
-/**
- * Load `namespaces`.
- *
- * @return {String} returns the previously persisted debug modes
- * @api private
- */
+module.exports.dump = dump;
+
+
+/***/ }),
+
+/***/ 8179:
+/***/ ((module) => {
+
+"use strict";
+// YAML error class. http://stackoverflow.com/questions/8458984
+//
+
+
+
+function formatError(exception, compact) {
+ var where = '', message = exception.reason || '(unknown reason)';
+
+ if (!exception.mark) return message;
+
+ if (exception.mark.name) {
+ where += 'in "' + exception.mark.name + '" ';
+ }
+
+ where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
+
+ if (!compact && exception.mark.snippet) {
+ where += '\n\n' + exception.mark.snippet;
+ }
-function load() {
- return process.env.DEBUG;
+ return message + ' ' + where;
}
-/**
- * Init logic for `debug` instances.
- *
- * Create a new `inspectOpts` object in case `useColors` is set
- * differently for a particular `debug` instance.
- */
-function init(debug) {
- debug.inspectOpts = {};
+function YAMLException(reason, mark) {
+ // Super constructor
+ Error.call(this);
+
+ this.name = 'YAMLException';
+ this.reason = reason;
+ this.mark = mark;
+ this.message = formatError(this, false);
- const keys = Object.keys(exports.inspectOpts);
- for (let i = 0; i < keys.length; i++) {
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
- }
+ // Include stack trace in error object
+ if (Error.captureStackTrace) {
+ // Chrome and NodeJS
+ Error.captureStackTrace(this, this.constructor);
+ } else {
+ // FF, IE 10+ and Safari 6+. Fallback for others
+ this.stack = (new Error()).stack || '';
+ }
}
-module.exports = __nccwpck_require__(46243)(exports);
-const {formatters} = module.exports;
+// Inherit from Error
+YAMLException.prototype = Object.create(Error.prototype);
+YAMLException.prototype.constructor = YAMLException;
-/**
- * Map %o to `util.inspect()`, all on a single line.
- */
-formatters.o = function (v) {
- this.inspectOpts.colors = this.useColors;
- return util.inspect(v, this.inspectOpts)
- .split('\n')
- .map(str => str.trim())
- .join(' ');
+YAMLException.prototype.toString = function toString(compact) {
+ return this.name + ': ' + formatError(this, compact);
};
-/**
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
- */
-formatters.O = function (v) {
- this.inspectOpts.colors = this.useColors;
- return util.inspect(v, this.inspectOpts);
-};
+module.exports = YAMLException;
/***/ }),
-/***/ 49458:
-/***/ (function(module) {
+/***/ 1161:
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-;(function (globalScope) {
- 'use strict';
-
-
- /*!
- * decimal.js v10.4.3
- * An arbitrary-precision Decimal type for JavaScript.
- * https://github.com/MikeMcl/decimal.js
- * Copyright (c) 2022 Michael Mclaughlin
- * MIT Licence
- */
-
-
- // ----------------------------------- EDITABLE DEFAULTS ------------------------------------ //
-
-
- // The maximum exponent magnitude.
- // The limit on the value of `toExpNeg`, `toExpPos`, `minE` and `maxE`.
- var EXP_LIMIT = 9e15, // 0 to 9e15
-
- // The limit on the value of `precision`, and on the value of the first argument to
- // `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`.
- MAX_DIGITS = 1e9, // 0 to 1e9
-
- // Base conversion alphabet.
- NUMERALS = '0123456789abcdef',
-
- // The natural logarithm of 10 (1025 digits).
- LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058',
-
- // Pi (1025 digits).
- PI = '3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789',
-
-
- // The initial configuration properties of the Decimal constructor.
- DEFAULTS = {
-
- // These values must be integers within the stated ranges (inclusive).
- // Most of these values can be changed at run-time using the `Decimal.config` method.
-
- // The maximum number of significant digits of the result of a calculation or base conversion.
- // E.g. `Decimal.config({ precision: 20 });`
- precision: 20, // 1 to MAX_DIGITS
-
- // The rounding mode used when rounding to `precision`.
- //
- // ROUND_UP 0 Away from zero.
- // ROUND_DOWN 1 Towards zero.
- // ROUND_CEIL 2 Towards +Infinity.
- // ROUND_FLOOR 3 Towards -Infinity.
- // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
- // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
- // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
- // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
- // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
- //
- // E.g.
- // `Decimal.rounding = 4;`
- // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
- rounding: 4, // 0 to 8
-
- // The modulo mode used when calculating the modulus: a mod n.
- // The quotient (q = a / n) is calculated according to the corresponding rounding mode.
- // The remainder (r) is calculated as: r = a - n * q.
- //
- // UP 0 The remainder is positive if the dividend is negative, else is negative.
- // DOWN 1 The remainder has the same sign as the dividend (JavaScript %).
- // FLOOR 3 The remainder has the same sign as the divisor (Python %).
- // HALF_EVEN 6 The IEEE 754 remainder function.
- // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive.
- //
- // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian
- // division (9) are commonly used for the modulus operation. The other rounding modes can also
- // be used, but they may not give useful results.
- modulo: 1, // 0 to 9
-
- // The exponent value at and beneath which `toString` returns exponential notation.
- // JavaScript numbers: -7
- toExpNeg: -7, // 0 to -EXP_LIMIT
-
- // The exponent value at and above which `toString` returns exponential notation.
- // JavaScript numbers: 21
- toExpPos: 21, // 0 to EXP_LIMIT
-
- // The minimum exponent value, beneath which underflow to zero occurs.
- // JavaScript numbers: -324 (5e-324)
- minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
-
- // The maximum exponent value, above which overflow to Infinity occurs.
- // JavaScript numbers: 308 (1.7976931348623157e+308)
- maxE: EXP_LIMIT, // 1 to EXP_LIMIT
-
- // Whether to use cryptographically-secure random number generation, if available.
- crypto: false // true/false
- },
-
-
- // ----------------------------------- END OF EDITABLE DEFAULTS ------------------------------- //
-
-
- Decimal, inexact, noConflict, quadrant,
- external = true,
-
- decimalError = '[DecimalError] ',
- invalidArgument = decimalError + 'Invalid argument: ',
- precisionLimitExceeded = decimalError + 'Precision limit exceeded',
- cryptoUnavailable = decimalError + 'crypto unavailable',
- tag = '[object Decimal]',
-
- mathfloor = Math.floor,
- mathpow = Math.pow,
-
- isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,
- isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,
- isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,
- isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
-
- BASE = 1e7,
- LOG_BASE = 7,
- MAX_SAFE_INTEGER = 9007199254740991,
-
- LN10_PRECISION = LN10.length - 1,
- PI_PRECISION = PI.length - 1,
-
- // Decimal.prototype object
- P = { toStringTag: tag };
-
-
- // Decimal prototype methods
-
-
- /*
- * absoluteValue abs
- * ceil
- * clampedTo clamp
- * comparedTo cmp
- * cosine cos
- * cubeRoot cbrt
- * decimalPlaces dp
- * dividedBy div
- * dividedToIntegerBy divToInt
- * equals eq
- * floor
- * greaterThan gt
- * greaterThanOrEqualTo gte
- * hyperbolicCosine cosh
- * hyperbolicSine sinh
- * hyperbolicTangent tanh
- * inverseCosine acos
- * inverseHyperbolicCosine acosh
- * inverseHyperbolicSine asinh
- * inverseHyperbolicTangent atanh
- * inverseSine asin
- * inverseTangent atan
- * isFinite
- * isInteger isInt
- * isNaN
- * isNegative isNeg
- * isPositive isPos
- * isZero
- * lessThan lt
- * lessThanOrEqualTo lte
- * logarithm log
- * [maximum] [max]
- * [minimum] [min]
- * minus sub
- * modulo mod
- * naturalExponential exp
- * naturalLogarithm ln
- * negated neg
- * plus add
- * precision sd
- * round
- * sine sin
- * squareRoot sqrt
- * tangent tan
- * times mul
- * toBinary
- * toDecimalPlaces toDP
- * toExponential
- * toFixed
- * toFraction
- * toHexadecimal toHex
- * toNearest
- * toNumber
- * toOctal
- * toPower pow
- * toPrecision
- * toSignificantDigits toSD
- * toString
- * truncated trunc
- * valueOf toJSON
- */
-
-
- /*
- * Return a new Decimal whose value is the absolute value of this Decimal.
- *
- */
- P.absoluteValue = P.abs = function () {
- var x = new this.constructor(this);
- if (x.s < 0) x.s = 1;
- return finalise(x);
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the
- * direction of positive Infinity.
- *
- */
- P.ceil = function () {
- return finalise(new this.constructor(this), this.e + 1, 2);
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal clamped to the range
- * delineated by `min` and `max`.
- *
- * min {number|string|Decimal}
- * max {number|string|Decimal}
- *
- */
- P.clampedTo = P.clamp = function (min, max) {
- var k,
- x = this,
- Ctor = x.constructor;
- min = new Ctor(min);
- max = new Ctor(max);
- if (!min.s || !max.s) return new Ctor(NaN);
- if (min.gt(max)) throw Error(invalidArgument + max);
- k = x.cmp(min);
- return k < 0 ? min : x.cmp(max) > 0 ? max : new Ctor(x);
- };
-
-
- /*
- * Return
- * 1 if the value of this Decimal is greater than the value of `y`,
- * -1 if the value of this Decimal is less than the value of `y`,
- * 0 if they have the same value,
- * NaN if the value of either Decimal is NaN.
- *
- */
- P.comparedTo = P.cmp = function (y) {
- var i, j, xdL, ydL,
- x = this,
- xd = x.d,
- yd = (y = new x.constructor(y)).d,
- xs = x.s,
- ys = y.s;
-
- // Either NaN or ±Infinity?
- if (!xd || !yd) {
- return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1;
- }
-
- // Either zero?
- if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0;
-
- // Signs differ?
- if (xs !== ys) return xs;
-
- // Compare exponents.
- if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1;
-
- xdL = xd.length;
- ydL = yd.length;
-
- // Compare digit by digit.
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
- if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1;
- }
-
- // Compare lengths.
- return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1;
- };
-
-
- /*
- * Return a new Decimal whose value is the cosine of the value in radians of this Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-1, 1]
- *
- * cos(0) = 1
- * cos(-0) = 1
- * cos(Infinity) = NaN
- * cos(-Infinity) = NaN
- * cos(NaN) = NaN
- *
- */
- P.cosine = P.cos = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (!x.d) return new Ctor(NaN);
-
- // cos(0) = cos(-0) = 1
- if (!x.d[0]) return new Ctor(1);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
- Ctor.rounding = 1;
-
- x = cosine(Ctor, toLessThanHalfPi(Ctor, x));
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true);
- };
-
-
- /*
- *
- * Return a new Decimal whose value is the cube root of the value of this Decimal, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- * cbrt(0) = 0
- * cbrt(-0) = -0
- * cbrt(1) = 1
- * cbrt(-1) = -1
- * cbrt(N) = N
- * cbrt(-I) = -I
- * cbrt(I) = I
- *
- * Math.cbrt(x) = (x < 0 ? -Math.pow(-x, 1/3) : Math.pow(x, 1/3))
- *
- */
- P.cubeRoot = P.cbrt = function () {
- var e, m, n, r, rep, s, sd, t, t3, t3plusx,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
- external = false;
-
- // Initial estimate.
- s = x.s * mathpow(x.s * x, 1 / 3);
-
- // Math.cbrt underflow/overflow?
- // Pass x to Math.pow as integer, then adjust the exponent of the result.
- if (!s || Math.abs(s) == 1 / 0) {
- n = digitsToString(x.d);
- e = x.e;
-
- // Adjust n exponent so it is a multiple of 3 away from x exponent.
- if (s = (e - n.length + 1) % 3) n += (s == 1 || s == -2 ? '0' : '00');
- s = mathpow(n, 1 / 3);
-
- // Rarely, e may be one less than the result exponent value.
- e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));
-
- if (s == 1 / 0) {
- n = '5e' + e;
- } else {
- n = s.toExponential();
- n = n.slice(0, n.indexOf('e') + 1) + e;
- }
-
- r = new Ctor(n);
- r.s = x.s;
- } else {
- r = new Ctor(s.toString());
- }
-
- sd = (e = Ctor.precision) + 3;
-
- // Halley's method.
- // TODO? Compare Newton's method.
- for (;;) {
- t = r;
- t3 = t.times(t).times(t);
- t3plusx = t3.plus(x);
- r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1);
-
- // TODO? Replace with for-loop and checkRoundingDigits.
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
- n = n.slice(sd - 3, sd + 1);
-
- // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or 4999
- // , i.e. approaching a rounding boundary, continue the iteration.
- if (n == '9999' || !rep && n == '4999') {
-
- // On the first iteration only, check to see if rounding up gives the exact result as the
- // nines may infinitely repeat.
- if (!rep) {
- finalise(t, e + 1, 0);
-
- if (t.times(t).times(t).eq(x)) {
- r = t;
- break;
- }
- }
-
- sd += 4;
- rep = 1;
- } else {
-
- // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.
- // If not, then there are further digits and m will be truthy.
- if (!+n || !+n.slice(1) && n.charAt(0) == '5') {
-
- // Truncate to the first rounding digit.
- finalise(r, e + 1, 1);
- m = !r.times(r).times(r).eq(x);
- }
-
- break;
- }
- }
- }
-
- external = true;
-
- return finalise(r, e, Ctor.rounding, m);
- };
-
-
- /*
- * Return the number of decimal places of the value of this Decimal.
- *
- */
- P.decimalPlaces = P.dp = function () {
- var w,
- d = this.d,
- n = NaN;
-
- if (d) {
- w = d.length - 1;
- n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE;
-
- // Subtract the number of trailing zeros of the last word.
- w = d[w];
- if (w) for (; w % 10 == 0; w /= 10) n--;
- if (n < 0) n = 0;
- }
-
- return n;
- };
-
-
- /*
- * n / 0 = I
- * n / N = N
- * n / I = 0
- * 0 / n = 0
- * 0 / 0 = N
- * 0 / N = N
- * 0 / I = 0
- * N / n = N
- * N / 0 = N
- * N / N = N
- * N / I = N
- * I / n = I
- * I / 0 = I
- * I / N = N
- * I / I = N
- *
- * Return a new Decimal whose value is the value of this Decimal divided by `y`, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- */
- P.dividedBy = P.div = function (y) {
- return divide(this, new this.constructor(y));
- };
-
-
- /*
- * Return a new Decimal whose value is the integer part of dividing the value of this Decimal
- * by the value of `y`, rounded to `precision` significant digits using rounding mode `rounding`.
- *
- */
- P.dividedToIntegerBy = P.divToInt = function (y) {
- var x = this,
- Ctor = x.constructor;
- return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding);
- };
-
-
- /*
- * Return true if the value of this Decimal is equal to the value of `y`, otherwise return false.
- *
- */
- P.equals = P.eq = function (y) {
- return this.cmp(y) === 0;
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the
- * direction of negative Infinity.
- *
- */
- P.floor = function () {
- return finalise(new this.constructor(this), this.e + 1, 3);
- };
-
-
- /*
- * Return true if the value of this Decimal is greater than the value of `y`, otherwise return
- * false.
- *
- */
- P.greaterThan = P.gt = function (y) {
- return this.cmp(y) > 0;
- };
-
-
- /*
- * Return true if the value of this Decimal is greater than or equal to the value of `y`,
- * otherwise return false.
- *
- */
- P.greaterThanOrEqualTo = P.gte = function (y) {
- var k = this.cmp(y);
- return k == 1 || k === 0;
- };
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic cosine of the value in radians of this
- * Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [1, Infinity]
- *
- * cosh(x) = 1 + x^2/2! + x^4/4! + x^6/6! + ...
- *
- * cosh(0) = 1
- * cosh(-0) = 1
- * cosh(Infinity) = Infinity
- * cosh(-Infinity) = Infinity
- * cosh(NaN) = NaN
- *
- * x time taken (ms) result
- * 1000 9 9.8503555700852349694e+433
- * 10000 25 4.4034091128314607936e+4342
- * 100000 171 1.4033316802130615897e+43429
- * 1000000 3817 1.5166076984010437725e+434294
- * 10000000 abandoned after 2 minute wait
- *
- * TODO? Compare performance of cosh(x) = 0.5 * (exp(x) + exp(-x))
- *
- */
- P.hyperbolicCosine = P.cosh = function () {
- var k, n, pr, rm, len,
- x = this,
- Ctor = x.constructor,
- one = new Ctor(1);
-
- if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);
- if (x.isZero()) return one;
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
- Ctor.rounding = 1;
- len = x.d.length;
-
- // Argument reduction: cos(4x) = 1 - 8cos^2(x) + 8cos^4(x) + 1
- // i.e. cos(x) = 1 - cos^2(x/4)(8 - 8cos^2(x/4))
-
- // Estimate the optimum number of times to use the argument reduction.
- // TODO? Estimation reused from cosine() and may not be optimal here.
- if (len < 32) {
- k = Math.ceil(len / 3);
- n = (1 / tinyPow(4, k)).toString();
- } else {
- k = 16;
- n = '2.3283064365386962890625e-10';
- }
-
- x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true);
-
- // Reverse argument reduction
- var cosh2_x,
- i = k,
- d8 = new Ctor(8);
- for (; i--;) {
- cosh2_x = x.times(x);
- x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));
- }
-
- return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true);
- };
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic sine of the value in radians of this
- * Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-Infinity, Infinity]
- *
- * sinh(x) = x + x^3/3! + x^5/5! + x^7/7! + ...
- *
- * sinh(0) = 0
- * sinh(-0) = -0
- * sinh(Infinity) = Infinity
- * sinh(-Infinity) = -Infinity
- * sinh(NaN) = NaN
- *
- * x time taken (ms)
- * 10 2 ms
- * 100 5 ms
- * 1000 14 ms
- * 10000 82 ms
- * 100000 886 ms 1.4033316802130615897e+43429
- * 200000 2613 ms
- * 300000 5407 ms
- * 400000 8824 ms
- * 500000 13026 ms 8.7080643612718084129e+217146
- * 1000000 48543 ms
- *
- * TODO? Compare performance of sinh(x) = 0.5 * (exp(x) - exp(-x))
- *
- */
- P.hyperbolicSine = P.sinh = function () {
- var k, pr, rm, len,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
- Ctor.rounding = 1;
- len = x.d.length;
-
- if (len < 3) {
- x = taylorSeries(Ctor, 2, x, x, true);
- } else {
-
- // Alternative argument reduction: sinh(3x) = sinh(x)(3 + 4sinh^2(x))
- // i.e. sinh(x) = sinh(x/3)(3 + 4sinh^2(x/3))
- // 3 multiplications and 1 addition
-
- // Argument reduction: sinh(5x) = sinh(x)(5 + sinh^2(x)(20 + 16sinh^2(x)))
- // i.e. sinh(x) = sinh(x/5)(5 + sinh^2(x/5)(20 + 16sinh^2(x/5)))
- // 4 multiplications and 2 additions
-
- // Estimate the optimum number of times to use the argument reduction.
- k = 1.4 * Math.sqrt(len);
- k = k > 16 ? 16 : k | 0;
-
- x = x.times(1 / tinyPow(5, k));
- x = taylorSeries(Ctor, 2, x, x, true);
-
- // Reverse argument reduction
- var sinh2_x,
- d5 = new Ctor(5),
- d16 = new Ctor(16),
- d20 = new Ctor(20);
- for (; k--;) {
- sinh2_x = x.times(x);
- x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))));
- }
- }
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return finalise(x, pr, rm, true);
- };
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic tangent of the value in radians of this
- * Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-1, 1]
- *
- * tanh(x) = sinh(x) / cosh(x)
- *
- * tanh(0) = 0
- * tanh(-0) = -0
- * tanh(Infinity) = 1
- * tanh(-Infinity) = -1
- * tanh(NaN) = NaN
- *
- */
- P.hyperbolicTangent = P.tanh = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite()) return new Ctor(x.s);
- if (x.isZero()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + 7;
- Ctor.rounding = 1;
-
- return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
- };
-
-
- /*
- * Return a new Decimal whose value is the arccosine (inverse cosine) in radians of the value of
- * this Decimal.
- *
- * Domain: [-1, 1]
- * Range: [0, pi]
- *
- * acos(x) = pi/2 - asin(x)
- *
- * acos(0) = pi/2
- * acos(-0) = pi/2
- * acos(1) = 0
- * acos(-1) = pi
- * acos(1/2) = pi/3
- * acos(-1/2) = 2*pi/3
- * acos(|x| > 1) = NaN
- * acos(NaN) = NaN
- *
- */
- P.inverseCosine = P.acos = function () {
- var halfPi,
- x = this,
- Ctor = x.constructor,
- k = x.abs().cmp(1),
- pr = Ctor.precision,
- rm = Ctor.rounding;
-
- if (k !== -1) {
- return k === 0
- // |x| is 1
- ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0)
- // |x| > 1 or x is NaN
- : new Ctor(NaN);
- }
-
- if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5);
-
- // TODO? Special case acos(0.5) = pi/3 and acos(-0.5) = 2*pi/3
-
- Ctor.precision = pr + 6;
- Ctor.rounding = 1;
-
- x = x.asin();
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return halfPi.minus(x);
- };
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic cosine in radians of the
- * value of this Decimal.
- *
- * Domain: [1, Infinity]
- * Range: [0, Infinity]
- *
- * acosh(x) = ln(x + sqrt(x^2 - 1))
- *
- * acosh(x < 1) = NaN
- * acosh(NaN) = NaN
- * acosh(Infinity) = Infinity
- * acosh(-Infinity) = NaN
- * acosh(0) = NaN
- * acosh(-0) = NaN
- * acosh(1) = 0
- * acosh(-1) = NaN
- *
- */
- P.inverseHyperbolicCosine = P.acosh = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN);
- if (!x.isFinite()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4;
- Ctor.rounding = 1;
- external = false;
-
- x = x.times(x).minus(1).sqrt().plus(x);
-
- external = true;
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return x.ln();
- };
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic sine in radians of the value
- * of this Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-Infinity, Infinity]
- *
- * asinh(x) = ln(x + sqrt(x^2 + 1))
- *
- * asinh(NaN) = NaN
- * asinh(Infinity) = Infinity
- * asinh(-Infinity) = -Infinity
- * asinh(0) = 0
- * asinh(-0) = -0
- *
- */
- P.inverseHyperbolicSine = P.asinh = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6;
- Ctor.rounding = 1;
- external = false;
-
- x = x.times(x).plus(1).sqrt().plus(x);
-
- external = true;
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return x.ln();
- };
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic tangent in radians of the
- * value of this Decimal.
- *
- * Domain: [-1, 1]
- * Range: [-Infinity, Infinity]
- *
- * atanh(x) = 0.5 * ln((1 + x) / (1 - x))
- *
- * atanh(|x| > 1) = NaN
- * atanh(NaN) = NaN
- * atanh(Infinity) = NaN
- * atanh(-Infinity) = NaN
- * atanh(0) = 0
- * atanh(-0) = -0
- * atanh(1) = Infinity
- * atanh(-1) = -Infinity
- *
- */
- P.inverseHyperbolicTangent = P.atanh = function () {
- var pr, rm, wpr, xsd,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite()) return new Ctor(NaN);
- if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- xsd = x.sd();
-
- if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true);
-
- Ctor.precision = wpr = xsd - x.e;
-
- x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1);
-
- Ctor.precision = pr + 4;
- Ctor.rounding = 1;
-
- x = x.ln();
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return x.times(0.5);
- };
-
-
- /*
- * Return a new Decimal whose value is the arcsine (inverse sine) in radians of the value of this
- * Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-pi/2, pi/2]
- *
- * asin(x) = 2*atan(x/(1 + sqrt(1 - x^2)))
- *
- * asin(0) = 0
- * asin(-0) = -0
- * asin(1/2) = pi/6
- * asin(-1/2) = -pi/6
- * asin(1) = pi/2
- * asin(-1) = -pi/2
- * asin(|x| > 1) = NaN
- * asin(NaN) = NaN
- *
- * TODO? Compare performance of Taylor series.
- *
- */
- P.inverseSine = P.asin = function () {
- var halfPi, k,
- pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (x.isZero()) return new Ctor(x);
-
- k = x.abs().cmp(1);
- pr = Ctor.precision;
- rm = Ctor.rounding;
-
- if (k !== -1) {
-
- // |x| is 1
- if (k === 0) {
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
- halfPi.s = x.s;
- return halfPi;
- }
-
- // |x| > 1 or x is NaN
- return new Ctor(NaN);
- }
-
- // TODO? Special case asin(1/2) = pi/6 and asin(-1/2) = -pi/6
-
- Ctor.precision = pr + 6;
- Ctor.rounding = 1;
-
- x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan();
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return x.times(2);
- };
-
-
- /*
- * Return a new Decimal whose value is the arctangent (inverse tangent) in radians of the value
- * of this Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-pi/2, pi/2]
- *
- * atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...
- *
- * atan(0) = 0
- * atan(-0) = -0
- * atan(1) = pi/4
- * atan(-1) = -pi/4
- * atan(Infinity) = pi/2
- * atan(-Infinity) = -pi/2
- * atan(NaN) = NaN
- *
- */
- P.inverseTangent = P.atan = function () {
- var i, j, k, n, px, t, r, wpr, x2,
- x = this,
- Ctor = x.constructor,
- pr = Ctor.precision,
- rm = Ctor.rounding;
-
- if (!x.isFinite()) {
- if (!x.s) return new Ctor(NaN);
- if (pr + 4 <= PI_PRECISION) {
- r = getPi(Ctor, pr + 4, rm).times(0.5);
- r.s = x.s;
- return r;
- }
- } else if (x.isZero()) {
- return new Ctor(x);
- } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) {
- r = getPi(Ctor, pr + 4, rm).times(0.25);
- r.s = x.s;
- return r;
- }
-
- Ctor.precision = wpr = pr + 10;
- Ctor.rounding = 1;
-
- // TODO? if (x >= 1 && pr <= PI_PRECISION) atan(x) = halfPi * x.s - atan(1 / x);
-
- // Argument reduction
- // Ensure |x| < 0.42
- // atan(x) = 2 * atan(x / (1 + sqrt(1 + x^2)))
-
- k = Math.min(28, wpr / LOG_BASE + 2 | 0);
-
- for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1));
-
- external = false;
-
- j = Math.ceil(wpr / LOG_BASE);
- n = 1;
- x2 = x.times(x);
- r = new Ctor(x);
- px = x;
-
- // atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...
- for (; i !== -1;) {
- px = px.times(x2);
- t = r.minus(px.div(n += 2));
-
- px = px.times(x2);
- r = t.plus(px.div(n += 2));
-
- if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--;);
- }
-
- if (k) r = r.times(2 << (k - 1));
-
- external = true;
-
- return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true);
- };
-
-
- /*
- * Return true if the value of this Decimal is a finite number, otherwise return false.
- *
- */
- P.isFinite = function () {
- return !!this.d;
- };
-
-
- /*
- * Return true if the value of this Decimal is an integer, otherwise return false.
- *
- */
- P.isInteger = P.isInt = function () {
- return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2;
- };
-
-
- /*
- * Return true if the value of this Decimal is NaN, otherwise return false.
- *
- */
- P.isNaN = function () {
- return !this.s;
- };
-
-
- /*
- * Return true if the value of this Decimal is negative, otherwise return false.
- *
- */
- P.isNegative = P.isNeg = function () {
- return this.s < 0;
- };
-
-
- /*
- * Return true if the value of this Decimal is positive, otherwise return false.
- *
- */
- P.isPositive = P.isPos = function () {
- return this.s > 0;
- };
-
-
- /*
- * Return true if the value of this Decimal is 0 or -0, otherwise return false.
- *
- */
- P.isZero = function () {
- return !!this.d && this.d[0] === 0;
- };
-
-
- /*
- * Return true if the value of this Decimal is less than `y`, otherwise return false.
- *
- */
- P.lessThan = P.lt = function (y) {
- return this.cmp(y) < 0;
- };
-
-
- /*
- * Return true if the value of this Decimal is less than or equal to `y`, otherwise return false.
- *
- */
- P.lessThanOrEqualTo = P.lte = function (y) {
- return this.cmp(y) < 1;
- };
-
-
- /*
- * Return the logarithm of the value of this Decimal to the specified base, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * If no base is specified, return log[10](arg).
- *
- * log[base](arg) = ln(arg) / ln(base)
- *
- * The result will always be correctly rounded if the base of the log is 10, and 'almost always'
- * otherwise:
- *
- * Depending on the rounding mode, the result may be incorrectly rounded if the first fifteen
- * rounding digits are [49]99999999999999 or [50]00000000000000. In that case, the maximum error
- * between the result and the correctly rounded result will be one ulp (unit in the last place).
- *
- * log[-b](a) = NaN
- * log[0](a) = NaN
- * log[1](a) = NaN
- * log[NaN](a) = NaN
- * log[Infinity](a) = NaN
- * log[b](0) = -Infinity
- * log[b](-0) = -Infinity
- * log[b](-a) = NaN
- * log[b](1) = 0
- * log[b](Infinity) = Infinity
- * log[b](NaN) = NaN
- *
- * [base] {number|string|Decimal} The base of the logarithm.
- *
- */
- P.logarithm = P.log = function (base) {
- var isBase10, d, denominator, k, inf, num, sd, r,
- arg = this,
- Ctor = arg.constructor,
- pr = Ctor.precision,
- rm = Ctor.rounding,
- guard = 5;
-
- // Default base is 10.
- if (base == null) {
- base = new Ctor(10);
- isBase10 = true;
- } else {
- base = new Ctor(base);
- d = base.d;
-
- // Return NaN if base is negative, or non-finite, or is 0 or 1.
- if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN);
-
- isBase10 = base.eq(10);
- }
-
- d = arg.d;
-
- // Is arg negative, non-finite, 0 or 1?
- if (arg.s < 0 || !d || !d[0] || arg.eq(1)) {
- return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);
- }
-
- // The result will have a non-terminating decimal expansion if base is 10 and arg is not an
- // integer power of 10.
- if (isBase10) {
- if (d.length > 1) {
- inf = true;
- } else {
- for (k = d[0]; k % 10 === 0;) k /= 10;
- inf = k !== 1;
- }
- }
-
- external = false;
- sd = pr + guard;
- num = naturalLogarithm(arg, sd);
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
-
- // The result will have 5 rounding digits.
- r = divide(num, denominator, sd, 1);
-
- // If at a rounding boundary, i.e. the result's rounding digits are [49]9999 or [50]0000,
- // calculate 10 further digits.
- //
- // If the result is known to have an infinite decimal expansion, repeat this until it is clear
- // that the result is above or below the boundary. Otherwise, if after calculating the 10
- // further digits, the last 14 are nines, round up and assume the result is exact.
- // Also assume the result is exact if the last 14 are zero.
- //
- // Example of a result that will be incorrectly rounded:
- // log[1048576](4503599627370502) = 2.60000000000000009610279511444746...
- // The above result correctly rounded using ROUND_CEIL to 1 decimal place should be 2.7, but it
- // will be given as 2.6 as there are 15 zeros immediately after the requested decimal place, so
- // the exact result would be assumed to be 2.6, which rounded using ROUND_CEIL to 1 decimal
- // place is still 2.6.
- if (checkRoundingDigits(r.d, k = pr, rm)) {
-
- do {
- sd += 10;
- num = naturalLogarithm(arg, sd);
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
- r = divide(num, denominator, sd, 1);
-
- if (!inf) {
-
- // Check for 14 nines from the 2nd rounding digit, as the first may be 4.
- if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 1e14) {
- r = finalise(r, pr + 1, 0);
- }
-
- break;
- }
- } while (checkRoundingDigits(r.d, k += 10, rm));
- }
-
- external = true;
-
- return finalise(r, pr, rm);
- };
-
-
- /*
- * Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal.
- *
- * arguments {number|string|Decimal}
- *
- P.max = function () {
- Array.prototype.push.call(arguments, this);
- return maxOrMin(this.constructor, arguments, 'lt');
- };
- */
-
-
- /*
- * Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal.
- *
- * arguments {number|string|Decimal}
- *
- P.min = function () {
- Array.prototype.push.call(arguments, this);
- return maxOrMin(this.constructor, arguments, 'gt');
- };
- */
-
-
- /*
- * n - 0 = n
- * n - N = N
- * n - I = -I
- * 0 - n = -n
- * 0 - 0 = 0
- * 0 - N = N
- * 0 - I = -I
- * N - n = N
- * N - 0 = N
- * N - N = N
- * N - I = N
- * I - n = I
- * I - 0 = I
- * I - N = N
- * I - I = N
- *
- * Return a new Decimal whose value is the value of this Decimal minus `y`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- */
- P.minus = P.sub = function (y) {
- var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd,
- x = this,
- Ctor = x.constructor;
-
- y = new Ctor(y);
-
- // If either is not finite...
- if (!x.d || !y.d) {
-
- // Return NaN if either is NaN.
- if (!x.s || !y.s) y = new Ctor(NaN);
-
- // Return y negated if x is finite and y is ±Infinity.
- else if (x.d) y.s = -y.s;
-
- // Return x if y is finite and x is ±Infinity.
- // Return x if both are ±Infinity with different signs.
- // Return NaN if both are ±Infinity with the same sign.
- else y = new Ctor(y.d || x.s !== y.s ? x : NaN);
-
- return y;
- }
-
- // If signs differ...
- if (x.s != y.s) {
- y.s = -y.s;
- return x.plus(y);
- }
-
- xd = x.d;
- yd = y.d;
- pr = Ctor.precision;
- rm = Ctor.rounding;
-
- // If either is zero...
- if (!xd[0] || !yd[0]) {
-
- // Return y negated if x is zero and y is non-zero.
- if (yd[0]) y.s = -y.s;
-
- // Return x if y is zero and x is non-zero.
- else if (xd[0]) y = new Ctor(x);
-
- // Return zero if both are zero.
- // From IEEE 754 (2008) 6.3: 0 - 0 = -0 - -0 = -0 when rounding to -Infinity.
- else return new Ctor(rm === 3 ? -0 : 0);
-
- return external ? finalise(y, pr, rm) : y;
- }
-
- // x and y are finite, non-zero numbers with the same sign.
-
- // Calculate base 1e7 exponents.
- e = mathfloor(y.e / LOG_BASE);
- xe = mathfloor(x.e / LOG_BASE);
-
- xd = xd.slice();
- k = xe - e;
-
- // If base 1e7 exponents differ...
- if (k) {
- xLTy = k < 0;
-
- if (xLTy) {
- d = xd;
- k = -k;
- len = yd.length;
- } else {
- d = yd;
- e = xe;
- len = xd.length;
- }
-
- // Numbers with massively different exponents would result in a very high number of
- // zeros needing to be prepended, but this can be avoided while still ensuring correct
- // rounding by limiting the number of zeros to `Math.ceil(pr / LOG_BASE) + 2`.
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
-
- if (k > i) {
- k = i;
- d.length = 1;
- }
-
- // Prepend zeros to equalise exponents.
- d.reverse();
- for (i = k; i--;) d.push(0);
- d.reverse();
-
- // Base 1e7 exponents equal.
- } else {
-
- // Check digits to determine which is the bigger number.
-
- i = xd.length;
- len = yd.length;
- xLTy = i < len;
- if (xLTy) len = i;
-
- for (i = 0; i < len; i++) {
- if (xd[i] != yd[i]) {
- xLTy = xd[i] < yd[i];
- break;
- }
- }
-
- k = 0;
- }
-
- if (xLTy) {
- d = xd;
- xd = yd;
- yd = d;
- y.s = -y.s;
- }
-
- len = xd.length;
-
- // Append zeros to `xd` if shorter.
- // Don't add zeros to `yd` if shorter as subtraction only needs to start at `yd` length.
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
-
- // Subtract yd from xd.
- for (i = yd.length; i > k;) {
-
- if (xd[--i] < yd[i]) {
- for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;
- --xd[j];
- xd[i] += BASE;
- }
-
- xd[i] -= yd[i];
- }
-
- // Remove trailing zeros.
- for (; xd[--len] === 0;) xd.pop();
-
- // Remove leading zeros and adjust exponent accordingly.
- for (; xd[0] === 0; xd.shift()) --e;
-
- // Zero?
- if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0);
-
- y.d = xd;
- y.e = getBase10Exponent(xd, e);
-
- return external ? finalise(y, pr, rm) : y;
- };
-
-
- /*
- * n % 0 = N
- * n % N = N
- * n % I = n
- * 0 % n = 0
- * -0 % n = -0
- * 0 % 0 = N
- * 0 % N = N
- * 0 % I = 0
- * N % n = N
- * N % 0 = N
- * N % N = N
- * N % I = N
- * I % n = N
- * I % 0 = N
- * I % N = N
- * I % I = N
- *
- * Return a new Decimal whose value is the value of this Decimal modulo `y`, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- * The result depends on the modulo mode.
- *
- */
- P.modulo = P.mod = function (y) {
- var q,
- x = this,
- Ctor = x.constructor;
-
- y = new Ctor(y);
-
- // Return NaN if x is ±Infinity or NaN, or y is NaN or ±0.
- if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN);
-
- // Return x if y is ±Infinity or x is ±0.
- if (!y.d || x.d && !x.d[0]) {
- return finalise(new Ctor(x), Ctor.precision, Ctor.rounding);
- }
-
- // Prevent rounding of intermediate calculations.
- external = false;
-
- if (Ctor.modulo == 9) {
-
- // Euclidian division: q = sign(y) * floor(x / abs(y))
- // result = x - q * y where 0 <= result < abs(y)
- q = divide(x, y.abs(), 0, 3, 1);
- q.s *= y.s;
- } else {
- q = divide(x, y, 0, Ctor.modulo, 1);
- }
-
- q = q.times(y);
-
- external = true;
-
- return x.minus(q);
- };
-
-
- /*
- * Return a new Decimal whose value is the natural exponential of the value of this Decimal,
- * i.e. the base e raised to the power the value of this Decimal, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- */
- P.naturalExponential = P.exp = function () {
- return naturalExponential(this);
- };
-
-
- /*
- * Return a new Decimal whose value is the natural logarithm of the value of this Decimal,
- * rounded to `precision` significant digits using rounding mode `rounding`.
- *
- */
- P.naturalLogarithm = P.ln = function () {
- return naturalLogarithm(this);
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if multiplied by
- * -1.
- *
- */
- P.negated = P.neg = function () {
- var x = new this.constructor(this);
- x.s = -x.s;
- return finalise(x);
- };
-
-
- /*
- * n + 0 = n
- * n + N = N
- * n + I = I
- * 0 + n = n
- * 0 + 0 = 0
- * 0 + N = N
- * 0 + I = I
- * N + n = N
- * N + 0 = N
- * N + N = N
- * N + I = N
- * I + n = I
- * I + 0 = I
- * I + N = N
- * I + I = I
- *
- * Return a new Decimal whose value is the value of this Decimal plus `y`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- */
- P.plus = P.add = function (y) {
- var carry, d, e, i, k, len, pr, rm, xd, yd,
- x = this,
- Ctor = x.constructor;
-
- y = new Ctor(y);
-
- // If either is not finite...
- if (!x.d || !y.d) {
-
- // Return NaN if either is NaN.
- if (!x.s || !y.s) y = new Ctor(NaN);
-
- // Return x if y is finite and x is ±Infinity.
- // Return x if both are ±Infinity with the same sign.
- // Return NaN if both are ±Infinity with different signs.
- // Return y if x is finite and y is ±Infinity.
- else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN);
-
- return y;
- }
-
- // If signs differ...
- if (x.s != y.s) {
- y.s = -y.s;
- return x.minus(y);
- }
-
- xd = x.d;
- yd = y.d;
- pr = Ctor.precision;
- rm = Ctor.rounding;
-
- // If either is zero...
- if (!xd[0] || !yd[0]) {
-
- // Return x if y is zero.
- // Return y if y is non-zero.
- if (!yd[0]) y = new Ctor(x);
-
- return external ? finalise(y, pr, rm) : y;
- }
-
- // x and y are finite, non-zero numbers with the same sign.
-
- // Calculate base 1e7 exponents.
- k = mathfloor(x.e / LOG_BASE);
- e = mathfloor(y.e / LOG_BASE);
-
- xd = xd.slice();
- i = k - e;
-
- // If base 1e7 exponents differ...
- if (i) {
-
- if (i < 0) {
- d = xd;
- i = -i;
- len = yd.length;
- } else {
- d = yd;
- e = k;
- len = xd.length;
- }
-
- // Limit number of zeros prepended to max(ceil(pr / LOG_BASE), len) + 1.
- k = Math.ceil(pr / LOG_BASE);
- len = k > len ? k + 1 : len + 1;
-
- if (i > len) {
- i = len;
- d.length = 1;
- }
-
- // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts.
- d.reverse();
- for (; i--;) d.push(0);
- d.reverse();
- }
-
- len = xd.length;
- i = yd.length;
-
- // If yd is longer than xd, swap xd and yd so xd points to the longer array.
- if (len - i < 0) {
- i = len;
- d = yd;
- yd = xd;
- xd = d;
- }
-
- // Only start adding at yd.length - 1 as the further digits of xd can be left as they are.
- for (carry = 0; i;) {
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
- xd[i] %= BASE;
- }
-
- if (carry) {
- xd.unshift(carry);
- ++e;
- }
-
- // Remove trailing zeros.
- // No need to check for zero, as +x + +y != 0 && -x + -y != 0
- for (len = xd.length; xd[--len] == 0;) xd.pop();
-
- y.d = xd;
- y.e = getBase10Exponent(xd, e);
-
- return external ? finalise(y, pr, rm) : y;
- };
-
-
- /*
- * Return the number of significant digits of the value of this Decimal.
- *
- * [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0.
- *
- */
- P.precision = P.sd = function (z) {
- var k,
- x = this;
-
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
-
- if (x.d) {
- k = getPrecision(x.d);
- if (z && x.e + 1 > k) k = x.e + 1;
- } else {
- k = NaN;
- }
-
- return k;
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using
- * rounding mode `rounding`.
- *
- */
- P.round = function () {
- var x = this,
- Ctor = x.constructor;
-
- return finalise(new Ctor(x), x.e + 1, Ctor.rounding);
- };
-
-
- /*
- * Return a new Decimal whose value is the sine of the value in radians of this Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-1, 1]
- *
- * sin(x) = x - x^3/3! + x^5/5! - ...
- *
- * sin(0) = 0
- * sin(-0) = -0
- * sin(Infinity) = NaN
- * sin(-Infinity) = NaN
- * sin(NaN) = NaN
- *
- */
- P.sine = P.sin = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite()) return new Ctor(NaN);
- if (x.isZero()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
- Ctor.rounding = 1;
-
- x = sine(Ctor, toLessThanHalfPi(Ctor, x));
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true);
- };
-
-
- /*
- * Return a new Decimal whose value is the square root of this Decimal, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * sqrt(-n) = N
- * sqrt(N) = N
- * sqrt(-I) = N
- * sqrt(I) = I
- * sqrt(0) = 0
- * sqrt(-0) = -0
- *
- */
- P.squareRoot = P.sqrt = function () {
- var m, n, sd, r, rep, t,
- x = this,
- d = x.d,
- e = x.e,
- s = x.s,
- Ctor = x.constructor;
-
- // Negative/NaN/Infinity/zero?
- if (s !== 1 || !d || !d[0]) {
- return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);
- }
-
- external = false;
-
- // Initial estimate.
- s = Math.sqrt(+x);
-
- // Math.sqrt underflow/overflow?
- // Pass x to Math.sqrt as integer, then adjust the exponent of the result.
- if (s == 0 || s == 1 / 0) {
- n = digitsToString(d);
-
- if ((n.length + e) % 2 == 0) n += '0';
- s = Math.sqrt(n);
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
-
- if (s == 1 / 0) {
- n = '5e' + e;
- } else {
- n = s.toExponential();
- n = n.slice(0, n.indexOf('e') + 1) + e;
- }
-
- r = new Ctor(n);
- } else {
- r = new Ctor(s.toString());
- }
-
- sd = (e = Ctor.precision) + 3;
-
- // Newton-Raphson iteration.
- for (;;) {
- t = r;
- r = t.plus(divide(x, t, sd + 2, 1)).times(0.5);
-
- // TODO? Replace with for-loop and checkRoundingDigits.
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
- n = n.slice(sd - 3, sd + 1);
-
- // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or
- // 4999, i.e. approaching a rounding boundary, continue the iteration.
- if (n == '9999' || !rep && n == '4999') {
-
- // On the first iteration only, check to see if rounding up gives the exact result as the
- // nines may infinitely repeat.
- if (!rep) {
- finalise(t, e + 1, 0);
-
- if (t.times(t).eq(x)) {
- r = t;
- break;
- }
- }
-
- sd += 4;
- rep = 1;
- } else {
-
- // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.
- // If not, then there are further digits and m will be truthy.
- if (!+n || !+n.slice(1) && n.charAt(0) == '5') {
-
- // Truncate to the first rounding digit.
- finalise(r, e + 1, 1);
- m = !r.times(r).eq(x);
- }
-
- break;
- }
- }
- }
-
- external = true;
-
- return finalise(r, e, Ctor.rounding, m);
- };
-
-
- /*
- * Return a new Decimal whose value is the tangent of the value in radians of this Decimal.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-Infinity, Infinity]
- *
- * tan(0) = 0
- * tan(-0) = -0
- * tan(Infinity) = NaN
- * tan(-Infinity) = NaN
- * tan(NaN) = NaN
- *
- */
- P.tangent = P.tan = function () {
- var pr, rm,
- x = this,
- Ctor = x.constructor;
-
- if (!x.isFinite()) return new Ctor(NaN);
- if (x.isZero()) return new Ctor(x);
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
- Ctor.precision = pr + 10;
- Ctor.rounding = 1;
-
- x = x.sin();
- x.s = 1;
- x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0);
-
- Ctor.precision = pr;
- Ctor.rounding = rm;
-
- return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true);
- };
-
-
- /*
- * n * 0 = 0
- * n * N = N
- * n * I = I
- * 0 * n = 0
- * 0 * 0 = 0
- * 0 * N = N
- * 0 * I = N
- * N * n = N
- * N * 0 = N
- * N * N = N
- * N * I = N
- * I * n = I
- * I * 0 = N
- * I * N = N
- * I * I = I
- *
- * Return a new Decimal whose value is this Decimal times `y`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- */
- P.times = P.mul = function (y) {
- var carry, e, i, k, r, rL, t, xdL, ydL,
- x = this,
- Ctor = x.constructor,
- xd = x.d,
- yd = (y = new Ctor(y)).d;
-
- y.s *= x.s;
-
- // If either is NaN, ±Infinity or ±0...
- if (!xd || !xd[0] || !yd || !yd[0]) {
-
- return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd
-
- // Return NaN if either is NaN.
- // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity.
- ? NaN
-
- // Return ±Infinity if either is ±Infinity.
- // Return ±0 if either is ±0.
- : !xd || !yd ? y.s / 0 : y.s * 0);
- }
-
- e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE);
- xdL = xd.length;
- ydL = yd.length;
-
- // Ensure xd points to the longer array.
- if (xdL < ydL) {
- r = xd;
- xd = yd;
- yd = r;
- rL = xdL;
- xdL = ydL;
- ydL = rL;
- }
-
- // Initialise the result array with zeros.
- r = [];
- rL = xdL + ydL;
- for (i = rL; i--;) r.push(0);
-
- // Multiply!
- for (i = ydL; --i >= 0;) {
- carry = 0;
- for (k = xdL + i; k > i;) {
- t = r[k] + yd[i] * xd[k - i - 1] + carry;
- r[k--] = t % BASE | 0;
- carry = t / BASE | 0;
- }
-
- r[k] = (r[k] + carry) % BASE | 0;
- }
-
- // Remove trailing zeros.
- for (; !r[--rL];) r.pop();
-
- if (carry) ++e;
- else r.shift();
-
- y.d = r;
- y.e = getBase10Exponent(r, e);
-
- return external ? finalise(y, Ctor.precision, Ctor.rounding) : y;
- };
-
-
- /*
- * Return a string representing the value of this Decimal in base 2, round to `sd` significant
- * digits using rounding mode `rm`.
- *
- * If the optional `sd` argument is present then return binary exponential notation.
- *
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toBinary = function (sd, rm) {
- return toStringBinary(this, 2, sd, rm);
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `dp`
- * decimal places using rounding mode `rm` or `rounding` if `rm` is omitted.
- *
- * If `dp` is omitted, return a new Decimal whose value is the value of this Decimal.
- *
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toDecimalPlaces = P.toDP = function (dp, rm) {
- var x = this,
- Ctor = x.constructor;
-
- x = new Ctor(x);
- if (dp === void 0) return x;
-
- checkInt32(dp, 0, MAX_DIGITS);
-
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
-
- return finalise(x, dp + x.e + 1, rm);
- };
-
-
- /*
- * Return a string representing the value of this Decimal in exponential notation rounded to
- * `dp` fixed decimal places using rounding mode `rounding`.
- *
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toExponential = function (dp, rm) {
- var str,
- x = this,
- Ctor = x.constructor;
-
- if (dp === void 0) {
- str = finiteToString(x, true);
- } else {
- checkInt32(dp, 0, MAX_DIGITS);
-
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
-
- x = finalise(new Ctor(x), dp + 1, rm);
- str = finiteToString(x, true, dp + 1);
- }
-
- return x.isNeg() && !x.isZero() ? '-' + str : str;
- };
-
-
- /*
- * Return a string representing the value of this Decimal in normal (fixed-point) notation to
- * `dp` fixed decimal places and rounded using rounding mode `rm` or `rounding` if `rm` is
- * omitted.
- *
- * As with JavaScript numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'.
- *
- * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'.
- * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'.
- * (-0).toFixed(3) is '0.000'.
- * (-0.5).toFixed(0) is '-0'.
- *
- */
- P.toFixed = function (dp, rm) {
- var str, y,
- x = this,
- Ctor = x.constructor;
-
- if (dp === void 0) {
- str = finiteToString(x);
- } else {
- checkInt32(dp, 0, MAX_DIGITS);
-
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
-
- y = finalise(new Ctor(x), dp + x.e + 1, rm);
- str = finiteToString(y, false, dp + y.e + 1);
- }
-
- // To determine whether to add the minus sign look at the value before it was rounded,
- // i.e. look at `x` rather than `y`.
- return x.isNeg() && !x.isZero() ? '-' + str : str;
- };
-
-
- /*
- * Return an array representing the value of this Decimal as a simple fraction with an integer
- * numerator and an integer denominator.
- *
- * The denominator will be a positive non-zero value less than or equal to the specified maximum
- * denominator. If a maximum denominator is not specified, the denominator will be the lowest
- * value necessary to represent the number exactly.
- *
- * [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity.
- *
- */
- P.toFraction = function (maxD) {
- var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r,
- x = this,
- xd = x.d,
- Ctor = x.constructor;
-
- if (!xd) return new Ctor(x);
-
- n1 = d0 = new Ctor(1);
- d1 = n0 = new Ctor(0);
-
- d = new Ctor(d1);
- e = d.e = getPrecision(xd) - x.e - 1;
- k = e % LOG_BASE;
- d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k);
-
- if (maxD == null) {
-
- // d is 10**e, the minimum max-denominator needed.
- maxD = e > 0 ? d : n1;
- } else {
- n = new Ctor(maxD);
- if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n);
- maxD = n.gt(d) ? (e > 0 ? d : n1) : n;
- }
-
- external = false;
- n = new Ctor(digitsToString(xd));
- pr = Ctor.precision;
- Ctor.precision = e = xd.length * LOG_BASE * 2;
-
- for (;;) {
- q = divide(n, d, 0, 1, 1);
- d2 = d0.plus(q.times(d1));
- if (d2.cmp(maxD) == 1) break;
- d0 = d1;
- d1 = d2;
- d2 = n1;
- n1 = n0.plus(q.times(d2));
- n0 = d2;
- d2 = d;
- d = n.minus(q.times(d2));
- n = d2;
- }
-
- d2 = divide(maxD.minus(d0), d1, 0, 1, 1);
- n0 = n0.plus(d2.times(n1));
- d0 = d0.plus(d2.times(d1));
- n0.s = n1.s = x.s;
-
- // Determine which fraction is closer to x, n0/d0 or n1/d1?
- r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1
- ? [n1, d1] : [n0, d0];
-
- Ctor.precision = pr;
- external = true;
-
- return r;
- };
-
-
- /*
- * Return a string representing the value of this Decimal in base 16, round to `sd` significant
- * digits using rounding mode `rm`.
- *
- * If the optional `sd` argument is present then return binary exponential notation.
- *
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toHexadecimal = P.toHex = function (sd, rm) {
- return toStringBinary(this, 16, sd, rm);
- };
-
-
- /*
- * Returns a new Decimal whose value is the nearest multiple of `y` in the direction of rounding
- * mode `rm`, or `Decimal.rounding` if `rm` is omitted, to the value of this Decimal.
- *
- * The return value will always have the same sign as this Decimal, unless either this Decimal
- * or `y` is NaN, in which case the return value will be also be NaN.
- *
- * The return value is not affected by the value of `precision`.
- *
- * y {number|string|Decimal} The magnitude to round to a multiple of.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- * 'toNearest() rounding mode not an integer: {rm}'
- * 'toNearest() rounding mode out of range: {rm}'
- *
- */
- P.toNearest = function (y, rm) {
- var x = this,
- Ctor = x.constructor;
-
- x = new Ctor(x);
-
- if (y == null) {
-
- // If x is not finite, return x.
- if (!x.d) return x;
-
- y = new Ctor(1);
- rm = Ctor.rounding;
- } else {
- y = new Ctor(y);
- if (rm === void 0) {
- rm = Ctor.rounding;
- } else {
- checkInt32(rm, 0, 8);
- }
-
- // If x is not finite, return x if y is not NaN, else NaN.
- if (!x.d) return y.s ? x : y;
-
- // If y is not finite, return Infinity with the sign of x if y is Infinity, else NaN.
- if (!y.d) {
- if (y.s) y.s = x.s;
- return y;
- }
- }
-
- // If y is not zero, calculate the nearest multiple of y to x.
- if (y.d[0]) {
- external = false;
- x = divide(x, y, 0, rm, 1).times(y);
- external = true;
- finalise(x);
-
- // If y is zero, return zero with the sign of x.
- } else {
- y.s = x.s;
- x = y;
- }
-
- return x;
- };
-
-
- /*
- * Return the value of this Decimal converted to a number primitive.
- * Zero keeps its sign.
- *
- */
- P.toNumber = function () {
- return +this;
- };
-
-
- /*
- * Return a string representing the value of this Decimal in base 8, round to `sd` significant
- * digits using rounding mode `rm`.
- *
- * If the optional `sd` argument is present then return binary exponential notation.
- *
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toOctal = function (sd, rm) {
- return toStringBinary(this, 8, sd, rm);
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal raised to the power `y`, rounded
- * to `precision` significant digits using rounding mode `rounding`.
- *
- * ECMAScript compliant.
- *
- * pow(x, NaN) = NaN
- * pow(x, ±0) = 1
-
- * pow(NaN, non-zero) = NaN
- * pow(abs(x) > 1, +Infinity) = +Infinity
- * pow(abs(x) > 1, -Infinity) = +0
- * pow(abs(x) == 1, ±Infinity) = NaN
- * pow(abs(x) < 1, +Infinity) = +0
- * pow(abs(x) < 1, -Infinity) = +Infinity
- * pow(+Infinity, y > 0) = +Infinity
- * pow(+Infinity, y < 0) = +0
- * pow(-Infinity, odd integer > 0) = -Infinity
- * pow(-Infinity, even integer > 0) = +Infinity
- * pow(-Infinity, odd integer < 0) = -0
- * pow(-Infinity, even integer < 0) = +0
- * pow(+0, y > 0) = +0
- * pow(+0, y < 0) = +Infinity
- * pow(-0, odd integer > 0) = -0
- * pow(-0, even integer > 0) = +0
- * pow(-0, odd integer < 0) = -Infinity
- * pow(-0, even integer < 0) = +Infinity
- * pow(finite x < 0, finite non-integer) = NaN
- *
- * For non-integer or very large exponents pow(x, y) is calculated using
- *
- * x^y = exp(y*ln(x))
- *
- * Assuming the first 15 rounding digits are each equally likely to be any digit 0-9, the
- * probability of an incorrectly rounded result
- * P([49]9{14} | [50]0{14}) = 2 * 0.2 * 10^-14 = 4e-15 = 1/2.5e+14
- * i.e. 1 in 250,000,000,000,000
- *
- * If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place).
- *
- * y {number|string|Decimal} The power to which to raise this Decimal.
- *
- */
- P.toPower = P.pow = function (y) {
- var e, k, pr, r, rm, s,
- x = this,
- Ctor = x.constructor,
- yn = +(y = new Ctor(y));
-
- // Either ±Infinity, NaN or ±0?
- if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn));
-
- x = new Ctor(x);
-
- if (x.eq(1)) return x;
-
- pr = Ctor.precision;
- rm = Ctor.rounding;
-
- if (y.eq(1)) return finalise(x, pr, rm);
-
- // y exponent
- e = mathfloor(y.e / LOG_BASE);
-
- // If y is a small integer use the 'exponentiation by squaring' algorithm.
- if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
- r = intPow(Ctor, x, k, pr);
- return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm);
- }
-
- s = x.s;
-
- // if x is negative
- if (s < 0) {
-
- // if y is not an integer
- if (e < y.d.length - 1) return new Ctor(NaN);
-
- // Result is positive if x is negative and the last digit of integer y is even.
- if ((y.d[e] & 1) == 0) s = 1;
-
- // if x.eq(-1)
- if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) {
- x.s = s;
- return x;
- }
- }
-
- // Estimate result exponent.
- // x^y = 10^e, where e = y * log10(x)
- // log10(x) = log10(x_significand) + x_exponent
- // log10(x_significand) = ln(x_significand) / ln(10)
- k = mathpow(+x, yn);
- e = k == 0 || !isFinite(k)
- ? mathfloor(yn * (Math.log('0.' + digitsToString(x.d)) / Math.LN10 + x.e + 1))
- : new Ctor(k + '').e;
-
- // Exponent estimate may be incorrect e.g. x: 0.999999999999999999, y: 2.29, e: 0, r.e: -1.
-
- // Overflow/underflow?
- if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0);
-
- external = false;
- Ctor.rounding = x.s = 1;
-
- // Estimate the extra guard digits needed to ensure five correct rounding digits from
- // naturalLogarithm(x). Example of failure without these extra digits (precision: 10):
- // new Decimal(2.32456).pow('2087987436534566.46411')
- // should be 1.162377823e+764914905173815, but is 1.162355823e+764914905173815
- k = Math.min(12, (e + '').length);
-
- // r = x^y = exp(y*ln(x))
- r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr);
-
- // r may be Infinity, e.g. (0.9999999999999999).pow(-1e+40)
- if (r.d) {
-
- // Truncate to the required precision plus five rounding digits.
- r = finalise(r, pr + 5, 1);
-
- // If the rounding digits are [49]9999 or [50]0000 increase the precision by 10 and recalculate
- // the result.
- if (checkRoundingDigits(r.d, pr, rm)) {
- e = pr + 10;
-
- // Truncate to the increased precision plus five rounding digits.
- r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1);
-
- // Check for 14 nines from the 2nd rounding digit (the first rounding digit may be 4 or 9).
- if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 1e14) {
- r = finalise(r, pr + 1, 0);
- }
- }
- }
-
- r.s = s;
- external = true;
- Ctor.rounding = rm;
-
- return finalise(r, pr, rm);
- };
-
-
- /*
- * Return a string representing the value of this Decimal rounded to `sd` significant digits
- * using rounding mode `rounding`.
- *
- * Return exponential notation if `sd` is less than the number of digits necessary to represent
- * the integer part of the value in normal notation.
- *
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- */
- P.toPrecision = function (sd, rm) {
- var str,
- x = this,
- Ctor = x.constructor;
-
- if (sd === void 0) {
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
- } else {
- checkInt32(sd, 1, MAX_DIGITS);
-
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
-
- x = finalise(new Ctor(x), sd, rm);
- str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd);
- }
-
- return x.isNeg() && !x.isZero() ? '-' + str : str;
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `sd`
- * significant digits using rounding mode `rm`, or to `precision` and `rounding` respectively if
- * omitted.
- *
- * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.
- * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.
- *
- * 'toSD() digits out of range: {sd}'
- * 'toSD() digits not an integer: {sd}'
- * 'toSD() rounding mode not an integer: {rm}'
- * 'toSD() rounding mode out of range: {rm}'
- *
- */
- P.toSignificantDigits = P.toSD = function (sd, rm) {
- var x = this,
- Ctor = x.constructor;
-
- if (sd === void 0) {
- sd = Ctor.precision;
- rm = Ctor.rounding;
- } else {
- checkInt32(sd, 1, MAX_DIGITS);
-
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
- }
-
- return finalise(new Ctor(x), sd, rm);
- };
-
-
- /*
- * Return a string representing the value of this Decimal.
- *
- * Return exponential notation if this Decimal has a positive exponent equal to or greater than
- * `toExpPos`, or a negative exponent equal to or less than `toExpNeg`.
- *
- */
- P.toString = function () {
- var x = this,
- Ctor = x.constructor,
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
-
- return x.isNeg() && !x.isZero() ? '-' + str : str;
- };
-
-
- /*
- * Return a new Decimal whose value is the value of this Decimal truncated to a whole number.
- *
- */
- P.truncated = P.trunc = function () {
- return finalise(new this.constructor(this), this.e + 1, 1);
- };
-
-
- /*
- * Return a string representing the value of this Decimal.
- * Unlike `toString`, negative zero will include the minus sign.
- *
- */
- P.valueOf = P.toJSON = function () {
- var x = this,
- Ctor = x.constructor,
- str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
-
- return x.isNeg() ? '-' + str : str;
- };
-
-
- // Helper functions for Decimal.prototype (P) and/or Decimal methods, and their callers.
-
-
- /*
- * digitsToString P.cubeRoot, P.logarithm, P.squareRoot, P.toFraction, P.toPower,
- * finiteToString, naturalExponential, naturalLogarithm
- * checkInt32 P.toDecimalPlaces, P.toExponential, P.toFixed, P.toNearest,
- * P.toPrecision, P.toSignificantDigits, toStringBinary, random
- * checkRoundingDigits P.logarithm, P.toPower, naturalExponential, naturalLogarithm
- * convertBase toStringBinary, parseOther
- * cos P.cos
- * divide P.atanh, P.cubeRoot, P.dividedBy, P.dividedToIntegerBy,
- * P.logarithm, P.modulo, P.squareRoot, P.tan, P.tanh, P.toFraction,
- * P.toNearest, toStringBinary, naturalExponential, naturalLogarithm,
- * taylorSeries, atan2, parseOther
- * finalise P.absoluteValue, P.atan, P.atanh, P.ceil, P.cos, P.cosh,
- * P.cubeRoot, P.dividedToIntegerBy, P.floor, P.logarithm, P.minus,
- * P.modulo, P.negated, P.plus, P.round, P.sin, P.sinh, P.squareRoot,
- * P.tan, P.times, P.toDecimalPlaces, P.toExponential, P.toFixed,
- * P.toNearest, P.toPower, P.toPrecision, P.toSignificantDigits,
- * P.truncated, divide, getLn10, getPi, naturalExponential,
- * naturalLogarithm, ceil, floor, round, trunc
- * finiteToString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf,
- * toStringBinary
- * getBase10Exponent P.minus, P.plus, P.times, parseOther
- * getLn10 P.logarithm, naturalLogarithm
- * getPi P.acos, P.asin, P.atan, toLessThanHalfPi, atan2
- * getPrecision P.precision, P.toFraction
- * getZeroString digitsToString, finiteToString
- * intPow P.toPower, parseOther
- * isOdd toLessThanHalfPi
- * maxOrMin max, min
- * naturalExponential P.naturalExponential, P.toPower
- * naturalLogarithm P.acosh, P.asinh, P.atanh, P.logarithm, P.naturalLogarithm,
- * P.toPower, naturalExponential
- * nonFiniteToString finiteToString, toStringBinary
- * parseDecimal Decimal
- * parseOther Decimal
- * sin P.sin
- * taylorSeries P.cosh, P.sinh, cos, sin
- * toLessThanHalfPi P.cos, P.sin
- * toStringBinary P.toBinary, P.toHexadecimal, P.toOctal
- * truncate intPow
- *
- * Throws: P.logarithm, P.precision, P.toFraction, checkInt32, getLn10, getPi,
- * naturalLogarithm, config, parseOther, random, Decimal
- */
-
-
- function digitsToString(d) {
- var i, k, ws,
- indexOfLastWord = d.length - 1,
- str = '',
- w = d[0];
-
- if (indexOfLastWord > 0) {
- str += w;
- for (i = 1; i < indexOfLastWord; i++) {
- ws = d[i] + '';
- k = LOG_BASE - ws.length;
- if (k) str += getZeroString(k);
- str += ws;
- }
-
- w = d[i];
- ws = w + '';
- k = LOG_BASE - ws.length;
- if (k) str += getZeroString(k);
- } else if (w === 0) {
- return '0';
- }
-
- // Remove trailing zeros of last w.
- for (; w % 10 === 0;) w /= 10;
-
- return str + w;
- }
-
-
- function checkInt32(i, min, max) {
- if (i !== ~~i || i < min || i > max) {
- throw Error(invalidArgument + i);
- }
- }
-
-
- /*
- * Check 5 rounding digits if `repeating` is null, 4 otherwise.
- * `repeating == null` if caller is `log` or `pow`,
- * `repeating != null` if caller is `naturalLogarithm` or `naturalExponential`.
- */
- function checkRoundingDigits(d, i, rm, repeating) {
- var di, k, r, rd;
-
- // Get the length of the first word of the array d.
- for (k = d[0]; k >= 10; k /= 10) --i;
-
- // Is the rounding digit in the first word of d?
- if (--i < 0) {
- i += LOG_BASE;
- di = 0;
- } else {
- di = Math.ceil((i + 1) / LOG_BASE);
- i %= LOG_BASE;
- }
-
- // i is the index (0 - 6) of the rounding digit.
- // E.g. if within the word 3487563 the first rounding digit is 5,
- // then i = 4, k = 1000, rd = 3487563 % 1000 = 563
- k = mathpow(10, LOG_BASE - i);
- rd = d[di] % k | 0;
-
- if (repeating == null) {
- if (i < 3) {
- if (i == 0) rd = rd / 100 | 0;
- else if (i == 1) rd = rd / 10 | 0;
- r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 50000 || rd == 0;
- } else {
- r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) &&
- (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 ||
- (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;
- }
- } else {
- if (i < 4) {
- if (i == 0) rd = rd / 1000 | 0;
- else if (i == 1) rd = rd / 100 | 0;
- else if (i == 2) rd = rd / 10 | 0;
- r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999;
- } else {
- r = ((repeating || rm < 4) && rd + 1 == k ||
- (!repeating && rm > 3) && rd + 1 == k / 2) &&
- (d[di + 1] / k / 1000 | 0) == mathpow(10, i - 3) - 1;
- }
- }
-
- return r;
- }
-
-
- // Convert string of `baseIn` to an array of numbers of `baseOut`.
- // Eg. convertBase('255', 10, 16) returns [15, 15].
- // Eg. convertBase('ff', 16, 10) returns [2, 5, 5].
- function convertBase(str, baseIn, baseOut) {
- var j,
- arr = [0],
- arrL,
- i = 0,
- strL = str.length;
-
- for (; i < strL;) {
- for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn;
- arr[0] += NUMERALS.indexOf(str.charAt(i++));
- for (j = 0; j < arr.length; j++) {
- if (arr[j] > baseOut - 1) {
- if (arr[j + 1] === void 0) arr[j + 1] = 0;
- arr[j + 1] += arr[j] / baseOut | 0;
- arr[j] %= baseOut;
- }
- }
- }
-
- return arr.reverse();
- }
-
-
- /*
- * cos(x) = 1 - x^2/2! + x^4/4! - ...
- * |x| < pi/2
- *
- */
- function cosine(Ctor, x) {
- var k, len, y;
-
- if (x.isZero()) return x;
-
- // Argument reduction: cos(4x) = 8*(cos^4(x) - cos^2(x)) + 1
- // i.e. cos(x) = 8*(cos^4(x/4) - cos^2(x/4)) + 1
-
- // Estimate the optimum number of times to use the argument reduction.
- len = x.d.length;
- if (len < 32) {
- k = Math.ceil(len / 3);
- y = (1 / tinyPow(4, k)).toString();
- } else {
- k = 16;
- y = '2.3283064365386962890625e-10';
- }
-
- Ctor.precision += k;
-
- x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1));
-
- // Reverse argument reduction
- for (var i = k; i--;) {
- var cos2x = x.times(x);
- x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1);
- }
-
- Ctor.precision -= k;
-
- return x;
- }
-
-
- /*
- * Perform division in the specified base.
- */
- var divide = (function () {
-
- // Assumes non-zero x and k, and hence non-zero result.
- function multiplyInteger(x, k, base) {
- var temp,
- carry = 0,
- i = x.length;
-
- for (x = x.slice(); i--;) {
- temp = x[i] * k + carry;
- x[i] = temp % base | 0;
- carry = temp / base | 0;
- }
-
- if (carry) x.unshift(carry);
-
- return x;
- }
-
- function compare(a, b, aL, bL) {
- var i, r;
-
- if (aL != bL) {
- r = aL > bL ? 1 : -1;
- } else {
- for (i = r = 0; i < aL; i++) {
- if (a[i] != b[i]) {
- r = a[i] > b[i] ? 1 : -1;
- break;
- }
- }
- }
-
- return r;
- }
-
- function subtract(a, b, aL, base) {
- var i = 0;
-
- // Subtract b from a.
- for (; aL--;) {
- a[aL] -= i;
- i = a[aL] < b[aL] ? 1 : 0;
- a[aL] = i * base + a[aL] - b[aL];
- }
-
- // Remove leading zeros.
- for (; !a[0] && a.length > 1;) a.shift();
- }
-
- return function (x, y, pr, rm, dp, base) {
- var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0,
- yL, yz,
- Ctor = x.constructor,
- sign = x.s == y.s ? 1 : -1,
- xd = x.d,
- yd = y.d;
-
- // Either NaN, Infinity or 0?
- if (!xd || !xd[0] || !yd || !yd[0]) {
-
- return new Ctor(// Return NaN if either NaN, or both Infinity or 0.
- !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN :
-
- // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
- xd && xd[0] == 0 || !yd ? sign * 0 : sign / 0);
- }
-
- if (base) {
- logBase = 1;
- e = x.e - y.e;
- } else {
- base = BASE;
- logBase = LOG_BASE;
- e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
- }
-
- yL = yd.length;
- xL = xd.length;
- q = new Ctor(sign);
- qd = q.d = [];
-
- // Result exponent may be one less than e.
- // The digit array of a Decimal from toStringBinary may have trailing zeros.
- for (i = 0; yd[i] == (xd[i] || 0); i++);
-
- if (yd[i] > (xd[i] || 0)) e--;
-
- if (pr == null) {
- sd = pr = Ctor.precision;
- rm = Ctor.rounding;
- } else if (dp) {
- sd = pr + (x.e - y.e) + 1;
- } else {
- sd = pr;
- }
-
- if (sd < 0) {
- qd.push(1);
- more = true;
- } else {
-
- // Convert precision in number of base 10 digits to base 1e7 digits.
- sd = sd / logBase + 2 | 0;
- i = 0;
-
- // divisor < 1e7
- if (yL == 1) {
- k = 0;
- yd = yd[0];
- sd++;
-
- // k is the carry.
- for (; (i < xL || k) && sd--; i++) {
- t = k * base + (xd[i] || 0);
- qd[i] = t / yd | 0;
- k = t % yd | 0;
- }
-
- more = k || i < xL;
-
- // divisor >= 1e7
- } else {
-
- // Normalise xd and yd so highest order digit of yd is >= base/2
- k = base / (yd[0] + 1) | 0;
-
- if (k > 1) {
- yd = multiplyInteger(yd, k, base);
- xd = multiplyInteger(xd, k, base);
- yL = yd.length;
- xL = xd.length;
- }
-
- xi = yL;
- rem = xd.slice(0, yL);
- remL = rem.length;
-
- // Add zeros to make remainder as long as divisor.
- for (; remL < yL;) rem[remL++] = 0;
-
- yz = yd.slice();
- yz.unshift(0);
- yd0 = yd[0];
-
- if (yd[1] >= base / 2) ++yd0;
-
- do {
- k = 0;
-
- // Compare divisor and remainder.
- cmp = compare(yd, rem, yL, remL);
-
- // If divisor < remainder.
- if (cmp < 0) {
-
- // Calculate trial digit, k.
- rem0 = rem[0];
- if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
-
- // k will be how many times the divisor goes into the current remainder.
- k = rem0 / yd0 | 0;
-
- // Algorithm:
- // 1. product = divisor * trial digit (k)
- // 2. if product > remainder: product -= divisor, k--
- // 3. remainder -= product
- // 4. if product was < remainder at 2:
- // 5. compare new remainder and divisor
- // 6. If remainder > divisor: remainder -= divisor, k++
-
- if (k > 1) {
- if (k >= base) k = base - 1;
-
- // product = divisor * trial digit.
- prod = multiplyInteger(yd, k, base);
- prodL = prod.length;
- remL = rem.length;
-
- // Compare product and remainder.
- cmp = compare(prod, rem, prodL, remL);
-
- // product > remainder.
- if (cmp == 1) {
- k--;
-
- // Subtract divisor from product.
- subtract(prod, yL < prodL ? yz : yd, prodL, base);
- }
- } else {
-
- // cmp is -1.
- // If k is 0, there is no need to compare yd and rem again below, so change cmp to 1
- // to avoid it. If k is 1 there is a need to compare yd and rem again below.
- if (k == 0) cmp = k = 1;
- prod = yd.slice();
- }
-
- prodL = prod.length;
- if (prodL < remL) prod.unshift(0);
-
- // Subtract product from remainder.
- subtract(rem, prod, remL, base);
-
- // If product was < previous remainder.
- if (cmp == -1) {
- remL = rem.length;
-
- // Compare divisor and new remainder.
- cmp = compare(yd, rem, yL, remL);
-
- // If divisor < new remainder, subtract divisor from remainder.
- if (cmp < 1) {
- k++;
-
- // Subtract divisor from remainder.
- subtract(rem, yL < remL ? yz : yd, remL, base);
- }
- }
-
- remL = rem.length;
- } else if (cmp === 0) {
- k++;
- rem = [0];
- } // if cmp === 1, k will be 0
-
- // Add the next digit, k, to the result array.
- qd[i++] = k;
-
- // Update the remainder.
- if (cmp && rem[0]) {
- rem[remL++] = xd[xi] || 0;
- } else {
- rem = [xd[xi]];
- remL = 1;
- }
-
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
-
- more = rem[0] !== void 0;
- }
-
- // Leading zero?
- if (!qd[0]) qd.shift();
- }
-
- // logBase is 1 when divide is being used for base conversion.
- if (logBase == 1) {
- q.e = e;
- inexact = more;
- } else {
-
- // To calculate q.e, first get the number of digits of qd[0].
- for (i = 1, k = qd[0]; k >= 10; k /= 10) i++;
- q.e = i + e * logBase - 1;
-
- finalise(q, dp ? pr + q.e + 1 : pr, rm, more);
- }
-
- return q;
- };
- })();
-
-
- /*
- * Round `x` to `sd` significant digits using rounding mode `rm`.
- * Check for over/under-flow.
- */
- function finalise(x, sd, rm, isTruncated) {
- var digits, i, j, k, rd, roundUp, w, xd, xdi,
- Ctor = x.constructor;
-
- // Don't round if sd is null or undefined.
- out: if (sd != null) {
- xd = x.d;
-
- // Infinity/NaN.
- if (!xd) return x;
-
- // rd: the rounding digit, i.e. the digit after the digit that may be rounded up.
- // w: the word of xd containing rd, a base 1e7 number.
- // xdi: the index of w within xd.
- // digits: the number of digits of w.
- // i: what would be the index of rd within w if all the numbers were 7 digits long (i.e. if
- // they had leading zeros)
- // j: if > 0, the actual index of rd within w (if < 0, rd is a leading zero).
-
- // Get the length of the first word of the digits array xd.
- for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++;
- i = sd - digits;
-
- // Is the rounding digit in the first word of xd?
- if (i < 0) {
- i += LOG_BASE;
- j = sd;
- w = xd[xdi = 0];
-
- // Get the rounding digit at index j of w.
- rd = w / mathpow(10, digits - j - 1) % 10 | 0;
- } else {
- xdi = Math.ceil((i + 1) / LOG_BASE);
- k = xd.length;
- if (xdi >= k) {
- if (isTruncated) {
-
- // Needed by `naturalExponential`, `naturalLogarithm` and `squareRoot`.
- for (; k++ <= xdi;) xd.push(0);
- w = rd = 0;
- digits = 1;
- i %= LOG_BASE;
- j = i - LOG_BASE + 1;
- } else {
- break out;
- }
- } else {
- w = k = xd[xdi];
-
- // Get the number of digits of w.
- for (digits = 1; k >= 10; k /= 10) digits++;
-
- // Get the index of rd within w.
- i %= LOG_BASE;
-
- // Get the index of rd within w, adjusted for leading zeros.
- // The number of leading zeros of w is given by LOG_BASE - digits.
- j = i - LOG_BASE + digits;
-
- // Get the rounding digit at index j of w.
- rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;
- }
- }
-
- // Are there any non-zero digits after the rounding digit?
- isTruncated = isTruncated || sd < 0 ||
- xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1));
-
- // The expression `w % mathpow(10, digits - j - 1)` returns all the digits of w to the right
- // of the digit at (left-to-right) index j, e.g. if w is 908714 and j is 2, the expression
- // will give 714.
-
- roundUp = rm < 4
- ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))
- : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 &&
-
- // Check whether the digit to the left of the rounding digit is odd.
- ((i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10) & 1 ||
- rm == (x.s < 0 ? 8 : 7));
-
- if (sd < 1 || !xd[0]) {
- xd.length = 0;
- if (roundUp) {
-
- // Convert sd to decimal places.
- sd -= x.e + 1;
-
- // 1, 0.1, 0.01, 0.001, 0.0001 etc.
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
- x.e = -sd || 0;
- } else {
-
- // Zero.
- xd[0] = x.e = 0;
- }
-
- return x;
- }
-
- // Remove excess digits.
- if (i == 0) {
- xd.length = xdi;
- k = 1;
- xdi--;
- } else {
- xd.length = xdi + 1;
- k = mathpow(10, LOG_BASE - i);
-
- // E.g. 56700 becomes 56000 if 7 is the rounding digit.
- // j > 0 means i > number of leading zeros of w.
- xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0;
- }
-
- if (roundUp) {
- for (;;) {
-
- // Is the digit to be rounded up in the first word of xd?
- if (xdi == 0) {
-
- // i will be the length of xd[0] before k is added.
- for (i = 1, j = xd[0]; j >= 10; j /= 10) i++;
- j = xd[0] += k;
- for (k = 1; j >= 10; j /= 10) k++;
-
- // if i != k the length has increased.
- if (i != k) {
- x.e++;
- if (xd[0] == BASE) xd[0] = 1;
- }
-
- break;
- } else {
- xd[xdi] += k;
- if (xd[xdi] != BASE) break;
- xd[xdi--] = 0;
- k = 1;
- }
- }
- }
-
- // Remove trailing zeros.
- for (i = xd.length; xd[--i] === 0;) xd.pop();
- }
-
- if (external) {
-
- // Overflow?
- if (x.e > Ctor.maxE) {
-
- // Infinity.
- x.d = null;
- x.e = NaN;
-
- // Underflow?
- } else if (x.e < Ctor.minE) {
-
- // Zero.
- x.e = 0;
- x.d = [0];
- // Ctor.underflow = true;
- } // else Ctor.underflow = false;
- }
-
- return x;
- }
-
-
- function finiteToString(x, isExp, sd) {
- if (!x.isFinite()) return nonFiniteToString(x);
- var k,
- e = x.e,
- str = digitsToString(x.d),
- len = str.length;
-
- if (isExp) {
- if (sd && (k = sd - len) > 0) {
- str = str.charAt(0) + '.' + str.slice(1) + getZeroString(k);
- } else if (len > 1) {
- str = str.charAt(0) + '.' + str.slice(1);
- }
-
- str = str + (x.e < 0 ? 'e' : 'e+') + x.e;
- } else if (e < 0) {
- str = '0.' + getZeroString(-e - 1) + str;
- if (sd && (k = sd - len) > 0) str += getZeroString(k);
- } else if (e >= len) {
- str += getZeroString(e + 1 - len);
- if (sd && (k = sd - e - 1) > 0) str = str + '.' + getZeroString(k);
- } else {
- if ((k = e + 1) < len) str = str.slice(0, k) + '.' + str.slice(k);
- if (sd && (k = sd - len) > 0) {
- if (e + 1 === len) str += '.';
- str += getZeroString(k);
- }
- }
-
- return str;
- }
-
-
- // Calculate the base 10 exponent from the base 1e7 exponent.
- function getBase10Exponent(digits, e) {
- var w = digits[0];
-
- // Add the number of digits of the first word of the digits array.
- for ( e *= LOG_BASE; w >= 10; w /= 10) e++;
- return e;
- }
-
-
- function getLn10(Ctor, sd, pr) {
- if (sd > LN10_PRECISION) {
-
- // Reset global state in case the exception is caught.
- external = true;
- if (pr) Ctor.precision = pr;
- throw Error(precisionLimitExceeded);
- }
- return finalise(new Ctor(LN10), sd, 1, true);
- }
-
-
- function getPi(Ctor, sd, rm) {
- if (sd > PI_PRECISION) throw Error(precisionLimitExceeded);
- return finalise(new Ctor(PI), sd, rm, true);
- }
-
-
- function getPrecision(digits) {
- var w = digits.length - 1,
- len = w * LOG_BASE + 1;
-
- w = digits[w];
-
- // If non-zero...
- if (w) {
-
- // Subtract the number of trailing zeros of the last word.
- for (; w % 10 == 0; w /= 10) len--;
-
- // Add the number of digits of the first word.
- for (w = digits[0]; w >= 10; w /= 10) len++;
- }
-
- return len;
- }
-
-
- function getZeroString(k) {
- var zs = '';
- for (; k--;) zs += '0';
- return zs;
- }
-
-
- /*
- * Return a new Decimal whose value is the value of Decimal `x` to the power `n`, where `n` is an
- * integer of type number.
- *
- * Implements 'exponentiation by squaring'. Called by `pow` and `parseOther`.
- *
- */
- function intPow(Ctor, x, n, pr) {
- var isTruncated,
- r = new Ctor(1),
-
- // Max n of 9007199254740991 takes 53 loop iterations.
- // Maximum digits array length; leaves [28, 34] guard digits.
- k = Math.ceil(pr / LOG_BASE + 4);
-
- external = false;
-
- for (;;) {
- if (n % 2) {
- r = r.times(x);
- if (truncate(r.d, k)) isTruncated = true;
- }
-
- n = mathfloor(n / 2);
- if (n === 0) {
-
- // To ensure correct rounding when r.d is truncated, increment the last word if it is zero.
- n = r.d.length - 1;
- if (isTruncated && r.d[n] === 0) ++r.d[n];
- break;
- }
-
- x = x.times(x);
- truncate(x.d, k);
- }
-
- external = true;
-
- return r;
- }
-
-
- function isOdd(n) {
- return n.d[n.d.length - 1] & 1;
- }
-
-
- /*
- * Handle `max` and `min`. `ltgt` is 'lt' or 'gt'.
- */
- function maxOrMin(Ctor, args, ltgt) {
- var y,
- x = new Ctor(args[0]),
- i = 0;
-
- for (; ++i < args.length;) {
- y = new Ctor(args[i]);
- if (!y.s) {
- x = y;
- break;
- } else if (x[ltgt](y)) {
- x = y;
- }
- }
-
- return x;
- }
-
-
- /*
- * Return a new Decimal whose value is the natural exponential of `x` rounded to `sd` significant
- * digits.
- *
- * Taylor/Maclaurin series.
- *
- * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ...
- *
- * Argument reduction:
- * Repeat x = x / 32, k += 5, until |x| < 0.1
- * exp(x) = exp(x / 2^k)^(2^k)
- *
- * Previously, the argument was initially reduced by
- * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10)
- * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was
- * found to be slower than just dividing repeatedly by 32 as above.
- *
- * Max integer argument: exp('20723265836946413') = 6.3e+9000000000000000
- * Min integer argument: exp('-20723265836946411') = 1.2e-9000000000000000
- * (Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324)
- *
- * exp(Infinity) = Infinity
- * exp(-Infinity) = 0
- * exp(NaN) = NaN
- * exp(±0) = 1
- *
- * exp(x) is non-terminating for any finite, non-zero x.
- *
- * The result will always be correctly rounded.
- *
- */
- function naturalExponential(x, sd) {
- var denominator, guard, j, pow, sum, t, wpr,
- rep = 0,
- i = 0,
- k = 0,
- Ctor = x.constructor,
- rm = Ctor.rounding,
- pr = Ctor.precision;
-
- // 0/NaN/Infinity?
- if (!x.d || !x.d[0] || x.e > 17) {
-
- return new Ctor(x.d
- ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0
- : x.s ? x.s < 0 ? 0 : x : 0 / 0);
- }
-
- if (sd == null) {
- external = false;
- wpr = pr;
- } else {
- wpr = sd;
- }
-
- t = new Ctor(0.03125);
-
- // while abs(x) >= 0.1
- while (x.e > -2) {
-
- // x = x / 2^5
- x = x.times(t);
- k += 5;
- }
-
- // Use 2 * log10(2^k) + 5 (empirically derived) to estimate the increase in precision
- // necessary to ensure the first 4 rounding digits are correct.
- guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
- wpr += guard;
- denominator = pow = sum = new Ctor(1);
- Ctor.precision = wpr;
-
- for (;;) {
- pow = finalise(pow.times(x), wpr, 1);
- denominator = denominator.times(++i);
- t = sum.plus(divide(pow, denominator, wpr, 1));
-
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
- j = k;
- while (j--) sum = finalise(sum.times(sum), wpr, 1);
-
- // Check to see if the first 4 rounding digits are [49]999.
- // If so, repeat the summation with a higher precision, otherwise
- // e.g. with precision: 18, rounding: 1
- // exp(18.404272462595034083567793919843761) = 98372560.1229999999 (should be 98372560.123)
- // `wpr - guard` is the index of first rounding digit.
- if (sd == null) {
-
- if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
- Ctor.precision = wpr += 10;
- denominator = pow = t = new Ctor(1);
- i = 0;
- rep++;
- } else {
- return finalise(sum, Ctor.precision = pr, rm, external = true);
- }
- } else {
- Ctor.precision = pr;
- return sum;
- }
- }
-
- sum = t;
- }
- }
-
-
- /*
- * Return a new Decimal whose value is the natural logarithm of `x` rounded to `sd` significant
- * digits.
- *
- * ln(-n) = NaN
- * ln(0) = -Infinity
- * ln(-0) = -Infinity
- * ln(1) = 0
- * ln(Infinity) = Infinity
- * ln(-Infinity) = NaN
- * ln(NaN) = NaN
- *
- * ln(n) (n != 1) is non-terminating.
- *
- */
- function naturalLogarithm(y, sd) {
- var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2,
- n = 1,
- guard = 10,
- x = y,
- xd = x.d,
- Ctor = x.constructor,
- rm = Ctor.rounding,
- pr = Ctor.precision;
-
- // Is x negative or Infinity, NaN, 0 or 1?
- if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) {
- return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);
- }
-
- if (sd == null) {
- external = false;
- wpr = pr;
- } else {
- wpr = sd;
- }
-
- Ctor.precision = wpr += guard;
- c = digitsToString(xd);
- c0 = c.charAt(0);
-
- if (Math.abs(e = x.e) < 1.5e15) {
-
- // Argument reduction.
- // The series converges faster the closer the argument is to 1, so using
- // ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b
- // multiply the argument by itself until the leading digits of the significand are 7, 8, 9,
- // 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can
- // later be divided by this number, then separate out the power of 10 using
- // ln(a*10^b) = ln(a) + b*ln(10).
-
- // max n is 21 (gives 0.9, 1.0 or 1.1) (9e15 / 21 = 4.2e14).
- //while (c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1) {
- // max n is 6 (gives 0.7 - 1.3)
- while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
- x = x.times(y);
- c = digitsToString(x.d);
- c0 = c.charAt(0);
- n++;
- }
-
- e = x.e;
-
- if (c0 > 1) {
- x = new Ctor('0.' + c);
- e++;
- } else {
- x = new Ctor(c0 + '.' + c.slice(1));
- }
- } else {
-
- // The argument reduction method above may result in overflow if the argument y is a massive
- // number with exponent >= 1500000000000000 (9e15 / 6 = 1.5e15), so instead recall this
- // function using ln(x*10^e) = ln(x) + e*ln(10).
- t = getLn10(Ctor, wpr + 2, pr).times(e + '');
- x = naturalLogarithm(new Ctor(c0 + '.' + c.slice(1)), wpr - guard).plus(t);
- Ctor.precision = pr;
-
- return sd == null ? finalise(x, pr, rm, external = true) : x;
- }
-
- // x1 is x reduced to a value near 1.
- x1 = x;
-
- // Taylor series.
- // ln(y) = ln((1 + x)/(1 - x)) = 2(x + x^3/3 + x^5/5 + x^7/7 + ...)
- // where x = (y - 1)/(y + 1) (|x| < 1)
- sum = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1);
- x2 = finalise(x.times(x), wpr, 1);
- denominator = 3;
-
- for (;;) {
- numerator = finalise(numerator.times(x2), wpr, 1);
- t = sum.plus(divide(numerator, new Ctor(denominator), wpr, 1));
-
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
- sum = sum.times(2);
-
- // Reverse the argument reduction. Check that e is not 0 because, besides preventing an
- // unnecessary calculation, -0 + 0 = +0 and to ensure correct rounding -0 needs to stay -0.
- if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ''));
- sum = divide(sum, new Ctor(n), wpr, 1);
-
- // Is rm > 3 and the first 4 rounding digits 4999, or rm < 4 (or the summation has
- // been repeated previously) and the first 4 rounding digits 9999?
- // If so, restart the summation with a higher precision, otherwise
- // e.g. with precision: 12, rounding: 1
- // ln(135520028.6126091714265381533) = 18.7246299999 when it should be 18.72463.
- // `wpr - guard` is the index of first rounding digit.
- if (sd == null) {
- if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
- Ctor.precision = wpr += guard;
- t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);
- x2 = finalise(x.times(x), wpr, 1);
- denominator = rep = 1;
- } else {
- return finalise(sum, Ctor.precision = pr, rm, external = true);
- }
- } else {
- Ctor.precision = pr;
- return sum;
- }
- }
-
- sum = t;
- denominator += 2;
- }
- }
-
-
- // ±Infinity, NaN.
- function nonFiniteToString(x) {
- // Unsigned.
- return String(x.s * x.s / 0);
- }
-
-
- /*
- * Parse the value of a new Decimal `x` from string `str`.
- */
- function parseDecimal(x, str) {
- var e, i, len;
-
- // Decimal point?
- if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');
-
- // Exponential form?
- if ((i = str.search(/e/i)) > 0) {
-
- // Determine exponent.
- if (e < 0) e = i;
- e += +str.slice(i + 1);
- str = str.substring(0, i);
- } else if (e < 0) {
-
- // Integer.
- e = str.length;
- }
-
- // Determine leading zeros.
- for (i = 0; str.charCodeAt(i) === 48; i++);
-
- // Determine trailing zeros.
- for (len = str.length; str.charCodeAt(len - 1) === 48; --len);
- str = str.slice(i, len);
-
- if (str) {
- len -= i;
- x.e = e = e - i - 1;
- x.d = [];
-
- // Transform base
-
- // e is the base 10 exponent.
- // i is where to slice str to get the first word of the digits array.
- i = (e + 1) % LOG_BASE;
- if (e < 0) i += LOG_BASE;
-
- if (i < len) {
- if (i) x.d.push(+str.slice(0, i));
- for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE));
- str = str.slice(i);
- i = LOG_BASE - str.length;
- } else {
- i -= len;
- }
-
- for (; i--;) str += '0';
- x.d.push(+str);
-
- if (external) {
-
- // Overflow?
- if (x.e > x.constructor.maxE) {
-
- // Infinity.
- x.d = null;
- x.e = NaN;
-
- // Underflow?
- } else if (x.e < x.constructor.minE) {
-
- // Zero.
- x.e = 0;
- x.d = [0];
- // x.constructor.underflow = true;
- } // else x.constructor.underflow = false;
- }
- } else {
-
- // Zero.
- x.e = 0;
- x.d = [0];
- }
-
- return x;
- }
-
-
- /*
- * Parse the value of a new Decimal `x` from a string `str`, which is not a decimal value.
- */
- function parseOther(x, str) {
- var base, Ctor, divisor, i, isFloat, len, p, xd, xe;
-
- if (str.indexOf('_') > -1) {
- str = str.replace(/(\d)_(?=\d)/g, '$1');
- if (isDecimal.test(str)) return parseDecimal(x, str);
- } else if (str === 'Infinity' || str === 'NaN') {
- if (!+str) x.s = NaN;
- x.e = NaN;
- x.d = null;
- return x;
- }
-
- if (isHex.test(str)) {
- base = 16;
- str = str.toLowerCase();
- } else if (isBinary.test(str)) {
- base = 2;
- } else if (isOctal.test(str)) {
- base = 8;
- } else {
- throw Error(invalidArgument + str);
- }
-
- // Is there a binary exponent part?
- i = str.search(/p/i);
-
- if (i > 0) {
- p = +str.slice(i + 1);
- str = str.substring(2, i);
- } else {
- str = str.slice(2);
- }
-
- // Convert `str` as an integer then divide the result by `base` raised to a power such that the
- // fraction part will be restored.
- i = str.indexOf('.');
- isFloat = i >= 0;
- Ctor = x.constructor;
-
- if (isFloat) {
- str = str.replace('.', '');
- len = str.length;
- i = len - i;
-
- // log[10](16) = 1.2041... , log[10](88) = 1.9444....
- divisor = intPow(Ctor, new Ctor(base), i, i * 2);
- }
-
- xd = convertBase(str, base, BASE);
- xe = xd.length - 1;
-
- // Remove trailing zeros.
- for (i = xe; xd[i] === 0; --i) xd.pop();
- if (i < 0) return new Ctor(x.s * 0);
- x.e = getBase10Exponent(xd, xe);
- x.d = xd;
- external = false;
-
- // At what precision to perform the division to ensure exact conversion?
- // maxDecimalIntegerPartDigitCount = ceil(log[10](b) * otherBaseIntegerPartDigitCount)
- // log[10](2) = 0.30103, log[10](8) = 0.90309, log[10](16) = 1.20412
- // E.g. ceil(1.2 * 3) = 4, so up to 4 decimal digits are needed to represent 3 hex int digits.
- // maxDecimalFractionPartDigitCount = {Hex:4|Oct:3|Bin:1} * otherBaseFractionPartDigitCount
- // Therefore using 4 * the number of digits of str will always be enough.
- if (isFloat) x = divide(x, divisor, len * 4);
-
- // Multiply by the binary exponent part if present.
- if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p));
- external = true;
-
- return x;
- }
-
-
- /*
- * sin(x) = x - x^3/3! + x^5/5! - ...
- * |x| < pi/2
- *
- */
- function sine(Ctor, x) {
- var k,
- len = x.d.length;
-
- if (len < 3) {
- return x.isZero() ? x : taylorSeries(Ctor, 2, x, x);
- }
-
- // Argument reduction: sin(5x) = 16*sin^5(x) - 20*sin^3(x) + 5*sin(x)
- // i.e. sin(x) = 16*sin^5(x/5) - 20*sin^3(x/5) + 5*sin(x/5)
- // and sin(x) = sin(x/5)(5 + sin^2(x/5)(16sin^2(x/5) - 20))
-
- // Estimate the optimum number of times to use the argument reduction.
- k = 1.4 * Math.sqrt(len);
- k = k > 16 ? 16 : k | 0;
-
- x = x.times(1 / tinyPow(5, k));
- x = taylorSeries(Ctor, 2, x, x);
-
- // Reverse argument reduction
- var sin2_x,
- d5 = new Ctor(5),
- d16 = new Ctor(16),
- d20 = new Ctor(20);
- for (; k--;) {
- sin2_x = x.times(x);
- x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));
- }
-
- return x;
- }
-
-
- // Calculate Taylor series for `cos`, `cosh`, `sin` and `sinh`.
- function taylorSeries(Ctor, n, x, y, isHyperbolic) {
- var j, t, u, x2,
- i = 1,
- pr = Ctor.precision,
- k = Math.ceil(pr / LOG_BASE);
-
- external = false;
- x2 = x.times(x);
- u = new Ctor(y);
-
- for (;;) {
- t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1);
- u = isHyperbolic ? y.plus(t) : y.minus(t);
- y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1);
- t = u.plus(y);
-
- if (t.d[k] !== void 0) {
- for (j = k; t.d[j] === u.d[j] && j--;);
- if (j == -1) break;
- }
-
- j = u;
- u = y;
- y = t;
- t = j;
- i++;
- }
-
- external = true;
- t.d.length = k + 1;
-
- return t;
- }
-
-
- // Exponent e must be positive and non-zero.
- function tinyPow(b, e) {
- var n = b;
- while (--e) n *= b;
- return n;
- }
-
-
- // Return the absolute value of `x` reduced to less than or equal to half pi.
- function toLessThanHalfPi(Ctor, x) {
- var t,
- isNeg = x.s < 0,
- pi = getPi(Ctor, Ctor.precision, 1),
- halfPi = pi.times(0.5);
-
- x = x.abs();
-
- if (x.lte(halfPi)) {
- quadrant = isNeg ? 4 : 1;
- return x;
- }
-
- t = x.divToInt(pi);
-
- if (t.isZero()) {
- quadrant = isNeg ? 3 : 2;
- } else {
- x = x.minus(t.times(pi));
-
- // 0 <= x < pi
- if (x.lte(halfPi)) {
- quadrant = isOdd(t) ? (isNeg ? 2 : 3) : (isNeg ? 4 : 1);
- return x;
- }
-
- quadrant = isOdd(t) ? (isNeg ? 1 : 4) : (isNeg ? 3 : 2);
- }
-
- return x.minus(pi).abs();
- }
-
-
- /*
- * Return the value of Decimal `x` as a string in base `baseOut`.
- *
- * If the optional `sd` argument is present include a binary exponent suffix.
- */
- function toStringBinary(x, baseOut, sd, rm) {
- var base, e, i, k, len, roundUp, str, xd, y,
- Ctor = x.constructor,
- isExp = sd !== void 0;
-
- if (isExp) {
- checkInt32(sd, 1, MAX_DIGITS);
- if (rm === void 0) rm = Ctor.rounding;
- else checkInt32(rm, 0, 8);
- } else {
- sd = Ctor.precision;
- rm = Ctor.rounding;
- }
-
- if (!x.isFinite()) {
- str = nonFiniteToString(x);
- } else {
- str = finiteToString(x);
- i = str.indexOf('.');
-
- // Use exponential notation according to `toExpPos` and `toExpNeg`? No, but if required:
- // maxBinaryExponent = floor((decimalExponent + 1) * log[2](10))
- // minBinaryExponent = floor(decimalExponent * log[2](10))
- // log[2](10) = 3.321928094887362347870319429489390175864
-
- if (isExp) {
- base = 2;
- if (baseOut == 16) {
- sd = sd * 4 - 3;
- } else if (baseOut == 8) {
- sd = sd * 3 - 2;
- }
- } else {
- base = baseOut;
- }
-
- // Convert the number as an integer then divide the result by its base raised to a power such
- // that the fraction part will be restored.
-
- // Non-integer.
- if (i >= 0) {
- str = str.replace('.', '');
- y = new Ctor(1);
- y.e = str.length - i;
- y.d = convertBase(finiteToString(y), 10, base);
- y.e = y.d.length;
- }
-
- xd = convertBase(str, 10, base);
- e = len = xd.length;
-
- // Remove trailing zeros.
- for (; xd[--len] == 0;) xd.pop();
-
- if (!xd[0]) {
- str = isExp ? '0p+0' : '0';
- } else {
- if (i < 0) {
- e--;
- } else {
- x = new Ctor(x);
- x.d = xd;
- x.e = e;
- x = divide(x, y, sd, rm, 0, base);
- xd = x.d;
- e = x.e;
- roundUp = inexact;
- }
-
- // The rounding digit, i.e. the digit after the digit that may be rounded up.
- i = xd[sd];
- k = base / 2;
- roundUp = roundUp || xd[sd + 1] !== void 0;
-
- roundUp = rm < 4
- ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2))
- : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 ||
- rm === (x.s < 0 ? 8 : 7));
-
- xd.length = sd;
-
- if (roundUp) {
-
- // Rounding up may mean the previous digit has to be rounded up and so on.
- for (; ++xd[--sd] > base - 1;) {
- xd[sd] = 0;
- if (!sd) {
- ++e;
- xd.unshift(1);
- }
- }
- }
-
- // Determine trailing zeros.
- for (len = xd.length; !xd[len - 1]; --len);
-
- // E.g. [4, 11, 15] becomes 4bf.
- for (i = 0, str = ''; i < len; i++) str += NUMERALS.charAt(xd[i]);
-
- // Add binary exponent suffix?
- if (isExp) {
- if (len > 1) {
- if (baseOut == 16 || baseOut == 8) {
- i = baseOut == 16 ? 4 : 3;
- for (--len; len % i; len++) str += '0';
- xd = convertBase(str, base, baseOut);
- for (len = xd.length; !xd[len - 1]; --len);
-
- // xd[0] will always be be 1
- for (i = 1, str = '1.'; i < len; i++) str += NUMERALS.charAt(xd[i]);
- } else {
- str = str.charAt(0) + '.' + str.slice(1);
- }
- }
-
- str = str + (e < 0 ? 'p' : 'p+') + e;
- } else if (e < 0) {
- for (; ++e;) str = '0' + str;
- str = '0.' + str;
- } else {
- if (++e > len) for (e -= len; e-- ;) str += '0';
- else if (e < len) str = str.slice(0, e) + '.' + str.slice(e);
- }
- }
-
- str = (baseOut == 16 ? '0x' : baseOut == 2 ? '0b' : baseOut == 8 ? '0o' : '') + str;
- }
-
- return x.s < 0 ? '-' + str : str;
- }
-
-
- // Does not strip trailing zeros.
- function truncate(arr, len) {
- if (arr.length > len) {
- arr.length = len;
- return true;
- }
- }
-
-
- // Decimal methods
-
-
- /*
- * abs
- * acos
- * acosh
- * add
- * asin
- * asinh
- * atan
- * atanh
- * atan2
- * cbrt
- * ceil
- * clamp
- * clone
- * config
- * cos
- * cosh
- * div
- * exp
- * floor
- * hypot
- * ln
- * log
- * log2
- * log10
- * max
- * min
- * mod
- * mul
- * pow
- * random
- * round
- * set
- * sign
- * sin
- * sinh
- * sqrt
- * sub
- * sum
- * tan
- * tanh
- * trunc
- */
-
-
- /*
- * Return a new Decimal whose value is the absolute value of `x`.
- *
- * x {number|string|Decimal}
- *
- */
- function abs(x) {
- return new this(x).abs();
- }
-
-
- /*
- * Return a new Decimal whose value is the arccosine in radians of `x`.
- *
- * x {number|string|Decimal}
- *
- */
- function acos(x) {
- return new this(x).acos();
- }
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function acosh(x) {
- return new this(x).acosh();
- }
-
-
- /*
- * Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- * y {number|string|Decimal}
- *
- */
- function add(x, y) {
- return new this(x).plus(y);
- }
-
-
- /*
- * Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function asin(x) {
- return new this(x).asin();
- }
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function asinh(x) {
- return new this(x).asinh();
- }
-
-
- /*
- * Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function atan(x) {
- return new this(x).atan();
- }
-
-
- /*
- * Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to
- * `precision` significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function atanh(x) {
- return new this(x).atanh();
- }
-
-
- /*
- * Return a new Decimal whose value is the arctangent in radians of `y/x` in the range -pi to pi
- * (inclusive), rounded to `precision` significant digits using rounding mode `rounding`.
- *
- * Domain: [-Infinity, Infinity]
- * Range: [-pi, pi]
- *
- * y {number|string|Decimal} The y-coordinate.
- * x {number|string|Decimal} The x-coordinate.
- *
- * atan2(±0, -0) = ±pi
- * atan2(±0, +0) = ±0
- * atan2(±0, -x) = ±pi for x > 0
- * atan2(±0, x) = ±0 for x > 0
- * atan2(-y, ±0) = -pi/2 for y > 0
- * atan2(y, ±0) = pi/2 for y > 0
- * atan2(±y, -Infinity) = ±pi for finite y > 0
- * atan2(±y, +Infinity) = ±0 for finite y > 0
- * atan2(±Infinity, x) = ±pi/2 for finite x
- * atan2(±Infinity, -Infinity) = ±3*pi/4
- * atan2(±Infinity, +Infinity) = ±pi/4
- * atan2(NaN, x) = NaN
- * atan2(y, NaN) = NaN
- *
- */
- function atan2(y, x) {
- y = new this(y);
- x = new this(x);
- var r,
- pr = this.precision,
- rm = this.rounding,
- wpr = pr + 4;
-
- // Either NaN
- if (!y.s || !x.s) {
- r = new this(NaN);
-
- // Both ±Infinity
- } else if (!y.d && !x.d) {
- r = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75);
- r.s = y.s;
-
- // x is ±Infinity or y is ±0
- } else if (!x.d || y.isZero()) {
- r = x.s < 0 ? getPi(this, pr, rm) : new this(0);
- r.s = y.s;
-
- // y is ±Infinity or x is ±0
- } else if (!y.d || x.isZero()) {
- r = getPi(this, wpr, 1).times(0.5);
- r.s = y.s;
-
- // Both non-zero and finite
- } else if (x.s < 0) {
- this.precision = wpr;
- this.rounding = 1;
- r = this.atan(divide(y, x, wpr, 1));
- x = getPi(this, wpr, 1);
- this.precision = pr;
- this.rounding = rm;
- r = y.s < 0 ? r.minus(x) : r.plus(x);
- } else {
- r = this.atan(divide(y, x, wpr, 1));
- }
-
- return r;
- }
-
-
- /*
- * Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function cbrt(x) {
- return new this(x).cbrt();
- }
-
-
- /*
- * Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`.
- *
- * x {number|string|Decimal}
- *
- */
- function ceil(x) {
- return finalise(x = new this(x), x.e + 1, 2);
- }
-
-
- /*
- * Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`.
- *
- * x {number|string|Decimal}
- * min {number|string|Decimal}
- * max {number|string|Decimal}
- *
- */
- function clamp(x, min, max) {
- return new this(x).clamp(min, max);
- }
-
-
- /*
- * Configure global settings for a Decimal constructor.
- *
- * `obj` is an object with one or more of the following properties,
- *
- * precision {number}
- * rounding {number}
- * toExpNeg {number}
- * toExpPos {number}
- * maxE {number}
- * minE {number}
- * modulo {number}
- * crypto {boolean|number}
- * defaults {true}
- *
- * E.g. Decimal.config({ precision: 20, rounding: 4 })
- *
- */
- function config(obj) {
- if (!obj || typeof obj !== 'object') throw Error(decimalError + 'Object expected');
- var i, p, v,
- useDefaults = obj.defaults === true,
- ps = [
- 'precision', 1, MAX_DIGITS,
- 'rounding', 0, 8,
- 'toExpNeg', -EXP_LIMIT, 0,
- 'toExpPos', 0, EXP_LIMIT,
- 'maxE', 0, EXP_LIMIT,
- 'minE', -EXP_LIMIT, 0,
- 'modulo', 0, 9
- ];
-
- for (i = 0; i < ps.length; i += 3) {
- if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];
- if ((v = obj[p]) !== void 0) {
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
- else throw Error(invalidArgument + p + ': ' + v);
- }
- }
-
- if (p = 'crypto', useDefaults) this[p] = DEFAULTS[p];
- if ((v = obj[p]) !== void 0) {
- if (v === true || v === false || v === 0 || v === 1) {
- if (v) {
- if (typeof crypto != 'undefined' && crypto &&
- (crypto.getRandomValues || crypto.randomBytes)) {
- this[p] = true;
- } else {
- throw Error(cryptoUnavailable);
- }
- } else {
- this[p] = false;
- }
- } else {
- throw Error(invalidArgument + p + ': ' + v);
- }
- }
-
- return this;
- }
-
-
- /*
- * Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function cos(x) {
- return new this(x).cos();
- }
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function cosh(x) {
- return new this(x).cosh();
- }
-
-
- /*
- * Create and return a Decimal constructor with the same configuration properties as this Decimal
- * constructor.
- *
- */
- function clone(obj) {
- var i, p, ps;
-
- /*
- * The Decimal constructor and exported function.
- * Return a new Decimal instance.
- *
- * v {number|string|Decimal} A numeric value.
- *
- */
- function Decimal(v) {
- var e, i, t,
- x = this;
-
- // Decimal called without new.
- if (!(x instanceof Decimal)) return new Decimal(v);
-
- // Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor
- // which points to Object.
- x.constructor = Decimal;
-
- // Duplicate.
- if (isDecimalInstance(v)) {
- x.s = v.s;
-
- if (external) {
- if (!v.d || v.e > Decimal.maxE) {
-
- // Infinity.
- x.e = NaN;
- x.d = null;
- } else if (v.e < Decimal.minE) {
-
- // Zero.
- x.e = 0;
- x.d = [0];
- } else {
- x.e = v.e;
- x.d = v.d.slice();
- }
- } else {
- x.e = v.e;
- x.d = v.d ? v.d.slice() : v.d;
- }
-
- return;
- }
-
- t = typeof v;
-
- if (t === 'number') {
- if (v === 0) {
- x.s = 1 / v < 0 ? -1 : 1;
- x.e = 0;
- x.d = [0];
- return;
- }
-
- if (v < 0) {
- v = -v;
- x.s = -1;
- } else {
- x.s = 1;
- }
-
- // Fast path for small integers.
- if (v === ~~v && v < 1e7) {
- for (e = 0, i = v; i >= 10; i /= 10) e++;
-
- if (external) {
- if (e > Decimal.maxE) {
- x.e = NaN;
- x.d = null;
- } else if (e < Decimal.minE) {
- x.e = 0;
- x.d = [0];
- } else {
- x.e = e;
- x.d = [v];
- }
- } else {
- x.e = e;
- x.d = [v];
- }
-
- return;
-
- // Infinity, NaN.
- } else if (v * 0 !== 0) {
- if (!v) x.s = NaN;
- x.e = NaN;
- x.d = null;
- return;
- }
-
- return parseDecimal(x, v.toString());
-
- } else if (t !== 'string') {
- throw Error(invalidArgument + v);
- }
-
- // Minus sign?
- if ((i = v.charCodeAt(0)) === 45) {
- v = v.slice(1);
- x.s = -1;
- } else {
- // Plus sign?
- if (i === 43) v = v.slice(1);
- x.s = 1;
- }
-
- return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
- }
-
- Decimal.prototype = P;
-
- Decimal.ROUND_UP = 0;
- Decimal.ROUND_DOWN = 1;
- Decimal.ROUND_CEIL = 2;
- Decimal.ROUND_FLOOR = 3;
- Decimal.ROUND_HALF_UP = 4;
- Decimal.ROUND_HALF_DOWN = 5;
- Decimal.ROUND_HALF_EVEN = 6;
- Decimal.ROUND_HALF_CEIL = 7;
- Decimal.ROUND_HALF_FLOOR = 8;
- Decimal.EUCLID = 9;
-
- Decimal.config = Decimal.set = config;
- Decimal.clone = clone;
- Decimal.isDecimal = isDecimalInstance;
-
- Decimal.abs = abs;
- Decimal.acos = acos;
- Decimal.acosh = acosh; // ES6
- Decimal.add = add;
- Decimal.asin = asin;
- Decimal.asinh = asinh; // ES6
- Decimal.atan = atan;
- Decimal.atanh = atanh; // ES6
- Decimal.atan2 = atan2;
- Decimal.cbrt = cbrt; // ES6
- Decimal.ceil = ceil;
- Decimal.clamp = clamp;
- Decimal.cos = cos;
- Decimal.cosh = cosh; // ES6
- Decimal.div = div;
- Decimal.exp = exp;
- Decimal.floor = floor;
- Decimal.hypot = hypot; // ES6
- Decimal.ln = ln;
- Decimal.log = log;
- Decimal.log10 = log10; // ES6
- Decimal.log2 = log2; // ES6
- Decimal.max = max;
- Decimal.min = min;
- Decimal.mod = mod;
- Decimal.mul = mul;
- Decimal.pow = pow;
- Decimal.random = random;
- Decimal.round = round;
- Decimal.sign = sign; // ES6
- Decimal.sin = sin;
- Decimal.sinh = sinh; // ES6
- Decimal.sqrt = sqrt;
- Decimal.sub = sub;
- Decimal.sum = sum;
- Decimal.tan = tan;
- Decimal.tanh = tanh; // ES6
- Decimal.trunc = trunc; // ES6
-
- if (obj === void 0) obj = {};
- if (obj) {
- if (obj.defaults !== true) {
- ps = ['precision', 'rounding', 'toExpNeg', 'toExpPos', 'maxE', 'minE', 'modulo', 'crypto'];
- for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
- }
- }
-
- Decimal.config(obj);
-
- return Decimal;
- }
-
-
- /*
- * Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- * y {number|string|Decimal}
- *
- */
- function div(x, y) {
- return new this(x).div(y);
- }
-
-
- /*
- * Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} The power to which to raise the base of the natural log.
- *
- */
- function exp(x) {
- return new this(x).exp();
- }
-
-
- /*
- * Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`.
- *
- * x {number|string|Decimal}
- *
- */
- function floor(x) {
- return finalise(x = new this(x), x.e + 1, 3);
- }
-
-
- /*
- * Return a new Decimal whose value is the square root of the sum of the squares of the arguments,
- * rounded to `precision` significant digits using rounding mode `rounding`.
- *
- * hypot(a, b, ...) = sqrt(a^2 + b^2 + ...)
- *
- * arguments {number|string|Decimal}
- *
- */
- function hypot() {
- var i, n,
- t = new this(0);
-
- external = false;
-
- for (i = 0; i < arguments.length;) {
- n = new this(arguments[i++]);
- if (!n.d) {
- if (n.s) {
- external = true;
- return new this(1 / 0);
- }
- t = n;
- } else if (t.d) {
- t = t.plus(n.times(n));
- }
- }
-
- external = true;
-
- return t.sqrt();
- }
-
-
- /*
- * Return true if object is a Decimal instance (where Decimal is any Decimal constructor),
- * otherwise return false.
- *
- */
- function isDecimalInstance(obj) {
- return obj instanceof Decimal || obj && obj.toStringTag === tag || false;
- }
-
-
- /*
- * Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function ln(x) {
- return new this(x).ln();
- }
-
-
- /*
- * Return a new Decimal whose value is the log of `x` to the base `y`, or to base 10 if no base
- * is specified, rounded to `precision` significant digits using rounding mode `rounding`.
- *
- * log[y](x)
- *
- * x {number|string|Decimal} The argument of the logarithm.
- * y {number|string|Decimal} The base of the logarithm.
- *
- */
- function log(x, y) {
- return new this(x).log(y);
- }
-
-
- /*
- * Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function log2(x) {
- return new this(x).log(2);
- }
-
-
- /*
- * Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function log10(x) {
- return new this(x).log(10);
- }
-
-
- /*
- * Return a new Decimal whose value is the maximum of the arguments.
- *
- * arguments {number|string|Decimal}
- *
- */
- function max() {
- return maxOrMin(this, arguments, 'lt');
- }
-
-
- /*
- * Return a new Decimal whose value is the minimum of the arguments.
- *
- * arguments {number|string|Decimal}
- *
- */
- function min() {
- return maxOrMin(this, arguments, 'gt');
- }
-
-
- /*
- * Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits
- * using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- * y {number|string|Decimal}
- *
- */
- function mod(x, y) {
- return new this(x).mod(y);
- }
-
-
- /*
- * Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- * y {number|string|Decimal}
- *
- */
- function mul(x, y) {
- return new this(x).mul(y);
- }
-
-
- /*
- * Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} The base.
- * y {number|string|Decimal} The exponent.
- *
- */
- function pow(x, y) {
- return new this(x).pow(y);
- }
-
-
- /*
- * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and with
- * `sd`, or `Decimal.precision` if `sd` is omitted, significant digits (or less if trailing zeros
- * are produced).
- *
- * [sd] {number} Significant digits. Integer, 0 to MAX_DIGITS inclusive.
- *
- */
- function random(sd) {
- var d, e, k, n,
- i = 0,
- r = new this(1),
- rd = [];
-
- if (sd === void 0) sd = this.precision;
- else checkInt32(sd, 1, MAX_DIGITS);
-
- k = Math.ceil(sd / LOG_BASE);
-
- if (!this.crypto) {
- for (; i < k;) rd[i++] = Math.random() * 1e7 | 0;
-
- // Browsers supporting crypto.getRandomValues.
- } else if (crypto.getRandomValues) {
- d = crypto.getRandomValues(new Uint32Array(k));
-
- for (; i < k;) {
- n = d[i];
-
- // 0 <= n < 4294967296
- // Probability n >= 4.29e9, is 4967296 / 4294967296 = 0.00116 (1 in 865).
- if (n >= 4.29e9) {
- d[i] = crypto.getRandomValues(new Uint32Array(1))[0];
- } else {
-
- // 0 <= n <= 4289999999
- // 0 <= (n % 1e7) <= 9999999
- rd[i++] = n % 1e7;
- }
- }
-
- // Node.js supporting crypto.randomBytes.
- } else if (crypto.randomBytes) {
-
- // buffer
- d = crypto.randomBytes(k *= 4);
-
- for (; i < k;) {
-
- // 0 <= n < 2147483648
- n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 0x7f) << 24);
-
- // Probability n >= 2.14e9, is 7483648 / 2147483648 = 0.0035 (1 in 286).
- if (n >= 2.14e9) {
- crypto.randomBytes(4).copy(d, i);
- } else {
-
- // 0 <= n <= 2139999999
- // 0 <= (n % 1e7) <= 9999999
- rd.push(n % 1e7);
- i += 4;
- }
- }
-
- i = k / 4;
- } else {
- throw Error(cryptoUnavailable);
- }
-
- k = rd[--i];
- sd %= LOG_BASE;
-
- // Convert trailing digits to zeros according to sd.
- if (k && sd) {
- n = mathpow(10, LOG_BASE - sd);
- rd[i] = (k / n | 0) * n;
- }
-
- // Remove trailing words which are zero.
- for (; rd[i] === 0; i--) rd.pop();
-
- // Zero?
- if (i < 0) {
- e = 0;
- rd = [0];
- } else {
- e = -1;
-
- // Remove leading words which are zero and adjust exponent accordingly.
- for (; rd[0] === 0; e -= LOG_BASE) rd.shift();
-
- // Count the digits of the first word of rd to determine leading zeros.
- for (k = 1, n = rd[0]; n >= 10; n /= 10) k++;
-
- // Adjust the exponent for leading zeros of the first word of rd.
- if (k < LOG_BASE) e -= LOG_BASE - k;
- }
-
- r.e = e;
- r.d = rd;
-
- return r;
- }
-
-
- /*
- * Return a new Decimal whose value is `x` rounded to an integer using rounding mode `rounding`.
- *
- * To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL).
- *
- * x {number|string|Decimal}
- *
- */
- function round(x) {
- return finalise(x = new this(x), x.e + 1, this.rounding);
- }
-
-
- /*
- * Return
- * 1 if x > 0,
- * -1 if x < 0,
- * 0 if x is 0,
- * -0 if x is -0,
- * NaN otherwise
- *
- * x {number|string|Decimal}
- *
- */
- function sign(x) {
- x = new this(x);
- return x.d ? (x.d[0] ? x.s : 0 * x.s) : x.s || NaN;
- }
-
-
- /*
- * Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits
- * using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function sin(x) {
- return new this(x).sin();
- }
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function sinh(x) {
- return new this(x).sinh();
- }
-
-
- /*
- * Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- *
- */
- function sqrt(x) {
- return new this(x).sqrt();
- }
-
-
- /*
- * Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits
- * using rounding mode `rounding`.
- *
- * x {number|string|Decimal}
- * y {number|string|Decimal}
- *
- */
- function sub(x, y) {
- return new this(x).sub(y);
- }
-
-
- /*
- * Return a new Decimal whose value is the sum of the arguments, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * Only the result is rounded, not the intermediate calculations.
- *
- * arguments {number|string|Decimal}
- *
- */
- function sum() {
- var i = 0,
- args = arguments,
- x = new this(args[i]);
-
- external = false;
- for (; x.s && ++i < args.length;) x = x.plus(args[i]);
- external = true;
-
- return finalise(x, this.precision, this.rounding);
- }
-
-
- /*
- * Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant
- * digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function tan(x) {
- return new this(x).tan();
- }
-
-
- /*
- * Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision`
- * significant digits using rounding mode `rounding`.
- *
- * x {number|string|Decimal} A value in radians.
- *
- */
- function tanh(x) {
- return new this(x).tanh();
- }
-
-
- /*
- * Return a new Decimal whose value is `x` truncated to an integer.
- *
- * x {number|string|Decimal}
- *
- */
- function trunc(x) {
- return finalise(x = new this(x), x.e + 1, 1);
- }
-
-
- // Create and configure initial Decimal constructor.
- Decimal = clone(DEFAULTS);
- Decimal.prototype.constructor = Decimal;
- Decimal['default'] = Decimal.Decimal = Decimal;
-
- // Create the internal constants from their string values.
- LN10 = new Decimal(LN10);
- PI = new Decimal(PI);
-
-
- // Export.
-
-
- // AMD.
- if (typeof define == 'function' && define.amd) {
- define(function () {
- return Decimal;
- });
-
- // Node and other environments that support module.exports.
- } else if ( true && module.exports) {
- if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') {
- P[Symbol['for']('nodejs.util.inspect.custom')] = P.toString;
- P[Symbol.toStringTag] = 'Decimal';
- }
-
- module.exports = Decimal;
-
- // Browser.
- } else {
- if (!globalScope) {
- globalScope = typeof self != 'undefined' && self && self.self == self ? self : window;
- }
-
- noConflict = globalScope.Decimal;
- Decimal.noConflict = function () {
- globalScope.Decimal = noConflict;
- return Decimal;
- };
-
- globalScope.Decimal = Decimal;
- }
-})(this);
-
-
-/***/ }),
-
-/***/ 18611:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var Stream = (__nccwpck_require__(12781).Stream);
-var util = __nccwpck_require__(73837);
-
-module.exports = DelayedStream;
-function DelayedStream() {
- this.source = null;
- this.dataSize = 0;
- this.maxDataSize = 1024 * 1024;
- this.pauseStream = true;
-
- this._maxDataSizeExceeded = false;
- this._released = false;
- this._bufferedEvents = [];
-}
-util.inherits(DelayedStream, Stream);
-
-DelayedStream.create = function(source, options) {
- var delayedStream = new this();
-
- options = options || {};
- for (var option in options) {
- delayedStream[option] = options[option];
- }
-
- delayedStream.source = source;
-
- var realEmit = source.emit;
- source.emit = function() {
- delayedStream._handleEmit(arguments);
- return realEmit.apply(source, arguments);
- };
-
- source.on('error', function() {});
- if (delayedStream.pauseStream) {
- source.pause();
- }
-
- return delayedStream;
-};
-
-Object.defineProperty(DelayedStream.prototype, 'readable', {
- configurable: true,
- enumerable: true,
- get: function() {
- return this.source.readable;
- }
-});
-
-DelayedStream.prototype.setEncoding = function() {
- return this.source.setEncoding.apply(this.source, arguments);
-};
-
-DelayedStream.prototype.resume = function() {
- if (!this._released) {
- this.release();
- }
-
- this.source.resume();
-};
-
-DelayedStream.prototype.pause = function() {
- this.source.pause();
-};
-
-DelayedStream.prototype.release = function() {
- this._released = true;
-
- this._bufferedEvents.forEach(function(args) {
- this.emit.apply(this, args);
- }.bind(this));
- this._bufferedEvents = [];
-};
-
-DelayedStream.prototype.pipe = function() {
- var r = Stream.prototype.pipe.apply(this, arguments);
- this.resume();
- return r;
-};
-
-DelayedStream.prototype._handleEmit = function(args) {
- if (this._released) {
- this.emit.apply(this, args);
- return;
- }
-
- if (args[0] === 'data') {
- this.dataSize += args[1].length;
- this._checkIfMaxDataSizeExceeded();
- }
-
- this._bufferedEvents.push(args);
-};
-
-DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
- if (this._maxDataSizeExceeded) {
- return;
- }
-
- if (this.dataSize <= this.maxDataSize) {
- return;
- }
-
- this._maxDataSizeExceeded = true;
- var message =
- 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'
- this.emit('error', new Error(message));
-};
-
-
-/***/ }),
-
-/***/ 85589:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const legacyErrorCodes = __nccwpck_require__(34370);
-const idlUtils = __nccwpck_require__(69497);
-
-exports.implementation = class DOMExceptionImpl {
- constructor(globalObject, [message, name]) {
- this.name = name;
- this.message = message;
- }
-
- get code() {
- return legacyErrorCodes[this.name] || 0;
- }
-};
-
-// A proprietary V8 extension that causes the stack property to appear.
-exports.init = impl => {
- if (Error.captureStackTrace) {
- const wrapper = idlUtils.wrapperForImpl(impl);
- Error.captureStackTrace(wrapper, wrapper.constructor);
- }
-};
-
-
-/***/ }),
-
-/***/ 37561:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(69497);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMException";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMException'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMException"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMException {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'DOMException': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'DOMException': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = "Error";
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of DOMException."
- );
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get message() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get message' called on an object that is not a valid instance of DOMException."
- );
- }
-
- return esValue[implSymbol]["message"];
- }
-
- get code() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get code' called on an object that is not a valid instance of DOMException."
- );
- }
-
- return esValue[implSymbol]["code"];
- }
- }
- Object.defineProperties(DOMException.prototype, {
- name: { enumerable: true },
- message: { enumerable: true },
- code: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMException", configurable: true },
- INDEX_SIZE_ERR: { value: 1, enumerable: true },
- DOMSTRING_SIZE_ERR: { value: 2, enumerable: true },
- HIERARCHY_REQUEST_ERR: { value: 3, enumerable: true },
- WRONG_DOCUMENT_ERR: { value: 4, enumerable: true },
- INVALID_CHARACTER_ERR: { value: 5, enumerable: true },
- NO_DATA_ALLOWED_ERR: { value: 6, enumerable: true },
- NO_MODIFICATION_ALLOWED_ERR: { value: 7, enumerable: true },
- NOT_FOUND_ERR: { value: 8, enumerable: true },
- NOT_SUPPORTED_ERR: { value: 9, enumerable: true },
- INUSE_ATTRIBUTE_ERR: { value: 10, enumerable: true },
- INVALID_STATE_ERR: { value: 11, enumerable: true },
- SYNTAX_ERR: { value: 12, enumerable: true },
- INVALID_MODIFICATION_ERR: { value: 13, enumerable: true },
- NAMESPACE_ERR: { value: 14, enumerable: true },
- INVALID_ACCESS_ERR: { value: 15, enumerable: true },
- VALIDATION_ERR: { value: 16, enumerable: true },
- TYPE_MISMATCH_ERR: { value: 17, enumerable: true },
- SECURITY_ERR: { value: 18, enumerable: true },
- NETWORK_ERR: { value: 19, enumerable: true },
- ABORT_ERR: { value: 20, enumerable: true },
- URL_MISMATCH_ERR: { value: 21, enumerable: true },
- QUOTA_EXCEEDED_ERR: { value: 22, enumerable: true },
- TIMEOUT_ERR: { value: 23, enumerable: true },
- INVALID_NODE_TYPE_ERR: { value: 24, enumerable: true },
- DATA_CLONE_ERR: { value: 25, enumerable: true }
- });
- Object.defineProperties(DOMException, {
- INDEX_SIZE_ERR: { value: 1, enumerable: true },
- DOMSTRING_SIZE_ERR: { value: 2, enumerable: true },
- HIERARCHY_REQUEST_ERR: { value: 3, enumerable: true },
- WRONG_DOCUMENT_ERR: { value: 4, enumerable: true },
- INVALID_CHARACTER_ERR: { value: 5, enumerable: true },
- NO_DATA_ALLOWED_ERR: { value: 6, enumerable: true },
- NO_MODIFICATION_ALLOWED_ERR: { value: 7, enumerable: true },
- NOT_FOUND_ERR: { value: 8, enumerable: true },
- NOT_SUPPORTED_ERR: { value: 9, enumerable: true },
- INUSE_ATTRIBUTE_ERR: { value: 10, enumerable: true },
- INVALID_STATE_ERR: { value: 11, enumerable: true },
- SYNTAX_ERR: { value: 12, enumerable: true },
- INVALID_MODIFICATION_ERR: { value: 13, enumerable: true },
- NAMESPACE_ERR: { value: 14, enumerable: true },
- INVALID_ACCESS_ERR: { value: 15, enumerable: true },
- VALIDATION_ERR: { value: 16, enumerable: true },
- TYPE_MISMATCH_ERR: { value: 17, enumerable: true },
- SECURITY_ERR: { value: 18, enumerable: true },
- NETWORK_ERR: { value: 19, enumerable: true },
- ABORT_ERR: { value: 20, enumerable: true },
- URL_MISMATCH_ERR: { value: 21, enumerable: true },
- QUOTA_EXCEEDED_ERR: { value: 22, enumerable: true },
- TIMEOUT_ERR: { value: 23, enumerable: true },
- INVALID_NODE_TYPE_ERR: { value: 24, enumerable: true },
- DATA_CLONE_ERR: { value: 25, enumerable: true }
- });
- ctorRegistry[interfaceName] = DOMException;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMException
- });
-};
-
-const Impl = __nccwpck_require__(85589);
-
-
-/***/ }),
-
-/***/ 69497:
-/***/ ((module, exports) => {
-
-"use strict";
-
-
-// Returns "Type(value) is Object" in ES terminology.
-function isObject(value) {
- return (typeof value === "object" && value !== null) || typeof value === "function";
-}
-
-const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
-
-// Like `Object.assign`, but using `[[GetOwnProperty]]` and `[[DefineOwnProperty]]`
-// instead of `[[Get]]` and `[[Set]]` and only allowing objects
-function define(target, source) {
- for (const key of Reflect.ownKeys(source)) {
- const descriptor = Reflect.getOwnPropertyDescriptor(source, key);
- if (descriptor && !Reflect.defineProperty(target, key, descriptor)) {
- throw new TypeError(`Cannot redefine property: ${String(key)}`);
- }
- }
-}
-
-function newObjectInRealm(globalObject, object) {
- const ctorRegistry = initCtorRegistry(globalObject);
- return Object.defineProperties(
- Object.create(ctorRegistry["%Object.prototype%"]),
- Object.getOwnPropertyDescriptors(object)
- );
-}
-
-const wrapperSymbol = Symbol("wrapper");
-const implSymbol = Symbol("impl");
-const sameObjectCaches = Symbol("SameObject caches");
-const ctorRegistrySymbol = Symbol.for("[webidl2js] constructor registry");
-
-const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
-
-function initCtorRegistry(globalObject) {
- if (hasOwn(globalObject, ctorRegistrySymbol)) {
- return globalObject[ctorRegistrySymbol];
- }
-
- const ctorRegistry = Object.create(null);
-
- // In addition to registering all the WebIDL2JS-generated types in the constructor registry,
- // we also register a few intrinsics that we make use of in generated code, since they are not
- // easy to grab from the globalObject variable.
- ctorRegistry["%Object.prototype%"] = globalObject.Object.prototype;
- ctorRegistry["%IteratorPrototype%"] = Object.getPrototypeOf(
- Object.getPrototypeOf(new globalObject.Array()[Symbol.iterator]())
- );
-
- try {
- ctorRegistry["%AsyncIteratorPrototype%"] = Object.getPrototypeOf(
- Object.getPrototypeOf(
- globalObject.eval("(async function* () {})").prototype
- )
- );
- } catch {
- ctorRegistry["%AsyncIteratorPrototype%"] = AsyncIteratorPrototype;
- }
-
- globalObject[ctorRegistrySymbol] = ctorRegistry;
- return ctorRegistry;
-}
-
-function getSameObject(wrapper, prop, creator) {
- if (!wrapper[sameObjectCaches]) {
- wrapper[sameObjectCaches] = Object.create(null);
- }
-
- if (prop in wrapper[sameObjectCaches]) {
- return wrapper[sameObjectCaches][prop];
- }
-
- wrapper[sameObjectCaches][prop] = creator();
- return wrapper[sameObjectCaches][prop];
-}
-
-function wrapperForImpl(impl) {
- return impl ? impl[wrapperSymbol] : null;
-}
-
-function implForWrapper(wrapper) {
- return wrapper ? wrapper[implSymbol] : null;
-}
-
-function tryWrapperForImpl(impl) {
- const wrapper = wrapperForImpl(impl);
- return wrapper ? wrapper : impl;
-}
-
-function tryImplForWrapper(wrapper) {
- const impl = implForWrapper(wrapper);
- return impl ? impl : wrapper;
-}
-
-const iterInternalSymbol = Symbol("internal");
-
-function isArrayIndexPropName(P) {
- if (typeof P !== "string") {
- return false;
- }
- const i = P >>> 0;
- if (i === 2 ** 32 - 1) {
- return false;
- }
- const s = `${i}`;
- if (P !== s) {
- return false;
- }
- return true;
-}
-
-const byteLengthGetter =
- Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
-function isArrayBuffer(value) {
- try {
- byteLengthGetter.call(value);
- return true;
- } catch (e) {
- return false;
- }
-}
-
-function iteratorResult([key, value], kind) {
- let result;
- switch (kind) {
- case "key":
- result = key;
- break;
- case "value":
- result = value;
- break;
- case "key+value":
- result = [key, value];
- break;
- }
- return { value: result, done: false };
-}
-
-const supportsPropertyIndex = Symbol("supports property index");
-const supportedPropertyIndices = Symbol("supported property indices");
-const supportsPropertyName = Symbol("supports property name");
-const supportedPropertyNames = Symbol("supported property names");
-const indexedGet = Symbol("indexed property get");
-const indexedSetNew = Symbol("indexed property set new");
-const indexedSetExisting = Symbol("indexed property set existing");
-const namedGet = Symbol("named property get");
-const namedSetNew = Symbol("named property set new");
-const namedSetExisting = Symbol("named property set existing");
-const namedDelete = Symbol("named property delete");
-
-const asyncIteratorNext = Symbol("async iterator get the next iteration result");
-const asyncIteratorReturn = Symbol("async iterator return steps");
-const asyncIteratorInit = Symbol("async iterator initialization steps");
-const asyncIteratorEOI = Symbol("async iterator end of iteration");
-
-module.exports = exports = {
- isObject,
- hasOwn,
- define,
- newObjectInRealm,
- wrapperSymbol,
- implSymbol,
- getSameObject,
- ctorRegistrySymbol,
- initCtorRegistry,
- wrapperForImpl,
- implForWrapper,
- tryWrapperForImpl,
- tryImplForWrapper,
- iterInternalSymbol,
- isArrayBuffer,
- isArrayIndexPropName,
- supportsPropertyIndex,
- supportedPropertyIndices,
- supportsPropertyName,
- supportedPropertyNames,
- indexedGet,
- indexedSetNew,
- indexedSetExisting,
- namedGet,
- namedSetNew,
- namedSetExisting,
- namedDelete,
- asyncIteratorNext,
- asyncIteratorReturn,
- asyncIteratorInit,
- asyncIteratorEOI,
- iteratorResult
-};
-
-
-/***/ }),
-
-/***/ 57617:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const DOMException = __nccwpck_require__(37561);
-
-// Special install function to make the DOMException inherit from Error.
-// https://heycam.github.io/webidl/#es-DOMException-specialness
-function installOverride(globalObject, globalNames) {
- if (typeof globalObject.Error !== "function") {
- throw new Error("Internal error: Error constructor is not present on the given global object.");
- }
-
- DOMException.install(globalObject, globalNames);
- Object.setPrototypeOf(globalObject.DOMException.prototype, globalObject.Error.prototype);
-}
-
-module.exports = { ...DOMException, install: installOverride };
-
-
-/***/ }),
-
-/***/ 85107:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTMLAttribute = exports.decodeHTML = exports.determineBranch = exports.EntityDecoder = exports.DecodingMode = exports.BinTrieFlags = exports.fromCodePoint = exports.replaceCodePoint = exports.decodeCodePoint = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0;
-var decode_data_html_js_1 = __importDefault(__nccwpck_require__(76970));
-exports.htmlDecodeTree = decode_data_html_js_1.default;
-var decode_data_xml_js_1 = __importDefault(__nccwpck_require__(27359));
-exports.xmlDecodeTree = decode_data_xml_js_1.default;
-var decode_codepoint_js_1 = __importStar(__nccwpck_require__(31227));
-exports.decodeCodePoint = decode_codepoint_js_1.default;
-var decode_codepoint_js_2 = __nccwpck_require__(31227);
-Object.defineProperty(exports, "replaceCodePoint", ({ enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } }));
-Object.defineProperty(exports, "fromCodePoint", ({ enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } }));
-var CharCodes;
-(function (CharCodes) {
- CharCodes[CharCodes["NUM"] = 35] = "NUM";
- CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
- CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
- CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
- CharCodes[CharCodes["NINE"] = 57] = "NINE";
- CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
- CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
- CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
- CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
- CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
- CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
- CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
-})(CharCodes || (CharCodes = {}));
-/** Bit that needs to be set to convert an upper case ASCII character to lower case */
-var TO_LOWER_BIT = 32;
-var BinTrieFlags;
-(function (BinTrieFlags) {
- BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
- BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
- BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
-})(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
-function isNumber(code) {
- return code >= CharCodes.ZERO && code <= CharCodes.NINE;
-}
-function isHexadecimalCharacter(code) {
- return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
- (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F));
-}
-function isAsciiAlphaNumeric(code) {
- return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
- (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
- isNumber(code));
-}
-/**
- * Checks if the given character is a valid end character for an entity in an attribute.
- *
- * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
- * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
- */
-function isEntityInAttributeInvalidEnd(code) {
- return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
-}
-var EntityDecoderState;
-(function (EntityDecoderState) {
- EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
- EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
- EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
- EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
- EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
-})(EntityDecoderState || (EntityDecoderState = {}));
-var DecodingMode;
-(function (DecodingMode) {
- /** Entities in text nodes that can end with any character. */
- DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
- /** Only allow entities terminated with a semicolon. */
- DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
- /** Entities in attributes have limitations on ending characters. */
- DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
-})(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {}));
-/**
- * Token decoder with support of writing partial entities.
- */
-var EntityDecoder = /** @class */ (function () {
- function EntityDecoder(
- /** The tree used to decode entities. */
- decodeTree,
- /**
- * The function that is called when a codepoint is decoded.
- *
- * For multi-byte named entities, this will be called multiple times,
- * with the second codepoint, and the same `consumed` value.
- *
- * @param codepoint The decoded codepoint.
- * @param consumed The number of bytes consumed by the decoder.
- */
- emitCodePoint,
- /** An object that is used to produce errors. */
- errors) {
- this.decodeTree = decodeTree;
- this.emitCodePoint = emitCodePoint;
- this.errors = errors;
- /** The current state of the decoder. */
- this.state = EntityDecoderState.EntityStart;
- /** Characters that were consumed while parsing an entity. */
- this.consumed = 1;
- /**
- * The result of the entity.
- *
- * Either the result index of a numeric entity, or the codepoint of a
- * numeric entity.
- */
- this.result = 0;
- /** The current index in the decode tree. */
- this.treeIndex = 0;
- /** The number of characters that were consumed in excess. */
- this.excess = 1;
- /** The mode in which the decoder is operating. */
- this.decodeMode = DecodingMode.Strict;
- }
- /** Resets the instance to make it reusable. */
- EntityDecoder.prototype.startEntity = function (decodeMode) {
- this.decodeMode = decodeMode;
- this.state = EntityDecoderState.EntityStart;
- this.result = 0;
- this.treeIndex = 0;
- this.excess = 1;
- this.consumed = 1;
- };
- /**
- * Write an entity to the decoder. This can be called multiple times with partial entities.
- * If the entity is incomplete, the decoder will return -1.
- *
- * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
- * entity is incomplete, and resume when the next string is written.
- *
- * @param string The string containing the entity (or a continuation of the entity).
- * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
- */
- EntityDecoder.prototype.write = function (str, offset) {
- switch (this.state) {
- case EntityDecoderState.EntityStart: {
- if (str.charCodeAt(offset) === CharCodes.NUM) {
- this.state = EntityDecoderState.NumericStart;
- this.consumed += 1;
- return this.stateNumericStart(str, offset + 1);
- }
- this.state = EntityDecoderState.NamedEntity;
- return this.stateNamedEntity(str, offset);
- }
- case EntityDecoderState.NumericStart: {
- return this.stateNumericStart(str, offset);
- }
- case EntityDecoderState.NumericDecimal: {
- return this.stateNumericDecimal(str, offset);
- }
- case EntityDecoderState.NumericHex: {
- return this.stateNumericHex(str, offset);
- }
- case EntityDecoderState.NamedEntity: {
- return this.stateNamedEntity(str, offset);
- }
- }
- };
- /**
- * Switches between the numeric decimal and hexadecimal states.
- *
- * Equivalent to the `Numeric character reference state` in the HTML spec.
- *
- * @param str The string containing the entity (or a continuation of the entity).
- * @param offset The current offset.
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
- */
- EntityDecoder.prototype.stateNumericStart = function (str, offset) {
- if (offset >= str.length) {
- return -1;
- }
- if ((str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
- this.state = EntityDecoderState.NumericHex;
- this.consumed += 1;
- return this.stateNumericHex(str, offset + 1);
- }
- this.state = EntityDecoderState.NumericDecimal;
- return this.stateNumericDecimal(str, offset);
- };
- EntityDecoder.prototype.addToNumericResult = function (str, start, end, base) {
- if (start !== end) {
- var digitCount = end - start;
- this.result =
- this.result * Math.pow(base, digitCount) +
- parseInt(str.substr(start, digitCount), base);
- this.consumed += digitCount;
- }
- };
- /**
- * Parses a hexadecimal numeric entity.
- *
- * Equivalent to the `Hexademical character reference state` in the HTML spec.
- *
- * @param str The string containing the entity (or a continuation of the entity).
- * @param offset The current offset.
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
- */
- EntityDecoder.prototype.stateNumericHex = function (str, offset) {
- var startIdx = offset;
- while (offset < str.length) {
- var char = str.charCodeAt(offset);
- if (isNumber(char) || isHexadecimalCharacter(char)) {
- offset += 1;
- }
- else {
- this.addToNumericResult(str, startIdx, offset, 16);
- return this.emitNumericEntity(char, 3);
- }
- }
- this.addToNumericResult(str, startIdx, offset, 16);
- return -1;
- };
- /**
- * Parses a decimal numeric entity.
- *
- * Equivalent to the `Decimal character reference state` in the HTML spec.
- *
- * @param str The string containing the entity (or a continuation of the entity).
- * @param offset The current offset.
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
- */
- EntityDecoder.prototype.stateNumericDecimal = function (str, offset) {
- var startIdx = offset;
- while (offset < str.length) {
- var char = str.charCodeAt(offset);
- if (isNumber(char)) {
- offset += 1;
- }
- else {
- this.addToNumericResult(str, startIdx, offset, 10);
- return this.emitNumericEntity(char, 2);
- }
- }
- this.addToNumericResult(str, startIdx, offset, 10);
- return -1;
- };
- /**
- * Validate and emit a numeric entity.
- *
- * Implements the logic from the `Hexademical character reference start
- * state` and `Numeric character reference end state` in the HTML spec.
- *
- * @param lastCp The last code point of the entity. Used to see if the
- * entity was terminated with a semicolon.
- * @param expectedLength The minimum number of characters that should be
- * consumed. Used to validate that at least one digit
- * was consumed.
- * @returns The number of characters that were consumed.
- */
- EntityDecoder.prototype.emitNumericEntity = function (lastCp, expectedLength) {
- var _a;
- // Ensure we consumed at least one digit.
- if (this.consumed <= expectedLength) {
- (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
- return 0;
- }
- // Figure out if this is a legit end of the entity
- if (lastCp === CharCodes.SEMI) {
- this.consumed += 1;
- }
- else if (this.decodeMode === DecodingMode.Strict) {
- return 0;
- }
- this.emitCodePoint((0, decode_codepoint_js_1.replaceCodePoint)(this.result), this.consumed);
- if (this.errors) {
- if (lastCp !== CharCodes.SEMI) {
- this.errors.missingSemicolonAfterCharacterReference();
- }
- this.errors.validateNumericCharacterReference(this.result);
- }
- return this.consumed;
- };
- /**
- * Parses a named entity.
- *
- * Equivalent to the `Named character reference state` in the HTML spec.
- *
- * @param str The string containing the entity (or a continuation of the entity).
- * @param offset The current offset.
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
- */
- EntityDecoder.prototype.stateNamedEntity = function (str, offset) {
- var decodeTree = this.decodeTree;
- var current = decodeTree[this.treeIndex];
- // The mask is the number of bytes of the value, including the current byte.
- var valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
- for (; offset < str.length; offset++, this.excess++) {
- var char = str.charCodeAt(offset);
- this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
- if (this.treeIndex < 0) {
- return this.result === 0 ||
- // If we are parsing an attribute
- (this.decodeMode === DecodingMode.Attribute &&
- // We shouldn't have consumed any characters after the entity,
- (valueLength === 0 ||
- // And there should be no invalid characters.
- isEntityInAttributeInvalidEnd(char)))
- ? 0
- : this.emitNotTerminatedNamedEntity();
- }
- current = decodeTree[this.treeIndex];
- valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
- // If the branch is a value, store it and continue
- if (valueLength !== 0) {
- // If the entity is terminated by a semicolon, we are done.
- if (char === CharCodes.SEMI) {
- return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
- }
- // If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
- if (this.decodeMode !== DecodingMode.Strict) {
- this.result = this.treeIndex;
- this.consumed += this.excess;
- this.excess = 0;
- }
- }
- }
- return -1;
- };
- /**
- * Emit a named entity that was not terminated with a semicolon.
- *
- * @returns The number of characters consumed.
- */
- EntityDecoder.prototype.emitNotTerminatedNamedEntity = function () {
- var _a;
- var _b = this, result = _b.result, decodeTree = _b.decodeTree;
- var valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
- this.emitNamedEntityData(result, valueLength, this.consumed);
- (_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
- return this.consumed;
- };
- /**
- * Emit a named entity.
- *
- * @param result The index of the entity in the decode tree.
- * @param valueLength The number of bytes in the entity.
- * @param consumed The number of characters consumed.
- *
- * @returns The number of characters consumed.
- */
- EntityDecoder.prototype.emitNamedEntityData = function (result, valueLength, consumed) {
- var decodeTree = this.decodeTree;
- this.emitCodePoint(valueLength === 1
- ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
- : decodeTree[result + 1], consumed);
- if (valueLength === 3) {
- // For multi-byte values, we need to emit the second byte.
- this.emitCodePoint(decodeTree[result + 2], consumed);
- }
- return consumed;
- };
- /**
- * Signal to the parser that the end of the input was reached.
- *
- * Remaining data will be emitted and relevant errors will be produced.
- *
- * @returns The number of characters consumed.
- */
- EntityDecoder.prototype.end = function () {
- var _a;
- switch (this.state) {
- case EntityDecoderState.NamedEntity: {
- // Emit a named entity if we have one.
- return this.result !== 0 &&
- (this.decodeMode !== DecodingMode.Attribute ||
- this.result === this.treeIndex)
- ? this.emitNotTerminatedNamedEntity()
- : 0;
- }
- // Otherwise, emit a numeric entity if we have one.
- case EntityDecoderState.NumericDecimal: {
- return this.emitNumericEntity(0, 2);
- }
- case EntityDecoderState.NumericHex: {
- return this.emitNumericEntity(0, 3);
- }
- case EntityDecoderState.NumericStart: {
- (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
- return 0;
- }
- case EntityDecoderState.EntityStart: {
- // Return 0 if we have no entity.
- return 0;
- }
- }
- };
- return EntityDecoder;
-}());
-exports.EntityDecoder = EntityDecoder;
-/**
- * Creates a function that decodes entities in a string.
- *
- * @param decodeTree The decode tree.
- * @returns A function that decodes entities in a string.
- */
-function getDecoder(decodeTree) {
- var ret = "";
- var decoder = new EntityDecoder(decodeTree, function (str) { return (ret += (0, decode_codepoint_js_1.fromCodePoint)(str)); });
- return function decodeWithTrie(str, decodeMode) {
- var lastIndex = 0;
- var offset = 0;
- while ((offset = str.indexOf("&", offset)) >= 0) {
- ret += str.slice(lastIndex, offset);
- decoder.startEntity(decodeMode);
- var len = decoder.write(str,
- // Skip the "&"
- offset + 1);
- if (len < 0) {
- lastIndex = offset + decoder.end();
- break;
- }
- lastIndex = offset + len;
- // If `len` is 0, skip the current `&` and continue.
- offset = len === 0 ? lastIndex + 1 : lastIndex;
- }
- var result = ret + str.slice(lastIndex);
- // Make sure we don't keep a reference to the final string.
- ret = "";
- return result;
- };
-}
-/**
- * Determines the branch of the current node that is taken given the current
- * character. This function is used to traverse the trie.
- *
- * @param decodeTree The trie.
- * @param current The current node.
- * @param nodeIdx The index right after the current node and its value.
- * @param char The current character.
- * @returns The index of the next node, or -1 if no branch is taken.
- */
-function determineBranch(decodeTree, current, nodeIdx, char) {
- var branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
- var jumpOffset = current & BinTrieFlags.JUMP_TABLE;
- // Case 1: Single branch encoded in jump offset
- if (branchCount === 0) {
- return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1;
- }
- // Case 2: Multiple branches encoded in jump table
- if (jumpOffset) {
- var value = char - jumpOffset;
- return value < 0 || value >= branchCount
- ? -1
- : decodeTree[nodeIdx + value] - 1;
- }
- // Case 3: Multiple branches encoded in dictionary
- // Binary search for the character.
- var lo = nodeIdx;
- var hi = lo + branchCount - 1;
- while (lo <= hi) {
- var mid = (lo + hi) >>> 1;
- var midVal = decodeTree[mid];
- if (midVal < char) {
- lo = mid + 1;
- }
- else if (midVal > char) {
- hi = mid - 1;
- }
- else {
- return decodeTree[mid + branchCount];
- }
- }
- return -1;
-}
-exports.determineBranch = determineBranch;
-var htmlDecoder = getDecoder(decode_data_html_js_1.default);
-var xmlDecoder = getDecoder(decode_data_xml_js_1.default);
-/**
- * Decodes an HTML string.
- *
- * @param str The string to decode.
- * @param mode The decoding mode.
- * @returns The decoded string.
- */
-function decodeHTML(str, mode) {
- if (mode === void 0) { mode = DecodingMode.Legacy; }
- return htmlDecoder(str, mode);
-}
-exports.decodeHTML = decodeHTML;
-/**
- * Decodes an HTML string in an attribute.
- *
- * @param str The string to decode.
- * @returns The decoded string.
- */
-function decodeHTMLAttribute(str) {
- return htmlDecoder(str, DecodingMode.Attribute);
-}
-exports.decodeHTMLAttribute = decodeHTMLAttribute;
-/**
- * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
- *
- * @param str The string to decode.
- * @returns The decoded string.
- */
-function decodeHTMLStrict(str) {
- return htmlDecoder(str, DecodingMode.Strict);
-}
-exports.decodeHTMLStrict = decodeHTMLStrict;
-/**
- * Decodes an XML string, requiring all entities to be terminated by a semicolon.
- *
- * @param str The string to decode.
- * @returns The decoded string.
- */
-function decodeXML(str) {
- return xmlDecoder(str, DecodingMode.Strict);
-}
-exports.decodeXML = decodeXML;
-//# sourceMappingURL=decode.js.map
-
-/***/ }),
-
-/***/ 31227:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
-var _a;
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.replaceCodePoint = exports.fromCodePoint = void 0;
-var decodeMap = new Map([
- [0, 65533],
- // C1 Unicode control character reference replacements
- [128, 8364],
- [130, 8218],
- [131, 402],
- [132, 8222],
- [133, 8230],
- [134, 8224],
- [135, 8225],
- [136, 710],
- [137, 8240],
- [138, 352],
- [139, 8249],
- [140, 338],
- [142, 381],
- [145, 8216],
- [146, 8217],
- [147, 8220],
- [148, 8221],
- [149, 8226],
- [150, 8211],
- [151, 8212],
- [152, 732],
- [153, 8482],
- [154, 353],
- [155, 8250],
- [156, 339],
- [158, 382],
- [159, 376],
-]);
-/**
- * Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
- */
-exports.fromCodePoint =
-// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
-(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
- var output = "";
- if (codePoint > 0xffff) {
- codePoint -= 0x10000;
- output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800);
- codePoint = 0xdc00 | (codePoint & 0x3ff);
- }
- output += String.fromCharCode(codePoint);
- return output;
-};
-/**
- * Replace the given code point with a replacement character if it is a
- * surrogate or is outside the valid range. Otherwise return the code
- * point unchanged.
- */
-function replaceCodePoint(codePoint) {
- var _a;
- if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) {
- return 0xfffd;
- }
- return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
-}
-exports.replaceCodePoint = replaceCodePoint;
-/**
- * Replace the code point if relevant, then convert it to a string.
- *
- * @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
- * @param codePoint The code point to decode.
- * @returns The decoded code point.
- */
-function decodeCodePoint(codePoint) {
- return (0, exports.fromCodePoint)(replaceCodePoint(codePoint));
-}
-exports["default"] = decodeCodePoint;
-//# sourceMappingURL=decode_codepoint.js.map
-
-/***/ }),
-
-/***/ 37654:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;
-exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
-var xmlCodeMap = new Map([
- [34, """],
- [38, "&"],
- [39, "'"],
- [60, "<"],
- [62, ">"],
-]);
-// For compatibility with node < 4, we wrap `codePointAt`
-exports.getCodePoint =
-// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
-String.prototype.codePointAt != null
- ? function (str, index) { return str.codePointAt(index); }
- : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
- function (c, index) {
- return (c.charCodeAt(index) & 0xfc00) === 0xd800
- ? (c.charCodeAt(index) - 0xd800) * 0x400 +
- c.charCodeAt(index + 1) -
- 0xdc00 +
- 0x10000
- : c.charCodeAt(index);
- };
-/**
- * Encodes all non-ASCII characters, as well as characters not valid in XML
- * documents using XML entities.
- *
- * If a character has no equivalent entity, a
- * numeric hexadecimal reference (eg. `ü`) will be used.
- */
-function encodeXML(str) {
- var ret = "";
- var lastIdx = 0;
- var match;
- while ((match = exports.xmlReplacer.exec(str)) !== null) {
- var i = match.index;
- var char = str.charCodeAt(i);
- var next = xmlCodeMap.get(char);
- if (next !== undefined) {
- ret += str.substring(lastIdx, i) + next;
- lastIdx = i + 1;
- }
- else {
- ret += "".concat(str.substring(lastIdx, i), "").concat((0, exports.getCodePoint)(str, i).toString(16), ";");
- // Increase by 1 if we have a surrogate pair
- lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
- }
- }
- return ret + str.substr(lastIdx);
-}
-exports.encodeXML = encodeXML;
-/**
- * Encodes all non-ASCII characters, as well as characters not valid in XML
- * documents using numeric hexadecimal reference (eg. `ü`).
- *
- * Have a look at `escapeUTF8` if you want a more concise output at the expense
- * of reduced transportability.
- *
- * @param data String to escape.
- */
-exports.escape = encodeXML;
-/**
- * Creates a function that escapes all characters matched by the given regular
- * expression using the given map of characters to escape to their entities.
- *
- * @param regex Regular expression to match characters to escape.
- * @param map Map of characters to escape to their entities.
- *
- * @returns Function that escapes all characters matched by the given regular
- * expression using the given map of characters to escape to their entities.
- */
-function getEscaper(regex, map) {
- return function escape(data) {
- var match;
- var lastIdx = 0;
- var result = "";
- while ((match = regex.exec(data))) {
- if (lastIdx !== match.index) {
- result += data.substring(lastIdx, match.index);
- }
- // We know that this character will be in the map.
- result += map.get(match[0].charCodeAt(0));
- // Every match will be of length 1
- lastIdx = match.index + 1;
- }
- return result + data.substring(lastIdx);
- };
-}
-/**
- * Encodes all characters not valid in XML documents using XML entities.
- *
- * Note that the output will be character-set dependent.
- *
- * @param data String to escape.
- */
-exports.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
-/**
- * Encodes all characters that have to be escaped in HTML attributes,
- * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
- *
- * @param data String to escape.
- */
-exports.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
- [34, """],
- [38, "&"],
- [160, " "],
-]));
-/**
- * Encodes all characters that have to be escaped in HTML text,
- * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
- *
- * @param data String to escape.
- */
-exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
- [38, "&"],
- [60, "<"],
- [62, ">"],
- [160, " "],
-]));
-//# sourceMappingURL=escape.js.map
-
-/***/ }),
-
-/***/ 76970:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Generated using scripts/write-decode-map.ts
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports["default"] = new Uint16Array(
-// prettier-ignore
-"\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b\"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c"
- .split("")
- .map(function (c) { return c.charCodeAt(0); }));
-//# sourceMappingURL=decode-data-html.js.map
-
-/***/ }),
-
-/***/ 27359:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-// Generated using scripts/write-decode-map.ts
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports["default"] = new Uint16Array(
-// prettier-ignore
-"\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022"
- .split("")
- .map(function (c) { return c.charCodeAt(0); }));
-//# sourceMappingURL=decode-data-xml.js.map
-
-/***/ }),
-
-/***/ 64334:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var CombinedStream = __nccwpck_require__(85443);
-var util = __nccwpck_require__(73837);
-var path = __nccwpck_require__(71017);
-var http = __nccwpck_require__(13685);
-var https = __nccwpck_require__(95687);
-var parseUrl = (__nccwpck_require__(57310).parse);
-var fs = __nccwpck_require__(57147);
-var Stream = (__nccwpck_require__(12781).Stream);
-var mime = __nccwpck_require__(43583);
-var asynckit = __nccwpck_require__(14812);
-var populate = __nccwpck_require__(17142);
-
-// Public API
-module.exports = FormData;
-
-// make it a Stream
-util.inherits(FormData, CombinedStream);
-
-/**
- * Create readable "multipart/form-data" streams.
- * Can be used to submit forms
- * and file uploads to other web applications.
- *
- * @constructor
- * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
- */
-function FormData(options) {
- if (!(this instanceof FormData)) {
- return new FormData(options);
- }
-
- this._overheadLength = 0;
- this._valueLength = 0;
- this._valuesToMeasure = [];
-
- CombinedStream.call(this);
-
- options = options || {};
- for (var option in options) {
- this[option] = options[option];
- }
-}
-
-FormData.LINE_BREAK = '\r\n';
-FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
-
-FormData.prototype.append = function(field, value, options) {
-
- options = options || {};
-
- // allow filename as single option
- if (typeof options == 'string') {
- options = {filename: options};
- }
-
- var append = CombinedStream.prototype.append.bind(this);
-
- // all that streamy business can't handle numbers
- if (typeof value == 'number') {
- value = '' + value;
- }
-
- // https://github.com/felixge/node-form-data/issues/38
- if (util.isArray(value)) {
- // Please convert your array into string
- // the way web server expects it
- this._error(new Error('Arrays are not supported.'));
- return;
- }
-
- var header = this._multiPartHeader(field, value, options);
- var footer = this._multiPartFooter();
-
- append(header);
- append(value);
- append(footer);
-
- // pass along options.knownLength
- this._trackLength(header, value, options);
-};
-
-FormData.prototype._trackLength = function(header, value, options) {
- var valueLength = 0;
-
- // used w/ getLengthSync(), when length is known.
- // e.g. for streaming directly from a remote server,
- // w/ a known file a size, and not wanting to wait for
- // incoming file to finish to get its size.
- if (options.knownLength != null) {
- valueLength += +options.knownLength;
- } else if (Buffer.isBuffer(value)) {
- valueLength = value.length;
- } else if (typeof value === 'string') {
- valueLength = Buffer.byteLength(value);
- }
-
- this._valueLength += valueLength;
-
- // @check why add CRLF? does this account for custom/multiple CRLFs?
- this._overheadLength +=
- Buffer.byteLength(header) +
- FormData.LINE_BREAK.length;
-
- // empty or either doesn't have path or not an http response or not a stream
- if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {
- return;
- }
-
- // no need to bother with the length
- if (!options.knownLength) {
- this._valuesToMeasure.push(value);
- }
-};
-
-FormData.prototype._lengthRetriever = function(value, callback) {
-
- if (value.hasOwnProperty('fd')) {
-
- // take read range into a account
- // `end` = Infinity –> read file till the end
- //
- // TODO: Looks like there is bug in Node fs.createReadStream
- // it doesn't respect `end` options without `start` options
- // Fix it when node fixes it.
- // https://github.com/joyent/node/issues/7819
- if (value.end != undefined && value.end != Infinity && value.start != undefined) {
-
- // when end specified
- // no need to calculate range
- // inclusive, starts with 0
- callback(null, value.end + 1 - (value.start ? value.start : 0));
-
- // not that fast snoopy
- } else {
- // still need to fetch file size from fs
- fs.stat(value.path, function(err, stat) {
-
- var fileSize;
-
- if (err) {
- callback(err);
- return;
- }
-
- // update final size based on the range options
- fileSize = stat.size - (value.start ? value.start : 0);
- callback(null, fileSize);
- });
- }
-
- // or http response
- } else if (value.hasOwnProperty('httpVersion')) {
- callback(null, +value.headers['content-length']);
-
- // or request stream http://github.com/mikeal/request
- } else if (value.hasOwnProperty('httpModule')) {
- // wait till response come back
- value.on('response', function(response) {
- value.pause();
- callback(null, +response.headers['content-length']);
- });
- value.resume();
-
- // something else
- } else {
- callback('Unknown stream');
- }
-};
-
-FormData.prototype._multiPartHeader = function(field, value, options) {
- // custom header specified (as string)?
- // it becomes responsible for boundary
- // (e.g. to handle extra CRLFs on .NET servers)
- if (typeof options.header == 'string') {
- return options.header;
- }
-
- var contentDisposition = this._getContentDisposition(value, options);
- var contentType = this._getContentType(value, options);
-
- var contents = '';
- var headers = {
- // add custom disposition as third element or keep it two elements if not
- 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
- // if no content type. allow it to be empty array
- 'Content-Type': [].concat(contentType || [])
- };
-
- // allow custom headers.
- if (typeof options.header == 'object') {
- populate(headers, options.header);
- }
-
- var header;
- for (var prop in headers) {
- if (!headers.hasOwnProperty(prop)) continue;
- header = headers[prop];
-
- // skip nullish headers.
- if (header == null) {
- continue;
- }
-
- // convert all headers to arrays.
- if (!Array.isArray(header)) {
- header = [header];
- }
-
- // add non-empty headers.
- if (header.length) {
- contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
- }
- }
-
- return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
-};
-
-FormData.prototype._getContentDisposition = function(value, options) {
-
- var filename
- , contentDisposition
- ;
-
- if (typeof options.filepath === 'string') {
- // custom filepath for relative paths
- filename = path.normalize(options.filepath).replace(/\\/g, '/');
- } else if (options.filename || value.name || value.path) {
- // custom filename take precedence
- // formidable and the browser add a name property
- // fs- and request- streams have path property
- filename = path.basename(options.filename || value.name || value.path);
- } else if (value.readable && value.hasOwnProperty('httpVersion')) {
- // or try http response
- filename = path.basename(value.client._httpMessage.path || '');
- }
-
- if (filename) {
- contentDisposition = 'filename="' + filename + '"';
- }
-
- return contentDisposition;
-};
-
-FormData.prototype._getContentType = function(value, options) {
-
- // use custom content-type above all
- var contentType = options.contentType;
-
- // or try `name` from formidable, browser
- if (!contentType && value.name) {
- contentType = mime.lookup(value.name);
- }
-
- // or try `path` from fs-, request- streams
- if (!contentType && value.path) {
- contentType = mime.lookup(value.path);
- }
-
- // or if it's http-reponse
- if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
- contentType = value.headers['content-type'];
- }
-
- // or guess it from the filepath or filename
- if (!contentType && (options.filepath || options.filename)) {
- contentType = mime.lookup(options.filepath || options.filename);
- }
-
- // fallback to the default content type if `value` is not simple value
- if (!contentType && typeof value == 'object') {
- contentType = FormData.DEFAULT_CONTENT_TYPE;
- }
-
- return contentType;
-};
-
-FormData.prototype._multiPartFooter = function() {
- return function(next) {
- var footer = FormData.LINE_BREAK;
-
- var lastPart = (this._streams.length === 0);
- if (lastPart) {
- footer += this._lastBoundary();
- }
-
- next(footer);
- }.bind(this);
-};
-
-FormData.prototype._lastBoundary = function() {
- return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
-};
-
-FormData.prototype.getHeaders = function(userHeaders) {
- var header;
- var formHeaders = {
- 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
- };
-
- for (header in userHeaders) {
- if (userHeaders.hasOwnProperty(header)) {
- formHeaders[header.toLowerCase()] = userHeaders[header];
- }
- }
-
- return formHeaders;
-};
-
-FormData.prototype.setBoundary = function(boundary) {
- this._boundary = boundary;
-};
-
-FormData.prototype.getBoundary = function() {
- if (!this._boundary) {
- this._generateBoundary();
- }
-
- return this._boundary;
-};
-
-FormData.prototype.getBuffer = function() {
- var dataBuffer = new Buffer.alloc( 0 );
- var boundary = this.getBoundary();
-
- // Create the form content. Add Line breaks to the end of data.
- for (var i = 0, len = this._streams.length; i < len; i++) {
- if (typeof this._streams[i] !== 'function') {
-
- // Add content to the buffer.
- if(Buffer.isBuffer(this._streams[i])) {
- dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);
- }else {
- dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);
- }
-
- // Add break after content.
- if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {
- dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );
- }
- }
- }
-
- // Add the footer and return the Buffer object.
- return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );
-};
-
-FormData.prototype._generateBoundary = function() {
- // This generates a 50 character boundary similar to those used by Firefox.
- // They are optimized for boyer-moore parsing.
- var boundary = '--------------------------';
- for (var i = 0; i < 24; i++) {
- boundary += Math.floor(Math.random() * 10).toString(16);
- }
-
- this._boundary = boundary;
-};
-
-// Note: getLengthSync DOESN'T calculate streams length
-// As workaround one can calculate file size manually
-// and add it as knownLength option
-FormData.prototype.getLengthSync = function() {
- var knownLength = this._overheadLength + this._valueLength;
-
- // Don't get confused, there are 3 "internal" streams for each keyval pair
- // so it basically checks if there is any value added to the form
- if (this._streams.length) {
- knownLength += this._lastBoundary().length;
- }
-
- // https://github.com/form-data/form-data/issues/40
- if (!this.hasKnownLength()) {
- // Some async length retrievers are present
- // therefore synchronous length calculation is false.
- // Please use getLength(callback) to get proper length
- this._error(new Error('Cannot calculate proper length in synchronous way.'));
- }
-
- return knownLength;
-};
-
-// Public API to check if length of added values is known
-// https://github.com/form-data/form-data/issues/196
-// https://github.com/form-data/form-data/issues/262
-FormData.prototype.hasKnownLength = function() {
- var hasKnownLength = true;
-
- if (this._valuesToMeasure.length) {
- hasKnownLength = false;
- }
-
- return hasKnownLength;
-};
-
-FormData.prototype.getLength = function(cb) {
- var knownLength = this._overheadLength + this._valueLength;
-
- if (this._streams.length) {
- knownLength += this._lastBoundary().length;
- }
-
- if (!this._valuesToMeasure.length) {
- process.nextTick(cb.bind(this, null, knownLength));
- return;
- }
-
- asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
- if (err) {
- cb(err);
- return;
- }
-
- values.forEach(function(length) {
- knownLength += length;
- });
-
- cb(null, knownLength);
- });
-};
-
-FormData.prototype.submit = function(params, cb) {
- var request
- , options
- , defaults = {method: 'post'}
- ;
-
- // parse provided url if it's string
- // or treat it as options object
- if (typeof params == 'string') {
-
- params = parseUrl(params);
- options = populate({
- port: params.port,
- path: params.pathname,
- host: params.hostname,
- protocol: params.protocol
- }, defaults);
-
- // use custom params
- } else {
-
- options = populate(params, defaults);
- // if no port provided use default one
- if (!options.port) {
- options.port = options.protocol == 'https:' ? 443 : 80;
- }
- }
-
- // put that good code in getHeaders to some use
- options.headers = this.getHeaders(params.headers);
-
- // https if specified, fallback to http in any other case
- if (options.protocol == 'https:') {
- request = https.request(options);
- } else {
- request = http.request(options);
- }
-
- // get content length and fire away
- this.getLength(function(err, length) {
- if (err && err !== 'Unknown stream') {
- this._error(err);
- return;
- }
-
- // add content length
- if (length) {
- request.setHeader('Content-Length', length);
- }
-
- this.pipe(request);
- if (cb) {
- var onResponse;
-
- var callback = function (error, responce) {
- request.removeListener('error', callback);
- request.removeListener('response', onResponse);
-
- return cb.call(this, error, responce);
- };
-
- onResponse = callback.bind(this, null);
-
- request.on('error', callback);
- request.on('response', onResponse);
- }
- }.bind(this));
-
- return request;
-};
-
-FormData.prototype._error = function(err) {
- if (!this.error) {
- this.error = err;
- this.pause();
- this.emit('error', err);
- }
-};
-
-FormData.prototype.toString = function () {
- return '[object FormData]';
-};
-
-
-/***/ }),
-
-/***/ 17142:
-/***/ ((module) => {
-
-// populates missing values
-module.exports = function(dst, src) {
-
- Object.keys(src).forEach(function(prop)
- {
- dst[prop] = dst[prop] || src[prop];
- });
-
- return dst;
-};
-
-
-/***/ }),
-
-/***/ 76068:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-/**
- * Things we will need
- */
-function __ncc_wildcard$0 (arg) {
- if (arg === "alpine") return __nccwpck_require__(11068);
- else if (arg === "amazon") return __nccwpck_require__(56466);
- else if (arg === "arch") return __nccwpck_require__(79511);
- else if (arg === "centos") return __nccwpck_require__(9012);
- else if (arg === "debian") return __nccwpck_require__(96212);
- else if (arg === "fedora") return __nccwpck_require__(71422);
- else if (arg === "kde") return __nccwpck_require__(13541);
- else if (arg === "manjaro") return __nccwpck_require__(10770);
- else if (arg === "mint") return __nccwpck_require__(32430);
- else if (arg === "raspbian") return __nccwpck_require__(70484);
- else if (arg === "red") return __nccwpck_require__(58310);
- else if (arg === "suse") return __nccwpck_require__(98264);
- else if (arg === "ubuntu") return __nccwpck_require__(96478);
- else if (arg === "zorin") return __nccwpck_require__(57054);
-}
-var async = __nccwpck_require__(57888)
-var distros = __nccwpck_require__(81405)
-var fs = __nccwpck_require__(57147)
-var os = __nccwpck_require__(22037)
-
-/**
- * Begin definition of globals.
- */
-var cachedDistro = null // Store result of getLinuxDistro() after first call
-
-/**
- * Module definition.
- */
-module.exports = function getOs (cb) {
- // Node builtin as first line of defense.
- var osName = os.platform()
- // Linux is a special case.
- if (osName === 'linux') return getLinuxDistro(cb)
- // Else, node's builtin is acceptable.
- return cb(null, { os: osName })
-}
-
-/**
- * Identify the actual distribution name on a linux box.
- */
-function getLinuxDistro (cb) {
- /**
- * First, we check to see if this function has been called before.
- * Since an OS doesn't change during runtime, its safe to cache
- * the result and return it for future calls.
- */
- if (cachedDistro) return cb(null, cachedDistro)
-
- /**
- * We are going to take our list of release files from os.json and
- * check to see which one exists. It is safe to assume that no more
- * than 1 file in the list from os.json will exist on a distribution.
- */
- getReleaseFile(Object.keys(distros), function (e, file) {
- if (e) return cb(e)
-
- /**
- * Multiple distributions may share the same release file.
- * We get our array of candidates and match the format of the release
- * files and match them to a potential distribution
- */
- var candidates = distros[file]
- var os = { os: 'linux', dist: candidates[0] }
-
- fs.readFile(file, 'utf-8', function (e, file) {
- if (e) return cb(e)
-
- /**
- * If we only know of one distribution that has this file, its
- * somewhat safe to assume that it is the distribution we are
- * running on.
- */
- if (candidates.length === 1) {
- return customLogic(os, getName(os.dist), file, function (e, os) {
- if (e) return cb(e)
- cachedDistro = os
- return cb(null, os)
- })
- }
- /**
- * First, set everything to lower case to keep inconsistent
- * specifications from mucking up our logic.
- */
- file = file.toLowerCase()
- /**
- * Now we need to check all of our potential candidates one by one.
- * If their name is in the release file, it is guarenteed to be the
- * distribution we are running on. If distributions share the same
- * release file, it is reasonably safe to assume they will have the
- * distribution name stored in their release file.
- */
- async.each(candidates, function (candidate, done) {
- var name = getName(candidate)
- if (file.indexOf(name) >= 0) {
- os.dist = candidate
- return customLogic(os, name, file, function (e, augmentedOs) {
- if (e) return done(e)
- os = augmentedOs
- return done()
- })
- } else {
- return done()
- }
- }, function (e) {
- if (e) return cb(e)
- cachedDistro = os
- return cb(null, os)
- })
- })
- })() // sneaky sneaky.
-}
-
-function getName (candidate) {
- /**
- * We only care about the first word. I.E. for Arch Linux it is safe
- * to simply search for "arch". Also note, we force lower case to
- * match file.toLowerCase() above.
- */
- var index = 0
- var name = 'linux'
- /**
- * Don't include 'linux' when searching since it is too aggressive when
- * matching (see #54)
- */
- while (name === 'linux') {
- name = candidate.split(' ')[index++].toLowerCase()
- }
- return name
-}
-
-/**
- * Loads a custom logic module to populate additional distribution information
- */
-function customLogic (os, name, file, cb) {
- try { __ncc_wildcard$0(name)(os, file, cb) } catch (e) { cb(null, os) }
-}
-
-/**
- * getReleaseFile() checks an array of filenames and returns the first one it
- * finds on the filesystem.
- */
-function getReleaseFile (names, cb) {
- var index = 0 // Lets keep track of which file we are on.
- /**
- * checkExists() is a first class function that we are using for recursion.
- */
- return function checkExists () {
- /**
- * Lets get the file metadata off the current file.
- */
- fs.stat(names[index], function (e, stat) {
- /**
- * Now we check if either the file didn't exist, or it is something
- * other than a file for some very very bizzar reason.
- */
- if (e || !stat.isFile()) {
- index++ // If it is not a file, we will check the next one!
- if (names.length <= index) { // Unless we are out of files.
- return cb(new Error('No unique release file found!')) // Then error.
- }
- return checkExists() // Re-call this function to check the next file.
- }
- cb(null, names[index]) // If we found a file, return it!
- })
- }
-}
-
-
-/***/ }),
-
-/***/ 11068:
-/***/ ((module) => {
-
-var releaseRegex = /(.*)/
-
-module.exports = function alpineCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 56466:
-/***/ ((module) => {
-
-var releaseRegex = /release (.*)/
-
-module.exports = function amazonCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 79511:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-module.exports = __nccwpck_require__(96478)
-
-
-/***/ }),
-
-/***/ 9012:
-/***/ ((module) => {
-
-var releaseRegex = /release ([^ ]+)/
-var codenameRegex = /\((.*)\)/
-
-module.exports = function centosCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- var codename = file.match(codenameRegex)
- if (codename && codename.length === 2) os.codename = codename[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 96212:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var exec = (__nccwpck_require__(32081).exec)
-var lsbRelease = /Release:\t(.*)/
-var lsbCodename = /Codename:\t(.*)/
-var releaseRegex = /(.*)/
-
-module.exports = function (os, file, cb) {
- // first try lsb_release
- return lsbrelease(os, file, cb)
-}
-
-function lsbrelease (os, file, cb) {
- exec('lsb_release -a', function (e, stdout, stderr) {
- if (e) return releasefile(os, file, cb)
- var release = stdout.match(lsbRelease)
- if (release && release.length === 2) os.release = release[1]
- var codename = stdout.match(lsbCodename)
- if (codename && release.length === 2) os.codename = codename[1]
- cb(null, os)
- })
-}
-
-function releasefile (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 71422:
-/***/ ((module) => {
-
-var releaseRegex = /release (..)/
-var codenameRegex = /\((.*)\)/
-
-module.exports = function fedoraCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- var codename = file.match(codenameRegex)
- if (codename && codename.length === 2) os.codename = codename[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 13541:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-module.exports = __nccwpck_require__(96478)
-
-
-/***/ }),
-
-/***/ 10770:
-/***/ ((module) => {
-
-var releaseRegex = /distrib_release=(.*)/
-var codenameRegex = /distrib_codename=(.*)/
-
-module.exports = function ubuntuCustomLogic (os, file, cb) {
- var codename = file.match(codenameRegex)
- if (codename && codename.length === 2) os.codename = codename[1]
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 32430:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-module.exports = __nccwpck_require__(96478)
-
-
-/***/ }),
-
-/***/ 70484:
-/***/ ((module) => {
-
-var releaseRegex = /VERSION_ID="(.*)"/
-var codenameRegex = /VERSION="[0-9] \((.*)\)"/
-
-module.exports = function raspbianCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- var codename = file.match(codenameRegex)
- if (codename && codename.length === 2) os.codename = codename[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 58310:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-module.exports = __nccwpck_require__(9012)
-
-
-/***/ }),
-
-/***/ 98264:
-/***/ ((module) => {
-
-var releaseRegex = /VERSION = (.*)\n/
-
-module.exports = function suseCustomLogic (os, file, cb) {
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 96478:
-/***/ ((module) => {
-
-var releaseRegex = /distrib_release=(.*)/
-var codenameRegex = /distrib_codename=(.*)/
-
-module.exports = function ubuntuCustomLogic (os, file, cb) {
- var codename = file.match(codenameRegex)
- if (codename && codename.length === 2) os.codename = codename[1]
- var release = file.match(releaseRegex)
- if (release && release.length === 2) os.release = release[1]
- cb(null, os)
-}
-
-
-/***/ }),
-
-/***/ 57054:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-module.exports = __nccwpck_require__(96478)
-
-
-/***/ }),
-
-/***/ 51046:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-var balanced = __nccwpck_require__(9417);
-
-module.exports = expandTop;
-
-var escSlash = '\0SLASH'+Math.random()+'\0';
-var escOpen = '\0OPEN'+Math.random()+'\0';
-var escClose = '\0CLOSE'+Math.random()+'\0';
-var escComma = '\0COMMA'+Math.random()+'\0';
-var escPeriod = '\0PERIOD'+Math.random()+'\0';
-
-function numeric(str) {
- return parseInt(str, 10) == str
- ? parseInt(str, 10)
- : str.charCodeAt(0);
-}
-
-function escapeBraces(str) {
- return str.split('\\\\').join(escSlash)
- .split('\\{').join(escOpen)
- .split('\\}').join(escClose)
- .split('\\,').join(escComma)
- .split('\\.').join(escPeriod);
-}
-
-function unescapeBraces(str) {
- return str.split(escSlash).join('\\')
- .split(escOpen).join('{')
- .split(escClose).join('}')
- .split(escComma).join(',')
- .split(escPeriod).join('.');
-}
-
-
-// Basically just str.split(","), but handling cases
-// where we have nested braced sections, which should be
-// treated as individual members, like {a,{b,c},d}
-function parseCommaParts(str) {
- if (!str)
- return [''];
-
- var parts = [];
- var m = balanced('{', '}', str);
-
- if (!m)
- return str.split(',');
-
- var pre = m.pre;
- var body = m.body;
- var post = m.post;
- var p = pre.split(',');
-
- p[p.length-1] += '{' + body + '}';
- var postParts = parseCommaParts(post);
- if (post.length) {
- p[p.length-1] += postParts.shift();
- p.push.apply(p, postParts);
- }
-
- parts.push.apply(parts, p);
-
- return parts;
-}
-
-function expandTop(str) {
- if (!str)
- return [];
-
- // I don't know why Bash 4.3 does this, but it does.
- // Anything starting with {} will have the first two bytes preserved
- // but *only* at the top level, so {},a}b will not expand to anything,
- // but a{},b}c will be expanded to [a}c,abc].
- // One could argue that this is a bug in Bash, but since the goal of
- // this module is to match Bash's rules, we escape a leading {}
- if (str.substr(0, 2) === '{}') {
- str = '\\{\\}' + str.substr(2);
- }
-
- return expand(escapeBraces(str), true).map(unescapeBraces);
-}
-
-function embrace(str) {
- return '{' + str + '}';
-}
-function isPadded(el) {
- return /^-?0\d/.test(el);
-}
-
-function lte(i, y) {
- return i <= y;
-}
-function gte(i, y) {
- return i >= y;
-}
-
-function expand(str, isTop) {
- var expansions = [];
-
- var m = balanced('{', '}', str);
- if (!m) return [str];
-
- // no need to expand pre, since it is guaranteed to be free of brace-sets
- var pre = m.pre;
- var post = m.post.length
- ? expand(m.post, false)
- : [''];
-
- if (/\$$/.test(m.pre)) {
- for (var k = 0; k < post.length; k++) {
- var expansion = pre+ '{' + m.body + '}' + post[k];
- expansions.push(expansion);
- }
- } else {
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
- var isSequence = isNumericSequence || isAlphaSequence;
- var isOptions = m.body.indexOf(',') >= 0;
- if (!isSequence && !isOptions) {
- // {a},b}
- if (m.post.match(/,.*\}/)) {
- str = m.pre + '{' + m.body + escClose + m.post;
- return expand(str);
- }
- return [str];
- }
-
- var n;
- if (isSequence) {
- n = m.body.split(/\.\./);
- } else {
- n = parseCommaParts(m.body);
- if (n.length === 1) {
- // x{{a,b}}y ==> x{a}y x{b}y
- n = expand(n[0], false).map(embrace);
- if (n.length === 1) {
- return post.map(function(p) {
- return m.pre + n[0] + p;
- });
- }
- }
- }
-
- // at this point, n is the parts, and we know it's not a comma set
- // with a single entry.
- var N;
-
- if (isSequence) {
- var x = numeric(n[0]);
- var y = numeric(n[1]);
- var width = Math.max(n[0].length, n[1].length)
- var incr = n.length == 3
- ? Math.abs(numeric(n[2]))
- : 1;
- var test = lte;
- var reverse = y < x;
- if (reverse) {
- incr *= -1;
- test = gte;
- }
- var pad = n.some(isPadded);
-
- N = [];
-
- for (var i = x; test(i, y); i += incr) {
- var c;
- if (isAlphaSequence) {
- c = String.fromCharCode(i);
- if (c === '\\')
- c = '';
- } else {
- c = String(i);
- if (pad) {
- var need = width - c.length;
- if (need > 0) {
- var z = new Array(need + 1).join('0');
- if (i < 0)
- c = '-' + z + c.slice(1);
- else
- c = z + c;
- }
- }
- }
- N.push(c);
- }
- } else {
- N = [];
-
- for (var j = 0; j < n.length; j++) {
- N.push.apply(N, expand(n[j], false));
- }
- }
-
- for (var j = 0; j < N.length; j++) {
- for (var k = 0; k < post.length; k++) {
- var expansion = pre + N[j] + post[k];
- if (!isTop || isSequence || expansion)
- expansions.push(expansion);
- }
- }
- }
-
- return expansions;
-}
-
-
-
-/***/ }),
-
-/***/ 31621:
-/***/ ((module) => {
-
-"use strict";
-
-
-module.exports = (flag, argv = process.argv) => {
- const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
- const position = argv.indexOf(prefix + flag);
- const terminatorPosition = argv.indexOf('--');
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
-};
-
-
-/***/ }),
-
-/***/ 15487:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const whatwgEncoding = __nccwpck_require__(49967);
-
-// https://html.spec.whatwg.org/#encoding-sniffing-algorithm
-module.exports = (uint8Array, { transportLayerEncodingLabel, defaultEncoding = "windows-1252" } = {}) => {
- let encoding = whatwgEncoding.getBOMEncoding(uint8Array);
-
- if (encoding === null && transportLayerEncodingLabel !== undefined) {
- encoding = whatwgEncoding.labelToName(transportLayerEncodingLabel);
- }
-
- if (encoding === null) {
- encoding = prescanMetaCharset(uint8Array);
- }
-
- if (encoding === null) {
- encoding = defaultEncoding;
- }
-
- return encoding;
-};
-
-// https://html.spec.whatwg.org/multipage/syntax.html#prescan-a-byte-stream-to-determine-its-encoding
-function prescanMetaCharset(uint8Array) {
- const l = Math.min(uint8Array.byteLength, 1024);
- for (let i = 0; i < l; i++) {
- let c = uint8Array[i];
- if (c === 0x3C) {
- // "<"
- const c1 = uint8Array[i + 1];
- const c2 = uint8Array[i + 2];
- const c3 = uint8Array[i + 3];
- const c4 = uint8Array[i + 4];
- const c5 = uint8Array[i + 5];
- // !-- (comment start)
- if (c1 === 0x21 && c2 === 0x2D && c3 === 0x2D) {
- i += 4;
- for (; i < l; i++) {
- c = uint8Array[i];
- const cMinus1 = uint8Array[i - 1];
- const cMinus2 = uint8Array[i - 2];
- // --> (comment end)
- if (c === 0x3E && cMinus1 === 0x2D && cMinus2 === 0x2D) {
- break;
- }
- }
- } else if ((c1 === 0x4D || c1 === 0x6D) &&
- (c2 === 0x45 || c2 === 0x65) &&
- (c3 === 0x54 || c3 === 0x74) &&
- (c4 === 0x41 || c4 === 0x61) &&
- (isSpaceCharacter(c5) || c5 === 0x2F)) {
- // "meta" + space or /
- i += 6;
- const attributeList = new Set();
- let gotPragma = false;
- let needPragma = null;
- let charset = null;
-
- let attrRes;
- do {
- attrRes = getAttribute(uint8Array, i, l);
- if (attrRes.attr && !attributeList.has(attrRes.attr.name)) {
- attributeList.add(attrRes.attr.name);
- if (attrRes.attr.name === "http-equiv") {
- gotPragma = attrRes.attr.value === "content-type";
- } else if (attrRes.attr.name === "content" && !charset) {
- charset = extractCharacterEncodingFromMeta(attrRes.attr.value);
- if (charset !== null) {
- needPragma = true;
- }
- } else if (attrRes.attr.name === "charset") {
- charset = whatwgEncoding.labelToName(attrRes.attr.value);
- needPragma = false;
- }
- }
- i = attrRes.i;
- } while (attrRes.attr);
-
- if (needPragma === null) {
- continue;
- }
- if (needPragma === true && gotPragma === false) {
- continue;
- }
- if (charset === null) {
- continue;
- }
-
- if (charset === "UTF-16LE" || charset === "UTF-16BE") {
- charset = "UTF-8";
- }
- if (charset === "x-user-defined") {
- charset = "windows-1252";
- }
-
- return charset;
- } else if ((c1 >= 0x41 && c1 <= 0x5A) || (c1 >= 0x61 && c1 <= 0x7A)) {
- // a-z or A-Z
- for (i += 2; i < l; i++) {
- c = uint8Array[i];
- // space or >
- if (isSpaceCharacter(c) || c === 0x3E) {
- break;
- }
- }
- let attrRes;
- do {
- attrRes = getAttribute(uint8Array, i, l);
- i = attrRes.i;
- } while (attrRes.attr);
- } else if (c1 === 0x21 || c1 === 0x2F || c1 === 0x3F) {
- // ! or / or ?
- for (i += 2; i < l; i++) {
- c = uint8Array[i];
- // >
- if (c === 0x3E) {
- break;
- }
- }
- }
- }
- }
- return null;
-}
-
-// https://html.spec.whatwg.org/multipage/syntax.html#concept-get-attributes-when-sniffing
-function getAttribute(uint8Array, i, l) {
- for (; i < l; i++) {
- let c = uint8Array[i];
- // space or /
- if (isSpaceCharacter(c) || c === 0x2F) {
- continue;
- }
- // ">"
- if (c === 0x3E) {
- break;
- }
- let name = "";
- let value = "";
- nameLoop:for (; i < l; i++) {
- c = uint8Array[i];
- // "="
- if (c === 0x3D && name !== "") {
- i++;
- break;
- }
- // space
- if (isSpaceCharacter(c)) {
- for (i++; i < l; i++) {
- c = uint8Array[i];
- // space
- if (isSpaceCharacter(c)) {
- continue;
- }
- // not "="
- if (c !== 0x3D) {
- return { attr: { name, value }, i };
- }
-
- i++;
- break nameLoop;
- }
- break;
- }
- // / or >
- if (c === 0x2F || c === 0x3E) {
- return { attr: { name, value }, i };
- }
- // A-Z
- if (c >= 0x41 && c <= 0x5A) {
- name += String.fromCharCode(c + 0x20); // lowercase
- } else {
- name += String.fromCharCode(c);
- }
- }
- c = uint8Array[i];
- // space
- if (isSpaceCharacter(c)) {
- for (i++; i < l; i++) {
- c = uint8Array[i];
- // space
- if (isSpaceCharacter(c)) {
- continue;
- } else {
- break;
- }
- }
- }
- // " or '
- if (c === 0x22 || c === 0x27) {
- const quote = c;
- for (i++; i < l; i++) {
- c = uint8Array[i];
-
- if (c === quote) {
- i++;
- return { attr: { name, value }, i };
- }
-
- // A-Z
- if (c >= 0x41 && c <= 0x5A) {
- value += String.fromCharCode(c + 0x20); // lowercase
- } else {
- value += String.fromCharCode(c);
- }
- }
- }
-
- // >
- if (c === 0x3E) {
- return { attr: { name, value }, i };
- }
-
- // A-Z
- if (c >= 0x41 && c <= 0x5A) {
- value += String.fromCharCode(c + 0x20); // lowercase
- } else {
- value += String.fromCharCode(c);
- }
-
- for (i++; i < l; i++) {
- c = uint8Array[i];
-
- // space or >
- if (isSpaceCharacter(c) || c === 0x3E) {
- return { attr: { name, value }, i };
- }
-
- // A-Z
- if (c >= 0x41 && c <= 0x5A) {
- value += String.fromCharCode(c + 0x20); // lowercase
- } else {
- value += String.fromCharCode(c);
- }
- }
- }
- return { i };
-}
-
-function extractCharacterEncodingFromMeta(string) {
- let position = 0;
-
- while (true) {
- const indexOfCharset = string.substring(position).search(/charset/ui);
-
- if (indexOfCharset === -1) {
- return null;
- }
- let subPosition = position + indexOfCharset + "charset".length;
-
- while (isSpaceCharacter(string[subPosition].charCodeAt(0))) {
- ++subPosition;
- }
-
- if (string[subPosition] !== "=") {
- position = subPosition - 1;
- continue;
- }
-
- ++subPosition;
-
- while (isSpaceCharacter(string[subPosition].charCodeAt(0))) {
- ++subPosition;
- }
-
- position = subPosition;
- break;
- }
-
- if (string[position] === "\"" || string[position] === "'") {
- const nextIndex = string.indexOf(string[position], position + 1);
-
- if (nextIndex !== -1) {
- return whatwgEncoding.labelToName(string.substring(position + 1, nextIndex));
- }
-
- // It is an unmatched quotation mark
- return null;
- }
-
- if (string.length === position + 1) {
- return null;
- }
-
- const indexOfASCIIWhitespaceOrSemicolon = string.substring(position + 1).search(/\x09|\x0A|\x0C|\x0D|\x20|;/u);
- const end = indexOfASCIIWhitespaceOrSemicolon === -1 ?
- string.length :
- position + indexOfASCIIWhitespaceOrSemicolon + 1;
-
- return whatwgEncoding.labelToName(string.substring(position, end));
-}
-
-function isSpaceCharacter(c) {
- return c === 0x09 || c === 0x0A || c === 0x0C || c === 0x0D || c === 0x20;
-}
-
-
-/***/ }),
-
-/***/ 77492:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const net_1 = __importDefault(__nccwpck_require__(41808));
-const tls_1 = __importDefault(__nccwpck_require__(24404));
-const url_1 = __importDefault(__nccwpck_require__(57310));
-const debug_1 = __importDefault(__nccwpck_require__(38237));
-const once_1 = __importDefault(__nccwpck_require__(81040));
-const agent_base_1 = __nccwpck_require__(49690);
-const debug = (0, debug_1.default)('http-proxy-agent');
-function isHTTPS(protocol) {
- return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;
-}
-/**
- * The `HttpProxyAgent` implements an HTTP Agent subclass that connects
- * to the specified "HTTP proxy server" in order to proxy HTTP requests.
- *
- * @api public
- */
-class HttpProxyAgent extends agent_base_1.Agent {
- constructor(_opts) {
- let opts;
- if (typeof _opts === 'string') {
- opts = url_1.default.parse(_opts);
- }
- else {
- opts = _opts;
- }
- if (!opts) {
- throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');
- }
- debug('Creating new HttpProxyAgent instance: %o', opts);
- super(opts);
- const proxy = Object.assign({}, opts);
- // If `true`, then connect to the proxy server over TLS.
- // Defaults to `false`.
- this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
- // Prefer `hostname` over `host`, and set the `port` if needed.
- proxy.host = proxy.hostname || proxy.host;
- if (typeof proxy.port === 'string') {
- proxy.port = parseInt(proxy.port, 10);
- }
- if (!proxy.port && proxy.host) {
- proxy.port = this.secureProxy ? 443 : 80;
- }
- if (proxy.host && proxy.path) {
- // If both a `host` and `path` are specified then it's most likely
- // the result of a `url.parse()` call... we need to remove the
- // `path` portion so that `net.connect()` doesn't attempt to open
- // that as a Unix socket file.
- delete proxy.path;
- delete proxy.pathname;
- }
- this.proxy = proxy;
- }
- /**
- * Called when the node-core HTTP client library is creating a
- * new HTTP request.
- *
- * @api protected
- */
- callback(req, opts) {
- return __awaiter(this, void 0, void 0, function* () {
- const { proxy, secureProxy } = this;
- const parsed = url_1.default.parse(req.path);
- if (!parsed.protocol) {
- parsed.protocol = 'http:';
- }
- if (!parsed.hostname) {
- parsed.hostname = opts.hostname || opts.host || null;
- }
- if (parsed.port == null && typeof opts.port) {
- parsed.port = String(opts.port);
- }
- if (parsed.port === '80') {
- // if port is 80, then we can remove the port so that the
- // ":80" portion is not on the produced URL
- parsed.port = '';
- }
- // Change the `http.ClientRequest` instance's "path" field
- // to the absolute path of the URL that will be requested.
- req.path = url_1.default.format(parsed);
- // Inject the `Proxy-Authorization` header if necessary.
- if (proxy.auth) {
- req.setHeader('Proxy-Authorization', `Basic ${Buffer.from(proxy.auth).toString('base64')}`);
- }
- // Create a socket connection to the proxy server.
- let socket;
- if (secureProxy) {
- debug('Creating `tls.Socket`: %o', proxy);
- socket = tls_1.default.connect(proxy);
- }
- else {
- debug('Creating `net.Socket`: %o', proxy);
- socket = net_1.default.connect(proxy);
- }
- // At this point, the http ClientRequest's internal `_header` field
- // might have already been set. If this is the case then we'll need
- // to re-generate the string since we just changed the `req.path`.
- if (req._header) {
- let first;
- let endOfHeaders;
- debug('Regenerating stored HTTP header string for request');
- req._header = null;
- req._implicitHeader();
- if (req.output && req.output.length > 0) {
- // Node < 12
- debug('Patching connection write() output buffer with updated header');
- first = req.output[0];
- endOfHeaders = first.indexOf('\r\n\r\n') + 4;
- req.output[0] = req._header + first.substring(endOfHeaders);
- debug('Output buffer: %o', req.output);
- }
- else if (req.outputData && req.outputData.length > 0) {
- // Node >= 12
- debug('Patching connection write() output buffer with updated header');
- first = req.outputData[0].data;
- endOfHeaders = first.indexOf('\r\n\r\n') + 4;
- req.outputData[0].data =
- req._header + first.substring(endOfHeaders);
- debug('Output buffer: %o', req.outputData[0].data);
- }
- }
- // Wait for the socket's `connect` event, so that this `callback()`
- // function throws instead of the `http` request machinery. This is
- // important for i.e. `PacProxyAgent` which determines a failed proxy
- // connection via the `callback()` function throwing.
- yield (0, once_1.default)(socket, 'connect');
- return socket;
- });
- }
-}
-exports["default"] = HttpProxyAgent;
-//# sourceMappingURL=agent.js.map
-
-/***/ }),
-
-/***/ 23764:
-/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
-
-"use strict";
-
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-const agent_1 = __importDefault(__nccwpck_require__(77492));
-function createHttpProxyAgent(opts) {
- return new agent_1.default(opts);
-}
-(function (createHttpProxyAgent) {
- createHttpProxyAgent.HttpProxyAgent = agent_1.default;
- createHttpProxyAgent.prototype = agent_1.default.prototype;
-})(createHttpProxyAgent || (createHttpProxyAgent = {}));
-module.exports = createHttpProxyAgent;
-//# sourceMappingURL=index.js.map
-
-/***/ }),
-
-/***/ 15098:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const net_1 = __importDefault(__nccwpck_require__(41808));
-const tls_1 = __importDefault(__nccwpck_require__(24404));
-const url_1 = __importDefault(__nccwpck_require__(57310));
-const assert_1 = __importDefault(__nccwpck_require__(39491));
-const debug_1 = __importDefault(__nccwpck_require__(38237));
-const agent_base_1 = __nccwpck_require__(49690);
-const parse_proxy_response_1 = __importDefault(__nccwpck_require__(595));
-const debug = debug_1.default('https-proxy-agent:agent');
-/**
- * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
- * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
- *
- * Outgoing HTTP requests are first tunneled through the proxy server using the
- * `CONNECT` HTTP request method to establish a connection to the proxy server,
- * and then the proxy server connects to the destination target and issues the
- * HTTP request from the proxy server.
- *
- * `https:` requests have their socket connection upgraded to TLS once
- * the connection to the proxy server has been established.
- *
- * @api public
- */
-class HttpsProxyAgent extends agent_base_1.Agent {
- constructor(_opts) {
- let opts;
- if (typeof _opts === 'string') {
- opts = url_1.default.parse(_opts);
- }
- else {
- opts = _opts;
- }
- if (!opts) {
- throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');
- }
- debug('creating new HttpsProxyAgent instance: %o', opts);
- super(opts);
- const proxy = Object.assign({}, opts);
- // If `true`, then connect to the proxy server over TLS.
- // Defaults to `false`.
- this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
- // Prefer `hostname` over `host`, and set the `port` if needed.
- proxy.host = proxy.hostname || proxy.host;
- if (typeof proxy.port === 'string') {
- proxy.port = parseInt(proxy.port, 10);
- }
- if (!proxy.port && proxy.host) {
- proxy.port = this.secureProxy ? 443 : 80;
- }
- // ALPN is supported by Node.js >= v5.
- // attempt to negotiate http/1.1 for proxy servers that support http/2
- if (this.secureProxy && !('ALPNProtocols' in proxy)) {
- proxy.ALPNProtocols = ['http 1.1'];
- }
- if (proxy.host && proxy.path) {
- // If both a `host` and `path` are specified then it's most likely
- // the result of a `url.parse()` call... we need to remove the
- // `path` portion so that `net.connect()` doesn't attempt to open
- // that as a Unix socket file.
- delete proxy.path;
- delete proxy.pathname;
- }
- this.proxy = proxy;
- }
- /**
- * Called when the node-core HTTP client library is creating a
- * new HTTP request.
- *
- * @api protected
- */
- callback(req, opts) {
- return __awaiter(this, void 0, void 0, function* () {
- const { proxy, secureProxy } = this;
- // Create a socket connection to the proxy server.
- let socket;
- if (secureProxy) {
- debug('Creating `tls.Socket`: %o', proxy);
- socket = tls_1.default.connect(proxy);
- }
- else {
- debug('Creating `net.Socket`: %o', proxy);
- socket = net_1.default.connect(proxy);
- }
- const headers = Object.assign({}, proxy.headers);
- const hostname = `${opts.host}:${opts.port}`;
- let payload = `CONNECT ${hostname} HTTP/1.1\r\n`;
- // Inject the `Proxy-Authorization` header if necessary.
- if (proxy.auth) {
- headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`;
- }
- // The `Host` header should only include the port
- // number when it is not the default port.
- let { host, port, secureEndpoint } = opts;
- if (!isDefaultPort(port, secureEndpoint)) {
- host += `:${port}`;
- }
- headers.Host = host;
- headers.Connection = 'close';
- for (const name of Object.keys(headers)) {
- payload += `${name}: ${headers[name]}\r\n`;
- }
- const proxyResponsePromise = parse_proxy_response_1.default(socket);
- socket.write(`${payload}\r\n`);
- const { statusCode, buffered } = yield proxyResponsePromise;
- if (statusCode === 200) {
- req.once('socket', resume);
- if (opts.secureEndpoint) {
- // The proxy is connecting to a TLS server, so upgrade
- // this socket connection to a TLS connection.
- debug('Upgrading socket connection to TLS');
- const servername = opts.servername || opts.host;
- return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket,
- servername }));
- }
- return socket;
- }
- // Some other status code that's not 200... need to re-play the HTTP
- // header "data" events onto the socket once the HTTP machinery is
- // attached so that the node core `http` can parse and handle the
- // error status code.
- // Close the original socket, and a new "fake" socket is returned
- // instead, so that the proxy doesn't get the HTTP request
- // written to it (which may contain `Authorization` headers or other
- // sensitive data).
- //
- // See: https://hackerone.com/reports/541502
- socket.destroy();
- const fakeSocket = new net_1.default.Socket({ writable: false });
- fakeSocket.readable = true;
- // Need to wait for the "socket" event to re-play the "data" events.
- req.once('socket', (s) => {
- debug('replaying proxy buffer for failed request');
- assert_1.default(s.listenerCount('data') > 0);
- // Replay the "buffered" Buffer onto the fake `socket`, since at
- // this point the HTTP module machinery has been hooked up for
- // the user.
- s.push(buffered);
- s.push(null);
- });
- return fakeSocket;
- });
- }
-}
-exports["default"] = HttpsProxyAgent;
-function resume(socket) {
- socket.resume();
-}
-function isDefaultPort(port, secure) {
- return Boolean((!secure && port === 80) || (secure && port === 443));
-}
-function isHTTPS(protocol) {
- return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;
-}
-function omit(obj, ...keys) {
- const ret = {};
- let key;
- for (key in obj) {
- if (!keys.includes(key)) {
- ret[key] = obj[key];
- }
- }
- return ret;
-}
-//# sourceMappingURL=agent.js.map
-
-/***/ }),
-
-/***/ 77219:
-/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
-
-"use strict";
-
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-const agent_1 = __importDefault(__nccwpck_require__(15098));
-function createHttpsProxyAgent(opts) {
- return new agent_1.default(opts);
-}
-(function (createHttpsProxyAgent) {
- createHttpsProxyAgent.HttpsProxyAgent = agent_1.default;
- createHttpsProxyAgent.prototype = agent_1.default.prototype;
-})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
-module.exports = createHttpsProxyAgent;
-//# sourceMappingURL=index.js.map
-
-/***/ }),
-
-/***/ 595:
-/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
-
-"use strict";
-
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-const debug_1 = __importDefault(__nccwpck_require__(38237));
-const debug = debug_1.default('https-proxy-agent:parse-proxy-response');
-function parseProxyResponse(socket) {
- return new Promise((resolve, reject) => {
- // we need to buffer any HTTP traffic that happens with the proxy before we get
- // the CONNECT response, so that if the response is anything other than an "200"
- // response code, then we can re-play the "data" events on the socket once the
- // HTTP parser is hooked up...
- let buffersLength = 0;
- const buffers = [];
- function read() {
- const b = socket.read();
- if (b)
- ondata(b);
- else
- socket.once('readable', read);
- }
- function cleanup() {
- socket.removeListener('end', onend);
- socket.removeListener('error', onerror);
- socket.removeListener('close', onclose);
- socket.removeListener('readable', read);
- }
- function onclose(err) {
- debug('onclose had error %o', err);
- }
- function onend() {
- debug('onend');
- }
- function onerror(err) {
- cleanup();
- debug('onerror %o', err);
- reject(err);
- }
- function ondata(b) {
- buffers.push(b);
- buffersLength += b.length;
- const buffered = Buffer.concat(buffers, buffersLength);
- const endOfHeaders = buffered.indexOf('\r\n\r\n');
- if (endOfHeaders === -1) {
- // keep buffering
- debug('have not received end of HTTP headers yet...');
- read();
- return;
- }
- const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n'));
- const statusCode = +firstLine.split(' ')[1];
- debug('got proxy server response: %o', firstLine);
- resolve({
- statusCode,
- buffered
- });
- }
- socket.on('error', onerror);
- socket.on('close', onclose);
- socket.on('end', onend);
- read();
- });
-}
-exports["default"] = parseProxyResponse;
-//# sourceMappingURL=parse-proxy-response.js.map
-
-/***/ }),
-
-/***/ 39695:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
-// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
-// To save memory and loading time, we read table files only when requested.
-
-exports._dbcs = DBCSCodec;
-
-var UNASSIGNED = -1,
- GB18030_CODE = -2,
- SEQ_START = -10,
- NODE_START = -1000,
- UNASSIGNED_NODE = new Array(0x100),
- DEF_CHAR = -1;
-
-for (var i = 0; i < 0x100; i++)
- UNASSIGNED_NODE[i] = UNASSIGNED;
-
-
-// Class DBCSCodec reads and initializes mapping tables.
-function DBCSCodec(codecOptions, iconv) {
- this.encodingName = codecOptions.encodingName;
- if (!codecOptions)
- throw new Error("DBCS codec is called without the data.")
- if (!codecOptions.table)
- throw new Error("Encoding '" + this.encodingName + "' has no data.");
-
- // Load tables.
- var mappingTable = codecOptions.table();
-
-
- // Decode tables: MBCS -> Unicode.
-
- // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.
- // Trie root is decodeTables[0].
- // Values: >= 0 -> unicode character code. can be > 0xFFFF
- // == UNASSIGNED -> unknown/unassigned sequence.
- // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.
- // <= NODE_START -> index of the next node in our trie to process next byte.
- // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.
- this.decodeTables = [];
- this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
-
- // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
- this.decodeTableSeq = [];
-
- // Actual mapping tables consist of chunks. Use them to fill up decode tables.
- for (var i = 0; i < mappingTable.length; i++)
- this._addDecodeChunk(mappingTable[i]);
-
- // Load & create GB18030 tables when needed.
- if (typeof codecOptions.gb18030 === 'function') {
- this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.
-
- // Add GB18030 common decode nodes.
- var commonThirdByteNodeIdx = this.decodeTables.length;
- this.decodeTables.push(UNASSIGNED_NODE.slice(0));
-
- var commonFourthByteNodeIdx = this.decodeTables.length;
- this.decodeTables.push(UNASSIGNED_NODE.slice(0));
-
- // Fill out the tree
- var firstByteNode = this.decodeTables[0];
- for (var i = 0x81; i <= 0xFE; i++) {
- var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];
- for (var j = 0x30; j <= 0x39; j++) {
- if (secondByteNode[j] === UNASSIGNED) {
- secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;
- } else if (secondByteNode[j] > NODE_START) {
- throw new Error("gb18030 decode tables conflict at byte 2");
- }
-
- var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];
- for (var k = 0x81; k <= 0xFE; k++) {
- if (thirdByteNode[k] === UNASSIGNED) {
- thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;
- } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {
- continue;
- } else if (thirdByteNode[k] > NODE_START) {
- throw new Error("gb18030 decode tables conflict at byte 3");
- }
-
- var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
- for (var l = 0x30; l <= 0x39; l++) {
- if (fourthByteNode[l] === UNASSIGNED)
- fourthByteNode[l] = GB18030_CODE;
- }
- }
- }
- }
- }
-
- this.defaultCharUnicode = iconv.defaultCharUnicode;
-
-
- // Encode tables: Unicode -> DBCS.
-
- // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
- // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.
- // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).
- // == UNASSIGNED -> no conversion found. Output a default char.
- // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
- this.encodeTable = [];
-
- // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
- // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
- // means end of sequence (needed when one sequence is a strict subsequence of another).
- // Objects are kept separately from encodeTable to increase performance.
- this.encodeTableSeq = [];
-
- // Some chars can be decoded, but need not be encoded.
- var skipEncodeChars = {};
- if (codecOptions.encodeSkipVals)
- for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
- var val = codecOptions.encodeSkipVals[i];
- if (typeof val === 'number')
- skipEncodeChars[val] = true;
- else
- for (var j = val.from; j <= val.to; j++)
- skipEncodeChars[j] = true;
- }
-
- // Use decode trie to recursively fill out encode tables.
- this._fillEncodeTable(0, 0, skipEncodeChars);
-
- // Add more encoding pairs when needed.
- if (codecOptions.encodeAdd) {
- for (var uChar in codecOptions.encodeAdd)
- if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
- this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
- }
-
- this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
- if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];
- if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
-}
-
-DBCSCodec.prototype.encoder = DBCSEncoder;
-DBCSCodec.prototype.decoder = DBCSDecoder;
-
-// Decoder helpers
-DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
- var bytes = [];
- for (; addr > 0; addr >>>= 8)
- bytes.push(addr & 0xFF);
- if (bytes.length == 0)
- bytes.push(0);
-
- var node = this.decodeTables[0];
- for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.
- var val = node[bytes[i]];
-
- if (val == UNASSIGNED) { // Create new node.
- node[bytes[i]] = NODE_START - this.decodeTables.length;
- this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
- }
- else if (val <= NODE_START) { // Existing node.
- node = this.decodeTables[NODE_START - val];
- }
- else
- throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
- }
- return node;
-}
-
-
-DBCSCodec.prototype._addDecodeChunk = function(chunk) {
- // First element of chunk is the hex mbcs code where we start.
- var curAddr = parseInt(chunk[0], 16);
-
- // Choose the decoding node where we'll write our chars.
- var writeTable = this._getDecodeTrieNode(curAddr);
- curAddr = curAddr & 0xFF;
-
- // Write all other elements of the chunk to the table.
- for (var k = 1; k < chunk.length; k++) {
- var part = chunk[k];
- if (typeof part === "string") { // String, write as-is.
- for (var l = 0; l < part.length;) {
- var code = part.charCodeAt(l++);
- if (0xD800 <= code && code < 0xDC00) { // Decode surrogate
- var codeTrail = part.charCodeAt(l++);
- if (0xDC00 <= codeTrail && codeTrail < 0xE000)
- writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
- else
- throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
- }
- else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)
- var len = 0xFFF - code + 2;
- var seq = [];
- for (var m = 0; m < len; m++)
- seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.
-
- writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
- this.decodeTableSeq.push(seq);
- }
- else
- writeTable[curAddr++] = code; // Basic char
- }
- }
- else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
- var charCode = writeTable[curAddr - 1] + 1;
- for (var l = 0; l < part; l++)
- writeTable[curAddr++] = charCode++;
- }
- else
- throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
- }
- if (curAddr > 0xFF)
- throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
-}
-
-// Encoder helpers
-DBCSCodec.prototype._getEncodeBucket = function(uCode) {
- var high = uCode >> 8; // This could be > 0xFF because of astral characters.
- if (this.encodeTable[high] === undefined)
- this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.
- return this.encodeTable[high];
-}
-
-DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
- var bucket = this._getEncodeBucket(uCode);
- var low = uCode & 0xFF;
- if (bucket[low] <= SEQ_START)
- this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.
- else if (bucket[low] == UNASSIGNED)
- bucket[low] = dbcsCode;
-}
-
-DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
-
- // Get the root of character tree according to first character of the sequence.
- var uCode = seq[0];
- var bucket = this._getEncodeBucket(uCode);
- var low = uCode & 0xFF;
-
- var node;
- if (bucket[low] <= SEQ_START) {
- // There's already a sequence with - use it.
- node = this.encodeTableSeq[SEQ_START-bucket[low]];
- }
- else {
- // There was no sequence object - allocate a new one.
- node = {};
- if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.
- bucket[low] = SEQ_START - this.encodeTableSeq.length;
- this.encodeTableSeq.push(node);
- }
-
- // Traverse the character tree, allocating new nodes as needed.
- for (var j = 1; j < seq.length-1; j++) {
- var oldVal = node[uCode];
- if (typeof oldVal === 'object')
- node = oldVal;
- else {
- node = node[uCode] = {}
- if (oldVal !== undefined)
- node[DEF_CHAR] = oldVal
- }
- }
-
- // Set the leaf to given dbcsCode.
- uCode = seq[seq.length-1];
- node[uCode] = dbcsCode;
-}
-
-DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
- var node = this.decodeTables[nodeIdx];
- var hasValues = false;
- var subNodeEmpty = {};
- for (var i = 0; i < 0x100; i++) {
- var uCode = node[i];
- var mbCode = prefix + i;
- if (skipEncodeChars[mbCode])
- continue;
-
- if (uCode >= 0) {
- this._setEncodeChar(uCode, mbCode);
- hasValues = true;
- } else if (uCode <= NODE_START) {
- var subNodeIdx = NODE_START - uCode;
- if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).
- var newPrefix = (mbCode << 8) >>> 0; // NOTE: '>>> 0' keeps 32-bit num positive.
- if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
- hasValues = true;
- else
- subNodeEmpty[subNodeIdx] = true;
- }
- } else if (uCode <= SEQ_START) {
- this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
- hasValues = true;
- }
- }
- return hasValues;
-}
-
-
-
-// == Encoder ==================================================================
-
-function DBCSEncoder(options, codec) {
- // Encoder state
- this.leadSurrogate = -1;
- this.seqObj = undefined;
-
- // Static data
- this.encodeTable = codec.encodeTable;
- this.encodeTableSeq = codec.encodeTableSeq;
- this.defaultCharSingleByte = codec.defCharSB;
- this.gb18030 = codec.gb18030;
-}
-
-DBCSEncoder.prototype.write = function(str) {
- var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
- leadSurrogate = this.leadSurrogate,
- seqObj = this.seqObj, nextChar = -1,
- i = 0, j = 0;
-
- while (true) {
- // 0. Get next character.
- if (nextChar === -1) {
- if (i == str.length) break;
- var uCode = str.charCodeAt(i++);
- }
- else {
- var uCode = nextChar;
- nextChar = -1;
- }
-
- // 1. Handle surrogates.
- if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.
- if (uCode < 0xDC00) { // We've got lead surrogate.
- if (leadSurrogate === -1) {
- leadSurrogate = uCode;
- continue;
- } else {
- leadSurrogate = uCode;
- // Double lead surrogate found.
- uCode = UNASSIGNED;
- }
- } else { // We've got trail surrogate.
- if (leadSurrogate !== -1) {
- uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);
- leadSurrogate = -1;
- } else {
- // Incomplete surrogate pair - only trail surrogate found.
- uCode = UNASSIGNED;
- }
-
- }
- }
- else if (leadSurrogate !== -1) {
- // Incomplete surrogate pair - only lead surrogate found.
- nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.
- leadSurrogate = -1;
- }
-
- // 2. Convert uCode character.
- var dbcsCode = UNASSIGNED;
- if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence
- var resCode = seqObj[uCode];
- if (typeof resCode === 'object') { // Sequence continues.
- seqObj = resCode;
- continue;
-
- } else if (typeof resCode == 'number') { // Sequence finished. Write it.
- dbcsCode = resCode;
-
- } else if (resCode == undefined) { // Current character is not part of the sequence.
-
- // Try default character for this sequence
- resCode = seqObj[DEF_CHAR];
- if (resCode !== undefined) {
- dbcsCode = resCode; // Found. Write it.
- nextChar = uCode; // Current character will be written too in the next iteration.
-
- } else {
- // TODO: What if we have no default? (resCode == undefined)
- // Then, we should write first char of the sequence as-is and try the rest recursively.
- // Didn't do it for now because no encoding has this situation yet.
- // Currently, just skip the sequence and write current char.
- }
- }
- seqObj = undefined;
- }
- else if (uCode >= 0) { // Regular character
- var subtable = this.encodeTable[uCode >> 8];
- if (subtable !== undefined)
- dbcsCode = subtable[uCode & 0xFF];
-
- if (dbcsCode <= SEQ_START) { // Sequence start
- seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
- continue;
- }
-
- if (dbcsCode == UNASSIGNED && this.gb18030) {
- // Use GB18030 algorithm to find character(s) to write.
- var idx = findIdx(this.gb18030.uChars, uCode);
- if (idx != -1) {
- var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
- newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
- newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
- newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
- newBuf[j++] = 0x30 + dbcsCode;
- continue;
- }
- }
- }
-
- // 3. Write dbcsCode character.
- if (dbcsCode === UNASSIGNED)
- dbcsCode = this.defaultCharSingleByte;
-
- if (dbcsCode < 0x100) {
- newBuf[j++] = dbcsCode;
- }
- else if (dbcsCode < 0x10000) {
- newBuf[j++] = dbcsCode >> 8; // high byte
- newBuf[j++] = dbcsCode & 0xFF; // low byte
- }
- else if (dbcsCode < 0x1000000) {
- newBuf[j++] = dbcsCode >> 16;
- newBuf[j++] = (dbcsCode >> 8) & 0xFF;
- newBuf[j++] = dbcsCode & 0xFF;
- } else {
- newBuf[j++] = dbcsCode >>> 24;
- newBuf[j++] = (dbcsCode >>> 16) & 0xFF;
- newBuf[j++] = (dbcsCode >>> 8) & 0xFF;
- newBuf[j++] = dbcsCode & 0xFF;
- }
- }
-
- this.seqObj = seqObj;
- this.leadSurrogate = leadSurrogate;
- return newBuf.slice(0, j);
-}
-
-DBCSEncoder.prototype.end = function() {
- if (this.leadSurrogate === -1 && this.seqObj === undefined)
- return; // All clean. Most often case.
-
- var newBuf = Buffer.alloc(10), j = 0;
-
- if (this.seqObj) { // We're in the sequence.
- var dbcsCode = this.seqObj[DEF_CHAR];
- if (dbcsCode !== undefined) { // Write beginning of the sequence.
- if (dbcsCode < 0x100) {
- newBuf[j++] = dbcsCode;
- }
- else {
- newBuf[j++] = dbcsCode >> 8; // high byte
- newBuf[j++] = dbcsCode & 0xFF; // low byte
- }
- } else {
- // See todo above.
- }
- this.seqObj = undefined;
- }
-
- if (this.leadSurrogate !== -1) {
- // Incomplete surrogate pair - only lead surrogate found.
- newBuf[j++] = this.defaultCharSingleByte;
- this.leadSurrogate = -1;
- }
-
- return newBuf.slice(0, j);
-}
-
-// Export for testing
-DBCSEncoder.prototype.findIdx = findIdx;
-
-
-// == Decoder ==================================================================
-
-function DBCSDecoder(options, codec) {
- // Decoder state
- this.nodeIdx = 0;
- this.prevBytes = [];
-
- // Static data
- this.decodeTables = codec.decodeTables;
- this.decodeTableSeq = codec.decodeTableSeq;
- this.defaultCharUnicode = codec.defaultCharUnicode;
- this.gb18030 = codec.gb18030;
-}
-
-DBCSDecoder.prototype.write = function(buf) {
- var newBuf = Buffer.alloc(buf.length*2),
- nodeIdx = this.nodeIdx,
- prevBytes = this.prevBytes, prevOffset = this.prevBytes.length,
- seqStart = -this.prevBytes.length, // idx of the start of current parsed sequence.
- uCode;
-
- for (var i = 0, j = 0; i < buf.length; i++) {
- var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset];
-
- // Lookup in current trie node.
- var uCode = this.decodeTables[nodeIdx][curByte];
-
- if (uCode >= 0) {
- // Normal character, just use it.
- }
- else if (uCode === UNASSIGNED) { // Unknown char.
- // TODO: Callback with seq.
- uCode = this.defaultCharUnicode.charCodeAt(0);
- i = seqStart; // Skip one byte ('i' will be incremented by the for loop) and try to parse again.
- }
- else if (uCode === GB18030_CODE) {
- if (i >= 3) {
- var ptr = (buf[i-3]-0x81)*12600 + (buf[i-2]-0x30)*1260 + (buf[i-1]-0x81)*10 + (curByte-0x30);
- } else {
- var ptr = (prevBytes[i-3+prevOffset]-0x81)*12600 +
- (((i-2 >= 0) ? buf[i-2] : prevBytes[i-2+prevOffset])-0x30)*1260 +
- (((i-1 >= 0) ? buf[i-1] : prevBytes[i-1+prevOffset])-0x81)*10 +
- (curByte-0x30);
- }
- var idx = findIdx(this.gb18030.gbChars, ptr);
- uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
- }
- else if (uCode <= NODE_START) { // Go to next trie node.
- nodeIdx = NODE_START - uCode;
- continue;
- }
- else if (uCode <= SEQ_START) { // Output a sequence of chars.
- var seq = this.decodeTableSeq[SEQ_START - uCode];
- for (var k = 0; k < seq.length - 1; k++) {
- uCode = seq[k];
- newBuf[j++] = uCode & 0xFF;
- newBuf[j++] = uCode >> 8;
- }
- uCode = seq[seq.length-1];
- }
- else
- throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
-
- // Write the character to buffer, handling higher planes using surrogate pair.
- if (uCode >= 0x10000) {
- uCode -= 0x10000;
- var uCodeLead = 0xD800 | (uCode >> 10);
- newBuf[j++] = uCodeLead & 0xFF;
- newBuf[j++] = uCodeLead >> 8;
-
- uCode = 0xDC00 | (uCode & 0x3FF);
- }
- newBuf[j++] = uCode & 0xFF;
- newBuf[j++] = uCode >> 8;
-
- // Reset trie node.
- nodeIdx = 0; seqStart = i+1;
- }
-
- this.nodeIdx = nodeIdx;
- this.prevBytes = (seqStart >= 0)
- ? Array.prototype.slice.call(buf, seqStart)
- : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));
-
- return newBuf.slice(0, j).toString('ucs2');
-}
-
-DBCSDecoder.prototype.end = function() {
- var ret = '';
-
- // Try to parse all remaining chars.
- while (this.prevBytes.length > 0) {
- // Skip 1 character in the buffer.
- ret += this.defaultCharUnicode;
- var bytesArr = this.prevBytes.slice(1);
-
- // Parse remaining as usual.
- this.prevBytes = [];
- this.nodeIdx = 0;
- if (bytesArr.length > 0)
- ret += this.write(bytesArr);
- }
-
- this.prevBytes = [];
- this.nodeIdx = 0;
- return ret;
-}
-
-// Binary search for GB18030. Returns largest i such that table[i] <= val.
-function findIdx(table, val) {
- if (table[0] > val)
- return -1;
-
- var l = 0, r = table.length;
- while (l < r-1) { // always table[l] <= val < table[r]
- var mid = l + ((r-l+1) >> 1);
- if (table[mid] <= val)
- l = mid;
- else
- r = mid;
- }
- return l;
-}
-
-
-
-/***/ }),
-
-/***/ 91386:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-// Description of supported double byte encodings and aliases.
-// Tables are not require()-d until they are needed to speed up library load.
-// require()-s are direct to support Browserify.
-
-module.exports = {
-
- // == Japanese/ShiftJIS ====================================================
- // All japanese encodings are based on JIS X set of standards:
- // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
- // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
- // Has several variations in 1978, 1983, 1990 and 1997.
- // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
- // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
- // 2 planes, first is superset of 0208, second - revised 0212.
- // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)
-
- // Byte encodings are:
- // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte
- // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.
- // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.
- // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.
- // 0x00-0x7F - lower part of 0201
- // 0x8E, 0xA1-0xDF - upper part of 0201
- // (0xA1-0xFE)x2 - 0208 plane (94x94).
- // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
- // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
- // Used as-is in ISO2022 family.
- // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
- // 0201-1976 Roman, 0208-1978, 0208-1983.
- // * ISO2022-JP-1: Adds esc seq for 0212-1990.
- // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
- // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.
- // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.
- //
- // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
- //
- // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
-
- 'shiftjis': {
- type: '_dbcs',
- table: function() { return __nccwpck_require__(27014) },
- encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
- encodeSkipVals: [{from: 0xED40, to: 0xF940}],
- },
- 'csshiftjis': 'shiftjis',
- 'mskanji': 'shiftjis',
- 'sjis': 'shiftjis',
- 'windows31j': 'shiftjis',
- 'ms31j': 'shiftjis',
- 'xsjis': 'shiftjis',
- 'windows932': 'shiftjis',
- 'ms932': 'shiftjis',
- '932': 'shiftjis',
- 'cp932': 'shiftjis',
-
- 'eucjp': {
- type: '_dbcs',
- table: function() { return __nccwpck_require__(31532) },
- encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
- },
-
- // TODO: KDDI extension to Shift_JIS
- // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.
- // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.
-
-
- // == Chinese/GBK ==========================================================
- // http://en.wikipedia.org/wiki/GBK
- // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
-
- // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
- 'gb2312': 'cp936',
- 'gb231280': 'cp936',
- 'gb23121980': 'cp936',
- 'csgb2312': 'cp936',
- 'csiso58gb231280': 'cp936',
- 'euccn': 'cp936',
-
- // Microsoft's CP936 is a subset and approximation of GBK.
- 'windows936': 'cp936',
- 'ms936': 'cp936',
- '936': 'cp936',
- 'cp936': {
- type: '_dbcs',
- table: function() { return __nccwpck_require__(13336) },
- },
-
- // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
- 'gbk': {
- type: '_dbcs',
- table: function() { return (__nccwpck_require__(13336).concat)(__nccwpck_require__(44346)) },
- },
- 'xgbk': 'gbk',
- 'isoir58': 'gbk',
-
- // GB18030 is an algorithmic extension of GBK.
- // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
- // http://icu-project.org/docs/papers/gb18030.html
- // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
- // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
- 'gb18030': {
- type: '_dbcs',
- table: function() { return (__nccwpck_require__(13336).concat)(__nccwpck_require__(44346)) },
- gb18030: function() { return __nccwpck_require__(36258) },
- encodeSkipVals: [0x80],
- encodeAdd: {'€': 0xA2E3},
- },
-
- 'chinese': 'gb18030',
-
-
- // == Korean ===============================================================
- // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
- 'windows949': 'cp949',
- 'ms949': 'cp949',
- '949': 'cp949',
- 'cp949': {
- type: '_dbcs',
- table: function() { return __nccwpck_require__(77348) },
- },
-
- 'cseuckr': 'cp949',
- 'csksc56011987': 'cp949',
- 'euckr': 'cp949',
- 'isoir149': 'cp949',
- 'korean': 'cp949',
- 'ksc56011987': 'cp949',
- 'ksc56011989': 'cp949',
- 'ksc5601': 'cp949',
-
-
- // == Big5/Taiwan/Hong Kong ================================================
- // There are lots of tables for Big5 and cp950. Please see the following links for history:
- // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
- // Variations, in roughly number of defined chars:
- // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT
- // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
- // * Big5-2003 (Taiwan standard) almost superset of cp950.
- // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
- // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
- // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
- // Plus, it has 4 combining sequences.
- // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
- // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.
- // Implementations are not consistent within browsers; sometimes labeled as just big5.
- // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.
- // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31
- // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
- // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
- // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
- //
- // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
- // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
-
- 'windows950': 'cp950',
- 'ms950': 'cp950',
- '950': 'cp950',
- 'cp950': {
- type: '_dbcs',
- table: function() { return __nccwpck_require__(74284) },
- },
-
- // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
- 'big5': 'big5hkscs',
- 'big5hkscs': {
- type: '_dbcs',
- table: function() { return (__nccwpck_require__(74284).concat)(__nccwpck_require__(63480)) },
- encodeSkipVals: [
- // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of
- // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU.
- // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter.
- 0x8e69, 0x8e6f, 0x8e7e, 0x8eab, 0x8eb4, 0x8ecd, 0x8ed0, 0x8f57, 0x8f69, 0x8f6e, 0x8fcb, 0x8ffe,
- 0x906d, 0x907a, 0x90c4, 0x90dc, 0x90f1, 0x91bf, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92d1, 0x9447, 0x94ca,
- 0x95d9, 0x96fc, 0x9975, 0x9b76, 0x9b78, 0x9b7b, 0x9bc6, 0x9bde, 0x9bec, 0x9bf6, 0x9c42, 0x9c53, 0x9c62,
- 0x9c68, 0x9c6b, 0x9c77, 0x9cbc, 0x9cbd, 0x9cd0, 0x9d57, 0x9d5a, 0x9dc4, 0x9def, 0x9dfb, 0x9ea9, 0x9eef,
- 0x9efd, 0x9f60, 0x9fcb, 0xa077, 0xa0dc, 0xa0df, 0x8fcc, 0x92c8, 0x9644, 0x96ed,
-
- // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345
- 0xa2a4, 0xa2a5, 0xa2a7, 0xa2a6, 0xa2cc, 0xa2ce,
- ],
- },
-
- 'cnbig5': 'big5hkscs',
- 'csbig5': 'big5hkscs',
- 'xxbig5': 'big5hkscs',
-};
-
-
-/***/ }),
-
-/***/ 82733:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-// Update this array if you add/rename/remove files in this directory.
-// We support Browserify by skipping automatic module discovery and requiring modules directly.
-var modules = [
- __nccwpck_require__(12376),
- __nccwpck_require__(59557),
- __nccwpck_require__(11155),
- __nccwpck_require__(51644),
- __nccwpck_require__(26657),
- __nccwpck_require__(41080),
- __nccwpck_require__(21012),
- __nccwpck_require__(39695),
- __nccwpck_require__(91386),
-];
-
-// Put all encoding/alias/codec definitions to single object and export it.
-for (var i = 0; i < modules.length; i++) {
- var module = modules[i];
- for (var enc in module)
- if (Object.prototype.hasOwnProperty.call(module, enc))
- exports[enc] = module[enc];
-}
-
-
-/***/ }),
-
-/***/ 12376:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// Export Node.js internal encodings.
-
-module.exports = {
- // Encodings
- utf8: { type: "_internal", bomAware: true},
- cesu8: { type: "_internal", bomAware: true},
- unicode11utf8: "utf8",
-
- ucs2: { type: "_internal", bomAware: true},
- utf16le: "ucs2",
-
- binary: { type: "_internal" },
- base64: { type: "_internal" },
- hex: { type: "_internal" },
-
- // Codec.
- _internal: InternalCodec,
-};
-
-//------------------------------------------------------------------------------
-
-function InternalCodec(codecOptions, iconv) {
- this.enc = codecOptions.encodingName;
- this.bomAware = codecOptions.bomAware;
-
- if (this.enc === "base64")
- this.encoder = InternalEncoderBase64;
- else if (this.enc === "cesu8") {
- this.enc = "utf8"; // Use utf8 for decoding.
- this.encoder = InternalEncoderCesu8;
-
- // Add decoder for versions of Node not supporting CESU-8
- if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {
- this.decoder = InternalDecoderCesu8;
- this.defaultCharUnicode = iconv.defaultCharUnicode;
- }
- }
-}
-
-InternalCodec.prototype.encoder = InternalEncoder;
-InternalCodec.prototype.decoder = InternalDecoder;
-
-//------------------------------------------------------------------------------
-
-// We use node.js internal decoder. Its signature is the same as ours.
-var StringDecoder = (__nccwpck_require__(71576).StringDecoder);
-
-if (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.
- StringDecoder.prototype.end = function() {};
-
-
-function InternalDecoder(options, codec) {
- this.decoder = new StringDecoder(codec.enc);
-}
-
-InternalDecoder.prototype.write = function(buf) {
- if (!Buffer.isBuffer(buf)) {
- buf = Buffer.from(buf);
- }
-
- return this.decoder.write(buf);
-}
-
-InternalDecoder.prototype.end = function() {
- return this.decoder.end();
-}
-
-
-//------------------------------------------------------------------------------
-// Encoder is mostly trivial
-
-function InternalEncoder(options, codec) {
- this.enc = codec.enc;
-}
-
-InternalEncoder.prototype.write = function(str) {
- return Buffer.from(str, this.enc);
-}
-
-InternalEncoder.prototype.end = function() {
-}
-
-
-//------------------------------------------------------------------------------
-// Except base64 encoder, which must keep its state.
-
-function InternalEncoderBase64(options, codec) {
- this.prevStr = '';
-}
-
-InternalEncoderBase64.prototype.write = function(str) {
- str = this.prevStr + str;
- var completeQuads = str.length - (str.length % 4);
- this.prevStr = str.slice(completeQuads);
- str = str.slice(0, completeQuads);
-
- return Buffer.from(str, "base64");
-}
-
-InternalEncoderBase64.prototype.end = function() {
- return Buffer.from(this.prevStr, "base64");
-}
-
-
-//------------------------------------------------------------------------------
-// CESU-8 encoder is also special.
-
-function InternalEncoderCesu8(options, codec) {
-}
-
-InternalEncoderCesu8.prototype.write = function(str) {
- var buf = Buffer.alloc(str.length * 3), bufIdx = 0;
- for (var i = 0; i < str.length; i++) {
- var charCode = str.charCodeAt(i);
- // Naive implementation, but it works because CESU-8 is especially easy
- // to convert from UTF-16 (which all JS strings are encoded in).
- if (charCode < 0x80)
- buf[bufIdx++] = charCode;
- else if (charCode < 0x800) {
- buf[bufIdx++] = 0xC0 + (charCode >>> 6);
- buf[bufIdx++] = 0x80 + (charCode & 0x3f);
- }
- else { // charCode will always be < 0x10000 in javascript.
- buf[bufIdx++] = 0xE0 + (charCode >>> 12);
- buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);
- buf[bufIdx++] = 0x80 + (charCode & 0x3f);
- }
- }
- return buf.slice(0, bufIdx);
-}
-
-InternalEncoderCesu8.prototype.end = function() {
-}
-
-//------------------------------------------------------------------------------
-// CESU-8 decoder is not implemented in Node v4.0+
-
-function InternalDecoderCesu8(options, codec) {
- this.acc = 0;
- this.contBytes = 0;
- this.accBytes = 0;
- this.defaultCharUnicode = codec.defaultCharUnicode;
-}
-
-InternalDecoderCesu8.prototype.write = function(buf) {
- var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
- res = '';
- for (var i = 0; i < buf.length; i++) {
- var curByte = buf[i];
- if ((curByte & 0xC0) !== 0x80) { // Leading byte
- if (contBytes > 0) { // Previous code is invalid
- res += this.defaultCharUnicode;
- contBytes = 0;
- }
-
- if (curByte < 0x80) { // Single-byte code
- res += String.fromCharCode(curByte);
- } else if (curByte < 0xE0) { // Two-byte code
- acc = curByte & 0x1F;
- contBytes = 1; accBytes = 1;
- } else if (curByte < 0xF0) { // Three-byte code
- acc = curByte & 0x0F;
- contBytes = 2; accBytes = 1;
- } else { // Four or more are not supported for CESU-8.
- res += this.defaultCharUnicode;
- }
- } else { // Continuation byte
- if (contBytes > 0) { // We're waiting for it.
- acc = (acc << 6) | (curByte & 0x3f);
- contBytes--; accBytes++;
- if (contBytes === 0) {
- // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)
- if (accBytes === 2 && acc < 0x80 && acc > 0)
- res += this.defaultCharUnicode;
- else if (accBytes === 3 && acc < 0x800)
- res += this.defaultCharUnicode;
- else
- // Actually add character.
- res += String.fromCharCode(acc);
- }
- } else { // Unexpected continuation byte
- res += this.defaultCharUnicode;
- }
- }
- }
- this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;
- return res;
-}
-
-InternalDecoderCesu8.prototype.end = function() {
- var res = 0;
- if (this.contBytes > 0)
- res += this.defaultCharUnicode;
- return res;
-}
-
-
-/***/ }),
-
-/***/ 26657:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
-// correspond to encoded bytes (if 128 - then lower half is ASCII).
-
-exports._sbcs = SBCSCodec;
-function SBCSCodec(codecOptions, iconv) {
- if (!codecOptions)
- throw new Error("SBCS codec is called without the data.")
-
- // Prepare char buffer for decoding.
- if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))
- throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)");
-
- if (codecOptions.chars.length === 128) {
- var asciiString = "";
- for (var i = 0; i < 128; i++)
- asciiString += String.fromCharCode(i);
- codecOptions.chars = asciiString + codecOptions.chars;
- }
-
- this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');
-
- // Encoding buffer.
- var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
-
- for (var i = 0; i < codecOptions.chars.length; i++)
- encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
-
- this.encodeBuf = encodeBuf;
-}
-
-SBCSCodec.prototype.encoder = SBCSEncoder;
-SBCSCodec.prototype.decoder = SBCSDecoder;
-
-
-function SBCSEncoder(options, codec) {
- this.encodeBuf = codec.encodeBuf;
-}
-
-SBCSEncoder.prototype.write = function(str) {
- var buf = Buffer.alloc(str.length);
- for (var i = 0; i < str.length; i++)
- buf[i] = this.encodeBuf[str.charCodeAt(i)];
-
- return buf;
-}
-
-SBCSEncoder.prototype.end = function() {
-}
-
-
-function SBCSDecoder(options, codec) {
- this.decodeBuf = codec.decodeBuf;
-}
-
-SBCSDecoder.prototype.write = function(buf) {
- // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.
- var decodeBuf = this.decodeBuf;
- var newBuf = Buffer.alloc(buf.length*2);
- var idx1 = 0, idx2 = 0;
- for (var i = 0; i < buf.length; i++) {
- idx1 = buf[i]*2; idx2 = i*2;
- newBuf[idx2] = decodeBuf[idx1];
- newBuf[idx2+1] = decodeBuf[idx1+1];
- }
- return newBuf.toString('ucs2');
-}
-
-SBCSDecoder.prototype.end = function() {
-}
-
-
-/***/ }),
-
-/***/ 21012:
-/***/ ((module) => {
-
-"use strict";
-
-
-// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.
-module.exports = {
- "437": "cp437",
- "737": "cp737",
- "775": "cp775",
- "850": "cp850",
- "852": "cp852",
- "855": "cp855",
- "856": "cp856",
- "857": "cp857",
- "858": "cp858",
- "860": "cp860",
- "861": "cp861",
- "862": "cp862",
- "863": "cp863",
- "864": "cp864",
- "865": "cp865",
- "866": "cp866",
- "869": "cp869",
- "874": "windows874",
- "922": "cp922",
- "1046": "cp1046",
- "1124": "cp1124",
- "1125": "cp1125",
- "1129": "cp1129",
- "1133": "cp1133",
- "1161": "cp1161",
- "1162": "cp1162",
- "1163": "cp1163",
- "1250": "windows1250",
- "1251": "windows1251",
- "1252": "windows1252",
- "1253": "windows1253",
- "1254": "windows1254",
- "1255": "windows1255",
- "1256": "windows1256",
- "1257": "windows1257",
- "1258": "windows1258",
- "28591": "iso88591",
- "28592": "iso88592",
- "28593": "iso88593",
- "28594": "iso88594",
- "28595": "iso88595",
- "28596": "iso88596",
- "28597": "iso88597",
- "28598": "iso88598",
- "28599": "iso88599",
- "28600": "iso885910",
- "28601": "iso885911",
- "28603": "iso885913",
- "28604": "iso885914",
- "28605": "iso885915",
- "28606": "iso885916",
- "windows874": {
- "type": "_sbcs",
- "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
- },
- "win874": "windows874",
- "cp874": "windows874",
- "windows1250": {
- "type": "_sbcs",
- "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
- },
- "win1250": "windows1250",
- "cp1250": "windows1250",
- "windows1251": {
- "type": "_sbcs",
- "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
- },
- "win1251": "windows1251",
- "cp1251": "windows1251",
- "windows1252": {
- "type": "_sbcs",
- "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
- },
- "win1252": "windows1252",
- "cp1252": "windows1252",
- "windows1253": {
- "type": "_sbcs",
- "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
- },
- "win1253": "windows1253",
- "cp1253": "windows1253",
- "windows1254": {
- "type": "_sbcs",
- "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
- },
- "win1254": "windows1254",
- "cp1254": "windows1254",
- "windows1255": {
- "type": "_sbcs",
- "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
- },
- "win1255": "windows1255",
- "cp1255": "windows1255",
- "windows1256": {
- "type": "_sbcs",
- "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"
- },
- "win1256": "windows1256",
- "cp1256": "windows1256",
- "windows1257": {
- "type": "_sbcs",
- "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"
- },
- "win1257": "windows1257",
- "cp1257": "windows1257",
- "windows1258": {
- "type": "_sbcs",
- "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
- },
- "win1258": "windows1258",
- "cp1258": "windows1258",
- "iso88591": {
- "type": "_sbcs",
- "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
- },
- "cp28591": "iso88591",
- "iso88592": {
- "type": "_sbcs",
- "chars": "
Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
- },
- "cp28592": "iso88592",
- "iso88593": {
- "type": "_sbcs",
- "chars": "
Ħ˘£¤�Ĥ§¨İŞĞĴ�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
- },
- "cp28593": "iso88593",
- "iso88594": {
- "type": "_sbcs",
- "chars": "
ĄĸŖ¤Ĩϧ¨ŠĒĢŦޝ°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"
- },
- "cp28594": "iso88594",
- "iso88595": {
- "type": "_sbcs",
- "chars": "
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"
- },
- "cp28595": "iso88595",
- "iso88596": {
- "type": "_sbcs",
- "chars": "
���¤�������،�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"
- },
- "cp28596": "iso88596",
- "iso88597": {
- "type": "_sbcs",
- "chars": "
‘’£€₯¦§¨©ͺ«¬�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
- },
- "cp28597": "iso88597",
- "iso88598": {
- "type": "_sbcs",
- "chars": "
�¢£¤¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
- },
- "cp28598": "iso88598",
- "iso88599": {
- "type": "_sbcs",
- "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
- },
- "cp28599": "iso88599",
- "iso885910": {
- "type": "_sbcs",
- "chars": "
ĄĒĢĪĨͧĻĐŠŦŽŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"
- },
- "cp28600": "iso885910",
- "iso885911": {
- "type": "_sbcs",
- "chars": "
กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
- },
- "cp28601": "iso885911",
- "iso885913": {
- "type": "_sbcs",
- "chars": "
”¢£¤„¦§Ø©Ŗ«¬®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"
- },
- "cp28603": "iso885913",
- "iso885914": {
- "type": "_sbcs",
- "chars": "
Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"
- },
- "cp28604": "iso885914",
- "iso885915": {
- "type": "_sbcs",
- "chars": "
¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
- },
- "cp28605": "iso885915",
- "iso885916": {
- "type": "_sbcs",
- "chars": "
ĄąŁ€„Чš©Ș«ŹźŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"
- },
- "cp28606": "iso885916",
- "cp437": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm437": "cp437",
- "csibm437": "cp437",
- "cp737": {
- "type": "_sbcs",
- "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "
- },
- "ibm737": "cp737",
- "csibm737": "cp737",
- "cp775": {
- "type": "_sbcs",
- "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’±“¾¶§÷„°∙·¹³²■ "
- },
- "ibm775": "cp775",
- "csibm775": "cp775",
- "cp850": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
- },
- "ibm850": "cp850",
- "csibm850": "cp850",
- "cp852": {
- "type": "_sbcs",
- "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ "
- },
- "ibm852": "cp852",
- "csibm852": "cp852",
- "cp855": {
- "type": "_sbcs",
- "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№ыЫзЗшШэЭщЩчЧ§■ "
- },
- "ibm855": "cp855",
- "csibm855": "cp855",
- "cp856": {
- "type": "_sbcs",
- "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´±‗¾¶§÷¸°¨·¹³²■ "
- },
- "ibm856": "cp856",
- "csibm856": "cp856",
- "cp857": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ "
- },
- "ibm857": "cp857",
- "csibm857": "cp857",
- "cp858": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
- },
- "ibm858": "cp858",
- "csibm858": "cp858",
- "cp860": {
- "type": "_sbcs",
- "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm860": "cp860",
- "csibm860": "cp860",
- "cp861": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm861": "cp861",
- "csibm861": "cp861",
- "cp862": {
- "type": "_sbcs",
- "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm862": "cp862",
- "csibm862": "cp862",
- "cp863": {
- "type": "_sbcs",
- "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm863": "cp863",
- "csibm863": "cp863",
- "cp864": {
- "type": "_sbcs",
- "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"
- },
- "ibm864": "cp864",
- "csibm864": "cp864",
- "cp865": {
- "type": "_sbcs",
- "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
- "ibm865": "cp865",
- "csibm865": "cp865",
- "cp866": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "
- },
- "ibm866": "cp866",
- "csibm866": "cp866",
- "cp869": {
- "type": "_sbcs",
- "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄±υφχ§ψ΅°¨ωϋΰώ■ "
- },
- "ibm869": "cp869",
- "csibm869": "cp869",
- "cp922": {
- "type": "_sbcs",
- "chars": "
¡¢£¤¥¦§¨©ª«¬®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
- },
- "ibm922": "cp922",
- "csibm922": "cp922",
- "cp1046": {
- "type": "_sbcs",
- "chars": "ﺈ×÷ﹱ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"
- },
- "ibm1046": "cp1046",
- "csibm1046": "cp1046",
- "cp1124": {
- "type": "_sbcs",
- "chars": "
ЁЂҐЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"
- },
- "ibm1124": "cp1124",
- "csibm1124": "cp1124",
- "cp1125": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "
- },
- "ibm1125": "cp1125",
- "csibm1125": "cp1125",
- "cp1129": {
- "type": "_sbcs",
- "chars": "
¡¢£¤¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
- },
- "ibm1129": "cp1129",
- "csibm1129": "cp1129",
- "cp1133": {
- "type": "_sbcs",
- "chars": "
ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"
- },
- "ibm1133": "cp1133",
- "csibm1133": "cp1133",
- "cp1161": {
- "type": "_sbcs",
- "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "
- },
- "ibm1161": "cp1161",
- "csibm1161": "cp1161",
- "cp1162": {
- "type": "_sbcs",
- "chars": "€…‘’“”•–— กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
- },
- "ibm1162": "cp1162",
- "csibm1162": "cp1162",
- "cp1163": {
- "type": "_sbcs",
- "chars": "
¡¢£€¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
- },
- "ibm1163": "cp1163",
- "csibm1163": "cp1163",
- "maccroatian": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"
- },
- "maccyrillic": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
- },
- "macgreek": {
- "type": "_sbcs",
- "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"
- },
- "maciceland": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
- },
- "macroman": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
- },
- "macromania": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
- },
- "macthai": {
- "type": "_sbcs",
- "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"
- },
- "macturkish": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"
- },
- "macukraine": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
- },
- "koi8r": {
- "type": "_sbcs",
- "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
- },
- "koi8u": {
- "type": "_sbcs",
- "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
- },
- "koi8ru": {
- "type": "_sbcs",
- "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
- },
- "koi8t": {
- "type": "_sbcs",
- "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
- },
- "armscii8": {
- "type": "_sbcs",
- "chars": "
�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"
- },
- "rk1048": {
- "type": "_sbcs",
- "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
- },
- "tcvn": {
- "type": "_sbcs",
- "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"
- },
- "georgianacademy": {
- "type": "_sbcs",
- "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
- },
- "georgianps": {
- "type": "_sbcs",
- "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
- },
- "pt154": {
- "type": "_sbcs",
- "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
- },
- "viscii": {
- "type": "_sbcs",
- "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"
- },
- "iso646cn": {
- "type": "_sbcs",
- "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
- },
- "iso646jp": {
- "type": "_sbcs",
- "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
- },
- "hproman8": {
- "type": "_sbcs",
- "chars": "
ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"
- },
- "macintosh": {
- "type": "_sbcs",
- "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
- },
- "ascii": {
- "type": "_sbcs",
- "chars": "��������������������������������������������������������������������������������������������������������������������������������"
- },
- "tis620": {
- "type": "_sbcs",
- "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
- }
-}
-
-/***/ }),
-
-/***/ 41080:
-/***/ ((module) => {
-
-"use strict";
-
-
-// Manually added data to be used by sbcs codec in addition to generated one.
-
-module.exports = {
- // Not supported by iconv, not sure why.
- "10029": "maccenteuro",
- "maccenteuro": {
- "type": "_sbcs",
- "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
- },
-
- "808": "cp808",
- "ibm808": "cp808",
- "cp808": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "
- },
-
- "mik": {
- "type": "_sbcs",
- "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
- },
-
- "cp720": {
- "type": "_sbcs",
- "chars": "\x80\x81éâ\x84à\x86çêëèïî\x8d\x8e\x8f\x90\u0651\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\u064b\u064c\u064d\u064e\u064f\u0650≈°∙·√ⁿ²■\u00a0"
- },
-
- // Aliases of generated encodings.
- "ascii8bit": "ascii",
- "usascii": "ascii",
- "ansix34": "ascii",
- "ansix341968": "ascii",
- "ansix341986": "ascii",
- "csascii": "ascii",
- "cp367": "ascii",
- "ibm367": "ascii",
- "isoir6": "ascii",
- "iso646us": "ascii",
- "iso646irv": "ascii",
- "us": "ascii",
-
- "latin1": "iso88591",
- "latin2": "iso88592",
- "latin3": "iso88593",
- "latin4": "iso88594",
- "latin5": "iso88599",
- "latin6": "iso885910",
- "latin7": "iso885913",
- "latin8": "iso885914",
- "latin9": "iso885915",
- "latin10": "iso885916",
-
- "csisolatin1": "iso88591",
- "csisolatin2": "iso88592",
- "csisolatin3": "iso88593",
- "csisolatin4": "iso88594",
- "csisolatincyrillic": "iso88595",
- "csisolatinarabic": "iso88596",
- "csisolatingreek" : "iso88597",
- "csisolatinhebrew": "iso88598",
- "csisolatin5": "iso88599",
- "csisolatin6": "iso885910",
-
- "l1": "iso88591",
- "l2": "iso88592",
- "l3": "iso88593",
- "l4": "iso88594",
- "l5": "iso88599",
- "l6": "iso885910",
- "l7": "iso885913",
- "l8": "iso885914",
- "l9": "iso885915",
- "l10": "iso885916",
-
- "isoir14": "iso646jp",
- "isoir57": "iso646cn",
- "isoir100": "iso88591",
- "isoir101": "iso88592",
- "isoir109": "iso88593",
- "isoir110": "iso88594",
- "isoir144": "iso88595",
- "isoir127": "iso88596",
- "isoir126": "iso88597",
- "isoir138": "iso88598",
- "isoir148": "iso88599",
- "isoir157": "iso885910",
- "isoir166": "tis620",
- "isoir179": "iso885913",
- "isoir199": "iso885914",
- "isoir203": "iso885915",
- "isoir226": "iso885916",
-
- "cp819": "iso88591",
- "ibm819": "iso88591",
-
- "cyrillic": "iso88595",
-
- "arabic": "iso88596",
- "arabic8": "iso88596",
- "ecma114": "iso88596",
- "asmo708": "iso88596",
-
- "greek" : "iso88597",
- "greek8" : "iso88597",
- "ecma118" : "iso88597",
- "elot928" : "iso88597",
-
- "hebrew": "iso88598",
- "hebrew8": "iso88598",
-
- "turkish": "iso88599",
- "turkish8": "iso88599",
-
- "thai": "iso885911",
- "thai8": "iso885911",
-
- "celtic": "iso885914",
- "celtic8": "iso885914",
- "isoceltic": "iso885914",
-
- "tis6200": "tis620",
- "tis62025291": "tis620",
- "tis62025330": "tis620",
-
- "10000": "macroman",
- "10006": "macgreek",
- "10007": "maccyrillic",
- "10079": "maciceland",
- "10081": "macturkish",
-
- "cspc8codepage437": "cp437",
- "cspc775baltic": "cp775",
- "cspc850multilingual": "cp850",
- "cspcp852": "cp852",
- "cspc862latinhebrew": "cp862",
- "cpgr": "cp869",
-
- "msee": "cp1250",
- "mscyrl": "cp1251",
- "msansi": "cp1252",
- "msgreek": "cp1253",
- "msturk": "cp1254",
- "mshebr": "cp1255",
- "msarab": "cp1256",
- "winbaltrim": "cp1257",
-
- "cp20866": "koi8r",
- "20866": "koi8r",
- "ibm878": "koi8r",
- "cskoi8r": "koi8r",
-
- "cp21866": "koi8u",
- "21866": "koi8u",
- "ibm1168": "koi8u",
-
- "strk10482002": "rk1048",
-
- "tcvn5712": "tcvn",
- "tcvn57121": "tcvn",
-
- "gb198880": "iso646cn",
- "cn": "iso646cn",
-
- "csiso14jisc6220ro": "iso646jp",
- "jisc62201969ro": "iso646jp",
- "jp": "iso646jp",
-
- "cshproman8": "hproman8",
- "r8": "hproman8",
- "roman8": "hproman8",
- "xroman8": "hproman8",
- "ibm1051": "hproman8",
-
- "mac": "macintosh",
- "csmacintosh": "macintosh",
-};
-
-
-
-/***/ }),
-
-/***/ 11155:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
-
-// == UTF16-BE codec. ==========================================================
-
-exports.utf16be = Utf16BECodec;
-function Utf16BECodec() {
-}
-
-Utf16BECodec.prototype.encoder = Utf16BEEncoder;
-Utf16BECodec.prototype.decoder = Utf16BEDecoder;
-Utf16BECodec.prototype.bomAware = true;
-
-
-// -- Encoding
-
-function Utf16BEEncoder() {
-}
-
-Utf16BEEncoder.prototype.write = function(str) {
- var buf = Buffer.from(str, 'ucs2');
- for (var i = 0; i < buf.length; i += 2) {
- var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;
- }
- return buf;
-}
-
-Utf16BEEncoder.prototype.end = function() {
-}
-
-
-// -- Decoding
-
-function Utf16BEDecoder() {
- this.overflowByte = -1;
-}
-
-Utf16BEDecoder.prototype.write = function(buf) {
- if (buf.length == 0)
- return '';
-
- var buf2 = Buffer.alloc(buf.length + 1),
- i = 0, j = 0;
-
- if (this.overflowByte !== -1) {
- buf2[0] = buf[0];
- buf2[1] = this.overflowByte;
- i = 1; j = 2;
- }
-
- for (; i < buf.length-1; i += 2, j+= 2) {
- buf2[j] = buf[i+1];
- buf2[j+1] = buf[i];
- }
-
- this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;
-
- return buf2.slice(0, j).toString('ucs2');
-}
-
-Utf16BEDecoder.prototype.end = function() {
- this.overflowByte = -1;
-}
-
-
-// == UTF-16 codec =============================================================
-// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.
-// Defaults to UTF-16LE, as it's prevalent and default in Node.
-// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le
-// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});
-
-// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).
-
-exports.utf16 = Utf16Codec;
-function Utf16Codec(codecOptions, iconv) {
- this.iconv = iconv;
-}
-
-Utf16Codec.prototype.encoder = Utf16Encoder;
-Utf16Codec.prototype.decoder = Utf16Decoder;
-
-
-// -- Encoding (pass-through)
-
-function Utf16Encoder(options, codec) {
- options = options || {};
- if (options.addBOM === undefined)
- options.addBOM = true;
- this.encoder = codec.iconv.getEncoder('utf-16le', options);
-}
-
-Utf16Encoder.prototype.write = function(str) {
- return this.encoder.write(str);
-}
-
-Utf16Encoder.prototype.end = function() {
- return this.encoder.end();
-}
-
-
-// -- Decoding
-
-function Utf16Decoder(options, codec) {
- this.decoder = null;
- this.initialBufs = [];
- this.initialBufsLen = 0;
-
- this.options = options || {};
- this.iconv = codec.iconv;
-}
-
-Utf16Decoder.prototype.write = function(buf) {
- if (!this.decoder) {
- // Codec is not chosen yet. Accumulate initial bytes.
- this.initialBufs.push(buf);
- this.initialBufsLen += buf.length;
-
- if (this.initialBufsLen < 16) // We need more bytes to use space heuristic (see below)
- return '';
-
- // We have enough bytes -> detect endianness.
- var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
- this.decoder = this.iconv.getDecoder(encoding, this.options);
-
- var resStr = '';
- for (var i = 0; i < this.initialBufs.length; i++)
- resStr += this.decoder.write(this.initialBufs[i]);
-
- this.initialBufs.length = this.initialBufsLen = 0;
- return resStr;
- }
-
- return this.decoder.write(buf);
-}
-
-Utf16Decoder.prototype.end = function() {
- if (!this.decoder) {
- var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
- this.decoder = this.iconv.getDecoder(encoding, this.options);
-
- var resStr = '';
- for (var i = 0; i < this.initialBufs.length; i++)
- resStr += this.decoder.write(this.initialBufs[i]);
-
- var trail = this.decoder.end();
- if (trail)
- resStr += trail;
-
- this.initialBufs.length = this.initialBufsLen = 0;
- return resStr;
- }
- return this.decoder.end();
-}
-
-function detectEncoding(bufs, defaultEncoding) {
- var b = [];
- var charsProcessed = 0;
- var asciiCharsLE = 0, asciiCharsBE = 0; // Number of ASCII chars when decoded as LE or BE.
-
- outer_loop:
- for (var i = 0; i < bufs.length; i++) {
- var buf = bufs[i];
- for (var j = 0; j < buf.length; j++) {
- b.push(buf[j]);
- if (b.length === 2) {
- if (charsProcessed === 0) {
- // Check BOM first.
- if (b[0] === 0xFF && b[1] === 0xFE) return 'utf-16le';
- if (b[0] === 0xFE && b[1] === 0xFF) return 'utf-16be';
- }
-
- if (b[0] === 0 && b[1] !== 0) asciiCharsBE++;
- if (b[0] !== 0 && b[1] === 0) asciiCharsLE++;
-
- b.length = 0;
- charsProcessed++;
-
- if (charsProcessed >= 100) {
- break outer_loop;
- }
- }
- }
- }
-
- // Make decisions.
- // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.
- // So, we count ASCII as if it was LE or BE, and decide from that.
- if (asciiCharsBE > asciiCharsLE) return 'utf-16be';
- if (asciiCharsBE < asciiCharsLE) return 'utf-16le';
-
- // Couldn't decide (likely all zeros or not enough data).
- return defaultEncoding || 'utf-16le';
-}
-
-
-
-
-/***/ }),
-
-/***/ 59557:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// == UTF32-LE/BE codec. ==========================================================
-
-exports._utf32 = Utf32Codec;
-
-function Utf32Codec(codecOptions, iconv) {
- this.iconv = iconv;
- this.bomAware = true;
- this.isLE = codecOptions.isLE;
-}
-
-exports.utf32le = { type: '_utf32', isLE: true };
-exports.utf32be = { type: '_utf32', isLE: false };
-
-// Aliases
-exports.ucs4le = 'utf32le';
-exports.ucs4be = 'utf32be';
-
-Utf32Codec.prototype.encoder = Utf32Encoder;
-Utf32Codec.prototype.decoder = Utf32Decoder;
-
-// -- Encoding
-
-function Utf32Encoder(options, codec) {
- this.isLE = codec.isLE;
- this.highSurrogate = 0;
-}
-
-Utf32Encoder.prototype.write = function(str) {
- var src = Buffer.from(str, 'ucs2');
- var dst = Buffer.alloc(src.length * 2);
- var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
- var offset = 0;
-
- for (var i = 0; i < src.length; i += 2) {
- var code = src.readUInt16LE(i);
- var isHighSurrogate = (0xD800 <= code && code < 0xDC00);
- var isLowSurrogate = (0xDC00 <= code && code < 0xE000);
-
- if (this.highSurrogate) {
- if (isHighSurrogate || !isLowSurrogate) {
- // There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low
- // surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character
- // (technically wrong, but expected by some applications, like Windows file names).
- write32.call(dst, this.highSurrogate, offset);
- offset += 4;
- }
- else {
- // Create 32-bit value from high and low surrogates;
- var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000;
-
- write32.call(dst, codepoint, offset);
- offset += 4;
- this.highSurrogate = 0;
-
- continue;
- }
- }
-
- if (isHighSurrogate)
- this.highSurrogate = code;
- else {
- // Even if the current character is a low surrogate, with no previous high surrogate, we'll
- // encode it as a semi-invalid stand-alone character for the same reasons expressed above for
- // unpaired high surrogates.
- write32.call(dst, code, offset);
- offset += 4;
- this.highSurrogate = 0;
- }
- }
-
- if (offset < dst.length)
- dst = dst.slice(0, offset);
-
- return dst;
-};
-
-Utf32Encoder.prototype.end = function() {
- // Treat any leftover high surrogate as a semi-valid independent character.
- if (!this.highSurrogate)
- return;
-
- var buf = Buffer.alloc(4);
-
- if (this.isLE)
- buf.writeUInt32LE(this.highSurrogate, 0);
- else
- buf.writeUInt32BE(this.highSurrogate, 0);
-
- this.highSurrogate = 0;
-
- return buf;
-};
-
-// -- Decoding
-
-function Utf32Decoder(options, codec) {
- this.isLE = codec.isLE;
- this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);
- this.overflow = [];
-}
-
-Utf32Decoder.prototype.write = function(src) {
- if (src.length === 0)
- return '';
-
- var i = 0;
- var codepoint = 0;
- var dst = Buffer.alloc(src.length + 4);
- var offset = 0;
- var isLE = this.isLE;
- var overflow = this.overflow;
- var badChar = this.badChar;
-
- if (overflow.length > 0) {
- for (; i < src.length && overflow.length < 4; i++)
- overflow.push(src[i]);
-
- if (overflow.length === 4) {
- // NOTE: codepoint is a signed int32 and can be negative.
- // NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).
- if (isLE) {
- codepoint = overflow[i] | (overflow[i+1] << 8) | (overflow[i+2] << 16) | (overflow[i+3] << 24);
- } else {
- codepoint = overflow[i+3] | (overflow[i+2] << 8) | (overflow[i+1] << 16) | (overflow[i] << 24);
- }
- overflow.length = 0;
-
- offset = _writeCodepoint(dst, offset, codepoint, badChar);
- }
- }
-
- // Main loop. Should be as optimized as possible.
- for (; i < src.length - 3; i += 4) {
- // NOTE: codepoint is a signed int32 and can be negative.
- if (isLE) {
- codepoint = src[i] | (src[i+1] << 8) | (src[i+2] << 16) | (src[i+3] << 24);
- } else {
- codepoint = src[i+3] | (src[i+2] << 8) | (src[i+1] << 16) | (src[i] << 24);
- }
- offset = _writeCodepoint(dst, offset, codepoint, badChar);
- }
-
- // Keep overflowing bytes.
- for (; i < src.length; i++) {
- overflow.push(src[i]);
- }
-
- return dst.slice(0, offset).toString('ucs2');
-};
-
-function _writeCodepoint(dst, offset, codepoint, badChar) {
- // NOTE: codepoint is signed int32 and can be negative. We keep it that way to help V8 with optimizations.
- if (codepoint < 0 || codepoint > 0x10FFFF) {
- // Not a valid Unicode codepoint
- codepoint = badChar;
- }
-
- // Ephemeral Planes: Write high surrogate.
- if (codepoint >= 0x10000) {
- codepoint -= 0x10000;
-
- var high = 0xD800 | (codepoint >> 10);
- dst[offset++] = high & 0xff;
- dst[offset++] = high >> 8;
-
- // Low surrogate is written below.
- var codepoint = 0xDC00 | (codepoint & 0x3FF);
- }
-
- // Write BMP char or low surrogate.
- dst[offset++] = codepoint & 0xff;
- dst[offset++] = codepoint >> 8;
-
- return offset;
-};
-
-Utf32Decoder.prototype.end = function() {
- this.overflow.length = 0;
-};
-
-// == UTF-32 Auto codec =============================================================
-// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.
-// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32
-// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});
-
-// Encoder prepends BOM (which can be overridden with (addBOM: false}).
-
-exports.utf32 = Utf32AutoCodec;
-exports.ucs4 = 'utf32';
-
-function Utf32AutoCodec(options, iconv) {
- this.iconv = iconv;
-}
-
-Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder;
-Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
-
-// -- Encoding
-
-function Utf32AutoEncoder(options, codec) {
- options = options || {};
-
- if (options.addBOM === undefined)
- options.addBOM = true;
-
- this.encoder = codec.iconv.getEncoder(options.defaultEncoding || 'utf-32le', options);
-}
-
-Utf32AutoEncoder.prototype.write = function(str) {
- return this.encoder.write(str);
-};
-
-Utf32AutoEncoder.prototype.end = function() {
- return this.encoder.end();
-};
-
-// -- Decoding
-
-function Utf32AutoDecoder(options, codec) {
- this.decoder = null;
- this.initialBufs = [];
- this.initialBufsLen = 0;
- this.options = options || {};
- this.iconv = codec.iconv;
-}
-
-Utf32AutoDecoder.prototype.write = function(buf) {
- if (!this.decoder) {
- // Codec is not chosen yet. Accumulate initial bytes.
- this.initialBufs.push(buf);
- this.initialBufsLen += buf.length;
-
- if (this.initialBufsLen < 32) // We need more bytes to use space heuristic (see below)
- return '';
-
- // We have enough bytes -> detect endianness.
- var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
- this.decoder = this.iconv.getDecoder(encoding, this.options);
-
- var resStr = '';
- for (var i = 0; i < this.initialBufs.length; i++)
- resStr += this.decoder.write(this.initialBufs[i]);
-
- this.initialBufs.length = this.initialBufsLen = 0;
- return resStr;
- }
-
- return this.decoder.write(buf);
-};
-
-Utf32AutoDecoder.prototype.end = function() {
- if (!this.decoder) {
- var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
- this.decoder = this.iconv.getDecoder(encoding, this.options);
-
- var resStr = '';
- for (var i = 0; i < this.initialBufs.length; i++)
- resStr += this.decoder.write(this.initialBufs[i]);
-
- var trail = this.decoder.end();
- if (trail)
- resStr += trail;
-
- this.initialBufs.length = this.initialBufsLen = 0;
- return resStr;
- }
-
- return this.decoder.end();
-};
-
-function detectEncoding(bufs, defaultEncoding) {
- var b = [];
- var charsProcessed = 0;
- var invalidLE = 0, invalidBE = 0; // Number of invalid chars when decoded as LE or BE.
- var bmpCharsLE = 0, bmpCharsBE = 0; // Number of BMP chars when decoded as LE or BE.
-
- outer_loop:
- for (var i = 0; i < bufs.length; i++) {
- var buf = bufs[i];
- for (var j = 0; j < buf.length; j++) {
- b.push(buf[j]);
- if (b.length === 4) {
- if (charsProcessed === 0) {
- // Check BOM first.
- if (b[0] === 0xFF && b[1] === 0xFE && b[2] === 0 && b[3] === 0) {
- return 'utf-32le';
- }
- if (b[0] === 0 && b[1] === 0 && b[2] === 0xFE && b[3] === 0xFF) {
- return 'utf-32be';
- }
- }
-
- if (b[0] !== 0 || b[1] > 0x10) invalidBE++;
- if (b[3] !== 0 || b[2] > 0x10) invalidLE++;
-
- if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++;
- if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++;
-
- b.length = 0;
- charsProcessed++;
-
- if (charsProcessed >= 100) {
- break outer_loop;
- }
- }
- }
- }
-
- // Make decisions.
- if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return 'utf-32be';
- if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return 'utf-32le';
-
- // Couldn't decide (likely all zeros or not enough data).
- return defaultEncoding || 'utf-32le';
-}
-
-
-/***/ }),
-
-/***/ 51644:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
-// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
-
-exports.utf7 = Utf7Codec;
-exports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7
-function Utf7Codec(codecOptions, iconv) {
- this.iconv = iconv;
-};
-
-Utf7Codec.prototype.encoder = Utf7Encoder;
-Utf7Codec.prototype.decoder = Utf7Decoder;
-Utf7Codec.prototype.bomAware = true;
-
-
-// -- Encoding
-
-var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
-
-function Utf7Encoder(options, codec) {
- this.iconv = codec.iconv;
-}
-
-Utf7Encoder.prototype.write = function(str) {
- // Naive implementation.
- // Non-direct chars are encoded as "+-"; single "+" char is encoded as "+-".
- return Buffer.from(str.replace(nonDirectChars, function(chunk) {
- return "+" + (chunk === '+' ? '' :
- this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
- + "-";
- }.bind(this)));
-}
-
-Utf7Encoder.prototype.end = function() {
-}
-
-
-// -- Decoding
-
-function Utf7Decoder(options, codec) {
- this.iconv = codec.iconv;
- this.inBase64 = false;
- this.base64Accum = '';
-}
-
-var base64Regex = /[A-Za-z0-9\/+]/;
-var base64Chars = [];
-for (var i = 0; i < 256; i++)
- base64Chars[i] = base64Regex.test(String.fromCharCode(i));
-
-var plusChar = '+'.charCodeAt(0),
- minusChar = '-'.charCodeAt(0),
- andChar = '&'.charCodeAt(0);
-
-Utf7Decoder.prototype.write = function(buf) {
- var res = "", lastI = 0,
- inBase64 = this.inBase64,
- base64Accum = this.base64Accum;
-
- // The decoder is more involved as we must handle chunks in stream.
-
- for (var i = 0; i < buf.length; i++) {
- if (!inBase64) { // We're in direct mode.
- // Write direct chars until '+'
- if (buf[i] == plusChar) {
- res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
- lastI = i+1;
- inBase64 = true;
- }
- } else { // We decode base64.
- if (!base64Chars[buf[i]]) { // Base64 ended.
- if (i == lastI && buf[i] == minusChar) {// "+-" -> "+"
- res += "+";
- } else {
- var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii");
- res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
- }
-
- if (buf[i] != minusChar) // Minus is absorbed after base64.
- i--;
-
- lastI = i+1;
- inBase64 = false;
- base64Accum = '';
- }
- }
- }
-
- if (!inBase64) {
- res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
- } else {
- var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii");
-
- var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
- base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
- b64str = b64str.slice(0, canBeDecoded);
-
- res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
- }
-
- this.inBase64 = inBase64;
- this.base64Accum = base64Accum;
-
- return res;
-}
-
-Utf7Decoder.prototype.end = function() {
- var res = "";
- if (this.inBase64 && this.base64Accum.length > 0)
- res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
-
- this.inBase64 = false;
- this.base64Accum = '';
- return res;
-}
-
-
-// UTF-7-IMAP codec.
-// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)
-// Differences:
-// * Base64 part is started by "&" instead of "+"
-// * Direct characters are 0x20-0x7E, except "&" (0x26)
-// * In Base64, "," is used instead of "/"
-// * Base64 must not be used to represent direct characters.
-// * No implicit shift back from Base64 (should always end with '-')
-// * String must end in non-shifted position.
-// * "-&" while in base64 is not allowed.
-
-
-exports.utf7imap = Utf7IMAPCodec;
-function Utf7IMAPCodec(codecOptions, iconv) {
- this.iconv = iconv;
-};
-
-Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
-Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
-Utf7IMAPCodec.prototype.bomAware = true;
-
-
-// -- Encoding
-
-function Utf7IMAPEncoder(options, codec) {
- this.iconv = codec.iconv;
- this.inBase64 = false;
- this.base64Accum = Buffer.alloc(6);
- this.base64AccumIdx = 0;
-}
-
-Utf7IMAPEncoder.prototype.write = function(str) {
- var inBase64 = this.inBase64,
- base64Accum = this.base64Accum,
- base64AccumIdx = this.base64AccumIdx,
- buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;
-
- for (var i = 0; i < str.length; i++) {
- var uChar = str.charCodeAt(i);
- if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.
- if (inBase64) {
- if (base64AccumIdx > 0) {
- bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
- base64AccumIdx = 0;
- }
-
- buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
- inBase64 = false;
- }
-
- if (!inBase64) {
- buf[bufIdx++] = uChar; // Write direct character
-
- if (uChar === andChar) // Ampersand -> '&-'
- buf[bufIdx++] = minusChar;
- }
-
- } else { // Non-direct character
- if (!inBase64) {
- buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.
- inBase64 = true;
- }
- if (inBase64) {
- base64Accum[base64AccumIdx++] = uChar >> 8;
- base64Accum[base64AccumIdx++] = uChar & 0xFF;
-
- if (base64AccumIdx == base64Accum.length) {
- bufIdx += buf.write(base64Accum.toString('base64').replace(/\//g, ','), bufIdx);
- base64AccumIdx = 0;
- }
- }
- }
- }
-
- this.inBase64 = inBase64;
- this.base64AccumIdx = base64AccumIdx;
-
- return buf.slice(0, bufIdx);
-}
-
-Utf7IMAPEncoder.prototype.end = function() {
- var buf = Buffer.alloc(10), bufIdx = 0;
- if (this.inBase64) {
- if (this.base64AccumIdx > 0) {
- bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
- this.base64AccumIdx = 0;
- }
-
- buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
- this.inBase64 = false;
- }
-
- return buf.slice(0, bufIdx);
-}
-
-
-// -- Decoding
-
-function Utf7IMAPDecoder(options, codec) {
- this.iconv = codec.iconv;
- this.inBase64 = false;
- this.base64Accum = '';
-}
-
-var base64IMAPChars = base64Chars.slice();
-base64IMAPChars[','.charCodeAt(0)] = true;
-
-Utf7IMAPDecoder.prototype.write = function(buf) {
- var res = "", lastI = 0,
- inBase64 = this.inBase64,
- base64Accum = this.base64Accum;
-
- // The decoder is more involved as we must handle chunks in stream.
- // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).
-
- for (var i = 0; i < buf.length; i++) {
- if (!inBase64) { // We're in direct mode.
- // Write direct chars until '&'
- if (buf[i] == andChar) {
- res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
- lastI = i+1;
- inBase64 = true;
- }
- } else { // We decode base64.
- if (!base64IMAPChars[buf[i]]) { // Base64 ended.
- if (i == lastI && buf[i] == minusChar) { // "&-" -> "&"
- res += "&";
- } else {
- var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii").replace(/,/g, '/');
- res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
- }
-
- if (buf[i] != minusChar) // Minus may be absorbed after base64.
- i--;
-
- lastI = i+1;
- inBase64 = false;
- base64Accum = '';
- }
- }
- }
-
- if (!inBase64) {
- res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
- } else {
- var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, '/');
-
- var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
- base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
- b64str = b64str.slice(0, canBeDecoded);
-
- res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
- }
-
- this.inBase64 = inBase64;
- this.base64Accum = base64Accum;
-
- return res;
-}
-
-Utf7IMAPDecoder.prototype.end = function() {
- var res = "";
- if (this.inBase64 && this.base64Accum.length > 0)
- res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
-
- this.inBase64 = false;
- this.base64Accum = '';
- return res;
-}
-
-
-
-
-/***/ }),
-
-/***/ 67961:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-var BOMChar = '\uFEFF';
-
-exports.PrependBOM = PrependBOMWrapper
-function PrependBOMWrapper(encoder, options) {
- this.encoder = encoder;
- this.addBOM = true;
-}
-
-PrependBOMWrapper.prototype.write = function(str) {
- if (this.addBOM) {
- str = BOMChar + str;
- this.addBOM = false;
- }
-
- return this.encoder.write(str);
-}
-
-PrependBOMWrapper.prototype.end = function() {
- return this.encoder.end();
-}
-
-
-//------------------------------------------------------------------------------
-
-exports.StripBOM = StripBOMWrapper;
-function StripBOMWrapper(decoder, options) {
- this.decoder = decoder;
- this.pass = false;
- this.options = options || {};
-}
-
-StripBOMWrapper.prototype.write = function(buf) {
- var res = this.decoder.write(buf);
- if (this.pass || !res)
- return res;
-
- if (res[0] === BOMChar) {
- res = res.slice(1);
- if (typeof this.options.stripBOM === 'function')
- this.options.stripBOM();
- }
-
- this.pass = true;
- return res;
-}
-
-StripBOMWrapper.prototype.end = function() {
- return this.decoder.end();
-}
-
-
-
-/***/ }),
-
-/***/ 19032:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-var bomHandling = __nccwpck_require__(67961),
- iconv = module.exports;
-
-// All codecs and aliases are kept here, keyed by encoding name/alias.
-// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
-iconv.encodings = null;
-
-// Characters emitted in case of error.
-iconv.defaultCharUnicode = '�';
-iconv.defaultCharSingleByte = '?';
-
-// Public API.
-iconv.encode = function encode(str, encoding, options) {
- str = "" + (str || ""); // Ensure string.
-
- var encoder = iconv.getEncoder(encoding, options);
-
- var res = encoder.write(str);
- var trail = encoder.end();
-
- return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;
-}
-
-iconv.decode = function decode(buf, encoding, options) {
- if (typeof buf === 'string') {
- if (!iconv.skipDecodeWarning) {
- console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');
- iconv.skipDecodeWarning = true;
- }
-
- buf = Buffer.from("" + (buf || ""), "binary"); // Ensure buffer.
- }
-
- var decoder = iconv.getDecoder(encoding, options);
-
- var res = decoder.write(buf);
- var trail = decoder.end();
-
- return trail ? (res + trail) : res;
-}
-
-iconv.encodingExists = function encodingExists(enc) {
- try {
- iconv.getCodec(enc);
- return true;
- } catch (e) {
- return false;
- }
-}
-
-// Legacy aliases to convert functions
-iconv.toEncoding = iconv.encode;
-iconv.fromEncoding = iconv.decode;
-
-// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
-iconv._codecDataCache = {};
-iconv.getCodec = function getCodec(encoding) {
- if (!iconv.encodings)
- iconv.encodings = __nccwpck_require__(82733); // Lazy load all encoding definitions.
-
- // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
- var enc = iconv._canonicalizeEncoding(encoding);
-
- // Traverse iconv.encodings to find actual codec.
- var codecOptions = {};
- while (true) {
- var codec = iconv._codecDataCache[enc];
- if (codec)
- return codec;
-
- var codecDef = iconv.encodings[enc];
-
- switch (typeof codecDef) {
- case "string": // Direct alias to other encoding.
- enc = codecDef;
- break;
-
- case "object": // Alias with options. Can be layered.
- for (var key in codecDef)
- codecOptions[key] = codecDef[key];
-
- if (!codecOptions.encodingName)
- codecOptions.encodingName = enc;
-
- enc = codecDef.type;
- break;
-
- case "function": // Codec itself.
- if (!codecOptions.encodingName)
- codecOptions.encodingName = enc;
-
- // The codec function must load all tables and return object with .encoder and .decoder methods.
- // It'll be called only once (for each different options object).
- codec = new codecDef(codecOptions, iconv);
-
- iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.
- return codec;
-
- default:
- throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
- }
- }
-}
-
-iconv._canonicalizeEncoding = function(encoding) {
- // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
- return (''+encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
-}
-
-iconv.getEncoder = function getEncoder(encoding, options) {
- var codec = iconv.getCodec(encoding),
- encoder = new codec.encoder(options, codec);
-
- if (codec.bomAware && options && options.addBOM)
- encoder = new bomHandling.PrependBOM(encoder, options);
-
- return encoder;
-}
-
-iconv.getDecoder = function getDecoder(encoding, options) {
- var codec = iconv.getCodec(encoding),
- decoder = new codec.decoder(options, codec);
-
- if (codec.bomAware && !(options && options.stripBOM === false))
- decoder = new bomHandling.StripBOM(decoder, options);
-
- return decoder;
-}
-
-// Streaming API
-// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add
-// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.
-// If you would like to enable it explicitly, please add the following code to your app:
-// > iconv.enableStreamingAPI(require('stream'));
-iconv.enableStreamingAPI = function enableStreamingAPI(stream_module) {
- if (iconv.supportsStreams)
- return;
-
- // Dependency-inject stream module to create IconvLite stream classes.
- var streams = __nccwpck_require__(76409)(stream_module);
-
- // Not public API yet, but expose the stream classes.
- iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
- iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
-
- // Streaming API.
- iconv.encodeStream = function encodeStream(encoding, options) {
- return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
- }
-
- iconv.decodeStream = function decodeStream(encoding, options) {
- return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
- }
-
- iconv.supportsStreams = true;
-}
-
-// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).
-var stream_module;
-try {
- stream_module = __nccwpck_require__(12781);
-} catch (e) {}
-
-if (stream_module && stream_module.Transform) {
- iconv.enableStreamingAPI(stream_module);
-
-} else {
- // In rare cases where 'stream' module is not available by default, throw a helpful exception.
- iconv.encodeStream = iconv.decodeStream = function() {
- throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
- };
-}
-
-if (false) {}
-
-
-/***/ }),
-
-/***/ 76409:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Buffer = (__nccwpck_require__(15118).Buffer);
-
-// NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments),
-// we opt to dependency-inject it instead of creating a hard dependency.
-module.exports = function(stream_module) {
- var Transform = stream_module.Transform;
-
- // == Encoder stream =======================================================
-
- function IconvLiteEncoderStream(conv, options) {
- this.conv = conv;
- options = options || {};
- options.decodeStrings = false; // We accept only strings, so we don't need to decode them.
- Transform.call(this, options);
- }
-
- IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
- constructor: { value: IconvLiteEncoderStream }
- });
-
- IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
- if (typeof chunk != 'string')
- return done(new Error("Iconv encoding stream needs strings as its input."));
- try {
- var res = this.conv.write(chunk);
- if (res && res.length) this.push(res);
- done();
- }
- catch (e) {
- done(e);
- }
- }
-
- IconvLiteEncoderStream.prototype._flush = function(done) {
- try {
- var res = this.conv.end();
- if (res && res.length) this.push(res);
- done();
- }
- catch (e) {
- done(e);
- }
- }
-
- IconvLiteEncoderStream.prototype.collect = function(cb) {
- var chunks = [];
- this.on('error', cb);
- this.on('data', function(chunk) { chunks.push(chunk); });
- this.on('end', function() {
- cb(null, Buffer.concat(chunks));
- });
- return this;
- }
-
-
- // == Decoder stream =======================================================
-
- function IconvLiteDecoderStream(conv, options) {
- this.conv = conv;
- options = options || {};
- options.encoding = this.encoding = 'utf8'; // We output strings.
- Transform.call(this, options);
- }
-
- IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
- constructor: { value: IconvLiteDecoderStream }
- });
-
- IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
- if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array))
- return done(new Error("Iconv decoding stream needs buffers as its input."));
- try {
- var res = this.conv.write(chunk);
- if (res && res.length) this.push(res, this.encoding);
- done();
- }
- catch (e) {
- done(e);
- }
- }
-
- IconvLiteDecoderStream.prototype._flush = function(done) {
- try {
- var res = this.conv.end();
- if (res && res.length) this.push(res, this.encoding);
- done();
- }
- catch (e) {
- done(e);
- }
- }
-
- IconvLiteDecoderStream.prototype.collect = function(cb) {
- var res = '';
- this.on('error', cb);
- this.on('data', function(chunk) { res += chunk; });
- this.on('end', function() {
- cb(null, res);
- });
- return this;
- }
-
- return {
- IconvLiteEncoderStream: IconvLiteEncoderStream,
- IconvLiteDecoderStream: IconvLiteDecoderStream,
- };
-};
-
-
-/***/ }),
-
-/***/ 42469:
-/***/ ((module) => {
-
-// Generated using `npm run build`. Do not edit.
-
-var regex = /^[a-z](?:[\.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-(?:[\x2D\.0-9_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
-
-var isPotentialCustomElementName = function(string) {
- return regex.test(string);
-};
-
-module.exports = isPotentialCustomElementName;
-
-
-/***/ }),
-
-/***/ 21917:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-
-var loader = __nccwpck_require__(51161);
-var dumper = __nccwpck_require__(68866);
-
-
-function renamed(from, to) {
- return function () {
- throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
- 'Use yaml.' + to + ' instead, which is now safe by default.');
- };
-}
-
-
-module.exports.Type = __nccwpck_require__(6073);
-module.exports.Schema = __nccwpck_require__(21082);
-module.exports.FAILSAFE_SCHEMA = __nccwpck_require__(28562);
-module.exports.JSON_SCHEMA = __nccwpck_require__(1035);
-module.exports.CORE_SCHEMA = __nccwpck_require__(12011);
-module.exports.DEFAULT_SCHEMA = __nccwpck_require__(18759);
-module.exports.load = loader.load;
-module.exports.loadAll = loader.loadAll;
-module.exports.dump = dumper.dump;
-module.exports.YAMLException = __nccwpck_require__(68179);
-
-// Re-export all types in case user wants to create custom schema
-module.exports.types = {
- binary: __nccwpck_require__(77900),
- float: __nccwpck_require__(42705),
- map: __nccwpck_require__(86150),
- null: __nccwpck_require__(20721),
- pairs: __nccwpck_require__(96860),
- set: __nccwpck_require__(79548),
- timestamp: __nccwpck_require__(99212),
- bool: __nccwpck_require__(64993),
- int: __nccwpck_require__(11615),
- merge: __nccwpck_require__(86104),
- omap: __nccwpck_require__(19046),
- seq: __nccwpck_require__(67283),
- str: __nccwpck_require__(23619)
-};
-
-// Removed functions from JS-YAML 3.0.x
-module.exports.safeLoad = renamed('safeLoad', 'load');
-module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');
-module.exports.safeDump = renamed('safeDump', 'dump');
-
-
-/***/ }),
-
-/***/ 26829:
-/***/ ((module) => {
-
-"use strict";
-
-
-
-function isNothing(subject) {
- return (typeof subject === 'undefined') || (subject === null);
-}
-
-
-function isObject(subject) {
- return (typeof subject === 'object') && (subject !== null);
-}
-
-
-function toArray(sequence) {
- if (Array.isArray(sequence)) return sequence;
- else if (isNothing(sequence)) return [];
-
- return [ sequence ];
-}
-
-
-function extend(target, source) {
- var index, length, key, sourceKeys;
-
- if (source) {
- sourceKeys = Object.keys(source);
-
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
- key = sourceKeys[index];
- target[key] = source[key];
- }
- }
-
- return target;
-}
-
-
-function repeat(string, count) {
- var result = '', cycle;
-
- for (cycle = 0; cycle < count; cycle += 1) {
- result += string;
- }
-
- return result;
-}
-
-
-function isNegativeZero(number) {
- return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
-}
-
-
-module.exports.isNothing = isNothing;
-module.exports.isObject = isObject;
-module.exports.toArray = toArray;
-module.exports.repeat = repeat;
-module.exports.isNegativeZero = isNegativeZero;
-module.exports.extend = extend;
-
-
-/***/ }),
-
-/***/ 68866:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-/*eslint-disable no-use-before-define*/
-
-var common = __nccwpck_require__(26829);
-var YAMLException = __nccwpck_require__(68179);
-var DEFAULT_SCHEMA = __nccwpck_require__(18759);
-
-var _toString = Object.prototype.toString;
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-var CHAR_BOM = 0xFEFF;
-var CHAR_TAB = 0x09; /* Tab */
-var CHAR_LINE_FEED = 0x0A; /* LF */
-var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */
-var CHAR_SPACE = 0x20; /* Space */
-var CHAR_EXCLAMATION = 0x21; /* ! */
-var CHAR_DOUBLE_QUOTE = 0x22; /* " */
-var CHAR_SHARP = 0x23; /* # */
-var CHAR_PERCENT = 0x25; /* % */
-var CHAR_AMPERSAND = 0x26; /* & */
-var CHAR_SINGLE_QUOTE = 0x27; /* ' */
-var CHAR_ASTERISK = 0x2A; /* * */
-var CHAR_COMMA = 0x2C; /* , */
-var CHAR_MINUS = 0x2D; /* - */
-var CHAR_COLON = 0x3A; /* : */
-var CHAR_EQUALS = 0x3D; /* = */
-var CHAR_GREATER_THAN = 0x3E; /* > */
-var CHAR_QUESTION = 0x3F; /* ? */
-var CHAR_COMMERCIAL_AT = 0x40; /* @ */
-var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
-var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
-var CHAR_GRAVE_ACCENT = 0x60; /* ` */
-var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
-var CHAR_VERTICAL_LINE = 0x7C; /* | */
-var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
-
-var ESCAPE_SEQUENCES = {};
-
-ESCAPE_SEQUENCES[0x00] = '\\0';
-ESCAPE_SEQUENCES[0x07] = '\\a';
-ESCAPE_SEQUENCES[0x08] = '\\b';
-ESCAPE_SEQUENCES[0x09] = '\\t';
-ESCAPE_SEQUENCES[0x0A] = '\\n';
-ESCAPE_SEQUENCES[0x0B] = '\\v';
-ESCAPE_SEQUENCES[0x0C] = '\\f';
-ESCAPE_SEQUENCES[0x0D] = '\\r';
-ESCAPE_SEQUENCES[0x1B] = '\\e';
-ESCAPE_SEQUENCES[0x22] = '\\"';
-ESCAPE_SEQUENCES[0x5C] = '\\\\';
-ESCAPE_SEQUENCES[0x85] = '\\N';
-ESCAPE_SEQUENCES[0xA0] = '\\_';
-ESCAPE_SEQUENCES[0x2028] = '\\L';
-ESCAPE_SEQUENCES[0x2029] = '\\P';
-
-var DEPRECATED_BOOLEANS_SYNTAX = [
- 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
- 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
-];
-
-var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
-
-function compileStyleMap(schema, map) {
- var result, keys, index, length, tag, style, type;
-
- if (map === null) return {};
-
- result = {};
- keys = Object.keys(map);
-
- for (index = 0, length = keys.length; index < length; index += 1) {
- tag = keys[index];
- style = String(map[tag]);
-
- if (tag.slice(0, 2) === '!!') {
- tag = 'tag:yaml.org,2002:' + tag.slice(2);
- }
- type = schema.compiledTypeMap['fallback'][tag];
-
- if (type && _hasOwnProperty.call(type.styleAliases, style)) {
- style = type.styleAliases[style];
- }
-
- result[tag] = style;
- }
-
- return result;
-}
-
-function encodeHex(character) {
- var string, handle, length;
-
- string = character.toString(16).toUpperCase();
-
- if (character <= 0xFF) {
- handle = 'x';
- length = 2;
- } else if (character <= 0xFFFF) {
- handle = 'u';
- length = 4;
- } else if (character <= 0xFFFFFFFF) {
- handle = 'U';
- length = 8;
- } else {
- throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
- }
-
- return '\\' + handle + common.repeat('0', length - string.length) + string;
-}
-
-
-var QUOTING_TYPE_SINGLE = 1,
- QUOTING_TYPE_DOUBLE = 2;
-
-function State(options) {
- this.schema = options['schema'] || DEFAULT_SCHEMA;
- this.indent = Math.max(1, (options['indent'] || 2));
- this.noArrayIndent = options['noArrayIndent'] || false;
- this.skipInvalid = options['skipInvalid'] || false;
- this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
- this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
- this.sortKeys = options['sortKeys'] || false;
- this.lineWidth = options['lineWidth'] || 80;
- this.noRefs = options['noRefs'] || false;
- this.noCompatMode = options['noCompatMode'] || false;
- this.condenseFlow = options['condenseFlow'] || false;
- this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
- this.forceQuotes = options['forceQuotes'] || false;
- this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;
-
- this.implicitTypes = this.schema.compiledImplicit;
- this.explicitTypes = this.schema.compiledExplicit;
-
- this.tag = null;
- this.result = '';
-
- this.duplicates = [];
- this.usedDuplicates = null;
-}
-
-// Indents every line in a string. Empty lines (\n only) are not indented.
-function indentString(string, spaces) {
- var ind = common.repeat(' ', spaces),
- position = 0,
- next = -1,
- result = '',
- line,
- length = string.length;
-
- while (position < length) {
- next = string.indexOf('\n', position);
- if (next === -1) {
- line = string.slice(position);
- position = length;
- } else {
- line = string.slice(position, next + 1);
- position = next + 1;
- }
-
- if (line.length && line !== '\n') result += ind;
-
- result += line;
- }
-
- return result;
-}
-
-function generateNextLine(state, level) {
- return '\n' + common.repeat(' ', state.indent * level);
-}
-
-function testImplicitResolving(state, str) {
- var index, length, type;
-
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
- type = state.implicitTypes[index];
-
- if (type.resolve(str)) {
- return true;
- }
- }
-
- return false;
-}
-
-// [33] s-white ::= s-space | s-tab
-function isWhitespace(c) {
- return c === CHAR_SPACE || c === CHAR_TAB;
-}
-
-// Returns true if the character can be printed without escaping.
-// From YAML 1.2: "any allowed characters known to be non-printable
-// should also be escaped. [However,] This isn’t mandatory"
-// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
-function isPrintable(c) {
- return (0x00020 <= c && c <= 0x00007E)
- || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
- || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)
- || (0x10000 <= c && c <= 0x10FFFF);
-}
-
-// [34] ns-char ::= nb-char - s-white
-// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
-// [26] b-char ::= b-line-feed | b-carriage-return
-// Including s-white (for some reason, examples doesn't match specs in this aspect)
-// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
-function isNsCharOrWhitespace(c) {
- return isPrintable(c)
- && c !== CHAR_BOM
- // - b-char
- && c !== CHAR_CARRIAGE_RETURN
- && c !== CHAR_LINE_FEED;
-}
-
-// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
-// c = flow-in ⇒ ns-plain-safe-in
-// c = block-key ⇒ ns-plain-safe-out
-// c = flow-key ⇒ ns-plain-safe-in
-// [128] ns-plain-safe-out ::= ns-char
-// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
-// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
-// | ( /* An ns-char preceding */ “#” )
-// | ( “:” /* Followed by an ns-plain-safe(c) */ )
-function isPlainSafe(c, prev, inblock) {
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
- return (
- // ns-plain-safe
- inblock ? // c = flow-in
- cIsNsCharOrWhitespace
- : cIsNsCharOrWhitespace
- // - c-flow-indicator
- && c !== CHAR_COMMA
- && c !== CHAR_LEFT_SQUARE_BRACKET
- && c !== CHAR_RIGHT_SQUARE_BRACKET
- && c !== CHAR_LEFT_CURLY_BRACKET
- && c !== CHAR_RIGHT_CURLY_BRACKET
- )
- // ns-plain-char
- && c !== CHAR_SHARP // false on '#'
- && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '
- || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'
- || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'
-}
-
-// Simplified test for values allowed as the first character in plain style.
-function isPlainSafeFirst(c) {
- // Uses a subset of ns-char - c-indicator
- // where ns-char = nb-char - s-white.
- // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
- return isPrintable(c) && c !== CHAR_BOM
- && !isWhitespace(c) // - s-white
- // - (c-indicator ::=
- // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
- && c !== CHAR_MINUS
- && c !== CHAR_QUESTION
- && c !== CHAR_COLON
- && c !== CHAR_COMMA
- && c !== CHAR_LEFT_SQUARE_BRACKET
- && c !== CHAR_RIGHT_SQUARE_BRACKET
- && c !== CHAR_LEFT_CURLY_BRACKET
- && c !== CHAR_RIGHT_CURLY_BRACKET
- // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
- && c !== CHAR_SHARP
- && c !== CHAR_AMPERSAND
- && c !== CHAR_ASTERISK
- && c !== CHAR_EXCLAMATION
- && c !== CHAR_VERTICAL_LINE
- && c !== CHAR_EQUALS
- && c !== CHAR_GREATER_THAN
- && c !== CHAR_SINGLE_QUOTE
- && c !== CHAR_DOUBLE_QUOTE
- // | “%” | “@” | “`”)
- && c !== CHAR_PERCENT
- && c !== CHAR_COMMERCIAL_AT
- && c !== CHAR_GRAVE_ACCENT;
-}
-
-// Simplified test for values allowed as the last character in plain style.
-function isPlainSafeLast(c) {
- // just not whitespace or colon, it will be checked to be plain character later
- return !isWhitespace(c) && c !== CHAR_COLON;
-}
-
-// Same as 'string'.codePointAt(pos), but works in older browsers.
-function codePointAt(string, pos) {
- var first = string.charCodeAt(pos), second;
- if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
- second = string.charCodeAt(pos + 1);
- if (second >= 0xDC00 && second <= 0xDFFF) {
- // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
- }
- }
- return first;
-}
-
-// Determines whether block indentation indicator is required.
-function needIndentIndicator(string) {
- var leadingSpaceRe = /^\n* /;
- return leadingSpaceRe.test(string);
-}
-
-var STYLE_PLAIN = 1,
- STYLE_SINGLE = 2,
- STYLE_LITERAL = 3,
- STYLE_FOLDED = 4,
- STYLE_DOUBLE = 5;
-
-// Determines which scalar styles are possible and returns the preferred style.
-// lineWidth = -1 => no limit.
-// Pre-conditions: str.length > 0.
-// Post-conditions:
-// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
-// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
-// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
-function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,
- testAmbiguousType, quotingType, forceQuotes, inblock) {
-
- var i;
- var char = 0;
- var prevChar = null;
- var hasLineBreak = false;
- var hasFoldableLine = false; // only checked if shouldTrackWidth
- var shouldTrackWidth = lineWidth !== -1;
- var previousLineBreak = -1; // count the first line correctly
- var plain = isPlainSafeFirst(codePointAt(string, 0))
- && isPlainSafeLast(codePointAt(string, string.length - 1));
-
- if (singleLineOnly || forceQuotes) {
- // Case: no block styles.
- // Check for disallowed characters to rule out plain and single.
- for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
- char = codePointAt(string, i);
- if (!isPrintable(char)) {
- return STYLE_DOUBLE;
- }
- plain = plain && isPlainSafe(char, prevChar, inblock);
- prevChar = char;
- }
- } else {
- // Case: block styles permitted.
- for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
- char = codePointAt(string, i);
- if (char === CHAR_LINE_FEED) {
- hasLineBreak = true;
- // Check if any line can be folded.
- if (shouldTrackWidth) {
- hasFoldableLine = hasFoldableLine ||
- // Foldable line = too long, and not more-indented.
- (i - previousLineBreak - 1 > lineWidth &&
- string[previousLineBreak + 1] !== ' ');
- previousLineBreak = i;
- }
- } else if (!isPrintable(char)) {
- return STYLE_DOUBLE;
- }
- plain = plain && isPlainSafe(char, prevChar, inblock);
- prevChar = char;
- }
- // in case the end is missing a \n
- hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
- (i - previousLineBreak - 1 > lineWidth &&
- string[previousLineBreak + 1] !== ' '));
- }
- // Although every style can represent \n without escaping, prefer block styles
- // for multiline, since they're more readable and they don't add empty lines.
- // Also prefer folding a super-long line.
- if (!hasLineBreak && !hasFoldableLine) {
- // Strings interpretable as another type have to be quoted;
- // e.g. the string 'true' vs. the boolean true.
- if (plain && !forceQuotes && !testAmbiguousType(string)) {
- return STYLE_PLAIN;
- }
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
- }
- // Edge case: block indentation indicator can only have one digit.
- if (indentPerLevel > 9 && needIndentIndicator(string)) {
- return STYLE_DOUBLE;
- }
- // At this point we know block styles are valid.
- // Prefer literal style unless we want to fold.
- if (!forceQuotes) {
- return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
- }
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
-}
-
-// Note: line breaking/folding is implemented for only the folded style.
-// NB. We drop the last trailing newline (if any) of a returned block scalar
-// since the dumper adds its own newline. This always works:
-// • No ending newline => unaffected; already using strip "-" chomping.
-// • Ending newline => removed then restored.
-// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
-function writeScalar(state, string, level, iskey, inblock) {
- state.dump = (function () {
- if (string.length === 0) {
- return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
- }
- if (!state.noCompatMode) {
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
- return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'");
- }
- }
-
- var indent = state.indent * Math.max(1, level); // no 0-indent scalars
- // As indentation gets deeper, let the width decrease monotonically
- // to the lower bound min(state.lineWidth, 40).
- // Note that this implies
- // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
- // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
- // This behaves better than a constant minimum width which disallows narrower options,
- // or an indent threshold which causes the width to suddenly increase.
- var lineWidth = state.lineWidth === -1
- ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
-
- // Without knowing if keys are implicit/explicit, assume implicit for safety.
- var singleLineOnly = iskey
- // No block styles in flow mode.
- || (state.flowLevel > -1 && level >= state.flowLevel);
- function testAmbiguity(string) {
- return testImplicitResolving(state, string);
- }
-
- switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
- testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
-
- case STYLE_PLAIN:
- return string;
- case STYLE_SINGLE:
- return "'" + string.replace(/'/g, "''") + "'";
- case STYLE_LITERAL:
- return '|' + blockHeader(string, state.indent)
- + dropEndingNewline(indentString(string, indent));
- case STYLE_FOLDED:
- return '>' + blockHeader(string, state.indent)
- + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
- case STYLE_DOUBLE:
- return '"' + escapeString(string, lineWidth) + '"';
- default:
- throw new YAMLException('impossible error: invalid scalar style');
- }
- }());
-}
-
-// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
-function blockHeader(string, indentPerLevel) {
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
-
- // note the special case: the string '\n' counts as a "trailing" empty line.
- var clip = string[string.length - 1] === '\n';
- var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
- var chomp = keep ? '+' : (clip ? '' : '-');
-
- return indentIndicator + chomp + '\n';
-}
-
-// (See the note for writeScalar.)
-function dropEndingNewline(string) {
- return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
-}
-
-// Note: a long line without a suitable break point will exceed the width limit.
-// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
-function foldString(string, width) {
- // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
- // unless they're before or after a more-indented line, or at the very
- // beginning or end, in which case $k$ maps to $k$.
- // Therefore, parse each chunk as newline(s) followed by a content line.
- var lineRe = /(\n+)([^\n]*)/g;
-
- // first line (possibly an empty line)
- var result = (function () {
- var nextLF = string.indexOf('\n');
- nextLF = nextLF !== -1 ? nextLF : string.length;
- lineRe.lastIndex = nextLF;
- return foldLine(string.slice(0, nextLF), width);
- }());
- // If we haven't reached the first content line yet, don't add an extra \n.
- var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
- var moreIndented;
-
- // rest of the lines
- var match;
- while ((match = lineRe.exec(string))) {
- var prefix = match[1], line = match[2];
- moreIndented = (line[0] === ' ');
- result += prefix
- + (!prevMoreIndented && !moreIndented && line !== ''
- ? '\n' : '')
- + foldLine(line, width);
- prevMoreIndented = moreIndented;
- }
-
- return result;
-}
-
-// Greedy line breaking.
-// Picks the longest line under the limit each time,
-// otherwise settles for the shortest line over the limit.
-// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
-function foldLine(line, width) {
- if (line === '' || line[0] === ' ') return line;
-
- // Since a more-indented line adds a \n, breaks can't be followed by a space.
- var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
- var match;
- // start is an inclusive index. end, curr, and next are exclusive.
- var start = 0, end, curr = 0, next = 0;
- var result = '';
-
- // Invariants: 0 <= start <= length-1.
- // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
- // Inside the loop:
- // A match implies length >= 2, so curr and next are <= length-2.
- while ((match = breakRe.exec(line))) {
- next = match.index;
- // maintain invariant: curr - start <= width
- if (next - start > width) {
- end = (curr > start) ? curr : next; // derive end <= length-2
- result += '\n' + line.slice(start, end);
- // skip the space that was output as \n
- start = end + 1; // derive start <= length-1
- }
- curr = next;
- }
-
- // By the invariants, start <= length-1, so there is something left over.
- // It is either the whole string or a part starting from non-whitespace.
- result += '\n';
- // Insert a break if the remainder is too long and there is a break available.
- if (line.length - start > width && curr > start) {
- result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
- } else {
- result += line.slice(start);
- }
-
- return result.slice(1); // drop extra \n joiner
-}
-
-// Escapes a double-quoted string.
-function escapeString(string) {
- var result = '';
- var char = 0;
- var escapeSeq;
-
- for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
- char = codePointAt(string, i);
- escapeSeq = ESCAPE_SEQUENCES[char];
-
- if (!escapeSeq && isPrintable(char)) {
- result += string[i];
- if (char >= 0x10000) result += string[i + 1];
- } else {
- result += escapeSeq || encodeHex(char);
- }
- }
-
- return result;
-}
-
-function writeFlowSequence(state, level, object) {
- var _result = '',
- _tag = state.tag,
- index,
- length,
- value;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- value = object[index];
-
- if (state.replacer) {
- value = state.replacer.call(object, String(index), value);
- }
-
- // Write only valid elements, put null instead of invalid elements.
- if (writeNode(state, level, value, false, false) ||
- (typeof value === 'undefined' &&
- writeNode(state, level, null, false, false))) {
-
- if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');
- _result += state.dump;
- }
- }
-
- state.tag = _tag;
- state.dump = '[' + _result + ']';
-}
-
-function writeBlockSequence(state, level, object, compact) {
- var _result = '',
- _tag = state.tag,
- index,
- length,
- value;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- value = object[index];
-
- if (state.replacer) {
- value = state.replacer.call(object, String(index), value);
- }
-
- // Write only valid elements, put null instead of invalid elements.
- if (writeNode(state, level + 1, value, true, true, false, true) ||
- (typeof value === 'undefined' &&
- writeNode(state, level + 1, null, true, true, false, true))) {
-
- if (!compact || _result !== '') {
- _result += generateNextLine(state, level);
- }
-
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
- _result += '-';
- } else {
- _result += '- ';
- }
-
- _result += state.dump;
- }
- }
-
- state.tag = _tag;
- state.dump = _result || '[]'; // Empty sequence if no valid values.
-}
-
-function writeFlowMapping(state, level, object) {
- var _result = '',
- _tag = state.tag,
- objectKeyList = Object.keys(object),
- index,
- length,
- objectKey,
- objectValue,
- pairBuffer;
-
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
-
- pairBuffer = '';
- if (_result !== '') pairBuffer += ', ';
-
- if (state.condenseFlow) pairBuffer += '"';
-
- objectKey = objectKeyList[index];
- objectValue = object[objectKey];
-
- if (state.replacer) {
- objectValue = state.replacer.call(object, objectKey, objectValue);
- }
-
- if (!writeNode(state, level, objectKey, false, false)) {
- continue; // Skip this pair because of invalid key;
- }
-
- if (state.dump.length > 1024) pairBuffer += '? ';
-
- pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
-
- if (!writeNode(state, level, objectValue, false, false)) {
- continue; // Skip this pair because of invalid value.
- }
-
- pairBuffer += state.dump;
-
- // Both key and value are valid.
- _result += pairBuffer;
- }
-
- state.tag = _tag;
- state.dump = '{' + _result + '}';
-}
-
-function writeBlockMapping(state, level, object, compact) {
- var _result = '',
- _tag = state.tag,
- objectKeyList = Object.keys(object),
- index,
- length,
- objectKey,
- objectValue,
- explicitPair,
- pairBuffer;
-
- // Allow sorting keys so that the output file is deterministic
- if (state.sortKeys === true) {
- // Default sorting
- objectKeyList.sort();
- } else if (typeof state.sortKeys === 'function') {
- // Custom sort function
- objectKeyList.sort(state.sortKeys);
- } else if (state.sortKeys) {
- // Something is wrong
- throw new YAMLException('sortKeys must be a boolean or a function');
- }
-
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
- pairBuffer = '';
-
- if (!compact || _result !== '') {
- pairBuffer += generateNextLine(state, level);
- }
-
- objectKey = objectKeyList[index];
- objectValue = object[objectKey];
-
- if (state.replacer) {
- objectValue = state.replacer.call(object, objectKey, objectValue);
- }
-
- if (!writeNode(state, level + 1, objectKey, true, true, true)) {
- continue; // Skip this pair because of invalid key.
- }
-
- explicitPair = (state.tag !== null && state.tag !== '?') ||
- (state.dump && state.dump.length > 1024);
-
- if (explicitPair) {
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
- pairBuffer += '?';
- } else {
- pairBuffer += '? ';
- }
- }
-
- pairBuffer += state.dump;
-
- if (explicitPair) {
- pairBuffer += generateNextLine(state, level);
- }
-
- if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
- continue; // Skip this pair because of invalid value.
- }
-
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
- pairBuffer += ':';
- } else {
- pairBuffer += ': ';
- }
-
- pairBuffer += state.dump;
-
- // Both key and value are valid.
- _result += pairBuffer;
- }
-
- state.tag = _tag;
- state.dump = _result || '{}'; // Empty mapping if no valid pairs.
-}
-
-function detectType(state, object, explicit) {
- var _result, typeList, index, length, type, style;
-
- typeList = explicit ? state.explicitTypes : state.implicitTypes;
-
- for (index = 0, length = typeList.length; index < length; index += 1) {
- type = typeList[index];
-
- if ((type.instanceOf || type.predicate) &&
- (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
- (!type.predicate || type.predicate(object))) {
-
- if (explicit) {
- if (type.multi && type.representName) {
- state.tag = type.representName(object);
- } else {
- state.tag = type.tag;
- }
- } else {
- state.tag = '?';
- }
-
- if (type.represent) {
- style = state.styleMap[type.tag] || type.defaultStyle;
-
- if (_toString.call(type.represent) === '[object Function]') {
- _result = type.represent(object, style);
- } else if (_hasOwnProperty.call(type.represent, style)) {
- _result = type.represent[style](object, style);
- } else {
- throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
- }
-
- state.dump = _result;
- }
-
- return true;
- }
- }
-
- return false;
-}
-
-// Serializes `object` and writes it to global `result`.
-// Returns true on success, or false on invalid object.
-//
-function writeNode(state, level, object, block, compact, iskey, isblockseq) {
- state.tag = null;
- state.dump = object;
-
- if (!detectType(state, object, false)) {
- detectType(state, object, true);
- }
-
- var type = _toString.call(state.dump);
- var inblock = block;
- var tagStr;
-
- if (block) {
- block = (state.flowLevel < 0 || state.flowLevel > level);
- }
-
- var objectOrArray = type === '[object Object]' || type === '[object Array]',
- duplicateIndex,
- duplicate;
-
- if (objectOrArray) {
- duplicateIndex = state.duplicates.indexOf(object);
- duplicate = duplicateIndex !== -1;
- }
-
- if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
- compact = false;
- }
-
- if (duplicate && state.usedDuplicates[duplicateIndex]) {
- state.dump = '*ref_' + duplicateIndex;
- } else {
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
- state.usedDuplicates[duplicateIndex] = true;
- }
- if (type === '[object Object]') {
- if (block && (Object.keys(state.dump).length !== 0)) {
- writeBlockMapping(state, level, state.dump, compact);
- if (duplicate) {
- state.dump = '&ref_' + duplicateIndex + state.dump;
- }
- } else {
- writeFlowMapping(state, level, state.dump);
- if (duplicate) {
- state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
- }
- }
- } else if (type === '[object Array]') {
- if (block && (state.dump.length !== 0)) {
- if (state.noArrayIndent && !isblockseq && level > 0) {
- writeBlockSequence(state, level - 1, state.dump, compact);
- } else {
- writeBlockSequence(state, level, state.dump, compact);
- }
- if (duplicate) {
- state.dump = '&ref_' + duplicateIndex + state.dump;
- }
- } else {
- writeFlowSequence(state, level, state.dump);
- if (duplicate) {
- state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
- }
- }
- } else if (type === '[object String]') {
- if (state.tag !== '?') {
- writeScalar(state, state.dump, level, iskey, inblock);
- }
- } else if (type === '[object Undefined]') {
- return false;
- } else {
- if (state.skipInvalid) return false;
- throw new YAMLException('unacceptable kind of an object to dump ' + type);
- }
-
- if (state.tag !== null && state.tag !== '?') {
- // Need to encode all characters except those allowed by the spec:
- //
- // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
- // [36] ns-hex-digit ::= ns-dec-digit
- // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
- // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
- // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
- // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
- // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
- // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
- //
- // Also need to encode '!' because it has special meaning (end of tag prefix).
- //
- tagStr = encodeURI(
- state.tag[0] === '!' ? state.tag.slice(1) : state.tag
- ).replace(/!/g, '%21');
-
- if (state.tag[0] === '!') {
- tagStr = '!' + tagStr;
- } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
- tagStr = '!!' + tagStr.slice(18);
- } else {
- tagStr = '!<' + tagStr + '>';
- }
-
- state.dump = tagStr + ' ' + state.dump;
- }
- }
-
- return true;
-}
-
-function getDuplicateReferences(object, state) {
- var objects = [],
- duplicatesIndexes = [],
- index,
- length;
-
- inspectNode(object, objects, duplicatesIndexes);
-
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
- state.duplicates.push(objects[duplicatesIndexes[index]]);
- }
- state.usedDuplicates = new Array(length);
-}
-
-function inspectNode(object, objects, duplicatesIndexes) {
- var objectKeyList,
- index,
- length;
-
- if (object !== null && typeof object === 'object') {
- index = objects.indexOf(object);
- if (index !== -1) {
- if (duplicatesIndexes.indexOf(index) === -1) {
- duplicatesIndexes.push(index);
- }
- } else {
- objects.push(object);
-
- if (Array.isArray(object)) {
- for (index = 0, length = object.length; index < length; index += 1) {
- inspectNode(object[index], objects, duplicatesIndexes);
- }
- } else {
- objectKeyList = Object.keys(object);
-
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
- inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
- }
- }
- }
- }
-}
-
-function dump(input, options) {
- options = options || {};
-
- var state = new State(options);
-
- if (!state.noRefs) getDuplicateReferences(input, state);
-
- var value = input;
-
- if (state.replacer) {
- value = state.replacer.call({ '': value }, '', value);
- }
-
- if (writeNode(state, 0, value, true, true)) return state.dump + '\n';
-
- return '';
-}
-
-module.exports.dump = dump;
-
-
-/***/ }),
-
-/***/ 68179:
-/***/ ((module) => {
-
-"use strict";
-// YAML error class. http://stackoverflow.com/questions/8458984
-//
-
-
-
-function formatError(exception, compact) {
- var where = '', message = exception.reason || '(unknown reason)';
-
- if (!exception.mark) return message;
-
- if (exception.mark.name) {
- where += 'in "' + exception.mark.name + '" ';
- }
-
- where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
-
- if (!compact && exception.mark.snippet) {
- where += '\n\n' + exception.mark.snippet;
- }
-
- return message + ' ' + where;
-}
-
-
-function YAMLException(reason, mark) {
- // Super constructor
- Error.call(this);
-
- this.name = 'YAMLException';
- this.reason = reason;
- this.mark = mark;
- this.message = formatError(this, false);
-
- // Include stack trace in error object
- if (Error.captureStackTrace) {
- // Chrome and NodeJS
- Error.captureStackTrace(this, this.constructor);
- } else {
- // FF, IE 10+ and Safari 6+. Fallback for others
- this.stack = (new Error()).stack || '';
- }
-}
-
-
-// Inherit from Error
-YAMLException.prototype = Object.create(Error.prototype);
-YAMLException.prototype.constructor = YAMLException;
-
-
-YAMLException.prototype.toString = function toString(compact) {
- return this.name + ': ' + formatError(this, compact);
-};
-
-
-module.exports = YAMLException;
-
-
-/***/ }),
-
-/***/ 51161:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-/*eslint-disable max-len,no-use-before-define*/
-
-var common = __nccwpck_require__(26829);
-var YAMLException = __nccwpck_require__(68179);
-var makeSnippet = __nccwpck_require__(96975);
-var DEFAULT_SCHEMA = __nccwpck_require__(18759);
-
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-
-var CONTEXT_FLOW_IN = 1;
-var CONTEXT_FLOW_OUT = 2;
-var CONTEXT_BLOCK_IN = 3;
-var CONTEXT_BLOCK_OUT = 4;
-
-
-var CHOMPING_CLIP = 1;
-var CHOMPING_STRIP = 2;
-var CHOMPING_KEEP = 3;
-
-
-var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
-var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
-var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
-var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
-var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
-
-
-function _class(obj) { return Object.prototype.toString.call(obj); }
-
-function is_EOL(c) {
- return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
-}
-
-function is_WHITE_SPACE(c) {
- return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
-}
-
-function is_WS_OR_EOL(c) {
- return (c === 0x09/* Tab */) ||
- (c === 0x20/* Space */) ||
- (c === 0x0A/* LF */) ||
- (c === 0x0D/* CR */);
-}
-
-function is_FLOW_INDICATOR(c) {
- return c === 0x2C/* , */ ||
- c === 0x5B/* [ */ ||
- c === 0x5D/* ] */ ||
- c === 0x7B/* { */ ||
- c === 0x7D/* } */;
-}
-
-function fromHexCode(c) {
- var lc;
-
- if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
- return c - 0x30;
- }
-
- /*eslint-disable no-bitwise*/
- lc = c | 0x20;
-
- if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
- return lc - 0x61 + 10;
- }
-
- return -1;
-}
-
-function escapedHexLen(c) {
- if (c === 0x78/* x */) { return 2; }
- if (c === 0x75/* u */) { return 4; }
- if (c === 0x55/* U */) { return 8; }
- return 0;
-}
-
-function fromDecimalCode(c) {
- if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
- return c - 0x30;
- }
-
- return -1;
-}
-
-function simpleEscapeSequence(c) {
- /* eslint-disable indent */
- return (c === 0x30/* 0 */) ? '\x00' :
- (c === 0x61/* a */) ? '\x07' :
- (c === 0x62/* b */) ? '\x08' :
- (c === 0x74/* t */) ? '\x09' :
- (c === 0x09/* Tab */) ? '\x09' :
- (c === 0x6E/* n */) ? '\x0A' :
- (c === 0x76/* v */) ? '\x0B' :
- (c === 0x66/* f */) ? '\x0C' :
- (c === 0x72/* r */) ? '\x0D' :
- (c === 0x65/* e */) ? '\x1B' :
- (c === 0x20/* Space */) ? ' ' :
- (c === 0x22/* " */) ? '\x22' :
- (c === 0x2F/* / */) ? '/' :
- (c === 0x5C/* \ */) ? '\x5C' :
- (c === 0x4E/* N */) ? '\x85' :
- (c === 0x5F/* _ */) ? '\xA0' :
- (c === 0x4C/* L */) ? '\u2028' :
- (c === 0x50/* P */) ? '\u2029' : '';
-}
-
-function charFromCodepoint(c) {
- if (c <= 0xFFFF) {
- return String.fromCharCode(c);
- }
- // Encode UTF-16 surrogate pair
- // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
- return String.fromCharCode(
- ((c - 0x010000) >> 10) + 0xD800,
- ((c - 0x010000) & 0x03FF) + 0xDC00
- );
-}
-
-var simpleEscapeCheck = new Array(256); // integer, for fast access
-var simpleEscapeMap = new Array(256);
-for (var i = 0; i < 256; i++) {
- simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
- simpleEscapeMap[i] = simpleEscapeSequence(i);
-}
-
-
-function State(input, options) {
- this.input = input;
-
- this.filename = options['filename'] || null;
- this.schema = options['schema'] || DEFAULT_SCHEMA;
- this.onWarning = options['onWarning'] || null;
- // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
- // if such documents have no explicit %YAML directive
- this.legacy = options['legacy'] || false;
-
- this.json = options['json'] || false;
- this.listener = options['listener'] || null;
-
- this.implicitTypes = this.schema.compiledImplicit;
- this.typeMap = this.schema.compiledTypeMap;
-
- this.length = input.length;
- this.position = 0;
- this.line = 0;
- this.lineStart = 0;
- this.lineIndent = 0;
-
- // position of first leading tab in the current line,
- // used to make sure there are no tabs in the indentation
- this.firstTabInLine = -1;
-
- this.documents = [];
-
- /*
- this.version;
- this.checkLineBreaks;
- this.tagMap;
- this.anchorMap;
- this.tag;
- this.anchor;
- this.kind;
- this.result;*/
-
-}
-
-
-function generateError(state, message) {
- var mark = {
- name: state.filename,
- buffer: state.input.slice(0, -1), // omit trailing \0
- position: state.position,
- line: state.line,
- column: state.position - state.lineStart
- };
-
- mark.snippet = makeSnippet(mark);
-
- return new YAMLException(message, mark);
-}
-
-function throwError(state, message) {
- throw generateError(state, message);
-}
-
-function throwWarning(state, message) {
- if (state.onWarning) {
- state.onWarning.call(null, generateError(state, message));
- }
-}
-
-
-var directiveHandlers = {
-
- YAML: function handleYamlDirective(state, name, args) {
-
- var match, major, minor;
-
- if (state.version !== null) {
- throwError(state, 'duplication of %YAML directive');
- }
-
- if (args.length !== 1) {
- throwError(state, 'YAML directive accepts exactly one argument');
- }
-
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
-
- if (match === null) {
- throwError(state, 'ill-formed argument of the YAML directive');
- }
-
- major = parseInt(match[1], 10);
- minor = parseInt(match[2], 10);
-
- if (major !== 1) {
- throwError(state, 'unacceptable YAML version of the document');
- }
-
- state.version = args[0];
- state.checkLineBreaks = (minor < 2);
-
- if (minor !== 1 && minor !== 2) {
- throwWarning(state, 'unsupported YAML version of the document');
- }
- },
-
- TAG: function handleTagDirective(state, name, args) {
-
- var handle, prefix;
-
- if (args.length !== 2) {
- throwError(state, 'TAG directive accepts exactly two arguments');
- }
-
- handle = args[0];
- prefix = args[1];
-
- if (!PATTERN_TAG_HANDLE.test(handle)) {
- throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
- }
-
- if (_hasOwnProperty.call(state.tagMap, handle)) {
- throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
- }
-
- if (!PATTERN_TAG_URI.test(prefix)) {
- throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
- }
-
- try {
- prefix = decodeURIComponent(prefix);
- } catch (err) {
- throwError(state, 'tag prefix is malformed: ' + prefix);
- }
-
- state.tagMap[handle] = prefix;
- }
-};
-
-
-function captureSegment(state, start, end, checkJson) {
- var _position, _length, _character, _result;
-
- if (start < end) {
- _result = state.input.slice(start, end);
-
- if (checkJson) {
- for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
- _character = _result.charCodeAt(_position);
- if (!(_character === 0x09 ||
- (0x20 <= _character && _character <= 0x10FFFF))) {
- throwError(state, 'expected valid JSON character');
- }
- }
- } else if (PATTERN_NON_PRINTABLE.test(_result)) {
- throwError(state, 'the stream contains non-printable characters');
- }
-
- state.result += _result;
- }
-}
-
-function mergeMappings(state, destination, source, overridableKeys) {
- var sourceKeys, key, index, quantity;
-
- if (!common.isObject(source)) {
- throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
- }
-
- sourceKeys = Object.keys(source);
-
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
- key = sourceKeys[index];
-
- if (!_hasOwnProperty.call(destination, key)) {
- destination[key] = source[key];
- overridableKeys[key] = true;
- }
- }
-}
-
-function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,
- startLine, startLineStart, startPos) {
-
- var index, quantity;
-
- // The output is a plain object here, so keys can only be strings.
- // We need to convert keyNode to a string, but doing so can hang the process
- // (deeply nested arrays that explode exponentially using aliases).
- if (Array.isArray(keyNode)) {
- keyNode = Array.prototype.slice.call(keyNode);
-
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
- if (Array.isArray(keyNode[index])) {
- throwError(state, 'nested arrays are not supported inside keys');
- }
-
- if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
- keyNode[index] = '[object Object]';
- }
- }
- }
-
- // Avoid code execution in load() via toString property
- // (still use its own toString for arrays, timestamps,
- // and whatever user schema extensions happen to have @@toStringTag)
- if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
- keyNode = '[object Object]';
- }
-
-
- keyNode = String(keyNode);
-
- if (_result === null) {
- _result = {};
- }
-
- if (keyTag === 'tag:yaml.org,2002:merge') {
- if (Array.isArray(valueNode)) {
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
- mergeMappings(state, _result, valueNode[index], overridableKeys);
- }
- } else {
- mergeMappings(state, _result, valueNode, overridableKeys);
- }
- } else {
- if (!state.json &&
- !_hasOwnProperty.call(overridableKeys, keyNode) &&
- _hasOwnProperty.call(_result, keyNode)) {
- state.line = startLine || state.line;
- state.lineStart = startLineStart || state.lineStart;
- state.position = startPos || state.position;
- throwError(state, 'duplicated mapping key');
- }
-
- // used for this specific key only because Object.defineProperty is slow
- if (keyNode === '__proto__') {
- Object.defineProperty(_result, keyNode, {
- configurable: true,
- enumerable: true,
- writable: true,
- value: valueNode
- });
- } else {
- _result[keyNode] = valueNode;
- }
- delete overridableKeys[keyNode];
- }
-
- return _result;
-}
-
-function readLineBreak(state) {
- var ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch === 0x0A/* LF */) {
- state.position++;
- } else if (ch === 0x0D/* CR */) {
- state.position++;
- if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
- state.position++;
- }
- } else {
- throwError(state, 'a line break is expected');
- }
-
- state.line += 1;
- state.lineStart = state.position;
- state.firstTabInLine = -1;
-}
-
-function skipSeparationSpace(state, allowComments, checkIndent) {
- var lineBreaks = 0,
- ch = state.input.charCodeAt(state.position);
-
- while (ch !== 0) {
- while (is_WHITE_SPACE(ch)) {
- if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
- state.firstTabInLine = state.position;
- }
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (allowComments && ch === 0x23/* # */) {
- do {
- ch = state.input.charCodeAt(++state.position);
- } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
- }
-
- if (is_EOL(ch)) {
- readLineBreak(state);
-
- ch = state.input.charCodeAt(state.position);
- lineBreaks++;
- state.lineIndent = 0;
-
- while (ch === 0x20/* Space */) {
- state.lineIndent++;
- ch = state.input.charCodeAt(++state.position);
- }
- } else {
- break;
- }
- }
-
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
- throwWarning(state, 'deficient indentation');
- }
-
- return lineBreaks;
-}
-
-function testDocumentSeparator(state) {
- var _position = state.position,
- ch;
-
- ch = state.input.charCodeAt(_position);
-
- // Condition state.position === state.lineStart is tested
- // in parent on each call, for efficiency. No needs to test here again.
- if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
- ch === state.input.charCodeAt(_position + 1) &&
- ch === state.input.charCodeAt(_position + 2)) {
-
- _position += 3;
-
- ch = state.input.charCodeAt(_position);
-
- if (ch === 0 || is_WS_OR_EOL(ch)) {
- return true;
- }
- }
-
- return false;
-}
-
-function writeFoldedLines(state, count) {
- if (count === 1) {
- state.result += ' ';
- } else if (count > 1) {
- state.result += common.repeat('\n', count - 1);
- }
-}
-
-
-function readPlainScalar(state, nodeIndent, withinFlowCollection) {
- var preceding,
- following,
- captureStart,
- captureEnd,
- hasPendingContent,
- _line,
- _lineStart,
- _lineIndent,
- _kind = state.kind,
- _result = state.result,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (is_WS_OR_EOL(ch) ||
- is_FLOW_INDICATOR(ch) ||
- ch === 0x23/* # */ ||
- ch === 0x26/* & */ ||
- ch === 0x2A/* * */ ||
- ch === 0x21/* ! */ ||
- ch === 0x7C/* | */ ||
- ch === 0x3E/* > */ ||
- ch === 0x27/* ' */ ||
- ch === 0x22/* " */ ||
- ch === 0x25/* % */ ||
- ch === 0x40/* @ */ ||
- ch === 0x60/* ` */) {
- return false;
- }
-
- if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
- following = state.input.charCodeAt(state.position + 1);
-
- if (is_WS_OR_EOL(following) ||
- withinFlowCollection && is_FLOW_INDICATOR(following)) {
- return false;
- }
- }
-
- state.kind = 'scalar';
- state.result = '';
- captureStart = captureEnd = state.position;
- hasPendingContent = false;
-
- while (ch !== 0) {
- if (ch === 0x3A/* : */) {
- following = state.input.charCodeAt(state.position + 1);
-
- if (is_WS_OR_EOL(following) ||
- withinFlowCollection && is_FLOW_INDICATOR(following)) {
- break;
- }
-
- } else if (ch === 0x23/* # */) {
- preceding = state.input.charCodeAt(state.position - 1);
-
- if (is_WS_OR_EOL(preceding)) {
- break;
- }
-
- } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
- withinFlowCollection && is_FLOW_INDICATOR(ch)) {
- break;
-
- } else if (is_EOL(ch)) {
- _line = state.line;
- _lineStart = state.lineStart;
- _lineIndent = state.lineIndent;
- skipSeparationSpace(state, false, -1);
-
- if (state.lineIndent >= nodeIndent) {
- hasPendingContent = true;
- ch = state.input.charCodeAt(state.position);
- continue;
- } else {
- state.position = captureEnd;
- state.line = _line;
- state.lineStart = _lineStart;
- state.lineIndent = _lineIndent;
- break;
- }
- }
-
- if (hasPendingContent) {
- captureSegment(state, captureStart, captureEnd, false);
- writeFoldedLines(state, state.line - _line);
- captureStart = captureEnd = state.position;
- hasPendingContent = false;
- }
-
- if (!is_WHITE_SPACE(ch)) {
- captureEnd = state.position + 1;
- }
-
- ch = state.input.charCodeAt(++state.position);
- }
-
- captureSegment(state, captureStart, captureEnd, false);
-
- if (state.result) {
- return true;
- }
-
- state.kind = _kind;
- state.result = _result;
- return false;
-}
-
-function readSingleQuotedScalar(state, nodeIndent) {
- var ch,
- captureStart, captureEnd;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch !== 0x27/* ' */) {
- return false;
- }
-
- state.kind = 'scalar';
- state.result = '';
- state.position++;
- captureStart = captureEnd = state.position;
-
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
- if (ch === 0x27/* ' */) {
- captureSegment(state, captureStart, state.position, true);
- ch = state.input.charCodeAt(++state.position);
-
- if (ch === 0x27/* ' */) {
- captureStart = state.position;
- state.position++;
- captureEnd = state.position;
- } else {
- return true;
- }
-
- } else if (is_EOL(ch)) {
- captureSegment(state, captureStart, captureEnd, true);
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
- captureStart = captureEnd = state.position;
-
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
- throwError(state, 'unexpected end of the document within a single quoted scalar');
-
- } else {
- state.position++;
- captureEnd = state.position;
- }
- }
-
- throwError(state, 'unexpected end of the stream within a single quoted scalar');
-}
-
-function readDoubleQuotedScalar(state, nodeIndent) {
- var captureStart,
- captureEnd,
- hexLength,
- hexResult,
- tmp,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch !== 0x22/* " */) {
- return false;
- }
-
- state.kind = 'scalar';
- state.result = '';
- state.position++;
- captureStart = captureEnd = state.position;
-
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
- if (ch === 0x22/* " */) {
- captureSegment(state, captureStart, state.position, true);
- state.position++;
- return true;
-
- } else if (ch === 0x5C/* \ */) {
- captureSegment(state, captureStart, state.position, true);
- ch = state.input.charCodeAt(++state.position);
-
- if (is_EOL(ch)) {
- skipSeparationSpace(state, false, nodeIndent);
-
- // TODO: rework to inline fn with no type cast?
- } else if (ch < 256 && simpleEscapeCheck[ch]) {
- state.result += simpleEscapeMap[ch];
- state.position++;
-
- } else if ((tmp = escapedHexLen(ch)) > 0) {
- hexLength = tmp;
- hexResult = 0;
-
- for (; hexLength > 0; hexLength--) {
- ch = state.input.charCodeAt(++state.position);
-
- if ((tmp = fromHexCode(ch)) >= 0) {
- hexResult = (hexResult << 4) + tmp;
-
- } else {
- throwError(state, 'expected hexadecimal character');
- }
- }
-
- state.result += charFromCodepoint(hexResult);
-
- state.position++;
-
- } else {
- throwError(state, 'unknown escape sequence');
- }
-
- captureStart = captureEnd = state.position;
-
- } else if (is_EOL(ch)) {
- captureSegment(state, captureStart, captureEnd, true);
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
- captureStart = captureEnd = state.position;
-
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
- throwError(state, 'unexpected end of the document within a double quoted scalar');
-
- } else {
- state.position++;
- captureEnd = state.position;
- }
- }
-
- throwError(state, 'unexpected end of the stream within a double quoted scalar');
-}
-
-function readFlowCollection(state, nodeIndent) {
- var readNext = true,
- _line,
- _lineStart,
- _pos,
- _tag = state.tag,
- _result,
- _anchor = state.anchor,
- following,
- terminator,
- isPair,
- isExplicitPair,
- isMapping,
- overridableKeys = Object.create(null),
- keyNode,
- keyTag,
- valueNode,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch === 0x5B/* [ */) {
- terminator = 0x5D;/* ] */
- isMapping = false;
- _result = [];
- } else if (ch === 0x7B/* { */) {
- terminator = 0x7D;/* } */
- isMapping = true;
- _result = {};
- } else {
- return false;
- }
-
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = _result;
- }
-
- ch = state.input.charCodeAt(++state.position);
-
- while (ch !== 0) {
- skipSeparationSpace(state, true, nodeIndent);
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch === terminator) {
- state.position++;
- state.tag = _tag;
- state.anchor = _anchor;
- state.kind = isMapping ? 'mapping' : 'sequence';
- state.result = _result;
- return true;
- } else if (!readNext) {
- throwError(state, 'missed comma between flow collection entries');
- } else if (ch === 0x2C/* , */) {
- // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
- throwError(state, "expected the node content, but found ','");
- }
-
- keyTag = keyNode = valueNode = null;
- isPair = isExplicitPair = false;
-
- if (ch === 0x3F/* ? */) {
- following = state.input.charCodeAt(state.position + 1);
-
- if (is_WS_OR_EOL(following)) {
- isPair = isExplicitPair = true;
- state.position++;
- skipSeparationSpace(state, true, nodeIndent);
- }
- }
-
- _line = state.line; // Save the current line.
- _lineStart = state.lineStart;
- _pos = state.position;
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
- keyTag = state.tag;
- keyNode = state.result;
- skipSeparationSpace(state, true, nodeIndent);
-
- ch = state.input.charCodeAt(state.position);
-
- if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
- isPair = true;
- ch = state.input.charCodeAt(++state.position);
- skipSeparationSpace(state, true, nodeIndent);
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
- valueNode = state.result;
- }
-
- if (isMapping) {
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
- } else if (isPair) {
- _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
- } else {
- _result.push(keyNode);
- }
-
- skipSeparationSpace(state, true, nodeIndent);
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch === 0x2C/* , */) {
- readNext = true;
- ch = state.input.charCodeAt(++state.position);
- } else {
- readNext = false;
- }
- }
-
- throwError(state, 'unexpected end of the stream within a flow collection');
-}
-
-function readBlockScalar(state, nodeIndent) {
- var captureStart,
- folding,
- chomping = CHOMPING_CLIP,
- didReadContent = false,
- detectedIndent = false,
- textIndent = nodeIndent,
- emptyLines = 0,
- atMoreIndented = false,
- tmp,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch === 0x7C/* | */) {
- folding = false;
- } else if (ch === 0x3E/* > */) {
- folding = true;
- } else {
- return false;
- }
-
- state.kind = 'scalar';
- state.result = '';
-
- while (ch !== 0) {
- ch = state.input.charCodeAt(++state.position);
-
- if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
- if (CHOMPING_CLIP === chomping) {
- chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
- } else {
- throwError(state, 'repeat of a chomping mode identifier');
- }
-
- } else if ((tmp = fromDecimalCode(ch)) >= 0) {
- if (tmp === 0) {
- throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
- } else if (!detectedIndent) {
- textIndent = nodeIndent + tmp - 1;
- detectedIndent = true;
- } else {
- throwError(state, 'repeat of an indentation width identifier');
- }
-
- } else {
- break;
- }
- }
-
- if (is_WHITE_SPACE(ch)) {
- do { ch = state.input.charCodeAt(++state.position); }
- while (is_WHITE_SPACE(ch));
-
- if (ch === 0x23/* # */) {
- do { ch = state.input.charCodeAt(++state.position); }
- while (!is_EOL(ch) && (ch !== 0));
- }
- }
-
- while (ch !== 0) {
- readLineBreak(state);
- state.lineIndent = 0;
-
- ch = state.input.charCodeAt(state.position);
-
- while ((!detectedIndent || state.lineIndent < textIndent) &&
- (ch === 0x20/* Space */)) {
- state.lineIndent++;
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (!detectedIndent && state.lineIndent > textIndent) {
- textIndent = state.lineIndent;
- }
-
- if (is_EOL(ch)) {
- emptyLines++;
- continue;
- }
-
- // End of the scalar.
- if (state.lineIndent < textIndent) {
-
- // Perform the chomping.
- if (chomping === CHOMPING_KEEP) {
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
- } else if (chomping === CHOMPING_CLIP) {
- if (didReadContent) { // i.e. only if the scalar is not empty.
- state.result += '\n';
- }
- }
-
- // Break this `while` cycle and go to the funciton's epilogue.
- break;
- }
-
- // Folded style: use fancy rules to handle line breaks.
- if (folding) {
-
- // Lines starting with white space characters (more-indented lines) are not folded.
- if (is_WHITE_SPACE(ch)) {
- atMoreIndented = true;
- // except for the first content line (cf. Example 8.1)
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
-
- // End of more-indented block.
- } else if (atMoreIndented) {
- atMoreIndented = false;
- state.result += common.repeat('\n', emptyLines + 1);
-
- // Just one line break - perceive as the same line.
- } else if (emptyLines === 0) {
- if (didReadContent) { // i.e. only if we have already read some scalar content.
- state.result += ' ';
- }
-
- // Several line breaks - perceive as different lines.
- } else {
- state.result += common.repeat('\n', emptyLines);
- }
-
- // Literal style: just add exact number of line breaks between content lines.
- } else {
- // Keep all line breaks except the header line break.
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
- }
-
- didReadContent = true;
- detectedIndent = true;
- emptyLines = 0;
- captureStart = state.position;
-
- while (!is_EOL(ch) && (ch !== 0)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- captureSegment(state, captureStart, state.position, false);
- }
-
- return true;
-}
-
-function readBlockSequence(state, nodeIndent) {
- var _line,
- _tag = state.tag,
- _anchor = state.anchor,
- _result = [],
- following,
- detected = false,
- ch;
-
- // there is a leading tab before this token, so it can't be a block sequence/mapping;
- // it can still be flow sequence/mapping or a scalar
- if (state.firstTabInLine !== -1) return false;
-
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = _result;
- }
-
- ch = state.input.charCodeAt(state.position);
-
- while (ch !== 0) {
- if (state.firstTabInLine !== -1) {
- state.position = state.firstTabInLine;
- throwError(state, 'tab characters must not be used in indentation');
- }
-
- if (ch !== 0x2D/* - */) {
- break;
- }
-
- following = state.input.charCodeAt(state.position + 1);
-
- if (!is_WS_OR_EOL(following)) {
- break;
- }
-
- detected = true;
- state.position++;
-
- if (skipSeparationSpace(state, true, -1)) {
- if (state.lineIndent <= nodeIndent) {
- _result.push(null);
- ch = state.input.charCodeAt(state.position);
- continue;
- }
- }
-
- _line = state.line;
- composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
- _result.push(state.result);
- skipSeparationSpace(state, true, -1);
-
- ch = state.input.charCodeAt(state.position);
-
- if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
- throwError(state, 'bad indentation of a sequence entry');
- } else if (state.lineIndent < nodeIndent) {
- break;
- }
- }
-
- if (detected) {
- state.tag = _tag;
- state.anchor = _anchor;
- state.kind = 'sequence';
- state.result = _result;
- return true;
- }
- return false;
-}
-
-function readBlockMapping(state, nodeIndent, flowIndent) {
- var following,
- allowCompact,
- _line,
- _keyLine,
- _keyLineStart,
- _keyPos,
- _tag = state.tag,
- _anchor = state.anchor,
- _result = {},
- overridableKeys = Object.create(null),
- keyTag = null,
- keyNode = null,
- valueNode = null,
- atExplicitKey = false,
- detected = false,
- ch;
-
- // there is a leading tab before this token, so it can't be a block sequence/mapping;
- // it can still be flow sequence/mapping or a scalar
- if (state.firstTabInLine !== -1) return false;
-
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = _result;
- }
-
- ch = state.input.charCodeAt(state.position);
-
- while (ch !== 0) {
- if (!atExplicitKey && state.firstTabInLine !== -1) {
- state.position = state.firstTabInLine;
- throwError(state, 'tab characters must not be used in indentation');
- }
-
- following = state.input.charCodeAt(state.position + 1);
- _line = state.line; // Save the current line.
-
- //
- // Explicit notation case. There are two separate blocks:
- // first for the key (denoted by "?") and second for the value (denoted by ":")
- //
- if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
-
- if (ch === 0x3F/* ? */) {
- if (atExplicitKey) {
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
- keyTag = keyNode = valueNode = null;
- }
-
- detected = true;
- atExplicitKey = true;
- allowCompact = true;
-
- } else if (atExplicitKey) {
- // i.e. 0x3A/* : */ === character after the explicit key.
- atExplicitKey = false;
- allowCompact = true;
-
- } else {
- throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
- }
-
- state.position += 1;
- ch = following;
-
- //
- // Implicit notation case. Flow-style node as the key first, then ":", and the value.
- //
- } else {
- _keyLine = state.line;
- _keyLineStart = state.lineStart;
- _keyPos = state.position;
-
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
- // Neither implicit nor explicit notation.
- // Reading is done. Go to the epilogue.
- break;
- }
-
- if (state.line === _line) {
- ch = state.input.charCodeAt(state.position);
-
- while (is_WHITE_SPACE(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (ch === 0x3A/* : */) {
- ch = state.input.charCodeAt(++state.position);
-
- if (!is_WS_OR_EOL(ch)) {
- throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
- }
-
- if (atExplicitKey) {
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
- keyTag = keyNode = valueNode = null;
- }
-
- detected = true;
- atExplicitKey = false;
- allowCompact = false;
- keyTag = state.tag;
- keyNode = state.result;
-
- } else if (detected) {
- throwError(state, 'can not read an implicit mapping pair; a colon is missed');
-
- } else {
- state.tag = _tag;
- state.anchor = _anchor;
- return true; // Keep the result of `composeNode`.
- }
-
- } else if (detected) {
- throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
-
- } else {
- state.tag = _tag;
- state.anchor = _anchor;
- return true; // Keep the result of `composeNode`.
- }
- }
-
- //
- // Common reading code for both explicit and implicit notations.
- //
- if (state.line === _line || state.lineIndent > nodeIndent) {
- if (atExplicitKey) {
- _keyLine = state.line;
- _keyLineStart = state.lineStart;
- _keyPos = state.position;
- }
-
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
- if (atExplicitKey) {
- keyNode = state.result;
- } else {
- valueNode = state.result;
- }
- }
-
- if (!atExplicitKey) {
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
- keyTag = keyNode = valueNode = null;
- }
-
- skipSeparationSpace(state, true, -1);
- ch = state.input.charCodeAt(state.position);
- }
-
- if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
- throwError(state, 'bad indentation of a mapping entry');
- } else if (state.lineIndent < nodeIndent) {
- break;
- }
- }
-
- //
- // Epilogue.
- //
-
- // Special case: last mapping's node contains only the key in explicit notation.
- if (atExplicitKey) {
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
- }
-
- // Expose the resulting mapping.
- if (detected) {
- state.tag = _tag;
- state.anchor = _anchor;
- state.kind = 'mapping';
- state.result = _result;
- }
-
- return detected;
-}
-
-function readTagProperty(state) {
- var _position,
- isVerbatim = false,
- isNamed = false,
- tagHandle,
- tagName,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch !== 0x21/* ! */) return false;
-
- if (state.tag !== null) {
- throwError(state, 'duplication of a tag property');
- }
-
- ch = state.input.charCodeAt(++state.position);
-
- if (ch === 0x3C/* < */) {
- isVerbatim = true;
- ch = state.input.charCodeAt(++state.position);
-
- } else if (ch === 0x21/* ! */) {
- isNamed = true;
- tagHandle = '!!';
- ch = state.input.charCodeAt(++state.position);
-
- } else {
- tagHandle = '!';
- }
-
- _position = state.position;
-
- if (isVerbatim) {
- do { ch = state.input.charCodeAt(++state.position); }
- while (ch !== 0 && ch !== 0x3E/* > */);
-
- if (state.position < state.length) {
- tagName = state.input.slice(_position, state.position);
- ch = state.input.charCodeAt(++state.position);
- } else {
- throwError(state, 'unexpected end of the stream within a verbatim tag');
- }
- } else {
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
-
- if (ch === 0x21/* ! */) {
- if (!isNamed) {
- tagHandle = state.input.slice(_position - 1, state.position + 1);
-
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
- throwError(state, 'named tag handle cannot contain such characters');
- }
-
- isNamed = true;
- _position = state.position + 1;
- } else {
- throwError(state, 'tag suffix cannot contain exclamation marks');
- }
- }
-
- ch = state.input.charCodeAt(++state.position);
- }
-
- tagName = state.input.slice(_position, state.position);
-
- if (PATTERN_FLOW_INDICATORS.test(tagName)) {
- throwError(state, 'tag suffix cannot contain flow indicator characters');
- }
- }
-
- if (tagName && !PATTERN_TAG_URI.test(tagName)) {
- throwError(state, 'tag name cannot contain such characters: ' + tagName);
- }
-
- try {
- tagName = decodeURIComponent(tagName);
- } catch (err) {
- throwError(state, 'tag name is malformed: ' + tagName);
- }
-
- if (isVerbatim) {
- state.tag = tagName;
-
- } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
- state.tag = state.tagMap[tagHandle] + tagName;
-
- } else if (tagHandle === '!') {
- state.tag = '!' + tagName;
-
- } else if (tagHandle === '!!') {
- state.tag = 'tag:yaml.org,2002:' + tagName;
-
- } else {
- throwError(state, 'undeclared tag handle "' + tagHandle + '"');
- }
-
- return true;
-}
-
-function readAnchorProperty(state) {
- var _position,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch !== 0x26/* & */) return false;
-
- if (state.anchor !== null) {
- throwError(state, 'duplication of an anchor property');
- }
-
- ch = state.input.charCodeAt(++state.position);
- _position = state.position;
-
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (state.position === _position) {
- throwError(state, 'name of an anchor node must contain at least one character');
- }
-
- state.anchor = state.input.slice(_position, state.position);
- return true;
-}
-
-function readAlias(state) {
- var _position, alias,
- ch;
-
- ch = state.input.charCodeAt(state.position);
-
- if (ch !== 0x2A/* * */) return false;
-
- ch = state.input.charCodeAt(++state.position);
- _position = state.position;
-
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (state.position === _position) {
- throwError(state, 'name of an alias node must contain at least one character');
- }
-
- alias = state.input.slice(_position, state.position);
-
- if (!_hasOwnProperty.call(state.anchorMap, alias)) {
- throwError(state, 'unidentified alias "' + alias + '"');
- }
-
- state.result = state.anchorMap[alias];
- skipSeparationSpace(state, true, -1);
- return true;
-}
-
-function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
- var allowBlockStyles,
- allowBlockScalars,
- allowBlockCollections,
- indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {
- indentStatus = 1;
- } else if (state.lineIndent === parentIndent) {
- indentStatus = 0;
- } else if (state.lineIndent < parentIndent) {
- indentStatus = -1;
- }
- }
- }
-
- if (indentStatus === 1) {
- while (readTagProperty(state) || readAnchorProperty(state)) {
- if (skipSeparationSpace(state, true, -1)) {
- atNewLine = true;
- allowBlockCollections = allowBlockStyles;
-
- if (state.lineIndent > parentIndent) {
- indentStatus = 1;
- } else if (state.lineIndent === parentIndent) {
- indentStatus = 0;
- } else if (state.lineIndent < parentIndent) {
- indentStatus = -1;
- }
- } else {
- allowBlockCollections = false;
- }
- }
- }
-
- if (allowBlockCollections) {
- allowBlockCollections = atNewLine || allowCompact;
- }
-
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
- flowIndent = parentIndent;
- } else {
- flowIndent = parentIndent + 1;
- }
-
- blockIndent = state.position - state.lineStart;
-
- if (indentStatus === 1) {
- if (allowBlockCollections &&
- (readBlockSequence(state, blockIndent) ||
- readBlockMapping(state, blockIndent, flowIndent)) ||
- readFlowCollection(state, flowIndent)) {
- hasContent = true;
- } else {
- if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
- readSingleQuotedScalar(state, flowIndent) ||
- readDoubleQuotedScalar(state, flowIndent)) {
- hasContent = true;
-
- } else if (readAlias(state)) {
- hasContent = true;
-
- if (state.tag !== null || state.anchor !== null) {
- throwError(state, 'alias node should not have any properties');
- }
-
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
- hasContent = true;
-
- if (state.tag === null) {
- state.tag = '?';
- }
- }
-
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = state.result;
- }
- }
- } else if (indentStatus === 0) {
- // Special case: block sequences are allowed to have same indentation level as the parent.
- // http://www.yaml.org/spec/1.2/spec.html#id2799784
- hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
- }
- }
-
- if (state.tag === null) {
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = state.result;
- }
-
- } else if (state.tag === '?') {
- // Implicit resolving is not allowed for non-scalar types, and '?'
- // non-specific tag is only automatically assigned to plain scalars.
- //
- // We only need to check kind conformity in case user explicitly assigns '?'
- // tag, for example like this: "!> [0]"
- //
- if (state.result !== null && state.kind !== 'scalar') {
- throwError(state, 'unacceptable node kind for !> tag; it should be "scalar", not "' + state.kind + '"');
- }
-
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
- type = state.implicitTypes[typeIndex];
-
- if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
- state.result = type.construct(state.result);
- state.tag = type.tag;
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = state.result;
- }
- break;
- }
- }
- } else if (state.tag !== '!') {
- if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
- type = state.typeMap[state.kind || 'fallback'][state.tag];
- } else {
- // looking for multi type
- type = null;
- typeList = state.typeMap.multi[state.kind || 'fallback'];
-
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
- if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
- type = typeList[typeIndex];
- break;
- }
- }
- }
-
- if (!type) {
- throwError(state, 'unknown tag !<' + state.tag + '>');
- }
-
- if (state.result !== null && type.kind !== state.kind) {
- throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
- }
-
- if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
- throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
- } else {
- state.result = type.construct(state.result, state.tag);
- if (state.anchor !== null) {
- state.anchorMap[state.anchor] = state.result;
- }
- }
- }
-
- if (state.listener !== null) {
- state.listener('close', state);
- }
- return state.tag !== null || state.anchor !== null || hasContent;
-}
-
-function readDocument(state) {
- var documentStart = state.position,
- _position,
- directiveName,
- directiveArgs,
- hasDirectives = false,
- ch;
-
- state.version = null;
- state.checkLineBreaks = state.legacy;
- state.tagMap = Object.create(null);
- state.anchorMap = Object.create(null);
-
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
- skipSeparationSpace(state, true, -1);
-
- ch = state.input.charCodeAt(state.position);
-
- if (state.lineIndent > 0 || ch !== 0x25/* % */) {
- break;
- }
-
- hasDirectives = true;
- ch = state.input.charCodeAt(++state.position);
- _position = state.position;
-
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- directiveName = state.input.slice(_position, state.position);
- directiveArgs = [];
-
- if (directiveName.length < 1) {
- throwError(state, 'directive name must not be less than one character in length');
- }
-
- while (ch !== 0) {
- while (is_WHITE_SPACE(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- if (ch === 0x23/* # */) {
- do { ch = state.input.charCodeAt(++state.position); }
- while (ch !== 0 && !is_EOL(ch));
- break;
- }
-
- if (is_EOL(ch)) break;
-
- _position = state.position;
-
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
- ch = state.input.charCodeAt(++state.position);
- }
-
- directiveArgs.push(state.input.slice(_position, state.position));
- }
-
- if (ch !== 0) readLineBreak(state);
-
- if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
- directiveHandlers[directiveName](state, directiveName, directiveArgs);
- } else {
- throwWarning(state, 'unknown document directive "' + directiveName + '"');
- }
- }
-
- skipSeparationSpace(state, true, -1);
-
- if (state.lineIndent === 0 &&
- state.input.charCodeAt(state.position) === 0x2D/* - */ &&
- state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
- state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
- state.position += 3;
- skipSeparationSpace(state, true, -1);
-
- } else if (hasDirectives) {
- throwError(state, 'directives end mark is expected');
- }
-
- composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
- skipSeparationSpace(state, true, -1);
-
- if (state.checkLineBreaks &&
- PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
- throwWarning(state, 'non-ASCII line breaks are interpreted as content');
- }
-
- state.documents.push(state.result);
-
- if (state.position === state.lineStart && testDocumentSeparator(state)) {
-
- if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
- state.position += 3;
- skipSeparationSpace(state, true, -1);
- }
- return;
- }
-
- if (state.position < (state.length - 1)) {
- throwError(state, 'end of the stream or a document separator is expected');
- } else {
- return;
- }
-}
-
-
-function loadDocuments(input, options) {
- input = String(input);
- options = options || {};
-
- if (input.length !== 0) {
-
- // Add tailing `\n` if not exists
- if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
- input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
- input += '\n';
- }
-
- // Strip BOM
- if (input.charCodeAt(0) === 0xFEFF) {
- input = input.slice(1);
- }
- }
-
- var state = new State(input, options);
-
- var nullpos = input.indexOf('\0');
-
- if (nullpos !== -1) {
- state.position = nullpos;
- throwError(state, 'null byte is not allowed in input');
- }
-
- // Use 0 as string terminator. That significantly simplifies bounds check.
- state.input += '\0';
-
- while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
- state.lineIndent += 1;
- state.position += 1;
- }
-
- while (state.position < (state.length - 1)) {
- readDocument(state);
- }
-
- return state.documents;
-}
-
-
-function loadAll(input, iterator, options) {
- if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
- options = iterator;
- iterator = null;
- }
-
- var documents = loadDocuments(input, options);
-
- if (typeof iterator !== 'function') {
- return documents;
- }
-
- for (var index = 0, length = documents.length; index < length; index += 1) {
- iterator(documents[index]);
- }
-}
-
-
-function load(input, options) {
- var documents = loadDocuments(input, options);
-
- if (documents.length === 0) {
- /*eslint-disable no-undefined*/
- return undefined;
- } else if (documents.length === 1) {
- return documents[0];
- }
- throw new YAMLException('expected a single document in the stream, but found more');
-}
-
-
-module.exports.loadAll = loadAll;
-module.exports.load = load;
-
-
-/***/ }),
-
-/***/ 21082:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-/*eslint-disable max-len*/
-
-var YAMLException = __nccwpck_require__(68179);
-var Type = __nccwpck_require__(6073);
-
-
-function compileList(schema, name) {
- var result = [];
-
- schema[name].forEach(function (currentType) {
- var newIndex = result.length;
-
- result.forEach(function (previousType, previousIndex) {
- if (previousType.tag === currentType.tag &&
- previousType.kind === currentType.kind &&
- previousType.multi === currentType.multi) {
-
- newIndex = previousIndex;
- }
- });
-
- result[newIndex] = currentType;
- });
-
- return result;
-}
-
-
-function compileMap(/* lists... */) {
- var result = {
- scalar: {},
- sequence: {},
- mapping: {},
- fallback: {},
- multi: {
- scalar: [],
- sequence: [],
- mapping: [],
- fallback: []
- }
- }, index, length;
-
- function collectType(type) {
- if (type.multi) {
- result.multi[type.kind].push(type);
- result.multi['fallback'].push(type);
- } else {
- result[type.kind][type.tag] = result['fallback'][type.tag] = type;
- }
- }
-
- for (index = 0, length = arguments.length; index < length; index += 1) {
- arguments[index].forEach(collectType);
- }
- return result;
-}
-
-
-function Schema(definition) {
- return this.extend(definition);
-}
-
-
-Schema.prototype.extend = function extend(definition) {
- var implicit = [];
- var explicit = [];
-
- if (definition instanceof Type) {
- // Schema.extend(type)
- explicit.push(definition);
-
- } else if (Array.isArray(definition)) {
- // Schema.extend([ type1, type2, ... ])
- explicit = explicit.concat(definition);
-
- } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
- // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
- if (definition.implicit) implicit = implicit.concat(definition.implicit);
- if (definition.explicit) explicit = explicit.concat(definition.explicit);
-
- } else {
- throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' +
- 'or a schema definition ({ implicit: [...], explicit: [...] })');
- }
-
- implicit.forEach(function (type) {
- if (!(type instanceof Type)) {
- throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
- }
-
- if (type.loadKind && type.loadKind !== 'scalar') {
- throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
- }
-
- if (type.multi) {
- throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
- }
- });
-
- explicit.forEach(function (type) {
- if (!(type instanceof Type)) {
- throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
- }
- });
-
- var result = Object.create(Schema.prototype);
-
- result.implicit = (this.implicit || []).concat(implicit);
- result.explicit = (this.explicit || []).concat(explicit);
-
- result.compiledImplicit = compileList(result, 'implicit');
- result.compiledExplicit = compileList(result, 'explicit');
- result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
-
- return result;
-};
-
-
-module.exports = Schema;
-
-
-/***/ }),
-
-/***/ 12011:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-// Standard YAML's Core schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2804923
-//
-// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
-// So, Core schema has no distinctions from JSON schema is JS-YAML.
-
-
-
-
-
-module.exports = __nccwpck_require__(1035);
-
-
-/***/ }),
-
-/***/ 18759:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-// JS-YAML's default schema for `safeLoad` function.
-// It is not described in the YAML specification.
-//
-// This schema is based on standard YAML's Core schema and includes most of
-// extra types described at YAML tag repository. (http://yaml.org/type/)
-
-
-
-
-
-module.exports = (__nccwpck_require__(12011).extend)({
- implicit: [
- __nccwpck_require__(99212),
- __nccwpck_require__(86104)
- ],
- explicit: [
- __nccwpck_require__(77900),
- __nccwpck_require__(19046),
- __nccwpck_require__(96860),
- __nccwpck_require__(79548)
- ]
-});
-
-
-/***/ }),
-
-/***/ 28562:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-// Standard YAML's Failsafe schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2802346
-
-
-
-
-
-var Schema = __nccwpck_require__(21082);
-
-
-module.exports = new Schema({
- explicit: [
- __nccwpck_require__(23619),
- __nccwpck_require__(67283),
- __nccwpck_require__(86150)
- ]
-});
-
-
-/***/ }),
-
-/***/ 1035:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-// Standard YAML's JSON schema.
-// http://www.yaml.org/spec/1.2/spec.html#id2803231
-//
-// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
-// So, this schema is not such strict as defined in the YAML specification.
-// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
-
-
-
-
-
-module.exports = (__nccwpck_require__(28562).extend)({
- implicit: [
- __nccwpck_require__(20721),
- __nccwpck_require__(64993),
- __nccwpck_require__(11615),
- __nccwpck_require__(42705)
- ]
-});
-
-
-/***/ }),
-
-/***/ 96975:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-
-var common = __nccwpck_require__(26829);
-
-
-// get snippet for a single line, respecting maxLength
-function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
- var head = '';
- var tail = '';
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
-
- if (position - lineStart > maxHalfLength) {
- head = ' ... ';
- lineStart = position - maxHalfLength + head.length;
- }
-
- if (lineEnd - position > maxHalfLength) {
- tail = ' ...';
- lineEnd = position + maxHalfLength - tail.length;
- }
-
- return {
- str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
- pos: position - lineStart + head.length // relative position
- };
-}
-
-
-function padStart(string, max) {
- return common.repeat(' ', max - string.length) + string;
-}
-
-
-function makeSnippet(mark, options) {
- options = Object.create(options || null);
-
- if (!mark.buffer) return null;
-
- if (!options.maxLength) options.maxLength = 79;
- if (typeof options.indent !== 'number') options.indent = 1;
- if (typeof options.linesBefore !== 'number') options.linesBefore = 3;
- if (typeof options.linesAfter !== 'number') options.linesAfter = 2;
-
- var re = /\r?\n|\r|\0/g;
- var lineStarts = [ 0 ];
- var lineEnds = [];
- var match;
- var foundLineNo = -1;
-
- while ((match = re.exec(mark.buffer))) {
- lineEnds.push(match.index);
- lineStarts.push(match.index + match[0].length);
-
- if (mark.position <= match.index && foundLineNo < 0) {
- foundLineNo = lineStarts.length - 2;
- }
- }
-
- if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
-
- var result = '', i, line;
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
-
- for (i = 1; i <= options.linesBefore; i++) {
- if (foundLineNo - i < 0) break;
- line = getLine(
- mark.buffer,
- lineStarts[foundLineNo - i],
- lineEnds[foundLineNo - i],
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
- maxLineLength
- );
- result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
- ' | ' + line.str + '\n' + result;
- }
-
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
- result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
- ' | ' + line.str + '\n';
- result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n';
-
- for (i = 1; i <= options.linesAfter; i++) {
- if (foundLineNo + i >= lineEnds.length) break;
- line = getLine(
- mark.buffer,
- lineStarts[foundLineNo + i],
- lineEnds[foundLineNo + i],
- mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
- maxLineLength
- );
- result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
- ' | ' + line.str + '\n';
- }
-
- return result.replace(/\n$/, '');
-}
-
-
-module.exports = makeSnippet;
-
-
-/***/ }),
-
-/***/ 6073:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var YAMLException = __nccwpck_require__(68179);
-
-var TYPE_CONSTRUCTOR_OPTIONS = [
- 'kind',
- 'multi',
- 'resolve',
- 'construct',
- 'instanceOf',
- 'predicate',
- 'represent',
- 'representName',
- 'defaultStyle',
- 'styleAliases'
-];
-
-var YAML_NODE_KINDS = [
- 'scalar',
- 'sequence',
- 'mapping'
-];
-
-function compileStyleAliases(map) {
- var result = {};
-
- if (map !== null) {
- Object.keys(map).forEach(function (style) {
- map[style].forEach(function (alias) {
- result[String(alias)] = style;
- });
- });
- }
-
- return result;
-}
-
-function Type(tag, options) {
- options = options || {};
-
- Object.keys(options).forEach(function (name) {
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
- }
- });
-
- // TODO: Add tag format check.
- this.options = options; // keep original options in case user wants to extend this type later
- this.tag = tag;
- this.kind = options['kind'] || null;
- this.resolve = options['resolve'] || function () { return true; };
- this.construct = options['construct'] || function (data) { return data; };
- this.instanceOf = options['instanceOf'] || null;
- this.predicate = options['predicate'] || null;
- this.represent = options['represent'] || null;
- this.representName = options['representName'] || null;
- this.defaultStyle = options['defaultStyle'] || null;
- this.multi = options['multi'] || false;
- this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
-
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
- }
-}
-
-module.exports = Type;
-
-
-/***/ }),
-
-/***/ 77900:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-/*eslint-disable no-bitwise*/
-
-
-var Type = __nccwpck_require__(6073);
-
-
-// [ 64, 65, 66 ] -> [ padding, CR, LF ]
-var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
-
-
-function resolveYamlBinary(data) {
- if (data === null) return false;
-
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
-
- // Convert one by one.
- for (idx = 0; idx < max; idx++) {
- code = map.indexOf(data.charAt(idx));
-
- // Skip CR/LF
- if (code > 64) continue;
-
- // Fail on illegal characters
- if (code < 0) return false;
-
- bitlen += 6;
- }
-
- // If there are any bits left, source was corrupted
- return (bitlen % 8) === 0;
-}
-
-function constructYamlBinary(data) {
- var idx, tailbits,
- input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
- max = input.length,
- map = BASE64_MAP,
- bits = 0,
- result = [];
-
- // Collect by 6*4 bits (3 bytes)
-
- for (idx = 0; idx < max; idx++) {
- if ((idx % 4 === 0) && idx) {
- result.push((bits >> 16) & 0xFF);
- result.push((bits >> 8) & 0xFF);
- result.push(bits & 0xFF);
- }
-
- bits = (bits << 6) | map.indexOf(input.charAt(idx));
- }
-
- // Dump tail
-
- tailbits = (max % 4) * 6;
-
- if (tailbits === 0) {
- result.push((bits >> 16) & 0xFF);
- result.push((bits >> 8) & 0xFF);
- result.push(bits & 0xFF);
- } else if (tailbits === 18) {
- result.push((bits >> 10) & 0xFF);
- result.push((bits >> 2) & 0xFF);
- } else if (tailbits === 12) {
- result.push((bits >> 4) & 0xFF);
- }
-
- return new Uint8Array(result);
-}
-
-function representYamlBinary(object /*, style*/) {
- var result = '', bits = 0, idx, tail,
- max = object.length,
- map = BASE64_MAP;
-
- // Convert every three bytes to 4 ASCII characters.
-
- for (idx = 0; idx < max; idx++) {
- if ((idx % 3 === 0) && idx) {
- result += map[(bits >> 18) & 0x3F];
- result += map[(bits >> 12) & 0x3F];
- result += map[(bits >> 6) & 0x3F];
- result += map[bits & 0x3F];
- }
-
- bits = (bits << 8) + object[idx];
- }
-
- // Dump tail
-
- tail = max % 3;
-
- if (tail === 0) {
- result += map[(bits >> 18) & 0x3F];
- result += map[(bits >> 12) & 0x3F];
- result += map[(bits >> 6) & 0x3F];
- result += map[bits & 0x3F];
- } else if (tail === 2) {
- result += map[(bits >> 10) & 0x3F];
- result += map[(bits >> 4) & 0x3F];
- result += map[(bits << 2) & 0x3F];
- result += map[64];
- } else if (tail === 1) {
- result += map[(bits >> 2) & 0x3F];
- result += map[(bits << 4) & 0x3F];
- result += map[64];
- result += map[64];
- }
-
- return result;
-}
-
-function isBinary(obj) {
- return Object.prototype.toString.call(obj) === '[object Uint8Array]';
-}
-
-module.exports = new Type('tag:yaml.org,2002:binary', {
- kind: 'scalar',
- resolve: resolveYamlBinary,
- construct: constructYamlBinary,
- predicate: isBinary,
- represent: representYamlBinary
-});
-
-
-/***/ }),
-
-/***/ 64993:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-function resolveYamlBoolean(data) {
- if (data === null) return false;
-
- var max = data.length;
-
- return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
- (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
-}
-
-function constructYamlBoolean(data) {
- return data === 'true' ||
- data === 'True' ||
- data === 'TRUE';
-}
-
-function isBoolean(object) {
- return Object.prototype.toString.call(object) === '[object Boolean]';
-}
-
-module.exports = new Type('tag:yaml.org,2002:bool', {
- kind: 'scalar',
- resolve: resolveYamlBoolean,
- construct: constructYamlBoolean,
- predicate: isBoolean,
- represent: {
- lowercase: function (object) { return object ? 'true' : 'false'; },
- uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
- camelcase: function (object) { return object ? 'True' : 'False'; }
- },
- defaultStyle: 'lowercase'
-});
-
-
-/***/ }),
-
-/***/ 42705:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var common = __nccwpck_require__(26829);
-var Type = __nccwpck_require__(6073);
-
-var YAML_FLOAT_PATTERN = new RegExp(
- // 2.5e4, 2.5 and integers
- '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
- // .2e4, .2
- // special case, seems not from spec
- '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
- // .inf
- '|[-+]?\\.(?:inf|Inf|INF)' +
- // .nan
- '|\\.(?:nan|NaN|NAN))$');
-
-function resolveYamlFloat(data) {
- if (data === null) return false;
-
- if (!YAML_FLOAT_PATTERN.test(data) ||
- // Quick hack to not allow integers end with `_`
- // Probably should update regexp & check speed
- data[data.length - 1] === '_') {
- return false;
- }
-
- return true;
-}
-
-function constructYamlFloat(data) {
- var value, sign;
-
- value = data.replace(/_/g, '').toLowerCase();
- sign = value[0] === '-' ? -1 : 1;
-
- if ('+-'.indexOf(value[0]) >= 0) {
- value = value.slice(1);
- }
-
- if (value === '.inf') {
- return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
-
- } else if (value === '.nan') {
- return NaN;
- }
- return sign * parseFloat(value, 10);
-}
-
-
-var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
-
-function representYamlFloat(object, style) {
- var res;
-
- if (isNaN(object)) {
- switch (style) {
- case 'lowercase': return '.nan';
- case 'uppercase': return '.NAN';
- case 'camelcase': return '.NaN';
- }
- } else if (Number.POSITIVE_INFINITY === object) {
- switch (style) {
- case 'lowercase': return '.inf';
- case 'uppercase': return '.INF';
- case 'camelcase': return '.Inf';
- }
- } else if (Number.NEGATIVE_INFINITY === object) {
- switch (style) {
- case 'lowercase': return '-.inf';
- case 'uppercase': return '-.INF';
- case 'camelcase': return '-.Inf';
- }
- } else if (common.isNegativeZero(object)) {
- return '-0.0';
- }
-
- res = object.toString(10);
-
- // JS stringifier can build scientific format without dots: 5e-100,
- // while YAML requres dot: 5.e-100. Fix it with simple hack
-
- return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
-}
-
-function isFloat(object) {
- return (Object.prototype.toString.call(object) === '[object Number]') &&
- (object % 1 !== 0 || common.isNegativeZero(object));
-}
-
-module.exports = new Type('tag:yaml.org,2002:float', {
- kind: 'scalar',
- resolve: resolveYamlFloat,
- construct: constructYamlFloat,
- predicate: isFloat,
- represent: representYamlFloat,
- defaultStyle: 'lowercase'
-});
-
-
-/***/ }),
-
-/***/ 11615:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var common = __nccwpck_require__(26829);
-var Type = __nccwpck_require__(6073);
-
-function isHexCode(c) {
- return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
- ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
- ((0x61/* a */ <= c) && (c <= 0x66/* f */));
-}
-
-function isOctCode(c) {
- return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
-}
-
-function isDecCode(c) {
- return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
-}
-
-function resolveYamlInteger(data) {
- if (data === null) return false;
-
- var max = data.length,
- index = 0,
- hasDigits = false,
- ch;
-
- if (!max) return false;
-
- ch = data[index];
-
- // sign
- if (ch === '-' || ch === '+') {
- ch = data[++index];
- }
-
- if (ch === '0') {
- // 0
- if (index + 1 === max) return true;
- ch = data[++index];
-
- // base 2, base 8, base 16
-
- if (ch === 'b') {
- // base 2
- index++;
-
- for (; index < max; index++) {
- ch = data[index];
- if (ch === '_') continue;
- if (ch !== '0' && ch !== '1') return false;
- hasDigits = true;
- }
- return hasDigits && ch !== '_';
- }
-
-
- if (ch === 'x') {
- // base 16
- index++;
-
- for (; index < max; index++) {
- ch = data[index];
- if (ch === '_') continue;
- if (!isHexCode(data.charCodeAt(index))) return false;
- hasDigits = true;
- }
- return hasDigits && ch !== '_';
- }
-
-
- if (ch === 'o') {
- // base 8
- index++;
-
- for (; index < max; index++) {
- ch = data[index];
- if (ch === '_') continue;
- if (!isOctCode(data.charCodeAt(index))) return false;
- hasDigits = true;
- }
- return hasDigits && ch !== '_';
- }
- }
-
- // base 10 (except 0)
-
- // value should not start with `_`;
- if (ch === '_') return false;
-
- for (; index < max; index++) {
- ch = data[index];
- if (ch === '_') continue;
- if (!isDecCode(data.charCodeAt(index))) {
- return false;
- }
- hasDigits = true;
- }
-
- // Should have digits and should not end with `_`
- if (!hasDigits || ch === '_') return false;
-
- return true;
-}
-
-function constructYamlInteger(data) {
- var value = data, sign = 1, ch;
-
- if (value.indexOf('_') !== -1) {
- value = value.replace(/_/g, '');
- }
-
- ch = value[0];
-
- if (ch === '-' || ch === '+') {
- if (ch === '-') sign = -1;
- value = value.slice(1);
- ch = value[0];
- }
-
- if (value === '0') return 0;
-
- if (ch === '0') {
- if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
- if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);
- if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);
- }
-
- return sign * parseInt(value, 10);
-}
-
-function isInteger(object) {
- return (Object.prototype.toString.call(object)) === '[object Number]' &&
- (object % 1 === 0 && !common.isNegativeZero(object));
-}
-
-module.exports = new Type('tag:yaml.org,2002:int', {
- kind: 'scalar',
- resolve: resolveYamlInteger,
- construct: constructYamlInteger,
- predicate: isInteger,
- represent: {
- binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
- octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },
- decimal: function (obj) { return obj.toString(10); },
- /* eslint-disable max-len */
- hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
- },
- defaultStyle: 'decimal',
- styleAliases: {
- binary: [ 2, 'bin' ],
- octal: [ 8, 'oct' ],
- decimal: [ 10, 'dec' ],
- hexadecimal: [ 16, 'hex' ]
- }
-});
-
-
-/***/ }),
-
-/***/ 86150:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-module.exports = new Type('tag:yaml.org,2002:map', {
- kind: 'mapping',
- construct: function (data) { return data !== null ? data : {}; }
-});
-
-
-/***/ }),
-
-/***/ 86104:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-function resolveYamlMerge(data) {
- return data === '<<' || data === null;
-}
-
-module.exports = new Type('tag:yaml.org,2002:merge', {
- kind: 'scalar',
- resolve: resolveYamlMerge
-});
-
-
-/***/ }),
-
-/***/ 20721:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-function resolveYamlNull(data) {
- if (data === null) return true;
-
- var max = data.length;
-
- return (max === 1 && data === '~') ||
- (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
-}
-
-function constructYamlNull() {
- return null;
-}
-
-function isNull(object) {
- return object === null;
-}
-
-module.exports = new Type('tag:yaml.org,2002:null', {
- kind: 'scalar',
- resolve: resolveYamlNull,
- construct: constructYamlNull,
- predicate: isNull,
- represent: {
- canonical: function () { return '~'; },
- lowercase: function () { return 'null'; },
- uppercase: function () { return 'NULL'; },
- camelcase: function () { return 'Null'; },
- empty: function () { return ''; }
- },
- defaultStyle: 'lowercase'
-});
-
-
-/***/ }),
-
-/***/ 19046:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-var _toString = Object.prototype.toString;
-
-function resolveYamlOmap(data) {
- if (data === null) return true;
-
- var objectKeys = [], index, length, pair, pairKey, pairHasKey,
- object = data;
-
- for (index = 0, length = object.length; index < length; index += 1) {
- pair = object[index];
- pairHasKey = false;
-
- if (_toString.call(pair) !== '[object Object]') return false;
-
- for (pairKey in pair) {
- if (_hasOwnProperty.call(pair, pairKey)) {
- if (!pairHasKey) pairHasKey = true;
- else return false;
- }
- }
-
- if (!pairHasKey) return false;
-
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
- else return false;
- }
-
- return true;
-}
-
-function constructYamlOmap(data) {
- return data !== null ? data : [];
-}
-
-module.exports = new Type('tag:yaml.org,2002:omap', {
- kind: 'sequence',
- resolve: resolveYamlOmap,
- construct: constructYamlOmap
-});
-
-
-/***/ }),
-
-/***/ 96860:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-var _toString = Object.prototype.toString;
-
-function resolveYamlPairs(data) {
- if (data === null) return true;
-
- var index, length, pair, keys, result,
- object = data;
-
- result = new Array(object.length);
-
- for (index = 0, length = object.length; index < length; index += 1) {
- pair = object[index];
-
- if (_toString.call(pair) !== '[object Object]') return false;
-
- keys = Object.keys(pair);
-
- if (keys.length !== 1) return false;
-
- result[index] = [ keys[0], pair[keys[0]] ];
- }
-
- return true;
-}
-
-function constructYamlPairs(data) {
- if (data === null) return [];
-
- var index, length, pair, keys, result,
- object = data;
-
- result = new Array(object.length);
-
- for (index = 0, length = object.length; index < length; index += 1) {
- pair = object[index];
-
- keys = Object.keys(pair);
-
- result[index] = [ keys[0], pair[keys[0]] ];
- }
-
- return result;
-}
-
-module.exports = new Type('tag:yaml.org,2002:pairs', {
- kind: 'sequence',
- resolve: resolveYamlPairs,
- construct: constructYamlPairs
-});
-
-
-/***/ }),
-
-/***/ 67283:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-module.exports = new Type('tag:yaml.org,2002:seq', {
- kind: 'sequence',
- construct: function (data) { return data !== null ? data : []; }
-});
-
-
-/***/ }),
-
-/***/ 79548:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-var _hasOwnProperty = Object.prototype.hasOwnProperty;
-
-function resolveYamlSet(data) {
- if (data === null) return true;
-
- var key, object = data;
-
- for (key in object) {
- if (_hasOwnProperty.call(object, key)) {
- if (object[key] !== null) return false;
- }
- }
-
- return true;
-}
-
-function constructYamlSet(data) {
- return data !== null ? data : {};
-}
-
-module.exports = new Type('tag:yaml.org,2002:set', {
- kind: 'mapping',
- resolve: resolveYamlSet,
- construct: constructYamlSet
-});
-
-
-/***/ }),
-
-/***/ 23619:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-module.exports = new Type('tag:yaml.org,2002:str', {
- kind: 'scalar',
- construct: function (data) { return data !== null ? data : ''; }
-});
-
-
-/***/ }),
-
-/***/ 99212:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-var Type = __nccwpck_require__(6073);
-
-var YAML_DATE_REGEXP = new RegExp(
- '^([0-9][0-9][0-9][0-9])' + // [1] year
- '-([0-9][0-9])' + // [2] month
- '-([0-9][0-9])$'); // [3] day
-
-var YAML_TIMESTAMP_REGEXP = new RegExp(
- '^([0-9][0-9][0-9][0-9])' + // [1] year
- '-([0-9][0-9]?)' + // [2] month
- '-([0-9][0-9]?)' + // [3] day
- '(?:[Tt]|[ \\t]+)' + // ...
- '([0-9][0-9]?)' + // [4] hour
- ':([0-9][0-9])' + // [5] minute
- ':([0-9][0-9])' + // [6] second
- '(?:\\.([0-9]*))?' + // [7] fraction
- '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
- '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
-
-function resolveYamlTimestamp(data) {
- if (data === null) return false;
- if (YAML_DATE_REGEXP.exec(data) !== null) return true;
- if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
- return false;
-}
-
-function constructYamlTimestamp(data) {
- var match, year, month, day, hour, minute, second, fraction = 0,
- delta = null, tz_hour, tz_minute, date;
-
- match = YAML_DATE_REGEXP.exec(data);
- if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
-
- if (match === null) throw new Error('Date resolve error');
-
- // match: [1] year [2] month [3] day
-
- year = +(match[1]);
- month = +(match[2]) - 1; // JS month starts with 0
- day = +(match[3]);
-
- if (!match[4]) { // no hour
- return new Date(Date.UTC(year, month, day));
- }
-
- // match: [4] hour [5] minute [6] second [7] fraction
-
- hour = +(match[4]);
- minute = +(match[5]);
- second = +(match[6]);
-
- if (match[7]) {
- fraction = match[7].slice(0, 3);
- while (fraction.length < 3) { // milli-seconds
- fraction += '0';
- }
- fraction = +fraction;
- }
-
- // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
-
- if (match[9]) {
- tz_hour = +(match[10]);
- tz_minute = +(match[11] || 0);
- delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
- if (match[9] === '-') delta = -delta;
- }
-
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
-
- if (delta) date.setTime(date.getTime() - delta);
-
- return date;
-}
-
-function representYamlTimestamp(object /*, style*/) {
- return object.toISOString();
-}
-
-module.exports = new Type('tag:yaml.org,2002:timestamp', {
- kind: 'scalar',
- resolve: resolveYamlTimestamp,
- construct: constructYamlTimestamp,
- instanceOf: Date,
- represent: representYamlTimestamp
-});
-
-
-/***/ }),
-
-/***/ 46123:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const path = __nccwpck_require__(71017);
-const fs = (__nccwpck_require__(57147).promises);
-const vm = __nccwpck_require__(26144);
-const toughCookie = __nccwpck_require__(47372);
-const sniffHTMLEncoding = __nccwpck_require__(15487);
-const whatwgURL = __nccwpck_require__(66365);
-const whatwgEncoding = __nccwpck_require__(49967);
-const { URL } = __nccwpck_require__(66365);
-const MIMEType = __nccwpck_require__(59488);
-const idlUtils = __nccwpck_require__(34908);
-const VirtualConsole = __nccwpck_require__(57704);
-const { createWindow } = __nccwpck_require__(55802);
-const { parseIntoDocument } = __nccwpck_require__(35373);
-const { fragmentSerialization } = __nccwpck_require__(33740);
-const ResourceLoader = __nccwpck_require__(90007);
-const NoOpResourceLoader = __nccwpck_require__(5383);
-
-class CookieJar extends toughCookie.CookieJar {
- constructor(store, options) {
- // jsdom cookie jars must be loose by default
- super(store, { looseMode: true, ...options });
- }
-}
-
-const window = Symbol("window");
-let sharedFragmentDocument = null;
-
-class JSDOM {
- constructor(input = "", options = {}) {
- const mimeType = new MIMEType(options.contentType === undefined ? "text/html" : options.contentType);
- const { html, encoding } = normalizeHTML(input, mimeType);
-
- options = transformOptions(options, encoding, mimeType);
-
- this[window] = createWindow(options.windowOptions);
-
- const documentImpl = idlUtils.implForWrapper(this[window]._document);
-
- options.beforeParse(this[window]._globalProxy);
-
- parseIntoDocument(html, documentImpl);
-
- documentImpl.close();
- }
-
- get window() {
- // It's important to grab the global proxy, instead of just the result of `createWindow(...)`, since otherwise
- // things like `window.eval` don't exist.
- return this[window]._globalProxy;
- }
-
- get virtualConsole() {
- return this[window]._virtualConsole;
- }
-
- get cookieJar() {
- // TODO NEWAPI move _cookieJar to window probably
- return idlUtils.implForWrapper(this[window]._document)._cookieJar;
- }
-
- serialize() {
- return fragmentSerialization(idlUtils.implForWrapper(this[window]._document), { requireWellFormed: false });
- }
-
- nodeLocation(node) {
- if (!idlUtils.implForWrapper(this[window]._document)._parseOptions.sourceCodeLocationInfo) {
- throw new Error("Location information was not saved for this jsdom. Use includeNodeLocations during creation.");
- }
-
- return idlUtils.implForWrapper(node).sourceCodeLocation;
- }
-
- getInternalVMContext() {
- if (!vm.isContext(this[window])) {
- throw new TypeError("This jsdom was not configured to allow script running. " +
- "Use the runScripts option during creation.");
- }
-
- return this[window];
- }
-
- reconfigure(settings) {
- if ("windowTop" in settings) {
- this[window]._top = settings.windowTop;
- }
-
- if ("url" in settings) {
- const document = idlUtils.implForWrapper(this[window]._document);
-
- const url = whatwgURL.parseURL(settings.url);
- if (url === null) {
- throw new TypeError(`Could not parse "${settings.url}" as a URL`);
- }
-
- document._URL = url;
- document._origin = whatwgURL.serializeURLOrigin(document._URL);
- this[window]._sessionHistory.currentEntry.url = url;
- }
- }
-
- static fragment(string = "") {
- if (!sharedFragmentDocument) {
- sharedFragmentDocument = (new JSDOM()).window.document;
- }
-
- const template = sharedFragmentDocument.createElement("template");
- template.innerHTML = string;
- return template.content;
- }
-
- static fromURL(url, options = {}) {
- return Promise.resolve().then(() => {
- // Remove the hash while sending this through the research loader fetch().
- // It gets added back a few lines down when constructing the JSDOM object.
- const parsedURL = new URL(url);
- const originalHash = parsedURL.hash;
- parsedURL.hash = "";
- url = parsedURL.href;
-
- options = normalizeFromURLOptions(options);
-
- const resourceLoader = resourcesToResourceLoader(options.resources);
- const resourceLoaderForInitialRequest = resourceLoader.constructor === NoOpResourceLoader ?
- new ResourceLoader() :
- resourceLoader;
-
- const req = resourceLoaderForInitialRequest.fetch(url, {
- accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
- cookieJar: options.cookieJar,
- referrer: options.referrer
- });
-
- return req.then(body => {
- const res = req.response;
-
- options = Object.assign(options, {
- url: req.href + originalHash,
- contentType: res.headers["content-type"],
- referrer: req.getHeader("referer") ?? undefined
- });
-
- return new JSDOM(body, options);
- });
- });
- }
-
- static async fromFile(filename, options = {}) {
- options = normalizeFromFileOptions(filename, options);
- const buffer = await fs.readFile(filename);
-
- return new JSDOM(buffer, options);
- }
-}
-
-function normalizeFromURLOptions(options) {
- // Checks on options that are invalid for `fromURL`
- if (options.url !== undefined) {
- throw new TypeError("Cannot supply a url option when using fromURL");
- }
- if (options.contentType !== undefined) {
- throw new TypeError("Cannot supply a contentType option when using fromURL");
- }
-
- // Normalization of options which must be done before the rest of the fromURL code can use them, because they are
- // given to request()
- const normalized = { ...options };
-
- if (options.referrer !== undefined) {
- normalized.referrer = (new URL(options.referrer)).href;
- }
-
- if (options.cookieJar === undefined) {
- normalized.cookieJar = new CookieJar();
- }
-
- return normalized;
-
- // All other options don't need to be processed yet, and can be taken care of in the normal course of things when
- // `fromURL` calls `new JSDOM(html, options)`.
-}
-
-function normalizeFromFileOptions(filename, options) {
- const normalized = { ...options };
-
- if (normalized.contentType === undefined) {
- const extname = path.extname(filename);
- if (extname === ".xhtml" || extname === ".xht" || extname === ".xml") {
- normalized.contentType = "application/xhtml+xml";
- }
- }
-
- if (normalized.url === undefined) {
- normalized.url = new URL("file:" + path.resolve(filename));
- }
-
- return normalized;
-}
-
-function transformOptions(options, encoding, mimeType) {
- const transformed = {
- windowOptions: {
- // Defaults
- url: "about:blank",
- referrer: "",
- contentType: "text/html",
- parsingMode: "html",
- parseOptions: {
- sourceCodeLocationInfo: false,
- scriptingEnabled: false
- },
- runScripts: undefined,
- encoding,
- pretendToBeVisual: false,
- storageQuota: 5000000,
-
- // Defaults filled in later
- resourceLoader: undefined,
- virtualConsole: undefined,
- cookieJar: undefined
- },
-
- // Defaults
- beforeParse() { }
- };
-
- // options.contentType was parsed into mimeType by the caller.
- if (!mimeType.isHTML() && !mimeType.isXML()) {
- throw new RangeError(`The given content type of "${options.contentType}" was not a HTML or XML content type`);
- }
-
- transformed.windowOptions.contentType = mimeType.essence;
- transformed.windowOptions.parsingMode = mimeType.isHTML() ? "html" : "xml";
-
- if (options.url !== undefined) {
- transformed.windowOptions.url = (new URL(options.url)).href;
- }
-
- if (options.referrer !== undefined) {
- transformed.windowOptions.referrer = (new URL(options.referrer)).href;
- }
-
- if (options.includeNodeLocations) {
- if (transformed.windowOptions.parsingMode === "xml") {
- throw new TypeError("Cannot set includeNodeLocations to true with an XML content type");
- }
-
- transformed.windowOptions.parseOptions = { sourceCodeLocationInfo: true };
- }
-
- transformed.windowOptions.cookieJar = options.cookieJar === undefined ?
- new CookieJar() :
- options.cookieJar;
-
- transformed.windowOptions.virtualConsole = options.virtualConsole === undefined ?
- (new VirtualConsole()).sendTo(console) :
- options.virtualConsole;
-
- if (!(transformed.windowOptions.virtualConsole instanceof VirtualConsole)) {
- throw new TypeError("virtualConsole must be an instance of VirtualConsole");
- }
-
- transformed.windowOptions.resourceLoader = resourcesToResourceLoader(options.resources);
-
- if (options.runScripts !== undefined) {
- transformed.windowOptions.runScripts = String(options.runScripts);
- if (transformed.windowOptions.runScripts === "dangerously") {
- transformed.windowOptions.parseOptions.scriptingEnabled = true;
- } else if (transformed.windowOptions.runScripts !== "outside-only") {
- throw new RangeError(`runScripts must be undefined, "dangerously", or "outside-only"`);
- }
- }
-
- if (options.beforeParse !== undefined) {
- transformed.beforeParse = options.beforeParse;
- }
-
- if (options.pretendToBeVisual !== undefined) {
- transformed.windowOptions.pretendToBeVisual = Boolean(options.pretendToBeVisual);
- }
-
- if (options.storageQuota !== undefined) {
- transformed.windowOptions.storageQuota = Number(options.storageQuota);
- }
-
- return transformed;
-}
-
-function normalizeHTML(html, mimeType) {
- let encoding = "UTF-8";
-
- if (ArrayBuffer.isView(html)) {
- html = Buffer.from(html.buffer, html.byteOffset, html.byteLength);
- } else if (html instanceof ArrayBuffer) {
- html = Buffer.from(html);
- }
-
- if (Buffer.isBuffer(html)) {
- encoding = sniffHTMLEncoding(html, {
- defaultEncoding: mimeType.isXML() ? "UTF-8" : "windows-1252",
- transportLayerEncodingLabel: mimeType.parameters.get("charset")
- });
- html = whatwgEncoding.decode(html, encoding);
- } else {
- html = String(html);
- }
-
- return { html, encoding };
-}
-
-function resourcesToResourceLoader(resources) {
- switch (resources) {
- case undefined: {
- return new NoOpResourceLoader();
- }
- case "usable": {
- return new ResourceLoader();
- }
- default: {
- if (!(resources instanceof ResourceLoader)) {
- throw new TypeError("resources must be an instance of ResourceLoader");
- }
- return resources;
- }
- }
-}
-
-exports.JSDOM = JSDOM;
-
-exports.VirtualConsole = VirtualConsole;
-exports.CookieJar = CookieJar;
-exports.ResourceLoader = ResourceLoader;
-
-exports.toughCookie = toughCookie;
-
-
-/***/ }),
-
-/***/ 55802:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const vm = __nccwpck_require__(26144);
-const webIDLConversions = __nccwpck_require__(54886);
-const { CSSStyleDeclaration } = __nccwpck_require__(15674);
-const notImplemented = __nccwpck_require__(42751);
-const { installInterfaces } = __nccwpck_require__(71643);
-const { define, mixin } = __nccwpck_require__(11463);
-const Element = __nccwpck_require__(4444);
-const EventTarget = __nccwpck_require__(71038);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const IDLFunction = __nccwpck_require__(79936);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const { fireAPageTransitionEvent } = __nccwpck_require__(46641);
-const namedPropertiesWindow = __nccwpck_require__(15200);
-const postMessage = __nccwpck_require__(47054);
-const DOMException = __nccwpck_require__(57617);
-const { btoa, atob } = __nccwpck_require__(75696);
-const idlUtils = __nccwpck_require__(34908);
-const WebSocketImpl = (__nccwpck_require__(13846).implementation);
-const BarProp = __nccwpck_require__(35849);
-const documents = __nccwpck_require__(19951);
-const External = __nccwpck_require__(19995);
-const Navigator = __nccwpck_require__(96340);
-const Performance = __nccwpck_require__(19264);
-const Screen = __nccwpck_require__(46164);
-const Crypto = __nccwpck_require__(93623);
-const Storage = __nccwpck_require__(76969);
-const Selection = __nccwpck_require__(69144);
-const reportException = __nccwpck_require__(15612);
-const { getCurrentEventHandlerValue } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const SessionHistory = __nccwpck_require__(14825);
-const { getDeclarationForElement, getResolvedValue, propertiesWithResolvedValueImplemented,
- SHADOW_DOM_PSEUDO_REGEXP } = __nccwpck_require__(11627);
-const CustomElementRegistry = __nccwpck_require__(17609);
-const jsGlobals = __nccwpck_require__(40264);
-
-const GlobalEventHandlersImpl = (__nccwpck_require__(4084).implementation);
-const WindowEventHandlersImpl = (__nccwpck_require__(55974).implementation);
-
-const events = new Set([
- // GlobalEventHandlers
- "abort", "autocomplete",
- "autocompleteerror", "blur",
- "cancel", "canplay", "canplaythrough",
- "change", "click",
- "close", "contextmenu",
- "cuechange", "dblclick",
- "drag", "dragend",
- "dragenter",
- "dragleave", "dragover",
- "dragstart", "drop",
- "durationchange", "emptied",
- "ended", "focus",
- "input", "invalid",
- "keydown", "keypress",
- "keyup", "load", "loadeddata",
- "loadedmetadata", "loadstart",
- "mousedown", "mouseenter",
- "mouseleave", "mousemove",
- "mouseout", "mouseover",
- "mouseup", "wheel",
- "pause", "play",
- "playing", "progress",
- "ratechange", "reset",
- "resize", "scroll",
- "securitypolicyviolation",
- "seeked", "seeking",
- "select", "sort", "stalled",
- "submit", "suspend",
- "timeupdate", "toggle",
- "volumechange", "waiting",
-
- // WindowEventHandlers
- "afterprint",
- "beforeprint",
- "hashchange",
- "languagechange",
- "message",
- "messageerror",
- "offline",
- "online",
- "pagehide",
- "pageshow",
- "popstate",
- "rejectionhandled",
- "storage",
- "unhandledrejection",
- "unload"
-
- // "error" and "beforeunload" are added separately
-]);
-
-exports.createWindow = function (options) {
- return new Window(options);
-};
-
-const jsGlobalEntriesToInstall = Object.entries(jsGlobals).filter(([name]) => name in global);
-
-// https://html.spec.whatwg.org/#the-window-object
-function setupWindow(windowInstance, { runScripts }) {
- if (runScripts === "outside-only" || runScripts === "dangerously") {
- contextifyWindow(windowInstance);
-
- // Without this, these globals will only appear to scripts running inside the context using vm.runScript; they will
- // not appear to scripts running from the outside, including to JSDOM implementation code.
- for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
- const propDesc = { ...globalPropDesc, value: vm.runInContext(globalName, windowInstance) };
- Object.defineProperty(windowInstance, globalName, propDesc);
- }
- } else {
- // Without contextifying the window, none of the globals will exist. So, let's at least alias them from the Node.js
- // context. See https://github.com/jsdom/jsdom/issues/2727 for more background and discussion.
- for (const [globalName, globalPropDesc] of jsGlobalEntriesToInstall) {
- const propDesc = { ...globalPropDesc, value: global[globalName] };
- Object.defineProperty(windowInstance, globalName, propDesc);
- }
- }
-
- installInterfaces(windowInstance, ["Window"]);
-
- const EventTargetConstructor = windowInstance.EventTarget;
-
- // eslint-disable-next-line func-name-matching, func-style, no-shadow
- const windowConstructor = function Window() {
- throw new TypeError("Illegal constructor");
- };
- Object.setPrototypeOf(windowConstructor, EventTargetConstructor);
-
- Object.defineProperty(windowInstance, "Window", {
- configurable: true,
- writable: true,
- value: windowConstructor
- });
-
- const windowPrototype = Object.create(EventTargetConstructor.prototype);
- Object.defineProperties(windowPrototype, {
- constructor: {
- value: windowConstructor,
- writable: true,
- configurable: true
- },
- [Symbol.toStringTag]: {
- value: "Window",
- configurable: true
- }
- });
-
- windowConstructor.prototype = windowPrototype;
- Object.setPrototypeOf(windowInstance, windowPrototype);
-
- EventTarget.setup(windowInstance, windowInstance);
- mixin(windowInstance, WindowEventHandlersImpl.prototype);
- mixin(windowInstance, GlobalEventHandlersImpl.prototype);
- windowInstance._initGlobalEvents();
-
- Object.defineProperty(windowInstance, "onbeforeunload", {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "beforeunload"));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(windowInstance, V, {
- context: "Failed to set the 'onbeforeunload' property on 'Window': The provided value"
- });
- }
- this._setEventHandlerFor("beforeunload", V);
- }
- });
-
- Object.defineProperty(windowInstance, "onerror", {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "error"));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(windowInstance, V, {
- context: "Failed to set the 'onerror' property on 'Window': The provided value"
- });
- }
- this._setEventHandlerFor("error", V);
- }
- });
-
- for (const event of events) {
- Object.defineProperty(windowInstance, `on${event}`, {
- configurable: true,
- enumerable: true,
- get() {
- return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, event));
- },
- set(V) {
- if (!idlUtils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(windowInstance, V, {
- context: `Failed to set the 'on${event}' property on 'Window': The provided value`
- });
- }
- this._setEventHandlerFor(event, V);
- }
- });
- }
-
- windowInstance._globalObject = windowInstance;
-}
-
-function makeReplaceablePropertyDescriptor(property, window) {
- const desc = {
- set(value) {
- Object.defineProperty(window, property, {
- configurable: true,
- enumerable: true,
- writable: true,
- value
- });
- }
- };
-
- Object.defineProperty(desc.set, "name", { value: `set ${property}` });
- return desc;
-}
-
-// NOTE: per https://heycam.github.io/webidl/#Global, all properties on the Window object must be own-properties.
-// That is why we assign everything inside of the constructor, instead of using a shared prototype.
-// You can verify this in e.g. Firefox or Internet Explorer, which do a good job with Web IDL compliance.
-function Window(options) {
- setupWindow(this, { runScripts: options.runScripts });
-
- const windowInitialized = performance.now();
-
- const window = this;
-
- // ### PRIVATE DATA PROPERTIES
-
- this._resourceLoader = options.resourceLoader;
-
- // vm initialization is deferred until script processing is activated
- this._globalProxy = this;
- Object.defineProperty(idlUtils.implForWrapper(this), idlUtils.wrapperSymbol, { get: () => this._globalProxy });
-
- // List options explicitly to be clear which are passed through
- this._document = documents.createWrapper(window, {
- parsingMode: options.parsingMode,
- contentType: options.contentType,
- encoding: options.encoding,
- cookieJar: options.cookieJar,
- url: options.url,
- lastModified: options.lastModified,
- referrer: options.referrer,
- parseOptions: options.parseOptions,
- defaultView: this._globalProxy,
- global: this,
- parentOrigin: options.parentOrigin
- }, { alwaysUseDocumentClass: true });
-
- if (vm.isContext(window)) {
- const documentImpl = idlUtils.implForWrapper(window._document);
- documentImpl._defaultView = window._globalProxy = vm.runInContext("this", window);
- }
-
- const documentOrigin = idlUtils.implForWrapper(this._document)._origin;
- this._origin = documentOrigin;
-
- // https://html.spec.whatwg.org/#session-history
- this._sessionHistory = new SessionHistory({
- document: idlUtils.implForWrapper(this._document),
- url: idlUtils.implForWrapper(this._document)._URL,
- stateObject: null
- }, this);
-
- this._virtualConsole = options.virtualConsole;
-
- this._runScripts = options.runScripts;
-
- // Set up the window as if it's a top level window.
- // If it's not, then references will be corrected by frame/iframe code.
- this._parent = this._top = this._globalProxy;
- this._frameElement = null;
-
- // This implements window.frames.length, since window.frames returns a
- // self reference to the window object. This value is incremented in the
- // HTMLFrameElement implementation.
- this._length = 0;
-
- // https://dom.spec.whatwg.org/#window-current-event
- this._currentEvent = undefined;
-
- this._pretendToBeVisual = options.pretendToBeVisual;
- this._storageQuota = options.storageQuota;
-
- // Some properties (such as localStorage and sessionStorage) share data
- // between windows in the same origin. This object is intended
- // to contain such data.
- if (options.commonForOrigin && options.commonForOrigin[documentOrigin]) {
- this._commonForOrigin = options.commonForOrigin;
- } else {
- this._commonForOrigin = {
- [documentOrigin]: {
- localStorageArea: new Map(),
- sessionStorageArea: new Map(),
- windowsInSameOrigin: [this]
- }
- };
- }
-
- this._currentOriginData = this._commonForOrigin[documentOrigin];
-
- // ### WEB STORAGE
-
- this._localStorage = Storage.create(window, [], {
- associatedWindow: this,
- storageArea: this._currentOriginData.localStorageArea,
- type: "localStorage",
- url: this._document.documentURI,
- storageQuota: this._storageQuota
- });
- this._sessionStorage = Storage.create(window, [], {
- associatedWindow: this,
- storageArea: this._currentOriginData.sessionStorageArea,
- type: "sessionStorage",
- url: this._document.documentURI,
- storageQuota: this._storageQuota
- });
-
- // ### SELECTION
-
- // https://w3c.github.io/selection-api/#dfn-selection
- this._selection = Selection.createImpl(window);
-
- // https://w3c.github.io/selection-api/#dom-window
- this.getSelection = function () {
- return window._selection;
- };
-
- // ### GETTERS
-
- const locationbar = BarProp.create(window);
- const menubar = BarProp.create(window);
- const personalbar = BarProp.create(window);
- const scrollbars = BarProp.create(window);
- const statusbar = BarProp.create(window);
- const toolbar = BarProp.create(window);
- const external = External.create(window);
- const navigator = Navigator.create(window, [], { userAgent: this._resourceLoader._userAgent });
- const performanceImpl = Performance.create(window, [], {
- timeOrigin: performance.timeOrigin + windowInitialized,
- nowAtTimeOrigin: windowInitialized
- });
- const screen = Screen.create(window);
- const crypto = Crypto.create(window);
- this._customElementRegistry = CustomElementRegistry.create(window);
-
- define(this, {
- get length() {
- return window._length;
- },
- get window() {
- return window._globalProxy;
- },
- get frameElement() {
- return idlUtils.wrapperForImpl(window._frameElement);
- },
- get frames() {
- return window._globalProxy;
- },
- get self() {
- return window._globalProxy;
- },
- get parent() {
- return window._parent;
- },
- get top() {
- return window._top;
- },
- get document() {
- return window._document;
- },
- get external() {
- return external;
- },
- get location() {
- return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._location);
- },
- // [PutForwards=href]:
- set location(value) {
- Reflect.set(window.location, "href", value);
- },
- get history() {
- return idlUtils.wrapperForImpl(idlUtils.implForWrapper(window._document)._history);
- },
- get navigator() {
- return navigator;
- },
- get locationbar() {
- return locationbar;
- },
- get menubar() {
- return menubar;
- },
- get personalbar() {
- return personalbar;
- },
- get scrollbars() {
- return scrollbars;
- },
- get statusbar() {
- return statusbar;
- },
- get toolbar() {
- return toolbar;
- },
- get performance() {
- return performanceImpl;
- },
- get screen() {
- return screen;
- },
- get crypto() {
- return crypto;
- },
- get origin() {
- return window._origin;
- },
- get localStorage() {
- if (idlUtils.implForWrapper(this._document)._origin === "null") {
- throw DOMException.create(window, [
- "localStorage is not available for opaque origins",
- "SecurityError"
- ]);
- }
-
- return this._localStorage;
- },
- get sessionStorage() {
- if (idlUtils.implForWrapper(this._document)._origin === "null") {
- throw DOMException.create(window, [
- "sessionStorage is not available for opaque origins",
- "SecurityError"
- ]);
- }
-
- return this._sessionStorage;
- },
- get customElements() {
- return this._customElementRegistry;
- },
- get event() {
- return window._currentEvent ? idlUtils.wrapperForImpl(window._currentEvent) : undefined;
- }
- });
-
- Object.defineProperties(this, {
- // [Replaceable]:
- self: makeReplaceablePropertyDescriptor("self", window),
- locationbar: makeReplaceablePropertyDescriptor("locationbar", window),
- menubar: makeReplaceablePropertyDescriptor("menubar", window),
- personalbar: makeReplaceablePropertyDescriptor("personalbar", window),
- scrollbars: makeReplaceablePropertyDescriptor("scrollbars", window),
- statusbar: makeReplaceablePropertyDescriptor("statusbar", window),
- toolbar: makeReplaceablePropertyDescriptor("toolbar", window),
- frames: makeReplaceablePropertyDescriptor("frames", window),
- parent: makeReplaceablePropertyDescriptor("parent", window),
- external: makeReplaceablePropertyDescriptor("external", window),
- length: makeReplaceablePropertyDescriptor("length", window),
- screen: makeReplaceablePropertyDescriptor("screen", window),
- origin: makeReplaceablePropertyDescriptor("origin", window),
- event: makeReplaceablePropertyDescriptor("event", window),
-
- // [LegacyUnforgeable]:
- window: { configurable: false },
- document: { configurable: false },
- location: { configurable: false },
- top: { configurable: false }
- });
-
-
- namedPropertiesWindow.initializeWindow(this, this._globalProxy);
-
- // ### METHODS
-
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
-
- // In the spec the list of active timers is a set of IDs. We make it a map of IDs to Node.js timer objects, so that
- // we can call Node.js-side clearTimeout() when clearing, and thus allow process shutdown faster.
- const listOfActiveTimers = new Map();
- let latestTimerId = 0;
-
- this.setTimeout = function (handler, timeout = 0, ...args) {
- if (typeof handler !== "function") {
- handler = webIDLConversions.DOMString(handler);
- }
- timeout = webIDLConversions.long(timeout);
-
- return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: false });
- };
- this.setInterval = function (handler, timeout = 0, ...args) {
- if (typeof handler !== "function") {
- handler = webIDLConversions.DOMString(handler);
- }
- timeout = webIDLConversions.long(timeout);
-
- return timerInitializationSteps(handler, timeout, args, { methodContext: window, repeat: true });
- };
-
- this.clearTimeout = function (handle = 0) {
- handle = webIDLConversions.long(handle);
-
- const nodejsTimer = listOfActiveTimers.get(handle);
- if (nodejsTimer) {
- clearTimeout(nodejsTimer);
- listOfActiveTimers.delete(handle);
- }
- };
- this.clearInterval = function (handle = 0) {
- handle = webIDLConversions.long(handle);
-
- const nodejsTimer = listOfActiveTimers.get(handle);
- if (nodejsTimer) {
- // We use setTimeout() in timerInitializationSteps even for this.setInterval().
- clearTimeout(nodejsTimer);
- listOfActiveTimers.delete(handle);
- }
- };
-
- function timerInitializationSteps(handler, timeout, args, { methodContext, repeat, previousHandle }) {
- // This appears to be unspecced, but matches browser behavior for close()ed windows.
- if (!methodContext._document) {
- return 0;
- }
-
- // TODO: implement timer nesting level behavior.
-
- const methodContextProxy = methodContext._globalProxy;
- const handle = previousHandle !== undefined ? previousHandle : ++latestTimerId;
-
- function task() {
- if (!listOfActiveTimers.has(handle)) {
- return;
- }
-
- try {
- if (typeof handler === "function") {
- handler.apply(methodContextProxy, args);
- } else if (window._runScripts === "dangerously") {
- vm.runInContext(handler, window, { filename: window.location.href, displayErrors: false });
- }
- } catch (e) {
- reportException(window, e, window.location.href);
- }
-
- if (listOfActiveTimers.has(handle)) {
- if (repeat) {
- timerInitializationSteps(handler, timeout, args, { methodContext, repeat: true, previousHandle: handle });
- } else {
- listOfActiveTimers.delete(handle);
- }
- }
- }
-
- if (timeout < 0) {
- timeout = 0;
- }
-
- const nodejsTimer = setTimeout(task, timeout);
- listOfActiveTimers.set(handle, nodejsTimer);
-
- return handle;
- }
-
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
-
- this.queueMicrotask = function (callback) {
- callback = IDLFunction.convert(this, callback);
-
- queueMicrotask(() => {
- try {
- callback();
- } catch (e) {
- reportException(window, e, window.location.href);
- }
- });
- };
-
- // https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
-
- let animationFrameCallbackId = 0;
- const mapOfAnimationFrameCallbacks = new Map();
- let animationFrameNodejsInterval = null;
-
- // Unlike the spec, where an animation frame happens every 60 Hz regardless, we optimize so that if there are no
- // requestAnimationFrame() calls outstanding, we don't fire the timer. This helps us track that.
- let numberOfOngoingAnimationFrameCallbacks = 0;
-
- if (this._pretendToBeVisual) {
- this.requestAnimationFrame = function (callback) {
- callback = IDLFunction.convert(this, callback);
-
- const handle = ++animationFrameCallbackId;
- mapOfAnimationFrameCallbacks.set(handle, callback);
-
- ++numberOfOngoingAnimationFrameCallbacks;
- if (numberOfOngoingAnimationFrameCallbacks === 1) {
- animationFrameNodejsInterval = setInterval(() => {
- runAnimationFrameCallbacks(performance.now() - windowInitialized);
- }, 1000 / 60);
- }
-
- return handle;
- };
-
- this.cancelAnimationFrame = function (handle) {
- handle = webIDLConversions["unsigned long"](handle);
-
- removeAnimationFrameCallback(handle);
- };
-
- function runAnimationFrameCallbacks(now) {
- // Converting to an array is important to get a sync snapshot and thus match spec semantics.
- const callbackHandles = [...mapOfAnimationFrameCallbacks.keys()];
- for (const handle of callbackHandles) {
- // This has() can be false if a callback calls cancelAnimationFrame().
- if (mapOfAnimationFrameCallbacks.has(handle)) {
- const callback = mapOfAnimationFrameCallbacks.get(handle);
- removeAnimationFrameCallback(handle);
- try {
- callback(now);
- } catch (e) {
- reportException(window, e, window.location.href);
- }
- }
- }
- }
-
- function removeAnimationFrameCallback(handle) {
- if (mapOfAnimationFrameCallbacks.has(handle)) {
- --numberOfOngoingAnimationFrameCallbacks;
- if (numberOfOngoingAnimationFrameCallbacks === 0) {
- clearInterval(animationFrameNodejsInterval);
- }
- }
-
- mapOfAnimationFrameCallbacks.delete(handle);
- }
- }
-
- function stopAllTimers() {
- for (const nodejsTimer of listOfActiveTimers.values()) {
- clearTimeout(nodejsTimer);
- }
- listOfActiveTimers.clear();
-
- clearInterval(animationFrameNodejsInterval);
- }
-
- function Option(text, value, defaultSelected, selected) {
- if (text === undefined) {
- text = "";
- }
- text = webIDLConversions.DOMString(text);
-
- if (value !== undefined) {
- value = webIDLConversions.DOMString(value);
- }
-
- defaultSelected = webIDLConversions.boolean(defaultSelected);
- selected = webIDLConversions.boolean(selected);
-
- const option = window._document.createElement("option");
- const impl = idlUtils.implForWrapper(option);
-
- if (text !== "") {
- impl.text = text;
- }
- if (value !== undefined) {
- impl.setAttributeNS(null, "value", value);
- }
- if (defaultSelected) {
- impl.setAttributeNS(null, "selected", "");
- }
- impl._selectedness = selected;
-
- return option;
- }
- Object.defineProperty(Option, "prototype", {
- value: this.HTMLOptionElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Option", {
- value: Option,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- function Image(...args) {
- const img = window._document.createElement("img");
- const impl = idlUtils.implForWrapper(img);
-
- if (args.length > 0) {
- impl.setAttributeNS(null, "width", String(args[0]));
- }
- if (args.length > 1) {
- impl.setAttributeNS(null, "height", String(args[1]));
- }
-
- return img;
- }
- Object.defineProperty(Image, "prototype", {
- value: this.HTMLImageElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Image", {
- value: Image,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- function Audio(src) {
- const audio = window._document.createElement("audio");
- const impl = idlUtils.implForWrapper(audio);
- impl.setAttributeNS(null, "preload", "auto");
-
- if (src !== undefined) {
- impl.setAttributeNS(null, "src", String(src));
- }
-
- return audio;
- }
- Object.defineProperty(Audio, "prototype", {
- value: this.HTMLAudioElement.prototype,
- configurable: false,
- enumerable: false,
- writable: false
- });
- Object.defineProperty(window, "Audio", {
- value: Audio,
- configurable: true,
- enumerable: false,
- writable: true
- });
-
- this.postMessage = postMessage(window);
-
- this.atob = function (str) {
- const result = atob(str);
- if (result === null) {
- throw DOMException.create(window, [
- "The string to be decoded contains invalid characters.",
- "InvalidCharacterError"
- ]);
- }
- return result;
- };
-
- this.btoa = function (str) {
- const result = btoa(str);
- if (result === null) {
- throw DOMException.create(window, [
- "The string to be encoded contains invalid characters.",
- "InvalidCharacterError"
- ]);
- }
- return result;
- };
-
- this.stop = function () {
- const manager = idlUtils.implForWrapper(this._document)._requestManager;
- if (manager) {
- manager.close();
- }
- };
-
- this.close = function () {
- // Recursively close child frame windows, then ourselves (depth-first).
- for (let i = 0; i < this.length; ++i) {
- this[i].close();
- }
-
- // Clear out all listeners. Any in-flight or upcoming events should not get delivered.
- idlUtils.implForWrapper(this)._eventListeners = Object.create(null);
-
- if (this._document) {
- if (this._document.body) {
- this._document.body.innerHTML = "";
- }
-
- if (this._document.close) {
- // It's especially important to clear out the listeners here because document.close() causes a "load" event to
- // fire.
- idlUtils.implForWrapper(this._document)._eventListeners = Object.create(null);
- this._document.close();
- }
- const doc = idlUtils.implForWrapper(this._document);
- if (doc._requestManager) {
- doc._requestManager.close();
- }
- delete this._document;
- }
-
- stopAllTimers();
- WebSocketImpl.cleanUpWindow(this);
- };
-
- this.getComputedStyle = function (elt, pseudoElt = undefined) {
- elt = Element.convert(this, elt);
- if (pseudoElt !== undefined && pseudoElt !== null) {
- pseudoElt = webIDLConversions.DOMString(pseudoElt);
- }
-
- if (pseudoElt !== undefined && pseudoElt !== null && pseudoElt !== "") {
- // TODO: Parse pseudoElt
-
- if (SHADOW_DOM_PSEUDO_REGEXP.test(pseudoElt)) {
- throw new TypeError("Tried to get the computed style of a Shadow DOM pseudo-element.");
- }
-
- notImplemented("window.computedStyle(elt, pseudoElt)", this);
- }
-
- const declaration = new CSSStyleDeclaration();
- const { forEach } = Array.prototype;
-
- const elementDeclaration = getDeclarationForElement(elt);
- forEach.call(elementDeclaration, property => {
- declaration.setProperty(
- property,
- elementDeclaration.getPropertyValue(property),
- elementDeclaration.getPropertyPriority(property)
- );
- });
-
- // https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle
- const declarations = Object.keys(propertiesWithResolvedValueImplemented);
- forEach.call(declarations, property => {
- declaration.setProperty(property, getResolvedValue(elt, property));
- });
-
- return declaration;
- };
-
- this.getSelection = function () {
- return window._document.getSelection();
- };
-
- // The captureEvents() and releaseEvents() methods must do nothing
- this.captureEvents = function () {};
-
- this.releaseEvents = function () {};
-
- // ### PUBLIC DATA PROPERTIES (TODO: should be getters)
-
- function wrapConsoleMethod(method) {
- return (...args) => {
- window._virtualConsole.emit(method, ...args);
- };
- }
-
- this.console = {
- assert: wrapConsoleMethod("assert"),
- clear: wrapConsoleMethod("clear"),
- count: wrapConsoleMethod("count"),
- countReset: wrapConsoleMethod("countReset"),
- debug: wrapConsoleMethod("debug"),
- dir: wrapConsoleMethod("dir"),
- dirxml: wrapConsoleMethod("dirxml"),
- error: wrapConsoleMethod("error"),
- group: wrapConsoleMethod("group"),
- groupCollapsed: wrapConsoleMethod("groupCollapsed"),
- groupEnd: wrapConsoleMethod("groupEnd"),
- info: wrapConsoleMethod("info"),
- log: wrapConsoleMethod("log"),
- table: wrapConsoleMethod("table"),
- time: wrapConsoleMethod("time"),
- timeLog: wrapConsoleMethod("timeLog"),
- timeEnd: wrapConsoleMethod("timeEnd"),
- trace: wrapConsoleMethod("trace"),
- warn: wrapConsoleMethod("warn")
- };
-
- function notImplementedMethod(name) {
- return function () {
- notImplemented(name, window);
- };
- }
-
- define(this, {
- name: "",
- status: "",
- devicePixelRatio: 1,
- innerWidth: 1024,
- innerHeight: 768,
- outerWidth: 1024,
- outerHeight: 768,
- pageXOffset: 0,
- pageYOffset: 0,
- screenX: 0,
- screenLeft: 0,
- screenY: 0,
- screenTop: 0,
- scrollX: 0,
- scrollY: 0,
-
- alert: notImplementedMethod("window.alert"),
- blur: notImplementedMethod("window.blur"),
- confirm: notImplementedMethod("window.confirm"),
- focus: notImplementedMethod("window.focus"),
- moveBy: notImplementedMethod("window.moveBy"),
- moveTo: notImplementedMethod("window.moveTo"),
- open: notImplementedMethod("window.open"),
- print: notImplementedMethod("window.print"),
- prompt: notImplementedMethod("window.prompt"),
- resizeBy: notImplementedMethod("window.resizeBy"),
- resizeTo: notImplementedMethod("window.resizeTo"),
- scroll: notImplementedMethod("window.scroll"),
- scrollBy: notImplementedMethod("window.scrollBy"),
- scrollTo: notImplementedMethod("window.scrollTo")
- });
-
- // ### INITIALIZATION
-
- process.nextTick(() => {
- if (!window.document) {
- return; // window might've been closed already
- }
-
- if (window.document.readyState === "complete") {
- fireAnEvent("load", window, undefined, {}, true);
- } else {
- window.document.addEventListener("load", () => {
- fireAnEvent("load", window, undefined, {}, true);
- if (!window._document) {
- return; // window might've been closed already
- }
-
- const documentImpl = idlUtils.implForWrapper(window._document);
- if (!documentImpl._pageShowingFlag) {
- documentImpl._pageShowingFlag = true;
- fireAPageTransitionEvent("pageshow", window, false);
- }
- });
- }
- });
-}
-
-function contextifyWindow(window) {
- if (vm.isContext(window)) {
- return;
- }
-
- vm.createContext(window);
-}
-
-
-/***/ }),
-
-/***/ 89489:
-/***/ ((module) => {
-
-// Ideally, we would use
-// https://html.spec.whatwg.org/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints
-// but for now, just use the version from blink. This file is copied from
-// https://chromium.googlesource.com/chromium/blink/+/96aa3a280ab7d67178c8f122a04949ce5f8579e0/Source/core/css/html.css
-// (removed a line which had octal literals inside since octal literals are not allowed in template strings)
-
-// We use a .js file because otherwise we can't browserify this. (brfs is unusable due to lack of ES2015 support)
-
-module.exports = `
-/*
- * The default style sheet used to render HTML.
- *
- * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-@namespace "http://www.w3.org/1999/xhtml";
-
-html {
- display: block
-}
-
-:root {
- scroll-blocks-on: start-touch wheel-event
-}
-
-/* children of the element all have display:none */
-head {
- display: none
-}
-
-meta {
- display: none
-}
-
-title {
- display: none
-}
-
-link {
- display: none
-}
-
-style {
- display: none
-}
-
-script {
- display: none
-}
-
-/* generic block-level elements */
-
-body {
- display: block;
- margin: 8px
-}
-
-p {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1__qem;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
-}
-
-div {
- display: block
-}
-
-layer {
- display: block
-}
-
-article, aside, footer, header, hgroup, main, nav, section {
- display: block
-}
-
-marquee {
- display: inline-block;
-}
-
-address {
- display: block
-}
-
-blockquote {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 40px;
- -webkit-margin-end: 40px;
-}
-
-figcaption {
- display: block
-}
-
-figure {
- display: block;
- -webkit-margin-before: 1em;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 40px;
- -webkit-margin-end: 40px;
-}
-
-q {
- display: inline
-}
-
-/* nwmatcher does not support ::before and ::after, so we can't render q
-correctly: https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
-TODO: add q::before and q::after selectors
-*/
-
-center {
- display: block;
- /* special centering to be able to emulate the html4/netscape behaviour */
- text-align: -webkit-center
-}
-
-hr {
- display: block;
- -webkit-margin-before: 0.5em;
- -webkit-margin-after: 0.5em;
- -webkit-margin-start: auto;
- -webkit-margin-end: auto;
- border-style: inset;
- border-width: 1px;
- box-sizing: border-box
-}
-
-map {
- display: inline
-}
-
-video {
- object-fit: contain;
-}
-
-/* heading elements */
-
-h1 {
- display: block;
- font-size: 2em;
- -webkit-margin-before: 0.67__qem;
- -webkit-margin-after: 0.67em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-article h1,
-aside h1,
-nav h1,
-section h1 {
- font-size: 1.5em;
- -webkit-margin-before: 0.83__qem;
- -webkit-margin-after: 0.83em;
-}
-
-article article h1,
-article aside h1,
-article nav h1,
-article section h1,
-aside article h1,
-aside aside h1,
-aside nav h1,
-aside section h1,
-nav article h1,
-nav aside h1,
-nav nav h1,
-nav section h1,
-section article h1,
-section aside h1,
-section nav h1,
-section section h1 {
- font-size: 1.17em;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
-}
-
-/* Remaining selectors are deleted because nwmatcher does not support
-:matches() and expanding the selectors manually would be far too verbose.
-Also see https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings
-TODO: rewrite to use :matches() when nwmatcher supports it.
-*/
-
-h2 {
- display: block;
- font-size: 1.5em;
- -webkit-margin-before: 0.83__qem;
- -webkit-margin-after: 0.83em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-h3 {
- display: block;
- font-size: 1.17em;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-h4 {
- display: block;
- -webkit-margin-before: 1.33__qem;
- -webkit-margin-after: 1.33em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-h5 {
- display: block;
- font-size: .83em;
- -webkit-margin-before: 1.67__qem;
- -webkit-margin-after: 1.67em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-h6 {
- display: block;
- font-size: .67em;
- -webkit-margin-before: 2.33__qem;
- -webkit-margin-after: 2.33em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- font-weight: bold
-}
-
-/* tables */
-
-table {
- display: table;
- border-collapse: separate;
- border-spacing: 2px;
- border-color: gray
-}
-
-thead {
- display: table-header-group;
- vertical-align: middle;
- border-color: inherit
-}
-
-tbody {
- display: table-row-group;
- vertical-align: middle;
- border-color: inherit
-}
-
-tfoot {
- display: table-footer-group;
- vertical-align: middle;
- border-color: inherit
-}
-
-/* for tables without table section elements (can happen with XHTML or dynamically created tables) */
-table > tr {
- vertical-align: middle;
-}
-
-col {
- display: table-column
-}
-
-colgroup {
- display: table-column-group
-}
-
-tr {
- display: table-row;
- vertical-align: inherit;
- border-color: inherit
-}
-
-td, th {
- display: table-cell;
- vertical-align: inherit
-}
-
-th {
- font-weight: bold
-}
-
-caption {
- display: table-caption;
- text-align: -webkit-center
-}
-
-/* lists */
-
-ul, menu, dir {
- display: block;
- list-style-type: disc;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- -webkit-padding-start: 40px
-}
-
-ol {
- display: block;
- list-style-type: decimal;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
- -webkit-padding-start: 40px
-}
-
-li {
- display: list-item;
- text-align: -webkit-match-parent;
-}
-
-ul ul, ol ul {
- list-style-type: circle
-}
-
-ol ol ul, ol ul ul, ul ol ul, ul ul ul {
- list-style-type: square
-}
-
-dd {
- display: block;
- -webkit-margin-start: 40px
-}
-
-dl {
- display: block;
- -webkit-margin-before: 1__qem;
- -webkit-margin-after: 1em;
- -webkit-margin-start: 0;
- -webkit-margin-end: 0;
-}
-
-dt {
- display: block
-}
-
-ol ul, ul ol, ul ul, ol ol {
- -webkit-margin-before: 0;
- -webkit-margin-after: 0
-}
-
-/* form elements */
-
-form {
- display: block;
- margin-top: 0__qem;
-}
-
-label {
- cursor: default;
-}
-
-legend {
- display: block;
- -webkit-padding-start: 2px;
- -webkit-padding-end: 2px;
- border: none
-}
-
-fieldset {
- display: block;
- -webkit-margin-start: 2px;
- -webkit-margin-end: 2px;
- -webkit-padding-before: 0.35em;
- -webkit-padding-start: 0.75em;
- -webkit-padding-end: 0.75em;
- -webkit-padding-after: 0.625em;
- border: 2px groove ThreeDFace;
- min-width: -webkit-min-content;
-}
-
-button {
- -webkit-appearance: button;
-}
-
-/* Form controls don't go vertical. */
-input, textarea, select, button, meter, progress {
- -webkit-writing-mode: horizontal-tb !important;
-}
-
-input, textarea, select, button {
- margin: 0__qem;
- font: -webkit-small-control;
- text-rendering: auto; /* FIXME: Remove when tabs work with optimizeLegibility. */
- color: initial;
- letter-spacing: normal;
- word-spacing: normal;
- line-height: normal;
- text-transform: none;
- text-indent: 0;
- text-shadow: none;
- display: inline-block;
- text-align: start;
-}
-
-/* TODO: Add " i" to attribute matchers to support case-insensitive matching */
-input[type="hidden"] {
- display: none
-}
-
-input {
- -webkit-appearance: textfield;
- padding: 1px;
- background-color: white;
- border: 2px inset;
- -webkit-rtl-ordering: logical;
- -webkit-user-select: text;
- cursor: auto;
-}
-
-input[type="search"] {
- -webkit-appearance: searchfield;
- box-sizing: border-box;
-}
-
-select {
- border-radius: 5px;
-}
-
-textarea {
- -webkit-appearance: textarea;
- background-color: white;
- border: 1px solid;
- -webkit-rtl-ordering: logical;
- -webkit-user-select: text;
- flex-direction: column;
- resize: auto;
- cursor: auto;
- padding: 2px;
- white-space: pre-wrap;
- word-wrap: break-word;
-}
-
-input[type="password"] {
- -webkit-text-security: disc !important;
-}
-
-input[type="hidden"], input[type="image"], input[type="file"] {
- -webkit-appearance: initial;
- padding: initial;
- background-color: initial;
- border: initial;
-}
-
-input[type="file"] {
- align-items: baseline;
- color: inherit;
- text-align: start !important;
-}
-
-input[type="radio"], input[type="checkbox"] {
- margin: 3px 0.5ex;
- padding: initial;
- background-color: initial;
- border: initial;
-}
-
-input[type="button"], input[type="submit"], input[type="reset"] {
- -webkit-appearance: push-button;
- -webkit-user-select: none;
- white-space: pre
-}
-
-input[type="button"], input[type="submit"], input[type="reset"], button {
- align-items: flex-start;
- text-align: center;
- cursor: default;
- color: ButtonText;
- padding: 2px 6px 3px 6px;
- border: 2px outset ButtonFace;
- background-color: ButtonFace;
- box-sizing: border-box
-}
-
-input[type="range"] {
- -webkit-appearance: slider-horizontal;
- padding: initial;
- border: initial;
- margin: 2px;
- color: #909090;
-}
-
-input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,
-button:disabled, select:disabled, optgroup:disabled, option:disabled,
-select[disabled]>option {
- color: GrayText
-}
-
-input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, button:active {
- border-style: inset
-}
-
-input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, button:active:disabled {
- border-style: outset
-}
-
-datalist {
- display: none
-}
-
-area {
- display: inline;
- cursor: pointer;
-}
-
-param {
- display: none
-}
-
-input[type="checkbox"] {
- -webkit-appearance: checkbox;
- box-sizing: border-box;
-}
-
-input[type="radio"] {
- -webkit-appearance: radio;
- box-sizing: border-box;
-}
-
-input[type="color"] {
- -webkit-appearance: square-button;
- width: 44px;
- height: 23px;
- background-color: ButtonFace;
- /* Same as native_theme_base. */
- border: 1px #a9a9a9 solid;
- padding: 1px 2px;
-}
-
-input[type="color"][list] {
- -webkit-appearance: menulist;
- width: 88px;
- height: 23px
-}
-
-select {
- -webkit-appearance: menulist;
- box-sizing: border-box;
- align-items: center;
- border: 1px solid;
- white-space: pre;
- -webkit-rtl-ordering: logical;
- color: black;
- background-color: white;
- cursor: default;
-}
-
-optgroup {
- font-weight: bolder;
- display: block;
-}
-
-option {
- font-weight: normal;
- display: block;
- padding: 0 2px 1px 2px;
- white-space: pre;
- min-height: 1.2em;
-}
-
-output {
- display: inline;
-}
-
-/* meter */
-
-meter {
- -webkit-appearance: meter;
- box-sizing: border-box;
- display: inline-block;
- height: 1em;
- width: 5em;
- vertical-align: -0.2em;
-}
-
-/* progress */
-
-progress {
- -webkit-appearance: progress-bar;
- box-sizing: border-box;
- display: inline-block;
- height: 1em;
- width: 10em;
- vertical-align: -0.2em;
-}
-
-/* inline elements */
-
-u, ins {
- text-decoration: underline
-}
-
-strong, b {
- font-weight: bold
-}
-
-i, cite, em, var, address, dfn {
- font-style: italic
-}
-
-tt, code, kbd, samp {
- font-family: monospace
-}
-
-pre, xmp, plaintext, listing {
- display: block;
- font-family: monospace;
- white-space: pre;
- margin: 1__qem 0
-}
-
-mark {
- background-color: yellow;
- color: black
-}
-
-big {
- font-size: larger
-}
-
-small {
- font-size: smaller
-}
-
-s, strike, del {
- text-decoration: line-through
-}
-
-sub {
- vertical-align: sub;
- font-size: smaller
-}
-
-sup {
- vertical-align: super;
- font-size: smaller
-}
-
-nobr {
- white-space: nowrap
-}
-
-/* states */
-
-:focus {
- outline: auto 5px -webkit-focus-ring-color
-}
-
-/* Read-only text fields do not show a focus ring but do still receive focus */
-html:focus, body:focus, input[readonly]:focus {
- outline: none
-}
-
-embed:focus, iframe:focus, object:focus {
- outline: none
-}
-
-input:focus, textarea:focus, select:focus {
- outline-offset: -2px
-}
-
-input[type="button"]:focus,
-input[type="checkbox"]:focus,
-input[type="file"]:focus,
-input[type="hidden"]:focus,
-input[type="image"]:focus,
-input[type="radio"]:focus,
-input[type="reset"]:focus,
-input[type="search"]:focus,
-input[type="submit"]:focus {
- outline-offset: 0
-}
-
-/* HTML5 ruby elements */
-
-ruby, rt {
- text-indent: 0; /* blocks used for ruby rendering should not trigger this */
-}
-
-rt {
- line-height: normal;
- -webkit-text-emphasis: none;
-}
-
-ruby > rt {
- display: block;
- font-size: 50%;
- text-align: start;
-}
-
-ruby > rp {
- display: none;
-}
-
-/* other elements */
-
-noframes {
- display: none
-}
-
-frameset, frame {
- display: block
-}
-
-frameset {
- border-color: inherit
-}
-
-iframe {
- border: 2px inset
-}
-
-details {
- display: block
-}
-
-summary {
- display: block
-}
-
-template {
- display: none
-}
-
-bdi, output {
- unicode-bidi: -webkit-isolate;
-}
-
-bdo {
- unicode-bidi: bidi-override;
-}
-
-textarea[dir=auto] {
- unicode-bidi: -webkit-plaintext;
-}
-
-dialog:not([open]) {
- display: none
-}
-
-dialog {
- position: absolute;
- left: 0;
- right: 0;
- width: -webkit-fit-content;
- height: -webkit-fit-content;
- margin: auto;
- border: solid;
- padding: 1em;
- background: white;
- color: black
-}
-
-[hidden] {
- display: none
-}
-
-/* noscript is handled internally, as it depends on settings. */
-
-`;
-
-
-/***/ }),
-
-/***/ 42751:
-/***/ ((module) => {
-
-"use strict";
-
-
-module.exports = function (nameForErrorMessage, window) {
- if (!window) {
- // Do nothing for window-less documents.
- return;
- }
-
- const error = new Error(`Not implemented: ${nameForErrorMessage}`);
- error.type = "not implemented";
-
- window._virtualConsole.emit("jsdomError", error);
-};
-
-
-/***/ }),
-
-/***/ 53601:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const parse5 = __nccwpck_require__(43095);
-
-const { createElement } = __nccwpck_require__(98548);
-const { HTML_NS } = __nccwpck_require__(52635);
-
-const DocumentType = __nccwpck_require__(53193);
-const DocumentFragment = __nccwpck_require__(11490);
-const Text = __nccwpck_require__(49374);
-const Comment = __nccwpck_require__(56625);
-
-const attributes = __nccwpck_require__(35092);
-const nodeTypes = __nccwpck_require__(10656);
-
-const serializationAdapter = __nccwpck_require__(19756);
-const {
- customElementReactionsStack, invokeCEReactions, lookupCEDefinition
-} = __nccwpck_require__(25392);
-
-
-class JSDOMParse5Adapter {
- constructor(documentImpl, options = {}) {
- this._documentImpl = documentImpl;
- this._globalObject = documentImpl._globalObject;
- this._fragment = options.fragment || false;
-
- // Since the createElement hook doesn't provide the parent element, we keep track of this using _currentElement:
- // https://github.com/inikulin/parse5/issues/285.
- this._currentElement = undefined;
- }
-
- _ownerDocument() {
- const { _currentElement } = this;
-
- // The _currentElement is undefined when parsing elements at the root of the document.
- if (_currentElement) {
- return _currentElement.localName === "template" && _currentElement.namespaceURI === HTML_NS ?
- _currentElement.content._ownerDocument :
- _currentElement._ownerDocument;
- }
-
- return this._documentImpl;
- }
-
- createDocument() {
- // parse5's model assumes that parse(html) will call into here to create the new Document, then return it. However,
- // jsdom's model assumes we can create a Window (and through that create an empty Document), do some other setup
- // stuff, and then parse, stuffing nodes into that Document as we go. So to adapt between these two models, we just
- // return the already-created Document when asked by parse5 to "create" a Document.
- return this._documentImpl;
- }
-
- createDocumentFragment() {
- const ownerDocument = this._ownerDocument();
- return DocumentFragment.createImpl(this._globalObject, [], { ownerDocument });
- }
-
- // https://html.spec.whatwg.org/#create-an-element-for-the-token
- createElement(localName, namespace, attrs) {
- const ownerDocument = this._ownerDocument();
-
- const isAttribute = attrs.find(attr => attr.name === "is");
- const isValue = isAttribute ? isAttribute.value : null;
-
- const definition = lookupCEDefinition(ownerDocument, namespace, localName);
-
- let willExecuteScript = false;
- if (definition !== null && !this._fragment) {
- willExecuteScript = true;
- }
-
- if (willExecuteScript) {
- ownerDocument._throwOnDynamicMarkupInsertionCounter++;
- customElementReactionsStack.push([]);
- }
-
- const element = createElement(ownerDocument, localName, namespace, null, isValue, willExecuteScript);
- this.adoptAttributes(element, attrs);
-
- if (willExecuteScript) {
- const queue = customElementReactionsStack.pop();
- invokeCEReactions(queue);
- ownerDocument._throwOnDynamicMarkupInsertionCounter--;
- }
-
- if ("_parserInserted" in element) {
- element._parserInserted = true;
- }
-
- return element;
- }
-
- createCommentNode(data) {
- const ownerDocument = this._ownerDocument();
- return Comment.createImpl(this._globalObject, [], { data, ownerDocument });
- }
-
- appendChild(parentNode, newNode) {
- parentNode._append(newNode);
- }
-
- insertBefore(parentNode, newNode, referenceNode) {
- parentNode._insert(newNode, referenceNode);
- }
-
- setTemplateContent(templateElement, contentFragment) {
- // This code makes the glue between jsdom and parse5 HTMLTemplateElement parsing:
- //
- // * jsdom during the construction of the HTMLTemplateElement (for example when create via
- // `document.createElement("template")`), creates a DocumentFragment and set it into _templateContents.
- // * parse5 when parsing a tag creates an HTMLTemplateElement (`createElement` adapter hook) and also
- // create a DocumentFragment (`createDocumentFragment` adapter hook).
- //
- // At this point we now have to replace the one created in jsdom with one created by parse5.
- const { _ownerDocument, _host } = templateElement._templateContents;
- contentFragment._ownerDocument = _ownerDocument;
- contentFragment._host = _host;
-
- templateElement._templateContents = contentFragment;
- }
-
- setDocumentType(document, name, publicId, systemId) {
- const ownerDocument = this._ownerDocument();
- const documentType = DocumentType.createImpl(this._globalObject, [], { name, publicId, systemId, ownerDocument });
-
- document._append(documentType);
- }
-
- setDocumentMode(document, mode) {
- // TODO: the rest of jsdom ignores this
- document._mode = mode;
- }
-
- detachNode(node) {
- node.remove();
- }
-
- insertText(parentNode, text) {
- const { lastChild } = parentNode;
- if (lastChild && lastChild.nodeType === nodeTypes.TEXT_NODE) {
- lastChild.data += text;
- } else {
- const ownerDocument = this._ownerDocument();
- const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
- parentNode._append(textNode);
- }
- }
-
- insertTextBefore(parentNode, text, referenceNode) {
- const { previousSibling } = referenceNode;
- if (previousSibling && previousSibling.nodeType === nodeTypes.TEXT_NODE) {
- previousSibling.data += text;
- } else {
- const ownerDocument = this._ownerDocument();
- const textNode = Text.createImpl(this._globalObject, [], { data: text, ownerDocument });
- parentNode._append(textNode, referenceNode);
- }
- }
-
- adoptAttributes(element, attrs) {
- for (const attr of attrs) {
- const prefix = attr.prefix === "" ? null : attr.prefix;
- attributes.setAttributeValue(element, attr.name, attr.value, prefix, attr.namespace);
- }
- }
-
- onItemPush(after) {
- this._currentElement = after;
- after._pushedOnStackOfOpenElements?.();
- }
-
- onItemPop(before, newTop) {
- this._currentElement = newTop;
- before._poppedOffStackOfOpenElements?.();
- }
-}
-
-// Assign shared adapters with serializer.
-Object.assign(JSDOMParse5Adapter.prototype, serializationAdapter);
-
-function parseFragment(markup, contextElement) {
- const ownerDocument = contextElement.localName === "template" && contextElement.namespaceURI === HTML_NS ?
- contextElement.content._ownerDocument :
- contextElement._ownerDocument;
-
- const config = {
- ...ownerDocument._parseOptions,
- sourceCodeLocationInfo: false,
- treeAdapter: new JSDOMParse5Adapter(ownerDocument, { fragment: true })
- };
-
- return parse5.parseFragment(contextElement, markup, config);
-}
-
-function parseIntoDocument(markup, ownerDocument) {
- const config = {
- ...ownerDocument._parseOptions,
- treeAdapter: new JSDOMParse5Adapter(ownerDocument)
- };
-
- return parse5.parse(markup, config);
-}
-
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
-
-
-/***/ }),
-
-/***/ 35373:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const xmlParser = __nccwpck_require__(13408);
-const htmlParser = __nccwpck_require__(53601);
-
-// https://w3c.github.io/DOM-Parsing/#dfn-fragment-parsing-algorithm
-function parseFragment(markup, contextElement) {
- const { _parsingMode } = contextElement._ownerDocument;
-
- let parseAlgorithm;
- if (_parsingMode === "html") {
- parseAlgorithm = htmlParser.parseFragment;
- } else if (_parsingMode === "xml") {
- parseAlgorithm = xmlParser.parseFragment;
- }
-
- // Note: HTML and XML fragment parsing algorithm already return a document fragments; no need to do steps 3 and 4
- return parseAlgorithm(markup, contextElement);
-}
-
-function parseIntoDocument(markup, ownerDocument) {
- const { _parsingMode } = ownerDocument;
-
- let parseAlgorithm;
- if (_parsingMode === "html") {
- parseAlgorithm = htmlParser.parseIntoDocument;
- } else if (_parsingMode === "xml") {
- parseAlgorithm = xmlParser.parseIntoDocument;
- }
-
- return parseAlgorithm(markup, ownerDocument);
-}
-
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
-
-
-/***/ }),
-
-/***/ 13408:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { SaxesParser } = __nccwpck_require__(42958);
-const DOMException = __nccwpck_require__(57617);
-
-const { createElement } = __nccwpck_require__(98548);
-
-const DocumentFragment = __nccwpck_require__(11490);
-const DocumentType = __nccwpck_require__(53193);
-const CDATASection = __nccwpck_require__(85221);
-const Comment = __nccwpck_require__(56625);
-const ProcessingInstruction = __nccwpck_require__(75221);
-const Text = __nccwpck_require__(49374);
-
-const attributes = __nccwpck_require__(35092);
-const { HTML_NS } = __nccwpck_require__(52635);
-
-const HTML5_DOCTYPE = //i;
-const PUBLIC_DOCTYPE = /]+)/i;
-
-function parseDocType(globalObject, ownerDocument, html) {
- if (HTML5_DOCTYPE.test(html)) {
- return createDocumentType(globalObject, ownerDocument, "html", "", "");
- }
-
- const publicPieces = PUBLIC_DOCTYPE.exec(html);
- if (publicPieces) {
- return createDocumentType(globalObject, ownerDocument, publicPieces[1], publicPieces[2], publicPieces[3]);
- }
-
- const systemPieces = SYSTEM_DOCTYPE.exec(html);
- if (systemPieces) {
- return createDocumentType(globalObject, ownerDocument, systemPieces[1], "", systemPieces[2]);
- }
-
- const namePiece = CUSTOM_NAME_DOCTYPE.exec(html)[1] || "html";
- return createDocumentType(globalObject, ownerDocument, namePiece, "", "");
-}
-
-function createDocumentType(globalObject, ownerDocument, name, publicId, systemId) {
- return DocumentType.createImpl(globalObject, [], { ownerDocument, name, publicId, systemId });
-}
-
-function isHTMLTemplateElement(element) {
- return element.tagName === "template" && element.namespaceURI === HTML_NS;
-}
-
-
-function createParser(rootNode, globalObject, saxesOptions) {
- const parser = new SaxesParser({
- ...saxesOptions,
- // Browsers always have namespace support.
- xmlns: true,
- // We force the parser to treat all documents (even documents declaring themselves to be XML 1.1 documents) as XML
- // 1.0 documents. See https://github.com/jsdom/jsdom/issues/2677 for a discussion of the stakes.
- defaultXMLVersion: "1.0",
- forceXMLVersion: true
- });
- const openStack = [rootNode];
-
- function getOwnerDocument() {
- const currentElement = openStack[openStack.length - 1];
-
- return isHTMLTemplateElement(currentElement) ?
- currentElement._templateContents._ownerDocument :
- currentElement._ownerDocument;
- }
-
- function appendChild(child) {
- const parentElement = openStack[openStack.length - 1];
-
- if (isHTMLTemplateElement(parentElement)) {
- parentElement._templateContents._insert(child, null);
- } else {
- parentElement._insert(child, null);
- }
- }
-
- parser.on("text", saxesOptions.fragment ?
- // In a fragment, all text events produced by saxes must result in a text
- // node.
- data => {
- const ownerDocument = getOwnerDocument();
- appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
- } :
- // When parsing a whole document, we must ignore those text nodes that are
- // produced outside the root element. Saxes produces events for them,
- // but DOM trees do not record text outside the root element.
- data => {
- if (openStack.length > 1) {
- const ownerDocument = getOwnerDocument();
- appendChild(Text.createImpl(globalObject, [], { data, ownerDocument }));
- }
- });
-
- parser.on("cdata", data => {
- const ownerDocument = getOwnerDocument();
- appendChild(CDATASection.createImpl(globalObject, [], { data, ownerDocument }));
- });
-
- parser.on("opentag", tag => {
- const { local: tagLocal, attributes: tagAttributes } = tag;
-
- const ownerDocument = getOwnerDocument();
- const tagNamespace = tag.uri === "" ? null : tag.uri;
- const tagPrefix = tag.prefix === "" ? null : tag.prefix;
- const isValue = tagAttributes.is === undefined ? null : tagAttributes.is.value;
-
- const elem = createElement(ownerDocument, tagLocal, tagNamespace, tagPrefix, isValue, true);
-
- // We mark a script element as "parser-inserted", which prevents it from
- // being immediately executed.
- if (tagLocal === "script" && tagNamespace === HTML_NS) {
- elem._parserInserted = true;
- }
-
- for (const key of Object.keys(tagAttributes)) {
- const { prefix, local, uri, value } = tagAttributes[key];
- attributes.setAttributeValue(elem, local, value, prefix === "" ? null : prefix, uri === "" ? null : uri);
- }
-
- appendChild(elem);
- openStack.push(elem);
- });
-
- parser.on("closetag", () => {
- const elem = openStack.pop();
- // Once a script is populated, we can execute it.
- if (elem.localName === "script" && elem.namespaceURI === HTML_NS) {
- elem._eval();
- }
- });
-
- parser.on("comment", data => {
- const ownerDocument = getOwnerDocument();
- appendChild(Comment.createImpl(globalObject, [], { data, ownerDocument }));
- });
-
- parser.on("processinginstruction", ({ target, body }) => {
- const ownerDocument = getOwnerDocument();
- appendChild(ProcessingInstruction.createImpl(globalObject, [], { target, data: body, ownerDocument }));
- });
-
- parser.on("doctype", dt => {
- const ownerDocument = getOwnerDocument();
- appendChild(parseDocType(globalObject, ownerDocument, ``));
-
- const entityMatcher = //g;
- let result;
- while ((result = entityMatcher.exec(dt))) {
- const [, name, value] = result;
- if (!(name in parser.ENTITIES)) {
- parser.ENTITIES[name] = value;
- }
- }
- });
-
- parser.on("error", err => {
- throw DOMException.create(globalObject, [err.message, "SyntaxError"]);
- });
-
- return parser;
-}
-
-function parseFragment(markup, contextElement) {
- const { _globalObject, _ownerDocument } = contextElement;
-
- const fragment = DocumentFragment.createImpl(_globalObject, [], { ownerDocument: _ownerDocument });
-
- // Only parseFragment needs resolvePrefix per the saxes documentation:
- // https://github.com/lddubeau/saxes#parsing-xml-fragments
- const parser = createParser(fragment, _globalObject, {
- fragment: true,
- resolvePrefix(prefix) {
- // saxes wants undefined as the return value if the prefix is not defined, not null.
- return contextElement.lookupNamespaceURI(prefix) || undefined;
- }
- });
-
- parser.write(markup).close();
-
- return fragment;
-}
-
-function parseIntoDocument(markup, ownerDocument) {
- const { _globalObject } = ownerDocument;
-
- const parser = createParser(ownerDocument, _globalObject, {
- fileName: ownerDocument.location && ownerDocument.location.href
- });
-
- parser.write(markup).close();
-
- return ownerDocument;
-}
-
-module.exports = {
- parseFragment,
- parseIntoDocument
-};
-
-
-/***/ }),
-
-/***/ 69420:
-/***/ ((module) => {
-
-"use strict";
-
-
-class QueueItem {
- constructor(onLoad, onError, dependentItem) {
- this.onLoad = onLoad;
- this.onError = onError;
- this.data = null;
- this.error = null;
- this.dependentItem = dependentItem;
- }
-}
-
-/**
- * AsyncResourceQueue is the queue in charge of run the async scripts
- * and notify when they finish.
- */
-module.exports = class AsyncResourceQueue {
- constructor() {
- this.items = new Set();
- this.dependentItems = new Set();
- }
-
- count() {
- return this.items.size + this.dependentItems.size;
- }
-
- _notify() {
- if (this._listener) {
- this._listener();
- }
- }
-
- _check(item) {
- let promise;
-
- if (item.onError && item.error) {
- promise = item.onError(item.error);
- } else if (item.onLoad && item.data) {
- promise = item.onLoad(item.data);
- }
-
- promise
- .then(() => {
- this.items.delete(item);
- this.dependentItems.delete(item);
-
- if (this.count() === 0) {
- this._notify();
- }
- });
- }
-
- setListener(listener) {
- this._listener = listener;
- }
-
- push(request, onLoad, onError, dependentItem) {
- const q = this;
-
- const item = new QueueItem(onLoad, onError, dependentItem);
-
- q.items.add(item);
-
- return request
- .then(data => {
- item.data = data;
-
- if (dependentItem && !dependentItem.finished) {
- q.dependentItems.add(item);
- return q.items.delete(item);
- }
-
- if (onLoad) {
- return q._check(item);
- }
-
- q.items.delete(item);
-
- if (q.count() === 0) {
- q._notify();
- }
-
- return null;
- })
- .catch(err => {
- item.error = err;
-
- if (dependentItem && !dependentItem.finished) {
- q.dependentItems.add(item);
- return q.items.delete(item);
- }
-
- if (onError) {
- return q._check(item);
- }
-
- q.items.delete(item);
-
- if (q.count() === 0) {
- q._notify();
- }
-
- return null;
- });
- }
-
- notifyItem(syncItem) {
- for (const item of this.dependentItems) {
- if (item.dependentItem === syncItem) {
- this._check(item);
- }
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 5383:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const ResourceLoader = __nccwpck_require__(90007);
-
-module.exports = class NoOpResourceLoader extends ResourceLoader {
- fetch() {
- return null;
- }
-};
-
-
-/***/ }),
-
-/***/ 42801:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const idlUtils = __nccwpck_require__(34908);
-const { fireAnEvent } = __nccwpck_require__(45673);
-
-module.exports = class PerDocumentResourceLoader {
- constructor(document) {
- this._document = document;
- this._defaultEncoding = document._encoding;
- this._resourceLoader = document._defaultView ? document._defaultView._resourceLoader : null;
- this._requestManager = document._requestManager;
- this._queue = document._queue;
- this._deferQueue = document._deferQueue;
- this._asyncQueue = document._asyncQueue;
- }
-
- fetch(url, { element, onLoad, onError }) {
- const request = this._resourceLoader.fetch(url, {
- cookieJar: this._document._cookieJar,
- element: idlUtils.wrapperForImpl(element),
- referrer: this._document.URL
- });
-
- if (request === null) {
- return null;
- }
-
- this._requestManager.add(request);
-
- const onErrorWrapped = error => {
- this._requestManager.remove(request);
-
- if (onError) {
- onError(error);
- }
-
- fireAnEvent("error", element);
-
- const err = new Error(`Could not load ${element.localName}: "${url}"`);
- err.type = "resource loading";
- err.detail = error;
-
- this._document._defaultView._virtualConsole.emit("jsdomError", err);
-
- return Promise.resolve();
- };
-
- const onLoadWrapped = data => {
- this._requestManager.remove(request);
-
- this._addCookies(url, request.response ? request.response.headers : {});
-
- try {
- const result = onLoad ? onLoad(data) : undefined;
-
- return Promise.resolve(result)
- .then(() => {
- fireAnEvent("load", element);
-
- return Promise.resolve();
- })
- .catch(err => {
- return onErrorWrapped(err);
- });
- } catch (err) {
- return onErrorWrapped(err);
- }
- };
-
- if (element.localName === "script" && element.hasAttributeNS(null, "async")) {
- this._asyncQueue.push(request, onLoadWrapped, onErrorWrapped, this._queue.getLastScript());
- } else if (
- element.localName === "script" &&
- element.hasAttributeNS(null, "defer") &&
- this._document.readyState !== "interactive") {
- this._deferQueue.push(request, onLoadWrapped, onErrorWrapped, false, element);
- } else {
- this._queue.push(request, onLoadWrapped, onErrorWrapped, false, element);
- }
-
- return request;
- }
-
- _addCookies(url, headers) {
- let cookies = headers["set-cookie"];
-
- if (!cookies) {
- return;
- }
-
- if (!Array.isArray(cookies)) {
- cookies = [cookies];
- }
-
- cookies.forEach(cookie => {
- this._document._cookieJar.setCookieSync(cookie, url, { http: true, ignoreError: true });
- });
- }
-};
-
-
-/***/ }),
-
-/***/ 87657:
-/***/ ((module) => {
-
-"use strict";
-
-
-/**
- * Manage all the request and it is able to abort
- * all pending request.
- */
-module.exports = class RequestManager {
- constructor() {
- this.openedRequests = [];
- }
-
- add(req) {
- this.openedRequests.push(req);
- }
-
- remove(req) {
- const idx = this.openedRequests.indexOf(req);
- if (idx !== -1) {
- this.openedRequests.splice(idx, 1);
- }
- }
-
- close() {
- for (const openedRequest of this.openedRequests) {
- openedRequest.abort();
- }
- this.openedRequests = [];
- }
-
- size() {
- return this.openedRequests.length;
- }
-};
-
-
-/***/ }),
-
-/***/ 90007:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const fs = __nccwpck_require__(57147);
-const { fileURLToPath } = __nccwpck_require__(57310);
-const { parseURL } = __nccwpck_require__(66365);
-const dataURLFromRecord = (__nccwpck_require__(18326).fromURLRecord);
-const packageVersion = (__nccwpck_require__(89244)/* .version */ .i8);
-const agentFactory = __nccwpck_require__(9670);
-const Request = __nccwpck_require__(95858);
-
-const IS_BROWSER = Object.prototype.toString.call(process) !== "[object process]";
-
-module.exports = class ResourceLoader {
- constructor({
- strictSSL = true,
- proxy = undefined,
- userAgent = `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 ` +
- `(KHTML, like Gecko) jsdom/${packageVersion}`
- } = {}) {
- this._strictSSL = strictSSL;
- this._proxy = proxy;
- this._userAgent = userAgent;
- }
-
- _readDataURL(urlRecord) {
- const dataURL = dataURLFromRecord(urlRecord);
- let timeoutId;
- const promise = new Promise(resolve => {
- timeoutId = setTimeout(resolve, 0, Buffer.from(dataURL.body));
- });
- promise.abort = () => {
- if (timeoutId !== undefined) {
- clearTimeout(timeoutId);
- }
- };
- return promise;
- }
-
- _readFile(filePath) {
- let readableStream, abort; // Native Promises doesn't have an "abort" method.
-
- // Creating a promise for two reason:
- // 1. fetch always return a promise.
- // 2. We need to add an abort handler.
- const promise = new Promise((resolve, reject) => {
- readableStream = fs.createReadStream(filePath);
- let data = Buffer.alloc(0);
-
- abort = reject;
-
- readableStream.on("error", reject);
-
- readableStream.on("data", chunk => {
- data = Buffer.concat([data, chunk]);
- });
-
- readableStream.on("end", () => {
- resolve(data);
- });
- });
-
- promise.abort = () => {
- readableStream.destroy();
- const error = new Error("request canceled by user");
- error.isAbortError = true;
- abort(error);
- };
-
- return promise;
- }
-
- fetch(urlString, { accept, cookieJar, referrer } = {}) {
- const url = parseURL(urlString);
-
- if (!url) {
- return Promise.reject(new Error(`Tried to fetch invalid URL ${urlString}`));
- }
-
- switch (url.scheme) {
- case "data": {
- return this._readDataURL(url);
- }
-
- case "http":
- case "https": {
- const agents = agentFactory(this._proxy, this._strictSSL);
- const headers = {
- "User-Agent": this._userAgent,
- "Accept-Language": "en",
- "Accept-Encoding": "gzip",
- "Accept": accept || "*/*"
- };
- if (referrer && !IS_BROWSER) {
- headers.Referer = referrer;
- }
- const requestClient = new Request(
- urlString,
- { followRedirects: true, cookieJar, agents },
- { headers }
- );
- const promise = new Promise((resolve, reject) => {
- const accumulated = [];
- requestClient.once("response", res => {
- promise.response = res;
- const { statusCode } = res;
- // TODO This deviates from the spec when it comes to
- // loading resources such as images
- if (statusCode < 200 || statusCode > 299) {
- requestClient.abort();
- reject(new Error(`Resource was not loaded. Status: ${statusCode}`));
- }
- });
- requestClient.on("data", chunk => {
- accumulated.push(chunk);
- });
- requestClient.on("end", () => resolve(Buffer.concat(accumulated)));
- requestClient.on("error", reject);
- });
- // The method fromURL in lib/api.js crashes without the following four
- // properties defined on the Promise instance, causing the test suite to halt
- requestClient.on("end", () => {
- promise.href = requestClient.currentURL;
- });
- promise.abort = requestClient.abort.bind(requestClient);
- promise.getHeader = name => headers[name] || requestClient.getHeader(name);
- requestClient.end();
- return promise;
- }
-
- case "file": {
- try {
- return this._readFile(fileURLToPath(urlString));
- } catch (e) {
- return Promise.reject(e);
- }
- }
-
- default: {
- return Promise.reject(new Error(`Tried to fetch URL ${urlString} with invalid scheme ${url.scheme}`));
- }
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 65930:
-/***/ ((module) => {
-
-"use strict";
-
-
-/**
- * Queue for all the resources to be download except async scripts.
- * Async scripts have their own queue AsyncResourceQueue.
- */
-module.exports = class ResourceQueue {
- constructor({ paused, asyncQueue } = {}) {
- this.paused = Boolean(paused);
- this._asyncQueue = asyncQueue;
- }
-
- getLastScript() {
- let head = this.tail;
-
- while (head) {
- if (head.isScript) {
- return head;
- }
- head = head.prev;
- }
-
- return null;
- }
-
- _moreScripts() {
- let found = false;
-
- let head = this.tail;
- while (head && !found) {
- found = head.isScript;
- head = head.prev;
- }
-
- return found;
- }
-
- _notify() {
- if (this._listener) {
- this._listener();
- }
- }
-
- setListener(listener) {
- this._listener = listener;
- }
-
- push(request, onLoad, onError, keepLast, element) {
- const isScript = element ? element.localName === "script" : false;
-
- if (!request) {
- if (isScript && !this._moreScripts()) {
- return onLoad();
- }
-
- request = Promise.resolve();
- }
- const q = this;
- const item = {
- isScript,
- err: null,
- element,
- fired: false,
- data: null,
- keepLast,
- prev: q.tail,
- check() {
- if (!q.paused && !this.prev && this.fired) {
- let promise;
-
- if (this.err && onError) {
- promise = onError(this.err);
- }
-
- if (!this.err && onLoad) {
- promise = onLoad(this.data);
- }
-
- Promise.resolve(promise)
- .then(() => {
- if (this.next) {
- this.next.prev = null;
- this.next.check();
- } else { // q.tail===this
- q.tail = null;
- q._notify();
- }
-
- this.finished = true;
-
- if (q._asyncQueue) {
- q._asyncQueue.notifyItem(this);
- }
- });
- }
- }
- };
- if (q.tail) {
- if (q.tail.keepLast) {
- // if the tail is the load event in document and we receive a new element to load
- // we should add this new request before the load event.
- if (q.tail.prev) {
- q.tail.prev.next = item;
- }
- item.prev = q.tail.prev;
- q.tail.prev = item;
- item.next = q.tail;
- } else {
- q.tail.next = item;
- q.tail = item;
- }
- } else {
- q.tail = item;
- }
- return request
- .then(data => {
- item.fired = 1;
- item.data = data;
- item.check();
- })
- .catch(err => {
- item.fired = true;
- item.err = err;
- item.check();
- });
- }
-
- resume() {
- if (!this.paused) {
- return;
- }
- this.paused = false;
-
- let head = this.tail;
- while (head && head.prev) {
- head = head.prev;
- }
- if (head) {
- head.check();
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 37300:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const cssom = __nccwpck_require__(98508);
-const cssstyle = __nccwpck_require__(15674);
-
-exports.addToCore = core => {
- // What works now:
- // - Accessing the rules defined in individual stylesheets
- // - Modifications to style content attribute are reflected in style property
- // - Modifications to style property are reflected in style content attribute
- // TODO
- // - Modifications to style element's textContent are reflected in sheet property.
- // - Modifications to style element's sheet property are reflected in textContent.
- // - Modifications to link.href property are reflected in sheet property.
- // - Less-used features of link: disabled
- // - Less-used features of style: disabled, scoped, title
- // - CSSOM-View
- // - getComputedStyle(): requires default stylesheet, cascading, inheritance,
- // filtering by @media (screen? print?), layout for widths/heights
- // - Load events are not in the specs, but apparently some browsers
- // implement something. Should onload only fire after all @imports have been
- // loaded, or only the primary sheet?
-
- core.StyleSheet = cssom.StyleSheet;
- core.MediaList = cssom.MediaList;
- core.CSSStyleSheet = cssom.CSSStyleSheet;
- core.CSSRule = cssom.CSSRule;
- core.CSSStyleRule = cssom.CSSStyleRule;
- core.CSSMediaRule = cssom.CSSMediaRule;
- core.CSSImportRule = cssom.CSSImportRule;
- core.CSSStyleDeclaration = cssstyle.CSSStyleDeclaration;
-
- // Relevant specs
- // http://www.w3.org/TR/DOM-Level-2-Style (2000)
- // http://www.w3.org/TR/cssom-view/ (2008)
- // http://dev.w3.org/csswg/cssom/ (2010) Meant to replace DOM Level 2 Style
- // http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5, of course
- // http://dev.w3.org/csswg/css-style-attr/ not sure what's new here
-
- // Objects that aren't in cssom library but should be:
- // CSSRuleList (cssom just uses array)
- // CSSFontFaceRule
- // CSSPageRule
-
- // These rules don't really make sense to implement, so CSSOM draft makes them
- // obsolete.
- // CSSCharsetRule
- // CSSUnknownRule
-
- // These objects are considered obsolete by CSSOM draft, although modern
- // browsers implement them.
- // CSSValue
- // CSSPrimitiveValue
- // CSSValueList
- // RGBColor
- // Rect
- // Counter
-};
-
-
-/***/ }),
-
-/***/ 82225:
-/***/ ((module) => {
-
-/** Here is yet another implementation of XPath 1.0 in Javascript.
- *
- * My goal was to make it relatively compact, but as I fixed all the axis bugs
- * the axes became more and more complicated. :-(.
- *
- * I have not implemented namespaces or case-sensitive axes for XML yet.
- *
- * How to test it in Chrome: You can make a Chrome extension that replaces
- * the WebKit XPath parser with this one. But it takes a bit of effort to
- * get around isolated world and same-origin restrictions:
- * manifest.json:
- {
- "name": "XPathTest",
- "version": "0.1",
- "content_scripts": [{
- "matches": ["http://localhost/*"], // or wildcard host
- "js": ["xpath.js", "injection.js"],
- "all_frames": true, "run_at": "document_start"
- }]
- }
- * injection.js:
- // goal: give my xpath object to the website's JS context.
- var script = document.createElement('script');
- script.textContent =
- "document.addEventListener('xpathextend', function(e) {\n" +
- " console.log('extending document with xpath...');\n" +
- " e.detail(window);" +
- "});";
- document.documentElement.appendChild(script);
- document.documentElement.removeChild(script);
- var evt = document.createEvent('CustomEvent');
- evt.initCustomEvent('xpathextend', true, true, this.xpath.extend);
- document.dispatchEvent(evt);
- */
-module.exports = core => {
- var xpath = {};
-
- // Helper function to deal with the migration of Attr to no longer have a nodeName property despite this codebase
- // assuming it does.
- function getNodeName(nodeOrAttr) {
- return nodeOrAttr.constructor.name === 'Attr' ? nodeOrAttr.name : nodeOrAttr.nodeName;
- }
-
- /***************************************************************************
- * Tokenization *
- ***************************************************************************/
- /**
- * The XPath lexer is basically a single regular expression, along with
- * some helper functions to pop different types.
- */
- var Stream = xpath.Stream = function Stream(str) {
- this.original = this.str = str;
- this.peeked = null;
- // TODO: not really needed, but supposedly tokenizer also disambiguates
- // a * b vs. node test *
- this.prev = null; // for debugging
- this.prevprev = null;
- }
- Stream.prototype = {
- peek: function() {
- if (this.peeked) return this.peeked;
- var m = this.re.exec(this.str);
- if (!m) return null;
- this.str = this.str.substr(m[0].length);
- return this.peeked = m[1];
- },
- /** Peek 2 tokens ahead. */
- peek2: function() {
- this.peek(); // make sure this.peeked is set
- var m = this.re.exec(this.str);
- if (!m) return null;
- return m[1];
- },
- pop: function() {
- var r = this.peek();
- this.peeked = null;
- this.prevprev = this.prev;
- this.prev = r;
- return r;
- },
- trypop: function(tokens) {
- var tok = this.peek();
- if (tok === tokens) return this.pop();
- if (Array.isArray(tokens)) {
- for (var i = 0; i < tokens.length; ++i) {
- var t = tokens[i];
- if (t == tok) return this.pop();;
- }
- }
- },
- trypopfuncname: function() {
- var tok = this.peek();
- if (!this.isQnameRe.test(tok))
- return null;
- switch (tok) {
- case 'comment': case 'text': case 'processing-instruction': case 'node':
- return null;
- }
- if ('(' != this.peek2()) return null;
- return this.pop();
- },
- trypopaxisname: function() {
- var tok = this.peek();
- switch (tok) {
- case 'ancestor': case 'ancestor-or-self': case 'attribute':
- case 'child': case 'descendant': case 'descendant-or-self':
- case 'following': case 'following-sibling': case 'namespace':
- case 'parent': case 'preceding': case 'preceding-sibling': case 'self':
- if ('::' == this.peek2()) return this.pop();
- }
- return null;
- },
- trypopnametest: function() {
- var tok = this.peek();
- if ('*' === tok || this.startsWithNcNameRe.test(tok)) return this.pop();
- return null;
- },
- trypopliteral: function() {
- var tok = this.peek();
- if (null == tok) return null;
- var first = tok.charAt(0);
- var last = tok.charAt(tok.length - 1);
- if ('"' === first && '"' === last ||
- "'" === first && "'" === last) {
- this.pop();
- return tok.substr(1, tok.length - 2);
- }
- },
- trypopnumber: function() {
- var tok = this.peek();
- if (this.isNumberRe.test(tok)) return parseFloat(this.pop());
- else return null;
- },
- trypopvarref: function() {
- var tok = this.peek();
- if (null == tok) return null;
- if ('$' === tok.charAt(0)) return this.pop().substr(1);
- else return null;
- },
- position: function() {
- return this.original.length - this.str.length;
- }
- };
- (function() {
- // http://www.w3.org/TR/REC-xml-names/#NT-NCName
- var nameStartCharsExceptColon =
- 'A-Z_a-z\xc0-\xd6\xd8-\xf6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF' +
- '\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF' +
- '\uFDF0-\uFFFD'; // JS doesn't support [#x10000-#xEFFFF]
- var nameCharExceptColon = nameStartCharsExceptColon +
- '\\-\\.0-9\xb7\u0300-\u036F\u203F-\u2040';
- var ncNameChars = '[' + nameStartCharsExceptColon +
- '][' + nameCharExceptColon + ']*'
- // http://www.w3.org/TR/REC-xml-names/#NT-QName
- var qNameChars = ncNameChars + '(?::' + ncNameChars + ')?';
- var otherChars = '\\.\\.|[\\(\\)\\[\\].@,]|::'; // .. must come before [.]
- var operatorChars =
- 'and|or|mod|div|' +
- '//|!=|<=|>=|[*/|+\\-=<>]'; // //, !=, <=, >= before individual ones.
- var literal = '"[^"]*"|' + "'[^']*'";
- var numberChars = '[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+';
- var variableReference = '\\$' + qNameChars;
- var nameTestChars = '\\*|' + ncNameChars + ':\\*|' + qNameChars;
- var optionalSpace = '[ \t\r\n]*'; // stricter than regexp \s.
- var nodeType = 'comment|text|processing-instruction|node';
- var re = new RegExp(
- // numberChars before otherChars so that leading-decimal doesn't become .
- '^' + optionalSpace + '(' + numberChars + '|' + otherChars + '|' +
- nameTestChars + '|' + operatorChars + '|' + literal + '|' +
- variableReference + ')'
- // operatorName | nodeType | functionName | axisName are lumped into
- // qName for now; we'll check them on pop.
- );
- Stream.prototype.re = re;
- Stream.prototype.startsWithNcNameRe = new RegExp('^' + ncNameChars);
- Stream.prototype.isQnameRe = new RegExp('^' + qNameChars + '$');
- Stream.prototype.isNumberRe = new RegExp('^' + numberChars + '$');
- })();
-
- /***************************************************************************
- * Parsing *
- ***************************************************************************/
- var parse = xpath.parse = function parse(stream, a) {
- var r = orExpr(stream,a);
- var x, unparsed = [];
- while (x = stream.pop()) {
- unparsed.push(x);
- }
- if (unparsed.length)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Unparsed tokens: ' + unparsed.join(' '));
- return r;
- }
-
- /**
- * binaryL ::= subExpr
- * | binaryL op subExpr
- * so a op b op c becomes ((a op b) op c)
- */
- function binaryL(subExpr, stream, a, ops) {
- var lhs = subExpr(stream, a);
- if (lhs == null) return null;
- var op;
- while (op = stream.trypop(ops)) {
- var rhs = subExpr(stream, a);
- if (rhs == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected something after ' + op);
- lhs = a.node(op, lhs, rhs);
- }
- return lhs;
- }
- /**
- * Too bad this is never used. If they made a ** operator (raise to power),
- ( we would use it.
- * binaryR ::= subExpr
- * | subExpr op binaryR
- * so a op b op c becomes (a op (b op c))
- */
- function binaryR(subExpr, stream, a, ops) {
- var lhs = subExpr(stream, a);
- if (lhs == null) return null;
- var op = stream.trypop(ops);
- if (op) {
- var rhs = binaryR(stream, a);
- if (rhs == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected something after ' + op);
- return a.node(op, lhs, rhs);
- } else {
- return lhs;// TODO
- }
- }
- /** [1] LocationPath::= RelativeLocationPath | AbsoluteLocationPath
- * e.g. a, a/b, //a/b
- */
- function locationPath(stream, a) {
- return absoluteLocationPath(stream, a) ||
- relativeLocationPath(null, stream, a);
- }
- /** [2] AbsoluteLocationPath::= '/' RelativeLocationPath? | AbbreviatedAbsoluteLocationPath
- * [10] AbbreviatedAbsoluteLocationPath::= '//' RelativeLocationPath
- */
- function absoluteLocationPath(stream, a) {
- var op = stream.peek();
- if ('/' === op || '//' === op) {
- var lhs = a.node('Root');
- return relativeLocationPath(lhs, stream, a, true);
- } else {
- return null;
- }
- }
- /** [3] RelativeLocationPath::= Step | RelativeLocationPath '/' Step |
- * | AbbreviatedRelativeLocationPath
- * [11] AbbreviatedRelativeLocationPath::= RelativeLocationPath '//' Step
- * e.g. p/a, etc.
- */
- function relativeLocationPath(lhs, stream, a, isOnlyRootOk) {
- if (null == lhs) {
- lhs = step(stream, a);
- if (null == lhs) return lhs;
- }
- var op;
- while (op = stream.trypop(['/', '//'])) {
- if ('//' === op) {
- lhs = a.node('/', lhs,
- a.node('Axis', 'descendant-or-self', 'node', undefined));
- }
- var rhs = step(stream, a);
- if (null == rhs && '/' === op && isOnlyRootOk) return lhs;
- else isOnlyRootOk = false;
- if (null == rhs)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected step after ' + op);
- lhs = a.node('/', lhs, rhs);
- }
- return lhs;
- }
- /** [4] Step::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep
- * [12] AbbreviatedStep::= '.' | '..'
- * e.g. @href, self::p, p, a[@href], ., ..
- */
- function step(stream, a) {
- var abbrStep = stream.trypop(['.', '..']);
- if ('.' === abbrStep) // A location step of . is short for self::node().
- return a.node('Axis', 'self', 'node');
- if ('..' === abbrStep) // A location step of .. is short for parent::node()
- return a.node('Axis', 'parent', 'node');
-
- var axis = axisSpecifier(stream, a);
- var nodeType = nodeTypeTest(stream, a);
- var nodeName;
- if (null == nodeType) nodeName = nodeNameTest(stream, a);
- if (null == axis && null == nodeType && null == nodeName) return null;
- if (null == nodeType && null == nodeName)
- throw new XPathException(
- XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected nodeTest after axisSpecifier ' + axis);
- if (null == axis) axis = 'child';
- if (null == nodeType) {
- // When there's only a node name, then the node type is forced to be the
- // principal node type of the axis.
- // see http://www.w3.org/TR/xpath/#dt-principal-node-type
- if ('attribute' === axis) nodeType = 'attribute';
- else if ('namespace' === axis) nodeType = 'namespace';
- else nodeType = 'element';
- }
- var lhs = a.node('Axis', axis, nodeType, nodeName);
- var pred;
- while (null != (pred = predicate(lhs, stream, a))) {
- lhs = pred;
- }
- return lhs;
- }
- /** [5] AxisSpecifier::= AxisName '::' | AbbreviatedAxisSpecifier
- * [6] AxisName::= 'ancestor' | 'ancestor-or-self' | 'attribute' | 'child'
- * | 'descendant' | 'descendant-or-self' | 'following'
- * | 'following-sibling' | 'namespace' | 'parent' |
- * | 'preceding' | 'preceding-sibling' | 'self'
- * [13] AbbreviatedAxisSpecifier::= '@'?
- */
- function axisSpecifier(stream, a) {
- var attr = stream.trypop('@');
- if (null != attr) return 'attribute';
- var axisName = stream.trypopaxisname();
- if (null != axisName) {
- var coloncolon = stream.trypop('::');
- if (null == coloncolon)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Should not happen. Should be ::.');
- return axisName;
- }
- }
- /** [7] NodeTest::= NameTest | NodeType '(' ')' | 'processing-instruction' '(' Literal ')'
- * [38] NodeType::= 'comment' | 'text' | 'processing-instruction' | 'node'
- * I've split nodeTypeTest from nodeNameTest for convenience.
- */
- function nodeTypeTest(stream, a) {
- if ('(' !== stream.peek2()) {
- return null;
- }
- var type = stream.trypop(['comment', 'text', 'processing-instruction', 'node']);
- if (null != type) {
- if (null == stream.trypop('('))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Should not happen.');
- var param = undefined;
- if (type == 'processing-instruction') {
- param = stream.trypopliteral();
- }
- if (null == stream.trypop(')'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected close parens.');
- return type
- }
- }
- function nodeNameTest(stream, a) {
- var name = stream.trypopnametest();
- if (name != null) return name;
- else return null;
- }
- /** [8] Predicate::= '[' PredicateExpr ']'
- * [9] PredicateExpr::= Expr
- */
- function predicate(lhs, stream, a) {
- if (null == stream.trypop('[')) return null;
- var expr = orExpr(stream, a);
- if (null == expr)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression after [');
- if (null == stream.trypop(']'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ] after expression.');
- return a.node('Predicate', lhs, expr);
- }
- /** [14] Expr::= OrExpr
- */
- /** [15] PrimaryExpr::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall
- * e.g. $x, (3+4), "hi", 32, f(x)
- */
- function primaryExpr(stream, a) {
- var x = stream.trypopliteral();
- if (null == x)
- x = stream.trypopnumber();
- if (null != x) {
- return x;
- }
- var varRef = stream.trypopvarref();
- if (null != varRef) return a.node('VariableReference', varRef);
- var funCall = functionCall(stream, a);
- if (null != funCall) {
- return funCall;
- }
- if (stream.trypop('(')) {
- var e = orExpr(stream, a);
- if (null == e)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression after (.');
- if (null == stream.trypop(')'))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ) after expression.');
- return e;
- }
- return null;
- }
- /** [16] FunctionCall::= FunctionName '(' ( Argument ( ',' Argument )* )? ')'
- * [17] Argument::= Expr
- */
- function functionCall(stream, a) {
- var name = stream.trypopfuncname(stream, a);
- if (null == name) return null;
- if (null == stream.trypop('('))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected ( ) after function name.');
- var params = [];
- var first = true;
- while (null == stream.trypop(')')) {
- if (!first && null == stream.trypop(','))
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected , between arguments of the function.');
- first = false;
- var param = orExpr(stream, a);
- if (param == null)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected expression as argument of function.');
- params.push(param);
- }
- return a.node('FunctionCall', name, params);
- }
-
- /** [18] UnionExpr::= PathExpr | UnionExpr '|' PathExpr
- */
- function unionExpr(stream, a) { return binaryL(pathExpr, stream, a, '|'); }
- /** [19] PathExpr ::= LocationPath
- * | FilterExpr
- * | FilterExpr '/' RelativeLocationPath
- * | FilterExpr '//' RelativeLocationPath
- * Unlike most other nodes, this one always generates a node because
- * at this point all reverse nodesets must turn into a forward nodeset
- */
- function pathExpr(stream, a) {
- // We have to do FilterExpr before LocationPath because otherwise
- // LocationPath will eat up the name from a function call.
- var filter = filterExpr(stream, a);
- if (null == filter) {
- var loc = locationPath(stream, a);
- if (null == loc) {
- throw new Error
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': The expression shouldn\'t be empty...');
- }
- return a.node('PathExpr', loc);
- }
- var rel = relativeLocationPath(filter, stream, a, false);
- if (filter === rel) return rel;
- else return a.node('PathExpr', rel);
- }
- /** [20] FilterExpr::= PrimaryExpr | FilterExpr Predicate
- * aka. FilterExpr ::= PrimaryExpr Predicate*
- */
- function filterExpr(stream, a) {
- var primary = primaryExpr(stream, a);
- if (primary == null) return null;
- var pred, lhs = primary;
- while (null != (pred = predicate(lhs, stream, a))) {
- lhs = pred;
- }
- return lhs;
- }
-
- /** [21] OrExpr::= AndExpr | OrExpr 'or' AndExpr
- */
- function orExpr(stream, a) {
- var orig = (stream.peeked || '') + stream.str
- var r = binaryL(andExpr, stream, a, 'or');
- var now = (stream.peeked || '') + stream.str;
- return r;
- }
- /** [22] AndExpr::= EqualityExpr | AndExpr 'and' EqualityExpr
- */
- function andExpr(stream, a) { return binaryL(equalityExpr, stream, a, 'and'); }
- /** [23] EqualityExpr::= RelationalExpr | EqualityExpr '=' RelationalExpr
- * | EqualityExpr '!=' RelationalExpr
- */
- function equalityExpr(stream, a) { return binaryL(relationalExpr, stream, a, ['=','!=']); }
- /** [24] RelationalExpr::= AdditiveExpr | RelationalExpr '<' AdditiveExpr
- * | RelationalExpr '>' AdditiveExpr
- * | RelationalExpr '<=' AdditiveExpr
- * | RelationalExpr '>=' AdditiveExpr
- */
- function relationalExpr(stream, a) { return binaryL(additiveExpr, stream, a, ['<','>','<=','>=']); }
- /** [25] AdditiveExpr::= MultiplicativeExpr
- * | AdditiveExpr '+' MultiplicativeExpr
- * | AdditiveExpr '-' MultiplicativeExpr
- */
- function additiveExpr(stream, a) { return binaryL(multiplicativeExpr, stream, a, ['+','-']); }
- /** [26] MultiplicativeExpr::= UnaryExpr
- * | MultiplicativeExpr MultiplyOperator UnaryExpr
- * | MultiplicativeExpr 'div' UnaryExpr
- * | MultiplicativeExpr 'mod' UnaryExpr
- */
- function multiplicativeExpr(stream, a) { return binaryL(unaryExpr, stream, a, ['*','div','mod']); }
- /** [27] UnaryExpr::= UnionExpr | '-' UnaryExpr
- */
- function unaryExpr(stream, a) {
- if (stream.trypop('-')) {
- var e = unaryExpr(stream, a);
- if (null == e)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Expected unary expression after -');
- return a.node('UnaryMinus', e);
- }
- else return unionExpr(stream, a);
- }
- var astFactory = {
- node: function() {return Array.prototype.slice.call(arguments);}
- };
-
-
- /***************************************************************************
- * Optimizations (TODO) *
- ***************************************************************************/
- /**
- * Some things I've been considering:
- * 1) a//b becomes a/descendant::b if there's no predicate that uses
- * position() or last()
- * 2) axis[pred]: when pred doesn't use position, evaluate it just once per
- * node in the node-set rather than once per (node, position, last).
- * For more optimizations, look up Gecko's optimizer:
- * http://mxr.mozilla.org/mozilla-central/source/content/xslt/src/xpath/txXPathOptimizer.cpp
- */
- // TODO
- function optimize(ast) {
- }
-
- /***************************************************************************
- * Evaluation: axes *
- ***************************************************************************/
-
- /**
- * Data types: For string, number, boolean, we just use Javascript types.
- * Node-sets have the form
- * {nodes: [node, ...]}
- * or {nodes: [node, ...], pos: [[1], [2], ...], lasts: [[1], [2], ...]}
- *
- * Most of the time, only the node is used and the position information is
- * discarded. But if you use a predicate, we need to try every value of
- * position and last in case the predicate calls position() or last().
- */
-
- /**
- * The NodeMultiSet is a helper class to help generate
- * {nodes:[], pos:[], lasts:[]} structures. It is useful for the
- * descendant, descendant-or-self, following-sibling, and
- * preceding-sibling axes for which we can use a stack to organize things.
- */
- function NodeMultiSet(isReverseAxis) {
- this.nodes = [];
- this.pos = [];
- this.lasts = [];
- this.nextPos = [];
- this.seriesIndexes = []; // index within nodes that each series begins.
- this.isReverseAxis = isReverseAxis;
- this._pushToNodes = isReverseAxis ? Array.prototype.unshift : Array.prototype.push;
- }
- NodeMultiSet.prototype = {
- pushSeries: function pushSeries() {
- this.nextPos.push(1);
- this.seriesIndexes.push(this.nodes.length);
- },
- popSeries: function popSeries() {
- console.assert(0 < this.nextPos.length, this.nextPos);
- var last = this.nextPos.pop() - 1,
- indexInPos = this.nextPos.length,
- seriesBeginIndex = this.seriesIndexes.pop(),
- seriesEndIndex = this.nodes.length;
- for (var i = seriesBeginIndex; i < seriesEndIndex; ++i) {
- console.assert(indexInPos < this.lasts[i].length);
- console.assert(undefined === this.lasts[i][indexInPos]);
- this.lasts[i][indexInPos] = last;
- }
- },
- finalize: function() {
- if (null == this.nextPos) return this;
- console.assert(0 === this.nextPos.length);
- var lastsJSON = JSON.stringify(this.lasts);
- for (var i = 0; i < this.lasts.length; ++i) {
- for (var j = 0; j < this.lasts[i].length; ++j) {
- console.assert(null != this.lasts[i][j], i + ',' + j + ':' + lastsJSON);
- }
- }
- this.pushSeries = this.popSeries = this.addNode = function() {
- throw new Error('Already finalized.');
- };
- return this;
- },
- addNode: function addNode(node) {
- console.assert(node);
- this._pushToNodes.call(this.nodes, node)
- this._pushToNodes.call(this.pos, this.nextPos.slice());
- this._pushToNodes.call(this.lasts, new Array(this.nextPos.length));
- for (var i = 0; i < this.nextPos.length; ++i) this.nextPos[i]++;
- },
- simplify: function() {
- this.finalize();
- return {nodes:this.nodes, pos:this.pos, lasts:this.lasts};
- }
- };
- function eachContext(nodeMultiSet) {
- var r = [];
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
- var node = nodeMultiSet.nodes[i];
- if (!nodeMultiSet.pos) {
- r.push({nodes:[node], pos: [[i + 1]], lasts: [[nodeMultiSet.nodes.length]]});
- } else {
- for (var j = 0; j < nodeMultiSet.pos[i].length; ++j) {
- r.push({nodes:[node], pos: [[nodeMultiSet.pos[i][j]]], lasts: [[nodeMultiSet.lasts[i][j]]]});
- }
- }
- }
- return r;
- }
- /** Matcher used in the axes.
- */
- function NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase) {
- this.nodeTypeNum = nodeTypeNum;
- this.nodeName = nodeName;
- this.shouldLowerCase = shouldLowerCase;
- this.nodeNameTest =
- null == nodeName ? this._alwaysTrue :
- shouldLowerCase ? this._nodeNameLowerCaseEquals :
- this._nodeNameEquals;
- }
- NodeMatcher.prototype = {
- matches: function matches(node) {
- if (0 === this.nodeTypeNum || this._nodeTypeMatches(node)) {
- return this.nodeNameTest(getNodeName(node));
- }
-
- return false;
- },
- _nodeTypeMatches(nodeOrAttr) {
- if (nodeOrAttr.constructor.name === 'Attr' && this.nodeTypeNum === 2) {
- return true;
- }
- return nodeOrAttr.nodeType === this.nodeTypeNum;
- },
- _alwaysTrue: function(name) {return true;},
- _nodeNameEquals: function _nodeNameEquals(name) {
- return this.nodeName === name;
- },
- _nodeNameLowerCaseEquals: function _nodeNameLowerCaseEquals(name) {
- return this.nodeName === name.toLowerCase();
- }
- };
-
- function followingSiblingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, shift, peek, followingNode, andSelf, isReverseAxis) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(isReverseAxis);
- while (0 < nodeList.length) { // can be if for following, preceding
- var node = shift.call(nodeList);
- console.assert(node != null);
- node = followingNode(node);
- nodeMultiSet.pushSeries();
- var numPushed = 1;
- while (null != node) {
- if (! andSelf && matcher.matches(node))
- nodeMultiSet.addNode(node);
- if (node === peek.call(nodeList)) {
- shift.call(nodeList);
- nodeMultiSet.pushSeries();
- numPushed++;
- }
- if (andSelf && matcher.matches(node))
- nodeMultiSet.addNode(node);
- node = followingNode(node);
- }
- while (0 < numPushed--)
- nodeMultiSet.popSeries();
- }
- return nodeMultiSet;
- }
-
- /** Returns the next non-descendant node in document order.
- * This is the first node in following::node(), if node is the context.
- */
- function followingNonDescendantNode(node) {
- if (node.ownerElement) {
- if (node.ownerElement.firstChild)
- return node.ownerElement.firstChild;
- node = node.ownerElement;
- }
- do {
- if (node.nextSibling) return node.nextSibling;
- } while (node = node.parentNode);
- return null;
- }
-
- /** Returns the next node in a document-order depth-first search.
- * See the definition of document order[1]:
- * 1) element
- * 2) namespace nodes
- * 3) attributes
- * 4) children
- * [1]: http://www.w3.org/TR/xpath/#dt-document-order
- */
- function followingNode(node) {
- if (node.ownerElement) // attributes: following node of element.
- node = node.ownerElement;
- if (null != node.firstChild)
- return node.firstChild;
- do {
- if (null != node.nextSibling) {
- return node.nextSibling;
- }
- node = node.parentNode;
- } while (node);
- return null;
- }
- /** Returns the previous node in document order (excluding attributes
- * and namespace nodes).
- */
- function precedingNode(node) {
- if (node.ownerElement)
- return node.ownerElement;
- if (null != node.previousSibling) {
- node = node.previousSibling;
- while (null != node.lastChild) {
- node = node.lastChild;
- }
- return node;
- }
- if (null != node.parentNode) {
- return node.parentNode;
- }
- return null;
- }
- /** This axis is inefficient if there are many nodes in the nodeList.
- * But I think it's a pretty useless axis so it's ok. */
- function followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- var cursor = nodeList[0];
- var unorderedFollowingStarts = [];
- for (var i = 0; i < nodeList.length; i++) {
- var node = nodeList[i];
- var start = followingNonDescendantNode(node);
- if (start)
- unorderedFollowingStarts.push(start);
- }
- if (0 === unorderedFollowingStarts.length)
- return {nodes:[]};
- var pos = [], nextPos = [];
- var started = 0;
- while (cursor = followingNode(cursor)) {
- for (var i = unorderedFollowingStarts.length - 1; i >= 0; i--){
- if (cursor === unorderedFollowingStarts[i]) {
- nodeMultiSet.pushSeries();
- unorderedFollowingStarts.splice(i,i+1);
- started++;
- }
- }
- if (started && matcher.matches(cursor)) {
- nodeMultiSet.addNode(cursor);
- }
- }
- console.assert(0 === unorderedFollowingStarts.length);
- for (var i = 0; i < started; i++)
- nodeMultiSet.popSeries();
- return nodeMultiSet.finalize();
- }
- function precedingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var cursor = nodeList.pop();
- if (null == cursor) return {nodes:{}};
- var r = {nodes:[], pos:[], lasts:[]};
- var nextParents = [cursor.parentNode || cursor.ownerElement], nextPos = [1];
- while (cursor = precedingNode(cursor)) {
- if (cursor === nodeList[nodeList.length - 1]) {
- nextParents.push(nodeList.pop());
- nextPos.push(1);
- }
- var matches = matcher.matches(cursor);
- var pos, someoneUsed = false;
- if (matches)
- pos = nextPos.slice();
-
- for (var i = 0; i < nextParents.length; ++i) {
- if (cursor === nextParents[i]) {
- nextParents[i] = cursor.parentNode || cursor.ownerElement;
- if (matches) {
- pos[i] = null;
- }
- } else {
- if (matches) {
- pos[i] = nextPos[i]++;
- someoneUsed = true;
- }
- }
- }
- if (someoneUsed) {
- r.nodes.unshift(cursor);
- r.pos.unshift(pos);
- }
- }
- for (var i = 0; i < r.pos.length; ++i) {
- var lasts = [];
- r.lasts.push(lasts);
- for (var j = r.pos[i].length - 1; j >= 0; j--) {
- if (null == r.pos[i][j]) {
- r.pos[i].splice(j, j+1);
- } else {
- lasts.unshift(nextPos[j] - 1);
- }
- }
- }
- return r;
- }
-
- /** node-set, axis -> node-set */
- function descendantDfs(nodeMultiSet, node, remaining, matcher, andSelf, attrIndices, attrNodes) {
- while (0 < remaining.length && null != remaining[0].ownerElement) {
- var attr = remaining.shift();
- if (andSelf && matcher.matches(attr)) {
- attrNodes.push(attr);
- attrIndices.push(nodeMultiSet.nodes.length);
- }
- }
- if (null != node && !andSelf) {
- if (matcher.matches(node))
- nodeMultiSet.addNode(node);
- }
- var pushed = false;
- if (null == node) {
- if (0 === remaining.length) return;
- node = remaining.shift();
- nodeMultiSet.pushSeries();
- pushed = true;
- } else if (0 < remaining.length && node === remaining[0]) {
- nodeMultiSet.pushSeries();
- pushed = true;
- remaining.shift();
- }
- if (andSelf) {
- if (matcher.matches(node))
- nodeMultiSet.addNode(node);
- }
- // TODO: use optimization. Also try element.getElementsByTagName
- // var nodeList = 1 === nodeTypeNum && null != node.children ? node.children : node.childNodes;
- var nodeList = node.childNodes;
- for (var j = 0; j < nodeList.length; ++j) {
- var child = nodeList[j];
- descendantDfs(nodeMultiSet, child, remaining, matcher, andSelf, attrIndices, attrNodes);
- }
- if (pushed) {
- nodeMultiSet.popSeries();
- }
- }
- function descenantHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- var attrIndices = [], attrNodes = [];
- while (0 < nodeList.length) {
- // var node = nodeList.shift();
- descendantDfs(nodeMultiSet, null, nodeList, matcher, andSelf, attrIndices, attrNodes);
- }
- nodeMultiSet.finalize();
- for (var i = attrNodes.length-1; i >= 0; --i) {
- nodeMultiSet.nodes.splice(attrIndices[i], attrIndices[i], attrNodes[i]);
- nodeMultiSet.pos.splice(attrIndices[i], attrIndices[i], [1]);
- nodeMultiSet.lasts.splice(attrIndices[i], attrIndices[i], [1]);
- }
- return nodeMultiSet;
- }
- /**
- */
- function ancestorHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, andSelf) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var ancestors = []; // array of non-empty arrays of matching ancestors
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- var isFirst = true;
- var a = [];
- while (null != node) {
- if (!isFirst || andSelf) {
- if (matcher.matches(node))
- a.push(node);
- }
- isFirst = false;
- node = node.parentNode || node.ownerElement;
- }
- if (0 < a.length)
- ancestors.push(a);
- }
- var lasts = [];
- for (var i = 0; i < ancestors.length; ++i) lasts.push(ancestors[i].length);
- var nodeMultiSet = new NodeMultiSet(true);
- var newCtx = {nodes:[], pos:[], lasts:[]};
- while (0 < ancestors.length) {
- var pos = [ancestors[0].length];
- var last = [lasts[0]];
- var node = ancestors[0].pop();
- for (var i = ancestors.length - 1; i > 0; --i) {
- if (node === ancestors[i][ancestors[i].length - 1]) {
- pos.push(ancestors[i].length);
- last.push(lasts[i]);
- ancestors[i].pop();
- if (0 === ancestors[i].length) {
- ancestors.splice(i, i+1);
- lasts.splice(i, i+1);
- }
- }
- }
- if (0 === ancestors[0].length) {
- ancestors.shift();
- lasts.shift();
- }
- newCtx.nodes.push(node);
- newCtx.pos.push(pos);
- newCtx.lasts.push(last);
- }
- return newCtx;
- }
- /** Helper function for sortDocumentOrder. Returns a list of indices, from the
- * node to the root, of positions within parent.
- * For convenience, the node is the first element of the array.
- */
- function addressVector(node) {
- var r = [node];
- if (null != node.ownerElement) {
- node = node.ownerElement;
- r.push(-1);
- }
- while (null != node) {
- var i = 0;
- while (null != node.previousSibling) {
- node = node.previousSibling;
- i++;
- }
- r.push(i);
- node = node.parentNode
- }
- return r;
- }
- function addressComparator(a, b) {
- var minlen = Math.min(a.length - 1, b.length - 1), // not including [0]=node
- alen = a.length,
- blen = b.length;
- if (a[0] === b[0]) return 0;
- var c;
- for (var i = 0; i < minlen; ++i) {
- c = a[alen - i - 1] - b[blen - i - 1];
- if (0 !== c)
- break;
- }
- if (null == c || 0 === c) {
- // All equal until one of the nodes. The longer one is the descendant.
- c = alen - blen;
- }
- if (0 === c)
- c = getNodeName(a) - getNodeName(b);
- if (0 === c)
- c = 1;
- return c;
- }
- var sortUniqDocumentOrder = xpath.sortUniqDocumentOrder = function(nodes) {
- var a = [];
- for (var i = 0; i < nodes.length; i++) {
- var node = nodes[i];
- var v = addressVector(node);
- a.push(v);
- }
- a.sort(addressComparator);
- var b = [];
- for (var i = 0; i < a.length; i++) {
- if (0 < i && a[i][0] === a[i - 1][0])
- continue;
- b.push(a[i][0]);
- }
- return b;
- }
- /** Sort node multiset. Does not do any de-duping. */
- function sortNodeMultiSet(nodeMultiSet) {
- var a = [];
- for (var i = 0; i < nodeMultiSet.nodes.length; i++) {
- var v = addressVector(nodeMultiSet.nodes[i]);
- a.push({v:v, n:nodeMultiSet.nodes[i],
- p:nodeMultiSet.pos[i], l:nodeMultiSet.lasts[i]});
- }
- a.sort(compare);
- var r = {nodes:[], pos:[], lasts:[]};
- for (var i = 0; i < a.length; ++i) {
- r.nodes.push(a[i].n);
- r.pos.push(a[i].p);
- r.lasts.push(a[i].l);
- }
- function compare(x, y) {
- return addressComparator(x.v, y.v);
- }
- return r;
- }
- /** Returns an array containing all the ancestors down to a node.
- * The array starts with document.
- */
- function nodeAndAncestors(node) {
- var ancestors = [node];
- var p = node;
- while (p = p.parentNode || p.ownerElement) {
- ancestors.unshift(p);
- }
- return ancestors;
- }
- function compareSiblings(a, b) {
- if (a === b) return 0;
- var c = a;
- while (c = c.previousSibling) {
- if (c === b)
- return 1; // b < a
- }
- c = b;
- while (c = c.previousSibling) {
- if (c === a)
- return -1; // a < b
- }
- throw new Error('a and b are not siblings: ' + xpath.stringifyObject(a) + ' vs ' + xpath.stringifyObject(b));
- }
- /** The merge in merge-sort.*/
- function mergeNodeLists(x, y) {
- var a, b, aanc, banc, r = [];
- if ('object' !== typeof x)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Invalid LHS for | operator ' +
- '(expected node-set): ' + x);
- if ('object' !== typeof y)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Invalid LHS for | operator ' +
- '(expected node-set): ' + y);
- while (true) {
- if (null == a) {
- a = x.shift();
- if (null != a)
- aanc = addressVector(a);
- }
- if (null == b) {
- b = y.shift();
- if (null != b)
- banc = addressVector(b);
- }
- if (null == a || null == b) break;
- var c = addressComparator(aanc, banc);
- if (c < 0) {
- r.push(a);
- a = null;
- aanc = null;
- } else if (c > 0) {
- r.push(b);
- b = null;
- banc = null;
- } else if (getNodeName(a) < getNodeName(b)) { // attributes
- r.push(a);
- a = null;
- aanc = null;
- } else if (getNodeName(a) > getNodeName(b)) { // attributes
- r.push(b);
- b = null;
- banc = null;
- } else if (a !== b) {
- // choose b arbitrarily
- r.push(b);
- b = null;
- banc = null;
- } else {
- console.assert(a === b, c);
- // just skip b without pushing it.
- b = null;
- banc = null;
- }
- }
- while (a) {
- r.push(a);
- a = x.shift();
- }
- while (b) {
- r.push(b);
- b = y.shift();
- }
- return r;
- }
- function comparisonHelper(test, x, y, isNumericComparison) {
- var coersion;
- if (isNumericComparison)
- coersion = fn.number;
- else coersion =
- 'boolean' === typeof x || 'boolean' === typeof y ? fn['boolean'] :
- 'number' === typeof x || 'number' === typeof y ? fn.number :
- fn.string;
- if ('object' === typeof x && 'object' === typeof y) {
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var xi = coersion({nodes:[x.nodes[i]]});
- for (var j = 0; j < y.nodes.length; ++j) {
- var yj = coersion({nodes:[y.nodes[j]]});
- if (test(xi, yj)) return true;
- }
- }
- return false;
- } else if ('object' === typeof x && x.nodes && x.nodes.length) {
- for (var i = 0; i < x.nodes.length; ++i) {
- var xi = coersion({nodes:[x.nodes[i]]}), yc = coersion(y);
- if (test(xi, yc))
- return true;
- }
- return false;
- } else if ('object' === typeof y && x.nodes && x.nodes.length) {
- for (var i = 0; i < x.nodes.length; ++i) {
- var yi = coersion({nodes:[y.nodes[i]]}), xc = coersion(x);
- if (test(xc, yi))
- return true;
- }
- return false;
- } else {
- var xc = coersion(x), yc = coersion(y);
- return test(xc, yc);
- }
- }
- var axes = xpath.axes = {
- 'ancestor':
- function ancestor(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return ancestorHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
- },
- 'ancestor-or-self':
- function ancestorOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return ancestorHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
- },
- 'attribute':
- function attribute(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- // TODO: figure out whether positions should be undefined here.
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- if (null != nodeName) {
- // TODO: with namespace
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- if (null == node.getAttributeNode)
- continue; // only Element has .getAttributeNode
- var attr = node.getAttributeNode(nodeName);
- if (null != attr && matcher.matches(attr)) {
- nodeMultiSet.pushSeries();
- nodeMultiSet.addNode(attr);
- nodeMultiSet.popSeries();
- }
- }
- } else {
- for (var i = 0; i < nodeList.length; ++i) {
- var node = nodeList[i];
- if (null != node.attributes) {
- nodeMultiSet.pushSeries();
- for (var j = 0; j < node.attributes.length; j++) { // all nodes have .attributes
- var attr = node.attributes[j];
- if (matcher.matches(attr)) // TODO: I think this check is unnecessary
- nodeMultiSet.addNode(attr);
- }
- nodeMultiSet.popSeries();
- }
- }
- }
- return nodeMultiSet.finalize();
- },
- 'child':
- function child(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodeMultiSet = new NodeMultiSet(false);
- for (var i = 0; i < nodeList.length; ++i) {
- var n = nodeList[i];
- if (n.ownerElement) // skip attribute nodes' text child.
- continue;
- if (n.childNodes) {
- nodeMultiSet.pushSeries();
- var childList = 1 === nodeTypeNum && null != n.children ?
- n.children : n.childNodes;
- for (var j = 0; j < childList.length; ++j) {
- var child = childList[j];
- if (matcher.matches(child)) {
- nodeMultiSet.addNode(child);
- }
- // don't have to do de-duping because children have parent,
- // which are current context.
- }
- nodeMultiSet.popSeries();
- }
- }
- nodeMultiSet.finalize();
- return sortNodeMultiSet(nodeMultiSet);
- },
- 'descendant':
- function descenant(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return descenantHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, false);
- },
- 'descendant-or-self':
- function descenantOrSelf(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return descenantHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase, true);
- },
- 'following':
- function following(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingHelper(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- },
- 'following-sibling':
- function followingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingSiblingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
- Array.prototype.shift, function() {return this[0];},
- function(node) {return node.nextSibling;});
- },
- 'namespace':
- function namespace(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- // TODO
- },
- 'parent':
- function parent(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- var nodes = [], pos = [];
- for (var i = 0; i < nodeList.length; ++i) {
- var parent = nodeList[i].parentNode || nodeList[i].ownerElement;
- if (null == parent)
- continue;
- if (!matcher.matches(parent))
- continue;
- if (nodes.length > 0 && parent === nodes[nodes.length-1])
- continue;
- nodes.push(parent);
- pos.push([1]);
- }
- return {nodes:nodes, pos:pos, lasts:pos};
- },
- 'preceding':
- function preceding(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return precedingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- },
- 'preceding-sibling':
- function precedingSibling(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- return followingSiblingHelper(
- nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase,
- Array.prototype.pop, function() {return this[this.length-1];},
- function(node) {return node.previousSibling},
- false, true);
- },
- 'self':
- function self(nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase) {
- var nodes = [], pos = [];
- var matcher = new NodeMatcher(nodeTypeNum, nodeName, shouldLowerCase);
- for (var i = 0; i < nodeList.length; ++i) {
- if (matcher.matches(nodeList[i])) {
- nodes.push(nodeList[i]);
- pos.push([1]);
- }
- }
- return {nodes: nodes, pos: pos, lasts: pos}
- }
- };
-
- /***************************************************************************
- * Evaluation: functions *
- ***************************************************************************/
- var fn = {
- 'number': function number(optObject) {
- if ('number' === typeof optObject)
- return optObject;
- if ('string' === typeof optObject)
- return parseFloat(optObject); // note: parseFloat(' ') -> NaN, unlike +' ' -> 0.
- if ('boolean' === typeof optObject)
- return +optObject;
- return fn.number(fn.string.call(this, optObject)); // for node-sets
- },
- 'string': function string(optObject) {
- if (null == optObject)
- return fn.string(this);
- if ('string' === typeof optObject || 'boolean' === typeof optObject ||
- 'number' === typeof optObject)
- return '' + optObject;
- if (0 == optObject.nodes.length) return '';
- if (null != optObject.nodes[0].textContent)
- return optObject.nodes[0].textContent;
- return optObject.nodes[0].nodeValue;
- },
- 'boolean': function booleanVal(x) {
- return 'object' === typeof x ? x.nodes.length > 0 : !!x;
- },
- 'last': function last() {
- console.assert(Array.isArray(this.pos));
- console.assert(Array.isArray(this.lasts));
- console.assert(1 === this.pos.length);
- console.assert(1 === this.lasts.length);
- console.assert(1 === this.lasts[0].length);
- return this.lasts[0][0];
- },
- 'position': function position() {
- console.assert(Array.isArray(this.pos));
- console.assert(Array.isArray(this.lasts));
- console.assert(1 === this.pos.length);
- console.assert(1 === this.lasts.length);
- console.assert(1 === this.pos[0].length);
- return this.pos[0][0];
- },
- 'count': function count(nodeSet) {
- if ('object' !== typeof nodeSet)
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Position ' + stream.position() +
- ': Function count(node-set) ' +
- 'got wrong argument type: ' + nodeSet);
- return nodeSet.nodes.length;
- },
- 'id': function id(object) {
- var r = {nodes: []};
- var doc = this.nodes[0].ownerDocument || this.nodes[0];
- console.assert(doc);
- var ids;
- if ('object' === typeof object) {
- // for node-sets, map id over each node value.
- ids = [];
- for (var i = 0; i < object.nodes.length; ++i) {
- var idNode = object.nodes[i];
- var idsString = fn.string({nodes:[idNode]});
- var a = idsString.split(/[ \t\r\n]+/g);
- Array.prototype.push.apply(ids, a);
- }
- } else {
- var idsString = fn.string(object);
- var a = idsString.split(/[ \t\r\n]+/g);
- ids = a;
- }
- for (var i = 0; i < ids.length; ++i) {
- var id = ids[i];
- if (0 === id.length)
- continue;
- var node = doc.getElementById(id);
- if (null != node)
- r.nodes.push(node);
- }
- r.nodes = sortUniqDocumentOrder(r.nodes);
- return r;
- },
- 'local-name': function(nodeSet) {
- if (null == nodeSet)
- return fn.name(this);
- if (null == nodeSet.nodes) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'argument to name() must be a node-set. got ' + nodeSet);
- }
- // TODO: namespaced version
- return nodeSet.nodes[0].localName;
- },
- 'namespace-uri': function(nodeSet) {
- // TODO
- throw new Error('not implemented yet');
- },
- 'name': function(nodeSet) {
- if (null == nodeSet)
- return fn.name(this);
- if (null == nodeSet.nodes) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'argument to name() must be a node-set. got ' + nodeSet);
- }
- return nodeSet.nodes[0].name;
- },
- 'concat': function concat(x) {
- var l = [];
- for (var i = 0; i < arguments.length; ++i) {
- l.push(fn.string(arguments[i]));
- }
- return l.join('');
- },
- 'starts-with': function startsWith(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- return as.substr(0, bs.length) === bs;
- },
- 'contains': function contains(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return false;
- return true;
- },
- 'substring-before': function substringBefore(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return '';
- return as.substr(0, i);
- },
- 'substring-after': function substringBefore(a, b) {
- var as = fn.string(a), bs = fn.string(b);
- var i = as.indexOf(bs);
- if (-1 === i) return '';
- return as.substr(i + bs.length);
- },
- 'substring': function substring(string, start, optEnd) {
- if (null == string || null == start) {
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Must be at least 2 arguments to string()');
- }
- var sString = fn.string(string),
- iStart = fn.round(start),
- iEnd = optEnd == null ? null : fn.round(optEnd);
- // Note that xpath string positions user 1-based index
- if (iEnd == null)
- return sString.substr(iStart - 1);
- else
- return sString.substr(iStart - 1, iEnd);
- },
- 'string-length': function stringLength(optString) {
- return fn.string.call(this, optString).length;
- },
- 'normalize-space': function normalizeSpace(optString) {
- var s = fn.string.call(this, optString);
- return s.replace(/[ \t\r\n]+/g, ' ').replace(/^ | $/g, '');
- },
- 'translate': function translate(string, from, to) {
- var sString = fn.string.call(this, string),
- sFrom = fn.string(from),
- sTo = fn.string(to);
- var eachCharRe = [];
- var map = {};
- for (var i = 0; i < sFrom.length; ++i) {
- var c = sFrom.charAt(i);
- map[c] = sTo.charAt(i); // returns '' if beyond length of sTo.
- // copied from goog.string.regExpEscape in the Closure library.
- eachCharRe.push(
- c.replace(/([-()\[\]{}+?*.$\^|,:#': function(x, y) {
- return comparisonHelper(function(x, y) { return fn.number(x) > fn.number(y);}, x, y, true);
- },
- '>=': function(x, y) {
- return comparisonHelper(function(x, y) { return fn.number(x) >= fn.number(y);}, x, y, true);
- },
- 'and': function(x, y) { return fn['boolean'](x) && fn['boolean'](y); },
- 'or': function(x, y) { return fn['boolean'](x) || fn['boolean'](y); },
- '|': function(x, y) { return {nodes: mergeNodeLists(x.nodes, y.nodes)}; },
- '=': function(x, y) {
- // optimization for two node-sets case: avoid n^2 comparisons.
- if ('object' === typeof x && 'object' === typeof y) {
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var s = fn.string({nodes:[x.nodes[i]]});
- aMap[s] = true;
- }
- for (var i = 0; i < y.nodes.length; ++i) {
- var s = fn.string({nodes:[y.nodes[i]]});
- if (aMap[s]) return true;
- }
- return false;
- } else {
- return comparisonHelper(function(x, y) {return x === y;}, x, y);
- }
- },
- '!=': function(x, y) {
- // optimization for two node-sets case: avoid n^2 comparisons.
- if ('object' === typeof x && 'object' === typeof y) {
- if (0 === x.nodes.length || 0 === y.nodes.length) return false;
- var aMap = {};
- for (var i = 0; i < x.nodes.length; ++i) {
- var s = fn.string({nodes:[x.nodes[i]]});
- aMap[s] = true;
- }
- for (var i = 0; i < y.nodes.length; ++i) {
- var s = fn.string({nodes:[y.nodes[i]]});
- if (!aMap[s]) return true;
- }
- return false;
- } else {
- return comparisonHelper(function(x, y) {return x !== y;}, x, y);
- }
- }
- };
- var nodeTypes = xpath.nodeTypes = {
- 'node': 0,
- 'attribute': 2,
- 'comment': 8, // this.doc.COMMENT_NODE,
- 'text': 3, // this.doc.TEXT_NODE,
- 'processing-instruction': 7, // this.doc.PROCESSING_INSTRUCTION_NODE,
- 'element': 1 //this.doc.ELEMENT_NODE
- };
- /** For debugging and unit tests: returnjs a stringified version of the
- * argument. */
- var stringifyObject = xpath.stringifyObject = function stringifyObject(ctx) {
- var seenKey = 'seen' + Math.floor(Math.random()*1000000000);
- return JSON.stringify(helper(ctx));
-
- function helper(ctx) {
- if (Array.isArray(ctx)) {
- return ctx.map(function(x) {return helper(x);});
- }
- if ('object' !== typeof ctx) return ctx;
- if (null == ctx) return ctx;
- // if (ctx.toString) return ctx.toString();
- if (null != ctx.outerHTML) return ctx.outerHTML;
- if (null != ctx.nodeValue) return ctx.nodeName + '=' + ctx.nodeValue;
- if (ctx[seenKey]) return '[circular]';
- ctx[seenKey] = true;
- var nicer = {};
- for (var key in ctx) {
- if (seenKey === key)
- continue;
- try {
- nicer[key] = helper(ctx[key]);
- } catch (e) {
- nicer[key] = '[exception: ' + e.message + ']';
- }
- }
- delete ctx[seenKey];
- return nicer;
- }
- }
- var Evaluator = xpath.Evaluator = function Evaluator(doc) {
- this.doc = doc;
- }
- Evaluator.prototype = {
- val: function val(ast, ctx) {
- console.assert(ctx.nodes);
-
- if ('number' === typeof ast || 'string' === typeof ast) return ast;
- if (more[ast[0]]) {
- var evaluatedParams = [];
- for (var i = 1; i < ast.length; ++i) {
- evaluatedParams.push(this.val(ast[i], ctx));
- }
- var r = more[ast[0]].apply(ctx, evaluatedParams);
- return r;
- }
- switch (ast[0]) {
- case 'Root': return {nodes: [this.doc]};
- case 'FunctionCall':
- var functionName = ast[1], functionParams = ast[2];
- if (null == fn[functionName])
- throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,
- 'Unknown function: ' + functionName);
- var evaluatedParams = [];
- for (var i = 0; i < functionParams.length; ++i) {
- evaluatedParams.push(this.val(functionParams[i], ctx));
- }
- var r = fn[functionName].apply(ctx, evaluatedParams);
- return r;
- case 'Predicate':
- var lhs = this.val(ast[1], ctx);
- var ret = {nodes: []};
- var contexts = eachContext(lhs);
- for (var i = 0; i < contexts.length; ++i) {
- var singleNodeSet = contexts[i];
- var rhs = this.val(ast[2], singleNodeSet);
- var success;
- if ('number' === typeof rhs) {
- success = rhs === singleNodeSet.pos[0][0];
- } else {
- success = fn['boolean'](rhs);
- }
- if (success) {
- var node = singleNodeSet.nodes[0];
- ret.nodes.push(node);
- // skip over all the rest of the same node.
- while (i+1 < contexts.length && node === contexts[i+1].nodes[0]) {
- i++;
- }
- }
- }
- return ret;
- case 'PathExpr':
- // turn the path into an expressoin; i.e., remove the position
- // information of the last axis.
- var x = this.val(ast[1], ctx);
- // Make the nodeset a forward-direction-only one.
- if (x.finalize) { // it is a NodeMultiSet
- return {nodes: x.nodes};
- } else {
- return x;
- }
- case '/':
- // TODO: don't generate '/' nodes, just Axis nodes.
- var lhs = this.val(ast[1], ctx);
- console.assert(null != lhs);
- var r = this.val(ast[2], lhs);
- console.assert(null != r);
- return r;
- case 'Axis':
- // All the axis tests from Step. We only get AxisSpecifier NodeTest,
- // not the predicate (which is applied later)
- var axis = ast[1],
- nodeType = ast[2],
- nodeTypeNum = nodeTypes[nodeType],
- shouldLowerCase = true, // TODO: give option
- nodeName = ast[3] && shouldLowerCase ? ast[3].toLowerCase() : ast[3];
- nodeName = nodeName === '*' ? null : nodeName;
- if ('object' !== typeof ctx) return {nodes:[], pos:[]};
- var nodeList = ctx.nodes.slice(); // TODO: is copy needed?
- var r = axes[axis](nodeList /*destructive!*/, nodeTypeNum, nodeName, shouldLowerCase);
- return r;
- }
- }
- };
- var evaluate = xpath.evaluate = function evaluate(expr, doc, context) {
- //var astFactory = new AstEvaluatorFactory(doc, context);
- var stream = new Stream(expr);
- var ast = parse(stream, astFactory);
- var val = new Evaluator(doc).val(ast, {nodes: [context]});
- return val;
- }
-
- /***************************************************************************
- * DOM interface *
- ***************************************************************************/
- var XPathException = xpath.XPathException = function XPathException(code, message) {
- var e = new Error(message);
- e.name = 'XPathException';
- e.code = code;
- return e;
- }
- XPathException.INVALID_EXPRESSION_ERR = 51;
- XPathException.TYPE_ERR = 52;
-
-
- var XPathEvaluator = xpath.XPathEvaluator = function XPathEvaluator() {}
- XPathEvaluator.prototype = {
- createExpression: function(expression, resolver) {
- return new XPathExpression(expression, resolver);
- },
- createNSResolver: function(nodeResolver) {
- // TODO
- },
- evaluate: function evaluate(expression, contextNode, resolver, type, result) {
- var expr = new XPathExpression(expression, resolver);
- return expr.evaluate(contextNode, type, result);
- }
- };
-
-
- var XPathExpression = xpath.XPathExpression = function XPathExpression(expression, resolver, optDoc) {
- var stream = new Stream(expression);
- this._ast = parse(stream, astFactory);
- this._doc = optDoc;
- }
- XPathExpression.prototype = {
- evaluate: function evaluate(contextNode, type, result) {
- if (null == contextNode.nodeType)
- throw new Error('bad argument (expected context node): ' + contextNode);
- var doc = contextNode.ownerDocument || contextNode;
- if (null != this._doc && this._doc !== doc) {
- throw new core.DOMException(
- core.DOMException.WRONG_DOCUMENT_ERR,
- 'The document must be the same as the context node\'s document.');
- }
- var evaluator = new Evaluator(doc);
- var value = evaluator.val(this._ast, {nodes: [contextNode]});
- if (XPathResult.NUMBER_TYPE === type)
- value = fn.number(value);
- else if (XPathResult.STRING_TYPE === type)
- value = fn.string(value);
- else if (XPathResult.BOOLEAN_TYPE === type)
- value = fn['boolean'](value);
- else if (XPathResult.ANY_TYPE !== type &&
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== type &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== type &&
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== type &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== type &&
- XPathResult.ANY_UNORDERED_NODE_TYPE !== type &&
- XPathResult.FIRST_ORDERED_NODE_TYPE !== type)
- throw new core.DOMException(
- core.DOMException.NOT_SUPPORTED_ERR,
- 'You must provide an XPath result type (0=any).');
- else if (XPathResult.ANY_TYPE !== type &&
- 'object' !== typeof value)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'Value should be a node-set: ' + value);
- return new XPathResult(doc, value, type);
- }
- }
-
- var XPathResult = xpath.XPathResult = function XPathResult(doc, value, resultType) {
- this._value = value;
- this._resultType = resultType;
- this._i = 0;
-
- // TODO: we removed mutation events but didn't take care of this. No tests fail, so that's nice, but eventually we
- // should fix this, preferably by entirely replacing our XPath implementation.
- // this._invalidated = false;
- // if (this.resultType === XPathResult.UNORDERED_NODE_ITERATOR_TYPE ||
- // this.resultType === XPathResult.ORDERED_NODE_ITERATOR_TYPE) {
- // doc.addEventListener('DOMSubtreeModified', invalidate, true);
- // var self = this;
- // function invalidate() {
- // self._invalidated = true;
- // doc.removeEventListener('DOMSubtreeModified', invalidate, true);
- // }
- // }
- }
- XPathResult.ANY_TYPE = 0;
- XPathResult.NUMBER_TYPE = 1;
- XPathResult.STRING_TYPE = 2;
- XPathResult.BOOLEAN_TYPE = 3;
- XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
- XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
- XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
- XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
- XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
- var proto = {
- // XPathResultType
- get resultType() {
- if (this._resultType) return this._resultType;
- switch (typeof this._value) {
- case 'number': return XPathResult.NUMBER_TYPE;
- case 'string': return XPathResult.STRING_TYPE;
- case 'boolean': return XPathResult.BOOLEAN_TYPE;
- default: return XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
- }
- },
- get numberValue() {
- if (XPathResult.NUMBER_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a NUMBER_TYPE.');
- return this._value;
- },
- get stringValue() {
- if (XPathResult.STRING_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a STRING_TYPE.');
- return this._value;
- },
- get booleanValue() {
- if (XPathResult.BOOLEAN_TYPE !== this.resultType)
- throw new XPathException(XPathException.TYPE_ERR,
- 'You should have asked for a BOOLEAN_TYPE.');
- return this._value;
- },
- get singleNodeValue() {
- if (XPathResult.ANY_UNORDERED_NODE_TYPE !== this.resultType &&
- XPathResult.FIRST_ORDERED_NODE_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a FIRST_ORDERED_NODE_TYPE.');
- return this._value.nodes[0] || null;
- },
- get invalidIteratorState() {
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
- return false;
- return !!this._invalidated;
- },
- get snapshotLength() {
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
- return this._value.nodes.length;
- },
- iterateNext: function iterateNext() {
- if (XPathResult.UNORDERED_NODE_ITERATOR_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_ITERATOR_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_ITERATOR_TYPE.');
- if (this.invalidIteratorState)
- throw new core.DOMException(
- core.DOMException.INVALID_STATE_ERR,
- 'The document has been mutated since the result was returned');
- return this._value.nodes[this._i++] || null;
- },
- snapshotItem: function snapshotItem(index) {
- if (XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE !== this.resultType &&
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE !== this.resultType)
- throw new XPathException(
- XPathException.TYPE_ERR,
- 'You should have asked for a ORDERED_NODE_SNAPSHOT_TYPE.');
- return this._value.nodes[index] || null;
- }
- };
- // so you can access ANY_TYPE etc. from the instances:
- XPathResult.prototype = Object.create(XPathResult,
- Object.keys(proto).reduce(function (descriptors, name) {
- descriptors[name] = Object.getOwnPropertyDescriptor(proto, name);
- return descriptors;
- }, {
- constructor: {
- value: XPathResult,
- writable: true,
- configurable: true
- }
- }));
-
- core.XPathException = XPathException;
- core.XPathExpression = XPathExpression;
- core.XPathResult = XPathResult;
- core.XPathEvaluator = XPathEvaluator;
-
- core.Document.prototype.createExpression =
- XPathEvaluator.prototype.createExpression;
-
- core.Document.prototype.createNSResolver =
- XPathEvaluator.prototype.createNSResolver;
-
- core.Document.prototype.evaluate = XPathEvaluator.prototype.evaluate;
-
- return xpath; // for tests
-};
-
-
-/***/ }),
-
-/***/ 68314:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const AbortSignal = __nccwpck_require__(58571);
-
-class AbortControllerImpl {
- constructor(globalObject) {
- this.signal = AbortSignal.createImpl(globalObject, []);
- }
-
- abort(reason) {
- this.signal._signalAbort(reason);
- }
-}
-
-module.exports = {
- implementation: AbortControllerImpl
-};
-
-
-/***/ }),
-
-/***/ 57971:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const EventTargetImpl = (__nccwpck_require__(18557).implementation);
-const AbortSignal = __nccwpck_require__(58571);
-const DOMException = __nccwpck_require__(57617);
-
-class AbortSignalImpl extends EventTargetImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
-
- // make event firing possible
- this._ownerDocument = globalObject.document;
-
- this.reason = undefined;
- this.abortAlgorithms = new Set();
- }
-
- get aborted() {
- return this.reason !== undefined;
- }
-
- throwIfAborted() {
- if (this.aborted) {
- throw this.reason;
- }
- }
-
- static abort(globalObject, reason) {
- const abortSignal = AbortSignal.createImpl(globalObject, []);
- if (reason !== undefined) {
- abortSignal.reason = reason;
- } else {
- abortSignal.reason = DOMException.create(globalObject, ["The operation was aborted.", "AbortError"]);
- }
- return abortSignal;
- }
-
- static timeout(globalObject, milliseconds) {
- const signal = AbortSignal.createImpl(globalObject, []);
- globalObject.setTimeout(() => {
- signal._signalAbort(DOMException.create(globalObject, ["The operation timed out.", "TimeoutError"]));
- }, milliseconds);
-
- return signal;
- }
-
- _signalAbort(reason) {
- if (this.aborted) {
- return;
- }
-
- if (reason !== undefined) {
- this.reason = reason;
- } else {
- this.reason = DOMException.create(this._globalObject, ["The operation was aborted.", "AbortError"]);
- }
-
- for (const algorithm of this.abortAlgorithms) {
- algorithm();
- }
- this.abortAlgorithms.clear();
-
- fireAnEvent("abort", this);
- }
-
- _addAlgorithm(algorithm) {
- if (this.aborted) {
- return;
- }
- this.abortAlgorithms.add(algorithm);
- }
-
- _removeAlgorithm(algorithm) {
- this.abortAlgorithms.delete(algorithm);
- }
-}
-
-setupForSimpleEventAccessors(AbortSignalImpl.prototype, ["abort"]);
-
-module.exports = {
- implementation: AbortSignalImpl
-};
-
-
-/***/ }),
-
-/***/ 35092:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const DOMException = __nccwpck_require__(57617);
-
-const { HTML_NS } = __nccwpck_require__(52635);
-const { asciiLowercase } = __nccwpck_require__(4764);
-const { queueAttributeMutationRecord } = __nccwpck_require__(58028);
-const { enqueueCECallbackReaction } = __nccwpck_require__(25392);
-
-// The following three are for https://dom.spec.whatwg.org/#concept-element-attribute-has. We don't just have a
-// predicate tester since removing that kind of flexibility gives us the potential for better future optimizations.
-
-/* eslint-disable no-restricted-properties */
-
-exports.hasAttribute = function (element, A) {
- return element._attributeList.includes(A);
-};
-
-exports.hasAttributeByName = function (element, name) {
- return element._attributesByNameMap.has(name);
-};
-
-exports.hasAttributeByNameNS = function (element, namespace, localName) {
- return element._attributeList.some(attribute => {
- return attribute._localName === localName && attribute._namespace === namespace;
- });
-};
-
-// https://dom.spec.whatwg.org/#concept-element-attributes-change
-exports.changeAttribute = (element, attribute, value) => {
- const { _localName, _namespace, _value } = attribute;
-
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
-
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- value,
- _namespace
- ]);
- }
-
- attribute._value = value;
-
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
- element._attrModified(attribute._qualifiedName, value, _value);
-};
-
-// https://dom.spec.whatwg.org/#concept-element-attributes-append
-exports.appendAttribute = function (element, attribute) {
- const { _localName, _namespace, _value } = attribute;
- queueAttributeMutationRecord(element, _localName, _namespace, null);
-
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- null,
- _value,
- _namespace
- ]);
- }
-
- const attributeList = element._attributeList;
-
- attributeList.push(attribute);
- attribute._element = element;
-
- // Sync name cache
- const name = attribute._qualifiedName;
- const cache = element._attributesByNameMap;
- let entry = cache.get(name);
- if (!entry) {
- entry = [];
- cache.set(name, entry);
- }
- entry.push(attribute);
-
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is added."
- element._attrModified(name, _value, null);
-};
-
-exports.removeAttribute = function (element, attribute) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove
-
- const { _localName, _namespace, _value } = attribute;
-
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
-
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- null,
- _namespace
- ]);
- }
-
- const attributeList = element._attributeList;
-
- for (let i = 0; i < attributeList.length; ++i) {
- if (attributeList[i] === attribute) {
- attributeList.splice(i, 1);
- attribute._element = null;
-
- // Sync name cache
- const name = attribute._qualifiedName;
- const cache = element._attributesByNameMap;
- const entry = cache.get(name);
- entry.splice(entry.indexOf(attribute), 1);
- if (entry.length === 0) {
- cache.delete(name);
- }
-
- // Run jsdom hooks; roughly correspond to spec's "An attribute is removed."
- element._attrModified(name, null, attribute._value);
-
- return;
- }
- }
-};
-
-exports.replaceAttribute = function (element, oldAttr, newAttr) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-replace
-
- const { _localName, _namespace, _value } = oldAttr;
-
- queueAttributeMutationRecord(element, _localName, _namespace, _value);
-
- if (element._ceState === "custom") {
- enqueueCECallbackReaction(element, "attributeChangedCallback", [
- _localName,
- _value,
- newAttr._value,
- _namespace
- ]);
- }
-
- const attributeList = element._attributeList;
-
- for (let i = 0; i < attributeList.length; ++i) {
- if (attributeList[i] === oldAttr) {
- attributeList.splice(i, 1, newAttr);
- oldAttr._element = null;
- newAttr._element = element;
-
- // Sync name cache
- const name = newAttr._qualifiedName;
- const cache = element._attributesByNameMap;
- let entry = cache.get(name);
- if (!entry) {
- entry = [];
- cache.set(name, entry);
- }
- entry.splice(entry.indexOf(oldAttr), 1, newAttr);
-
- // Run jsdom hooks; roughly correspond to spec's "An attribute is set and an attribute is changed."
- element._attrModified(name, newAttr._value, oldAttr._value);
-
- return;
- }
- }
-};
-
-exports.getAttributeByName = function (element, name) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
-
- if (element._namespaceURI === HTML_NS &&
- element._ownerDocument._parsingMode === "html") {
- name = asciiLowercase(name);
- }
-
- const cache = element._attributesByNameMap;
- const entry = cache.get(name);
- if (!entry) {
- return null;
- }
-
- return entry[0];
-};
-
-exports.getAttributeByNameNS = function (element, namespace, localName) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace
-
- if (namespace === "") {
- namespace = null;
- }
-
- const attributeList = element._attributeList;
- for (let i = 0; i < attributeList.length; ++i) {
- const attr = attributeList[i];
- if (attr._namespace === namespace && attr._localName === localName) {
- return attr;
- }
- }
-
- return null;
-};
-
-// Both of the following functions implement https://dom.spec.whatwg.org/#concept-element-attributes-get-value.
-// Separated them into two to keep symmetry with other functions.
-exports.getAttributeValue = function (element, localName) {
- const attr = exports.getAttributeByNameNS(element, null, localName);
-
- if (!attr) {
- return "";
- }
-
- return attr._value;
-};
-
-exports.getAttributeValueNS = function (element, namespace, localName) {
- const attr = exports.getAttributeByNameNS(element, namespace, localName);
-
- if (!attr) {
- return "";
- }
-
- return attr._value;
-};
-
-exports.setAttribute = function (element, attr) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-set
-
- if (attr._element !== null && attr._element !== element) {
- throw DOMException.create(element._globalObject, ["The attribute is in use.", "InUseAttributeError"]);
- }
-
- const oldAttr = exports.getAttributeByNameNS(element, attr._namespace, attr._localName);
- if (oldAttr === attr) {
- return attr;
- }
-
- if (oldAttr !== null) {
- exports.replaceAttribute(element, oldAttr, attr);
- } else {
- exports.appendAttribute(element, attr);
- }
-
- return oldAttr;
-};
-
-exports.setAttributeValue = function (element, localName, value, prefix, namespace) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-set-value
-
- if (prefix === undefined) {
- prefix = null;
- }
- if (namespace === undefined) {
- namespace = null;
- }
-
- const attribute = exports.getAttributeByNameNS(element, namespace, localName);
- if (attribute === null) {
- const newAttribute = element._ownerDocument._createAttribute({
- namespace,
- namespacePrefix: prefix,
- localName,
- value
- });
- exports.appendAttribute(element, newAttribute);
-
- return;
- }
-
- exports.changeAttribute(element, attribute, value);
-};
-
-// https://dom.spec.whatwg.org/#set-an-existing-attribute-value
-exports.setAnExistingAttributeValue = (attribute, value) => {
- const element = attribute._element;
- if (element === null) {
- attribute._value = value;
- } else {
- exports.changeAttribute(element, attribute, value);
- }
-};
-
-exports.removeAttributeByName = function (element, name) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-name
-
- const attr = exports.getAttributeByName(element, name);
-
- if (attr !== null) {
- exports.removeAttribute(element, attr);
- }
-
- return attr;
-};
-
-exports.removeAttributeByNameNS = function (element, namespace, localName) {
- // https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace
-
- const attr = exports.getAttributeByNameNS(element, namespace, localName);
-
- if (attr !== null) {
- exports.removeAttribute(element, attr);
- }
-
- return attr;
-};
-
-exports.attributeNames = function (element) {
- // Needed by https://dom.spec.whatwg.org/#dom-element-getattributenames
-
- return element._attributeList.map(a => a._qualifiedName);
-};
-
-exports.hasAttributes = function (element) {
- // Needed by https://dom.spec.whatwg.org/#dom-element-hasattributes
-
- return element._attributeList.length > 0;
-};
-
-
-/***/ }),
-
-/***/ 34306:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { setAnExistingAttributeValue } = __nccwpck_require__(35092);
-const NodeImpl = (__nccwpck_require__(53563).implementation);
-const { ATTRIBUTE_NODE } = __nccwpck_require__(10656);
-
-exports.implementation = class AttrImpl extends NodeImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
-
- this._namespace = privateData.namespace !== undefined ? privateData.namespace : null;
- this._namespacePrefix = privateData.namespacePrefix !== undefined ? privateData.namespacePrefix : null;
- this._localName = privateData.localName;
- this._value = privateData.value !== undefined ? privateData.value : "";
- this._element = privateData.element !== undefined ? privateData.element : null;
-
- this.nodeType = ATTRIBUTE_NODE;
- this.specified = true;
- }
-
- get namespaceURI() {
- return this._namespace;
- }
-
- get prefix() {
- return this._namespacePrefix;
- }
-
- get localName() {
- return this._localName;
- }
-
- get name() {
- return this._qualifiedName;
- }
-
- get nodeName() {
- return this._qualifiedName;
- }
-
- get value() {
- return this._value;
- }
- set value(value) {
- setAnExistingAttributeValue(this, value);
- }
-
- get ownerElement() {
- return this._element;
- }
-
- get _qualifiedName() {
- // https://dom.spec.whatwg.org/#concept-attribute-qualified-name
- if (this._namespacePrefix === null) {
- return this._localName;
- }
-
- return this._namespacePrefix + ":" + this._localName;
- }
-};
-
-
-/***/ }),
-
-/***/ 28698:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const DOMException = __nccwpck_require__(57617);
-const idlUtils = __nccwpck_require__(34908);
-const attributes = __nccwpck_require__(35092);
-const { HTML_NS } = __nccwpck_require__(52635);
-
-exports.implementation = class NamedNodeMapImpl {
- constructor(globalObject, args, privateData) {
- this._element = privateData.element;
-
- this._globalObject = globalObject;
- }
- get _attributeList() {
- return this._element._attributeList;
- }
-
- get [idlUtils.supportedPropertyIndices]() {
- return this._attributeList.keys();
- }
- get length() {
- return this._attributeList.length;
- }
- item(index) {
- if (index >= this._attributeList.length) {
- return null;
- }
- return this._attributeList[index];
- }
-
- get [idlUtils.supportedPropertyNames]() {
- const names = new Set(this._attributeList.map(a => a._qualifiedName));
- const el = this._element;
- if (el._namespaceURI === HTML_NS && el._ownerDocument._parsingMode === "html") {
- for (const name of names) {
- const lowercaseName = name.toLowerCase();
- if (lowercaseName !== name) {
- names.delete(name);
- }
- }
- }
- return names;
- }
- getNamedItem(qualifiedName) {
- return attributes.getAttributeByName(this._element, qualifiedName);
- }
- getNamedItemNS(namespace, localName) {
- return attributes.getAttributeByNameNS(this._element, namespace, localName);
- }
- setNamedItem(attr) {
- // eslint-disable-next-line no-restricted-properties
- return attributes.setAttribute(this._element, attr);
- }
- setNamedItemNS(attr) {
- // eslint-disable-next-line no-restricted-properties
- return attributes.setAttribute(this._element, attr);
- }
- removeNamedItem(qualifiedName) {
- const attr = attributes.removeAttributeByName(this._element, qualifiedName);
- if (attr === null) {
- throw DOMException.create(this._globalObject, [
- "Tried to remove an attribute that was not present",
- "NotFoundError"
- ]);
- }
- return attr;
- }
- removeNamedItemNS(namespace, localName) {
- const attr = attributes.removeAttributeByNameNS(this._element, namespace, localName);
- if (attr === null) {
- throw DOMException.create(this._globalObject, [
- "Tried to remove an attribute that was not present",
- "NotFoundError"
- ]);
- }
- return attr;
- }
-};
-
-
-/***/ }),
-
-/***/ 6460:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const ValidityState = __nccwpck_require__(84979);
-const { isDisabled } = __nccwpck_require__(2744);
-const { closest } = __nccwpck_require__(32604);
-const { fireAnEvent } = __nccwpck_require__(45673);
-
-exports.i = class DefaultConstraintValidationImpl {
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-willvalidate
- get willValidate() {
- return this._isCandidateForConstraintValidation();
- }
-
- get validity() {
- if (!this._validity) {
- this._validity = ValidityState.createImpl(this._globalObject, [], {
- element: this
- });
- }
- return this._validity;
- }
-
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
- checkValidity() {
- if (!this._isCandidateForConstraintValidation()) {
- return true;
- }
- if (this._satisfiesConstraints()) {
- return true;
- }
- fireAnEvent("invalid", this, undefined, { cancelable: true });
- return false;
- }
-
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
- setCustomValidity(message) {
- this._customValidityErrorMessage = message;
- }
-
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-reportvalidity
- // Since jsdom has no user interaction, it's the same as #checkValidity
- reportValidity() {
- return this.checkValidity();
- }
-
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-validationmessage
- get validationMessage() {
- const { validity } = this;
- if (!this._isCandidateForConstraintValidation() || this._satisfiesConstraints()) {
- return "";
- }
- const isSufferingFromCustomError = validity.customError;
- if (isSufferingFromCustomError) {
- return this._customValidityErrorMessage;
- }
- return "Constraints not satisfied";
- }
-
- _isCandidateForConstraintValidation() {
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
- return !isDisabled(this) &&
- // If an element has a datalist element ancestor,
- // it is barred from constraint validation.
- closest(this, "datalist") === null &&
- !this._barredFromConstraintValidationSpecialization();
- }
-
- _isBarredFromConstraintValidation() {
- return !this._isCandidateForConstraintValidation();
- }
-
- _satisfiesConstraints() {
- return this.validity.valid;
- }
-};
-
-
-/***/ }),
-
-/***/ 82125:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-exports.implementation = class ValidityStateImpl {
- constructor(globalObject, args, privateData) {
- const { element, state = {} } = privateData;
-
- this._element = element;
- this._state = state;
- }
-
- get badInput() {
- return this._failsConstraint("badInput");
- }
-
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#suffering-from-a-custom-error
- get customError() {
- return this._element._customValidityErrorMessage !== "";
- }
-
- get patternMismatch() {
- return this._failsConstraint("patternMismatch");
- }
-
- get rangeOverflow() {
- return this._failsConstraint("rangeOverflow");
- }
-
- get rangeUnderflow() {
- return this._failsConstraint("rangeUnderflow");
- }
-
- get stepMismatch() {
- return this._failsConstraint("stepMismatch");
- }
-
- get tooLong() {
- return this._failsConstraint("tooLong");
- }
-
- get tooShort() {
- return this._failsConstraint("tooShort");
- }
-
- get typeMismatch() {
- return this._failsConstraint("typeMismatch");
- }
-
- get valueMissing() {
- return this._failsConstraint("valueMissing");
- }
-
- _failsConstraint(method) {
- const validationMethod = this._state[method];
- if (validationMethod) {
- return validationMethod();
- }
-
- return false;
- }
-
- get valid() {
- return !(this.badInput || this.valueMissing || this.customError ||
- this.patternMismatch || this.rangeOverflow || this.rangeUnderflow ||
- this.stepMismatch || this.tooLong || this.tooShort || this.typeMismatch);
- }
-};
-
-
-/***/ }),
-
-/***/ 70288:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const nodeCrypto = __nccwpck_require__(6113);
-const DOMException = __nccwpck_require__(57617);
-
-// https://w3c.github.io/webcrypto/#crypto-interface
-class CryptoImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- // https://w3c.github.io/webcrypto/#Crypto-method-getRandomValues
- getRandomValues(array) {
- const typeName = getTypedArrayTypeName(array);
- if (!(typeName === "Int8Array" ||
- typeName === "Uint8Array" ||
- typeName === "Uint8ClampedArray" ||
- typeName === "Int16Array" ||
- typeName === "Uint16Array" ||
- typeName === "Int32Array" ||
- typeName === "Uint32Array" ||
- typeName === "BigInt64Array" ||
- typeName === "BigUint64Array")) {
- throw DOMException.create(this._globalObject, [
- `getRandomValues() only accepts integer typed arrays`,
- "TypeMismatchError"
- ]);
- }
-
- if (array.byteLength > 65536) {
- throw DOMException.create(this._globalObject, [
- `getRandomValues() cannot generate more than 65536 bytes of random values; ` +
- `${array.byteLength} bytes were requested`,
- "QuotaExceededError"
- ]);
- }
- nodeCrypto.randomFillSync(array);
- return array;
- }
-
- // https://w3c.github.io/webcrypto/#Crypto-method-randomUUID
- randomUUID() {
- return nodeCrypto.randomUUID();
- }
-}
-
-exports.implementation = CryptoImpl;
-
-// See #3395. Subclasses of TypedArrays should properly work, but we can't rely
-// on instanceof because Uint8Array may be different across different windows -
-// which can happen in JSDOM when running { runScripts: "dangerously" }. As a
-// solution, we imitate the behavior of instanceof by walking the proottype
-// chain.
-function getTypedArrayTypeName(array) {
- const target = array.constructor;
- const chain = [target.name];
- let proto = Object.getPrototypeOf(target);
- while (proto) {
- chain.push(proto.name);
- proto = Object.getPrototypeOf(proto);
- }
-
- while (chain.length > 0 && chain[chain.length - 1] !== "TypedArray") {
- chain.pop();
- }
- chain.reverse();
- return chain[1];
-}
-
-
-/***/ }),
-
-/***/ 63894:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-
-exports.implementation = class StyleSheetList {
- constructor() {
- this._list = [];
- }
-
- get length() {
- return this._list.length;
- }
-
- item(index) {
- const result = this._list[index];
- return result !== undefined ? result : null;
- }
-
- get [idlUtils.supportedPropertyIndices]() {
- return this._list.keys();
- }
-
- _add(sheet) {
- const { _list } = this;
- if (!_list.includes(sheet)) {
- _list.push(sheet);
- }
- }
-
- _remove(sheet) {
- const { _list } = this;
-
- const index = _list.indexOf(sheet);
- if (index >= 0) {
- _list.splice(index, 1);
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 49495:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const webIDLConversions = __nccwpck_require__(54886);
-const DOMException = __nccwpck_require__(57617);
-
-const NODE_TYPE = __nccwpck_require__(10656);
-
-const { HTML_NS } = __nccwpck_require__(52635);
-const { getHTMLElementInterface } = __nccwpck_require__(98548);
-const { shadowIncludingInclusiveDescendantsIterator } = __nccwpck_require__(36893);
-const { isValidCustomElementName, tryUpgradeElement, enqueueCEUpgradeReaction } = __nccwpck_require__(25392);
-
-const idlUtils = __nccwpck_require__(34908);
-const IDLFunction = __nccwpck_require__(79936);
-const HTMLUnknownElement = __nccwpck_require__(30065);
-
-const LIFECYCLE_CALLBACKS = [
- "connectedCallback",
- "disconnectedCallback",
- "adoptedCallback",
- "attributeChangedCallback"
-];
-
-function convertToSequenceDOMString(obj) {
- if (!obj || !obj[Symbol.iterator]) {
- throw new TypeError("Invalid Sequence");
- }
-
- return Array.from(obj).map(webIDLConversions.DOMString);
-}
-
-// Returns true is the passed value is a valid constructor.
-// Borrowed from: https://stackoverflow.com/a/39336206/3832710
-function isConstructor(value) {
- if (typeof value !== "function") {
- return false;
- }
-
- try {
- const P = new Proxy(value, {
- construct() {
- return {};
- }
- });
-
- // eslint-disable-next-line no-new
- new P();
-
- return true;
- } catch {
- return false;
- }
-}
-
-// https://html.spec.whatwg.org/#customelementregistry
-class CustomElementRegistryImpl {
- constructor(globalObject) {
- this._customElementDefinitions = [];
- this._elementDefinitionIsRunning = false;
- this._whenDefinedPromiseMap = Object.create(null);
-
- this._globalObject = globalObject;
- }
-
- // https://html.spec.whatwg.org/#dom-customelementregistry-define
- define(name, constructor, options) {
- const { _globalObject } = this;
- const ctor = constructor.objectReference;
-
- if (!isConstructor(ctor)) {
- throw new TypeError("Constructor argument is not a constructor.");
- }
-
- if (!isValidCustomElementName(name)) {
- throw DOMException.create(_globalObject, ["Name argument is not a valid custom element name.", "SyntaxError"]);
- }
-
- const nameAlreadyRegistered = this._customElementDefinitions.some(entry => entry.name === name);
- if (nameAlreadyRegistered) {
- throw DOMException.create(_globalObject, [
- "This name has already been registered in the registry.",
- "NotSupportedError"
- ]);
- }
-
- const ctorAlreadyRegistered = this._customElementDefinitions.some(entry => entry.objectReference === ctor);
- if (ctorAlreadyRegistered) {
- throw DOMException.create(_globalObject, [
- "This constructor has already been registered in the registry.",
- "NotSupportedError"
- ]);
- }
-
- let localName = name;
-
- let extendsOption = null;
- if (options !== undefined && options.extends) {
- extendsOption = options.extends;
- }
-
- if (extendsOption !== null) {
- if (isValidCustomElementName(extendsOption)) {
- throw DOMException.create(_globalObject, [
- "Option extends value can't be a valid custom element name.",
- "NotSupportedError"
- ]);
- }
-
- const extendsInterface = getHTMLElementInterface(extendsOption);
- if (extendsInterface === HTMLUnknownElement) {
- throw DOMException.create(_globalObject, [
- `${extendsOption} is an HTMLUnknownElement.`,
- "NotSupportedError"
- ]);
- }
-
- localName = extendsOption;
- }
-
- if (this._elementDefinitionIsRunning) {
- throw DOMException.create(_globalObject, [
- "Invalid nested custom element definition.",
- "NotSupportedError"
- ]);
- }
-
- this._elementDefinitionIsRunning = true;
-
- let disableShadow = false;
- let observedAttributes = [];
- const lifecycleCallbacks = {
- connectedCallback: null,
- disconnectedCallback: null,
- adoptedCallback: null,
- attributeChangedCallback: null
- };
-
- let caughtError;
- try {
- const { prototype } = ctor;
-
- if (typeof prototype !== "object") {
- throw new TypeError("Invalid constructor prototype.");
- }
-
- for (const callbackName of LIFECYCLE_CALLBACKS) {
- const callbackValue = prototype[callbackName];
-
- if (callbackValue !== undefined) {
- lifecycleCallbacks[callbackName] = IDLFunction.convert(_globalObject, callbackValue, {
- context: `The lifecycle callback "${callbackName}"`
- });
- }
- }
-
- if (lifecycleCallbacks.attributeChangedCallback !== null) {
- const observedAttributesIterable = ctor.observedAttributes;
-
- if (observedAttributesIterable !== undefined) {
- observedAttributes = convertToSequenceDOMString(observedAttributesIterable);
- }
- }
-
- let disabledFeatures = [];
- const disabledFeaturesIterable = ctor.disabledFeatures;
- if (disabledFeaturesIterable) {
- disabledFeatures = convertToSequenceDOMString(disabledFeaturesIterable);
- }
-
- disableShadow = disabledFeatures.includes("shadow");
- } catch (err) {
- caughtError = err;
- } finally {
- this._elementDefinitionIsRunning = false;
- }
-
- if (caughtError !== undefined) {
- throw caughtError;
- }
-
- const definition = {
- name,
- localName,
- constructor,
- objectReference: ctor,
- observedAttributes,
- lifecycleCallbacks,
- disableShadow,
- constructionStack: []
- };
-
- this._customElementDefinitions.push(definition);
-
- const document = idlUtils.implForWrapper(this._globalObject._document);
-
- const upgradeCandidates = [];
- for (const candidate of shadowIncludingInclusiveDescendantsIterator(document)) {
- if (
- (candidate._namespaceURI === HTML_NS && candidate._localName === localName) &&
- (extendsOption === null || candidate._isValue === name)
- ) {
- upgradeCandidates.push(candidate);
- }
- }
-
- for (const upgradeCandidate of upgradeCandidates) {
- enqueueCEUpgradeReaction(upgradeCandidate, definition);
- }
-
- if (this._whenDefinedPromiseMap[name] !== undefined) {
- this._whenDefinedPromiseMap[name].resolve(ctor);
- delete this._whenDefinedPromiseMap[name];
- }
- }
-
- // https://html.spec.whatwg.org/#dom-customelementregistry-get
- get(name) {
- const definition = this._customElementDefinitions.find(entry => entry.name === name);
- return definition && definition.objectReference;
- }
-
- // https://html.spec.whatwg.org/#dom-customelementregistry-whendefined
- whenDefined(name) {
- if (!isValidCustomElementName(name)) {
- return Promise.reject(DOMException.create(
- this._globalObject,
- ["Name argument is not a valid custom element name.", "SyntaxError"]
- ));
- }
-
- const alreadyRegistered = this._customElementDefinitions.find(entry => entry.name === name);
- if (alreadyRegistered) {
- return Promise.resolve(alreadyRegistered.objectReference);
- }
-
- if (this._whenDefinedPromiseMap[name] === undefined) {
- let resolve;
- const promise = new Promise(r => {
- resolve = r;
- });
-
- // Store the pending Promise along with the extracted resolve callback to actually resolve the returned Promise,
- // once the custom element is registered.
- this._whenDefinedPromiseMap[name] = {
- promise,
- resolve
- };
- }
-
- return this._whenDefinedPromiseMap[name].promise;
- }
-
- // https://html.spec.whatwg.org/#dom-customelementregistry-upgrade
- upgrade(root) {
- for (const candidate of shadowIncludingInclusiveDescendantsIterator(root)) {
- if (candidate.nodeType === NODE_TYPE.ELEMENT_NODE) {
- tryUpgradeElement(candidate);
- }
- }
- }
-}
-
-module.exports = {
- implementation: CustomElementRegistryImpl
-};
-
-
-/***/ }),
-
-/***/ 19951:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const XMLDocument = __nccwpck_require__(79133);
-const Document = __nccwpck_require__(11795);
-const { wrapperForImpl } = __nccwpck_require__(34908);
-
-exports.createImpl = (globalObject, options, { alwaysUseDocumentClass = false } = {}) => {
- if (options.parsingMode === "xml" && !alwaysUseDocumentClass) {
- return XMLDocument.createImpl(globalObject, [], { options });
- }
- return Document.createImpl(globalObject, [], { options });
-};
-
-exports.createWrapper = (...args) => {
- return wrapperForImpl(exports.createImpl(...args));
-};
-
-
-/***/ }),
-
-/***/ 27124:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { parseIntoDocument } = __nccwpck_require__(35373);
-
-const idlUtils = __nccwpck_require__(34908);
-const Document = __nccwpck_require__(11795);
-
-exports.implementation = class DOMParserImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- parseFromString(string, contentType) {
- switch (String(contentType)) {
- case "text/html": {
- return this.createScriptingDisabledDocument("html", contentType, string);
- }
-
- case "text/xml":
- case "application/xml":
- case "application/xhtml+xml":
- case "image/svg+xml": {
- try {
- return this.createScriptingDisabledDocument("xml", contentType, string);
- } catch (error) {
- const document = this.createScriptingDisabledDocument("xml", contentType);
- const element = document.createElementNS("http://www.mozilla.org/newlayout/xml/parsererror.xml", "parsererror");
-
- element.textContent = error.message;
-
- document.appendChild(element);
- return document;
- }
- }
-
- default:
- throw new TypeError("Invalid contentType");
- }
- }
-
- createScriptingDisabledDocument(parsingMode, contentType, string) {
- const document = Document.createImpl(this._globalObject, [], {
- options: {
- parsingMode,
- encoding: "UTF-8",
- contentType,
- readyState: "complete",
- scriptingDisabled: true,
- url: idlUtils.implForWrapper(this._globalObject._document).URL
- }
- });
-
- if (string !== undefined) {
- parseIntoDocument(string, document);
- }
-
- return document;
- }
-};
-
-
-/***/ }),
-
-/***/ 10393:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { parseFragment } = __nccwpck_require__(35373);
-const { HTML_NS } = __nccwpck_require__(52635);
-const { isShadowRoot } = __nccwpck_require__(36893);
-const NODE_TYPE = __nccwpck_require__(10656);
-const { fragmentSerialization } = __nccwpck_require__(33740);
-
-// https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin
-exports.i = class InnerHTMLImpl {
- // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
- get innerHTML() {
- return fragmentSerialization(this, {
- outer: false,
- requireWellFormed: true,
- globalObject: this._globalObject
- });
- }
- set innerHTML(markup) {
- const contextElement = isShadowRoot(this) ? this.host : this;
- const fragment = parseFragment(markup, contextElement);
-
- let contextObject = this;
- if (this.nodeType === NODE_TYPE.ELEMENT_NODE && this.localName === "template" && this.namespaceURI === HTML_NS) {
- contextObject = this._templateContents;
- }
-
- contextObject._replaceAll(fragment);
- }
-};
-
-
-/***/ }),
-
-/***/ 347:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const serialize = __nccwpck_require__(57914);
-const DOMException = __nccwpck_require__(57617);
-const utils = __nccwpck_require__(34908);
-
-exports.implementation = class XMLSerializerImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- serializeToString(root) {
- try {
- return serialize(utils.wrapperForImpl(root), { requireWellFormed: false });
- } catch (e) {
- throw DOMException.create(this._globalObject, [e.message, "InvalidStateError"]);
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 19756:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const nodeTypes = __nccwpck_require__(10656);
-const { domSymbolTree } = __nccwpck_require__(35633);
-// Serialization only requires a subset of the tree adapter interface.
-
-// Tree traversing
-exports.getFirstChild = node => node.firstChild;
-
-exports.getChildNodes = node => domSymbolTree.childrenToArray(node);
-
-exports.getParentNode = node => node.parentNode;
-
-exports.getAttrList = element => {
- const attributeList = [...element._attributeList];
-
- if (element._isValue && attributeList.every(attr => attr.name !== "is")) {
- attributeList.unshift({
- name: "is",
- namespace: null,
- prefix: null,
- value: element._isValue
- });
- }
-
- return attributeList;
-};
-
-// Node data
-exports.getTagName = element => element._qualifiedName; // https://github.com/inikulin/parse5/issues/231
-
-exports.getNamespaceURI = element => element.namespaceURI;
-
-exports.getTextNodeContent = exports.getCommentNodeContent = node => node.data;
-
-exports.getDocumentTypeNodeName = node => node.name;
-
-exports.getDocumentTypeNodePublicId = node => node.publicId;
-
-exports.getDocumentTypeNodeSystemId = node => node.systemId;
-
-exports.getTemplateContent = templateElement => templateElement._templateContents;
-
-exports.getDocumentMode = document => document._mode;
-
-// Node types
-exports.isTextNode = node => node.nodeType === nodeTypes.TEXT_NODE;
-
-exports.isCommentNode = node => node.nodeType === nodeTypes.COMMENT_NODE;
-
-exports.isDocumentTypeNode = node => node.nodeType === nodeTypes.DOCUMENT_TYPE_NODE;
-
-exports.isElementNode = node => node.nodeType === nodeTypes.ELEMENT_NODE;
-
-// Source code location
-exports.setNodeSourceCodeLocation = (node, location) => {
- node.sourceCodeLocation = location;
-};
-
-exports.getNodeSourceCodeLocation = node => node.sourceCodeLocation;
-
-exports.updateNodeSourceCodeLocation = (node, endLocation) => {
- Object.assign(node.sourceCodeLocation, endLocation);
-};
-
-
-/***/ }),
-
-/***/ 33740:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const produceXMLSerialization = __nccwpck_require__(57914);
-const parse5 = __nccwpck_require__(43095);
-const DOMException = __nccwpck_require__(57617);
-
-const utils = __nccwpck_require__(34908);
-const treeAdapter = __nccwpck_require__(19756);
-const NODE_TYPE = __nccwpck_require__(10656);
-
-module.exports.fragmentSerialization = (node, { outer, requireWellFormed, globalObject }) => {
- const contextDocument =
- node.nodeType === NODE_TYPE.DOCUMENT_NODE ? node : node._ownerDocument;
- if (contextDocument._parsingMode === "html") {
- const config = {
- ...contextDocument._parseOptions,
- treeAdapter
- };
- return outer ? parse5.serializeOuter(node, config) : parse5.serialize(node, config);
- }
-
- const childNodes = outer ? [node] : node.childNodes;
-
- try {
- let serialized = "";
- for (let i = 0; i < childNodes.length; ++i) {
- serialized += produceXMLSerialization(
- utils.wrapperForImpl(childNodes[i] || childNodes.item(i)),
- { requireWellFormed }
- );
- }
- return serialized;
- } catch (e) {
- throw DOMException.create(globalObject, [e.message, "InvalidStateError"]);
- }
-};
-
-
-/***/ }),
-
-/***/ 9213:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const CloseEventInit = __nccwpck_require__(6450);
-
-class CloseEventImpl extends EventImpl {}
-CloseEventImpl.defaultInit = CloseEventInit.convert(undefined, undefined);
-
-exports.implementation = CloseEventImpl;
-
-
-/***/ }),
-
-/***/ 79607:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-const CompositionEventInit = __nccwpck_require__(57053);
-
-class CompositionEventImpl extends UIEventImpl {
- initCompositionEvent(type, bubbles, cancelable, view, data) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initUIEvent(type, bubbles, cancelable, view, 0);
- this.data = data;
- }
-}
-CompositionEventImpl.defaultInit = CompositionEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: CompositionEventImpl
-};
-
-
-/***/ }),
-
-/***/ 47560:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const CustomEventInit = __nccwpck_require__(29264);
-
-class CustomEventImpl extends EventImpl {
- initCustomEvent(type, bubbles, cancelable, detail) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.detail = detail;
- }
-}
-CustomEventImpl.defaultInit = CustomEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: CustomEventImpl
-};
-
-
-/***/ }),
-
-/***/ 21385:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const ErrorEventInit = __nccwpck_require__(72886);
-
-class ErrorEventImpl extends EventImpl {
-
-}
-ErrorEventImpl.defaultInit = ErrorEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: ErrorEventImpl
-};
-
-
-/***/ }),
-
-/***/ 61883:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-const EventInit = __nccwpck_require__(4895);
-
-class EventImpl {
- constructor(globalObject, args, privateData) {
- const [type, eventInitDict = this.constructor.defaultInit] = args;
-
- this.type = type;
-
- this.bubbles = false;
- this.cancelable = false;
- for (const key in eventInitDict) {
- if (key in this.constructor.defaultInit) {
- this[key] = eventInitDict[key];
- }
- }
- for (const key in this.constructor.defaultInit) {
- if (!(key in this)) {
- this[key] = this.constructor.defaultInit[key];
- }
- }
-
- this.target = null;
- this.currentTarget = null;
- this.eventPhase = 0;
-
- this._globalObject = globalObject;
- this._initializedFlag = true;
- this._stopPropagationFlag = false;
- this._stopImmediatePropagationFlag = false;
- this._canceledFlag = false;
- this._inPassiveListenerFlag = false;
- this._dispatchFlag = false;
- this._path = [];
-
- this.isTrusted = privateData.isTrusted || false;
- this.timeStamp = Date.now();
- }
-
- // https://dom.spec.whatwg.org/#set-the-canceled-flag
- _setTheCanceledFlag() {
- if (this.cancelable && !this._inPassiveListenerFlag) {
- this._canceledFlag = true;
- }
- }
-
- get srcElement() {
- return this.target;
- }
-
- get returnValue() {
- return !this._canceledFlag;
- }
-
- set returnValue(v) {
- if (v === false) {
- this._setTheCanceledFlag();
- }
- }
-
- get defaultPrevented() {
- return this._canceledFlag;
- }
-
- stopPropagation() {
- this._stopPropagationFlag = true;
- }
-
- get cancelBubble() {
- return this._stopPropagationFlag;
- }
-
- set cancelBubble(v) {
- if (v) {
- this._stopPropagationFlag = true;
- }
- }
-
- stopImmediatePropagation() {
- this._stopPropagationFlag = true;
- this._stopImmediatePropagationFlag = true;
- }
-
- preventDefault() {
- this._setTheCanceledFlag();
- }
-
- // https://dom.spec.whatwg.org/#dom-event-composedpath
- // Current implementation is based of https://whatpr.org/dom/699.html#dom-event-composedpath
- // due to a bug in composed path implementation https://github.com/whatwg/dom/issues/684
- composedPath() {
- const composedPath = [];
-
- const { currentTarget, _path: path } = this;
-
- if (path.length === 0) {
- return composedPath;
- }
-
- composedPath.push(currentTarget);
-
- let currentTargetIndex = 0;
- let currentTargetHiddenSubtreeLevel = 0;
-
- for (let index = path.length - 1; index >= 0; index--) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[index];
-
- if (rootOfClosedTree) {
- currentTargetHiddenSubtreeLevel++;
- }
-
- if (item === idlUtils.implForWrapper(currentTarget)) {
- currentTargetIndex = index;
- break;
- }
-
- if (slotInClosedTree) {
- currentTargetHiddenSubtreeLevel--;
- }
- }
-
- let currentHiddenLevel = currentTargetHiddenSubtreeLevel;
- let maxHiddenLevel = currentTargetHiddenSubtreeLevel;
-
- for (let i = currentTargetIndex - 1; i >= 0; i--) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[i];
-
- if (rootOfClosedTree) {
- currentHiddenLevel++;
- }
-
- if (currentHiddenLevel <= maxHiddenLevel) {
- composedPath.unshift(idlUtils.wrapperForImpl(item));
- }
-
- if (slotInClosedTree) {
- currentHiddenLevel--;
- if (currentHiddenLevel < maxHiddenLevel) {
- maxHiddenLevel = currentHiddenLevel;
- }
- }
- }
-
- currentHiddenLevel = currentTargetHiddenSubtreeLevel;
- maxHiddenLevel = currentTargetHiddenSubtreeLevel;
-
- for (let index = currentTargetIndex + 1; index < path.length; index++) {
- const { item, rootOfClosedTree, slotInClosedTree } = path[index];
-
- if (slotInClosedTree) {
- currentHiddenLevel++;
- }
-
- if (currentHiddenLevel <= maxHiddenLevel) {
- composedPath.push(idlUtils.wrapperForImpl(item));
- }
-
- if (rootOfClosedTree) {
- currentHiddenLevel--;
- if (currentHiddenLevel < maxHiddenLevel) {
- maxHiddenLevel = currentHiddenLevel;
- }
- }
- }
-
- return composedPath;
- }
-
- _initialize(type, bubbles, cancelable) {
- this.type = type;
- this._initializedFlag = true;
-
- this._stopPropagationFlag = false;
- this._stopImmediatePropagationFlag = false;
- this._canceledFlag = false;
-
- this.isTrusted = false;
- this.target = null;
- this.bubbles = bubbles;
- this.cancelable = cancelable;
- }
-
- initEvent(type, bubbles, cancelable) {
- if (this._dispatchFlag) {
- return;
- }
-
- this._initialize(type, bubbles, cancelable);
- }
-}
-EventImpl.defaultInit = EventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: EventImpl
-};
-
-
-/***/ }),
-
-/***/ 86789:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-// This mixin doesn't have an IDL equivalent, but since MouseEvent and KeyboardEvent implement getModifierState() the
-// same way, its implementation is shared here.
-
-class EventModifierMixinImpl {
- // Event's constructor assumes all options correspond to IDL attributes with the same names, and sets them on `this`.
- // That is not the case for these modifier boolean options, but since the options are set on `this` anyway we'll
- // access them that way. The spec doesn't say much about the case where keyArg is not one of the valid ones
- // (https://w3c.github.io/uievents-key/#keys-modifier), but at least Chrome returns false for invalid modifiers. Since
- // these invalid modifiers will be undefined on `this` (thus `false` after casting it to boolean), we don't need to do
- // extra checking for validity.
- getModifierState(keyArg) {
- if (keyArg === "Control") {
- return Boolean(this.ctrlKey);
- }
- if (["Alt", "Meta", "Shift"].includes(keyArg)) {
- return Boolean(this[`${keyArg.toLowerCase()}Key`]);
- }
- return Boolean(this[`modifier${keyArg}`]);
- }
-}
-
-exports.i = EventModifierMixinImpl;
-
-
-/***/ }),
-
-/***/ 18557:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const DOMException = __nccwpck_require__(57617);
-
-const reportException = __nccwpck_require__(15612);
-const idlUtils = __nccwpck_require__(34908);
-const { nodeRoot } = __nccwpck_require__(98962);
-const {
- isNode, isShadowRoot, isSlotable, getEventTargetParent,
- isShadowInclusiveAncestor, retarget
-} = __nccwpck_require__(36893);
-
-const MouseEvent = __nccwpck_require__(35364);
-
-const EVENT_PHASE = {
- NONE: 0,
- CAPTURING_PHASE: 1,
- AT_TARGET: 2,
- BUBBLING_PHASE: 3
-};
-
-class EventTargetImpl {
- constructor(globalObject) {
- this._globalObject = globalObject;
- this._eventListeners = Object.create(null);
- }
-
- addEventListener(type, callback, options) {
- options = normalizeEventHandlerOptions(options, ["capture", "once", "passive"]);
-
- if (options.signal !== null && options.signal.aborted) {
- return;
- }
-
- if (callback === null) {
- return;
- }
-
- if (!this._eventListeners[type]) {
- this._eventListeners[type] = [];
- }
-
- for (let i = 0; i < this._eventListeners[type].length; ++i) {
- const listener = this._eventListeners[type][i];
- if (
- listener.callback.objectReference === callback.objectReference &&
- listener.options.capture === options.capture
- ) {
- return;
- }
- }
-
- this._eventListeners[type].push({
- callback,
- options
- });
-
- if (options.signal !== null) {
- options.signal._addAlgorithm(() => {
- this.removeEventListener(type, callback, options);
- });
- }
- }
-
- removeEventListener(type, callback, options) {
- options = normalizeEventHandlerOptions(options, ["capture"]);
-
- if (callback === null) {
- // Optimization, not in the spec.
- return;
- }
-
- if (!this._eventListeners[type]) {
- return;
- }
-
- for (let i = 0; i < this._eventListeners[type].length; ++i) {
- const listener = this._eventListeners[type][i];
- if (
- listener.callback.objectReference === callback.objectReference &&
- listener.options.capture === options.capture
- ) {
- this._eventListeners[type].splice(i, 1);
- break;
- }
- }
- }
-
- dispatchEvent(eventImpl) {
- if (eventImpl._dispatchFlag || !eventImpl._initializedFlag) {
- throw DOMException.create(this._globalObject, [
- "Tried to dispatch an uninitialized event",
- "InvalidStateError"
- ]);
- }
- if (eventImpl.eventPhase !== EVENT_PHASE.NONE) {
- throw DOMException.create(this._globalObject, [
- "Tried to dispatch a dispatching event",
- "InvalidStateError"
- ]);
- }
-
- eventImpl.isTrusted = false;
-
- return this._dispatch(eventImpl);
- }
-
- // https://dom.spec.whatwg.org/#get-the-parent
- _getTheParent() {
- return null;
- }
-
- // https://dom.spec.whatwg.org/#concept-event-dispatch
- // legacyOutputDidListenersThrowFlag optional parameter is not necessary here since it is only used by indexDB.
- _dispatch(eventImpl, legacyTargetOverrideFlag /* , legacyOutputDidListenersThrowFlag */) {
- let targetImpl = this;
- let clearTargets = false;
- let activationTarget = null;
-
- eventImpl._dispatchFlag = true;
-
- const targetOverride = legacyTargetOverrideFlag ?
- idlUtils.implForWrapper(targetImpl._globalObject._document) :
- targetImpl;
- let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);
-
- if (targetImpl !== relatedTarget || targetImpl === eventImpl.relatedTarget) {
- const touchTargets = [];
-
- appendToEventPath(eventImpl, targetImpl, targetOverride, relatedTarget, touchTargets, false);
-
- const isActivationEvent = MouseEvent.isImpl(eventImpl) && eventImpl.type === "click";
-
- if (isActivationEvent && targetImpl._hasActivationBehavior) {
- activationTarget = targetImpl;
- }
-
- let slotInClosedTree = false;
- let slotable = isSlotable(targetImpl) && targetImpl._assignedSlot ? targetImpl : null;
- let parent = getEventTargetParent(targetImpl, eventImpl);
-
- // Populate event path
- // https://dom.spec.whatwg.org/#event-path
- while (parent !== null) {
- if (slotable !== null) {
- if (parent.localName !== "slot") {
- throw new Error(`JSDOM Internal Error: Expected parent to be a Slot`);
- }
-
- slotable = null;
-
- const parentRoot = nodeRoot(parent);
- if (isShadowRoot(parentRoot) && parentRoot.mode === "closed") {
- slotInClosedTree = true;
- }
- }
-
- if (isSlotable(parent) && parent._assignedSlot) {
- slotable = parent;
- }
-
- relatedTarget = retarget(eventImpl.relatedTarget, parent);
-
- if (
- (isNode(parent) && isShadowInclusiveAncestor(nodeRoot(targetImpl), parent)) ||
- idlUtils.wrapperForImpl(parent).constructor.name === "Window"
- ) {
- if (isActivationEvent && eventImpl.bubbles && activationTarget === null &&
- parent._hasActivationBehavior) {
- activationTarget = parent;
- }
-
- appendToEventPath(eventImpl, parent, null, relatedTarget, touchTargets, slotInClosedTree);
- } else if (parent === relatedTarget) {
- parent = null;
- } else {
- targetImpl = parent;
-
- if (isActivationEvent && activationTarget === null && targetImpl._hasActivationBehavior) {
- activationTarget = targetImpl;
- }
-
- appendToEventPath(eventImpl, parent, targetImpl, relatedTarget, touchTargets, slotInClosedTree);
- }
-
- if (parent !== null) {
- parent = getEventTargetParent(parent, eventImpl);
- }
-
- slotInClosedTree = false;
- }
-
- let clearTargetsStructIndex = -1;
- for (let i = eventImpl._path.length - 1; i >= 0 && clearTargetsStructIndex === -1; i--) {
- if (eventImpl._path[i].target !== null) {
- clearTargetsStructIndex = i;
- }
- }
- const clearTargetsStruct = eventImpl._path[clearTargetsStructIndex];
-
- clearTargets =
- (isNode(clearTargetsStruct.target) && isShadowRoot(nodeRoot(clearTargetsStruct.target))) ||
- (isNode(clearTargetsStruct.relatedTarget) && isShadowRoot(nodeRoot(clearTargetsStruct.relatedTarget)));
-
- if (activationTarget !== null && activationTarget._legacyPreActivationBehavior) {
- activationTarget._legacyPreActivationBehavior();
- }
-
- for (let i = eventImpl._path.length - 1; i >= 0; --i) {
- const struct = eventImpl._path[i];
-
- if (struct.target !== null) {
- eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
- } else {
- eventImpl.eventPhase = EVENT_PHASE.CAPTURING_PHASE;
- }
-
- invokeEventListeners(struct, eventImpl, "capturing");
- }
-
- for (let i = 0; i < eventImpl._path.length; i++) {
- const struct = eventImpl._path[i];
-
- if (struct.target !== null) {
- eventImpl.eventPhase = EVENT_PHASE.AT_TARGET;
- } else {
- if (!eventImpl.bubbles) {
- continue;
- }
-
- eventImpl.eventPhase = EVENT_PHASE.BUBBLING_PHASE;
- }
-
- invokeEventListeners(struct, eventImpl, "bubbling");
- }
- }
-
- eventImpl.eventPhase = EVENT_PHASE.NONE;
-
- eventImpl.currentTarget = null;
- eventImpl._path = [];
- eventImpl._dispatchFlag = false;
- eventImpl._stopPropagationFlag = false;
- eventImpl._stopImmediatePropagationFlag = false;
-
- if (clearTargets) {
- eventImpl.target = null;
- eventImpl.relatedTarget = null;
- }
-
- if (activationTarget !== null) {
- if (!eventImpl._canceledFlag) {
- activationTarget._activationBehavior(eventImpl);
- } else if (activationTarget._legacyCanceledActivationBehavior) {
- activationTarget._legacyCanceledActivationBehavior();
- }
- }
-
- return !eventImpl._canceledFlag;
- }
-}
-
-module.exports = {
- implementation: EventTargetImpl
-};
-
-// https://dom.spec.whatwg.org/#concept-event-listener-invoke
-function invokeEventListeners(struct, eventImpl, phase) {
- const structIndex = eventImpl._path.indexOf(struct);
- for (let i = structIndex; i >= 0; i--) {
- const t = eventImpl._path[i];
- if (t.target) {
- eventImpl.target = t.target;
- break;
- }
- }
-
- eventImpl.relatedTarget = idlUtils.wrapperForImpl(struct.relatedTarget);
-
- if (eventImpl._stopPropagationFlag) {
- return;
- }
-
- eventImpl.currentTarget = idlUtils.wrapperForImpl(struct.item);
-
- const listeners = struct.item._eventListeners;
- innerInvokeEventListeners(eventImpl, listeners, phase, struct.itemInShadowTree);
-}
-
-// https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke
-function innerInvokeEventListeners(eventImpl, listeners, phase, itemInShadowTree) {
- let found = false;
-
- const { type, target } = eventImpl;
- const wrapper = idlUtils.wrapperForImpl(target);
-
- if (!listeners || !listeners[type]) {
- return found;
- }
-
- // Copy event listeners before iterating since the list can be modified during the iteration.
- const handlers = listeners[type].slice();
-
- for (let i = 0; i < handlers.length; i++) {
- const listener = handlers[i];
- const { capture, once, passive } = listener.options;
-
- // Check if the event listener has been removed since the listeners has been cloned.
- if (!listeners[type].includes(listener)) {
- continue;
- }
-
- found = true;
-
- if (
- (phase === "capturing" && !capture) ||
- (phase === "bubbling" && capture)
- ) {
- continue;
- }
-
- if (once) {
- listeners[type].splice(listeners[type].indexOf(listener), 1);
- }
-
- let window = null;
- if (wrapper && wrapper._document) {
- // Triggered by Window
- window = wrapper;
- } else if (target._ownerDocument) {
- // Triggered by most webidl2js'ed instances
- window = target._ownerDocument._defaultView;
- } else if (wrapper._ownerDocument) {
- // Currently triggered by some non-webidl2js things
- window = wrapper._ownerDocument._defaultView;
- }
-
- let currentEvent;
- if (window) {
- currentEvent = window._currentEvent;
- if (!itemInShadowTree) {
- window._currentEvent = eventImpl;
- }
- }
-
- if (passive) {
- eventImpl._inPassiveListenerFlag = true;
- }
-
- try {
- listener.callback.call(eventImpl.currentTarget, eventImpl);
- } catch (e) {
- if (window) {
- reportException(window, e);
- }
- // Errors in window-less documents just get swallowed... can you think of anything better?
- }
-
- eventImpl._inPassiveListenerFlag = false;
-
- if (window) {
- window._currentEvent = currentEvent;
- }
-
- if (eventImpl._stopImmediatePropagationFlag) {
- return found;
- }
- }
-
- return found;
-}
-
-/**
- * Normalize the event listeners options argument in order to get always a valid options object
- * @param {Object} options - user defined options
- * @param {Array} defaultBoolKeys - boolean properties that should belong to the options object
- * @returns {Object} object containing at least the "defaultBoolKeys"
- */
-function normalizeEventHandlerOptions(options, defaultBoolKeys) {
- const returnValue = { signal: null };
-
- // no need to go further here
- if (typeof options === "boolean" || options === null || typeof options === "undefined") {
- returnValue.capture = Boolean(options);
- return returnValue;
- }
-
- // non objects options so we typecast its value as "capture" value
- if (typeof options !== "object") {
- returnValue.capture = Boolean(options);
- // at this point we don't need to loop the "capture" key anymore
- defaultBoolKeys = defaultBoolKeys.filter(k => k !== "capture");
- }
-
- for (const key of defaultBoolKeys) {
- returnValue[key] = Boolean(options[key]);
- }
-
- if (options.signal !== undefined) {
- returnValue.signal = options.signal;
- }
-
- return returnValue;
-}
-
-// https://dom.spec.whatwg.org/#concept-event-path-append
-function appendToEventPath(eventImpl, target, targetOverride, relatedTarget, touchTargets, slotInClosedTree) {
- const itemInShadowTree = isNode(target) && isShadowRoot(nodeRoot(target));
- const rootOfClosedTree = isShadowRoot(target) && target.mode === "closed";
-
- eventImpl._path.push({
- item: target,
- itemInShadowTree,
- target: targetOverride,
- relatedTarget,
- touchTargets,
- rootOfClosedTree,
- slotInClosedTree
- });
-}
-
-
-/***/ }),
-
-/***/ 8703:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-
-const FocusEventInit = __nccwpck_require__(89088);
-
-class FocusEventImpl extends UIEventImpl {}
-FocusEventImpl.defaultInit = FocusEventInit.convert(undefined, undefined);
-
-exports.implementation = FocusEventImpl;
-
-
-/***/ }),
-
-/***/ 93234:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const HashChangeEventInit = __nccwpck_require__(72491);
-
-class HashChangeEventImpl extends EventImpl {
-
-}
-HashChangeEventImpl.defaultInit = HashChangeEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: HashChangeEventImpl
-};
-
-
-/***/ }),
-
-/***/ 58056:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-const InputEventInit = __nccwpck_require__(75799);
-
-// https://w3c.github.io/uievents/#interface-inputevent
-class InputEventImpl extends UIEventImpl { }
-InputEventImpl.defaultInit = InputEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: InputEventImpl
-};
-
-
-/***/ }),
-
-/***/ 44410:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { mixin } = __nccwpck_require__(11463);
-const EventModifierMixinImpl = (__nccwpck_require__(86789)/* .implementation */ .i);
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-
-const KeyboardEventInit = __nccwpck_require__(72711);
-
-class KeyboardEventImpl extends UIEventImpl {
- initKeyboardEvent(type, bubbles, cancelable, view, key, location, ctrlKey, altKey, shiftKey, metaKey) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initUIEvent(type, bubbles, cancelable, view, 0);
- this.key = key;
- this.location = location;
- this.ctrlKey = ctrlKey;
- this.altKey = altKey;
- this.shiftKey = shiftKey;
- this.metaKey = metaKey;
- }
-}
-mixin(KeyboardEventImpl.prototype, EventModifierMixinImpl.prototype);
-KeyboardEventImpl.defaultInit = KeyboardEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: KeyboardEventImpl
-};
-
-
-/***/ }),
-
-/***/ 62673:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const MessageEventInit = __nccwpck_require__(75669);
-
-class MessageEventImpl extends EventImpl {
- initMessageEvent(type, bubbles, cancelable, data, origin, lastEventId, source, ports) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.data = data;
- this.origin = origin;
- this.lastEventId = lastEventId;
- this.source = source;
- this.ports = ports;
- }
-}
-MessageEventImpl.defaultInit = MessageEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: MessageEventImpl
-};
-
-
-/***/ }),
-
-/***/ 91684:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const { mixin } = __nccwpck_require__(11463);
-const EventModifierMixinImpl = (__nccwpck_require__(86789)/* .implementation */ .i);
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-
-const MouseEventInit = __nccwpck_require__(88445);
-
-class MouseEventImpl extends UIEventImpl {
- get x() {
- return this.clientX;
- }
- get y() {
- return this.clientY;
- }
- get pageX() {
- // TODO: consider dispatch flag and return page-relative event coordinate once layout is supported
- return this.clientX; // TODO: add horizontal scroll offset once jsdom implements scrolling support
- }
- get pageY() {
- // TODO: consider dispatch flag and return page-relative event coordinate once layout is supported
- return this.clientY; // TODO: add vertical scroll offset once jsdom implements scrolling support
- }
- get offsetX() {
- // TODO: consider dispatch flag and return target-relative event coordinate once layout is supported
- return this.pageX;
- }
- get offsetY() {
- // TODO: consider dispatch flag and return target-relative event coordinate once layout is supported
- return this.pageY;
- }
-
- initMouseEvent(
- type,
- bubbles,
- cancelable,
- view,
- detail,
- screenX,
- screenY,
- clientX,
- clientY,
- ctrlKey,
- altKey,
- shiftKey,
- metaKey,
- button,
- relatedTarget
- ) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initUIEvent(type, bubbles, cancelable, view, detail);
- this.screenX = screenX;
- this.screenY = screenY;
- this.clientX = clientX;
- this.clientY = clientY;
- this.ctrlKey = ctrlKey;
- this.altKey = altKey;
- this.shiftKey = shiftKey;
- this.metaKey = metaKey;
- this.button = button;
- this.relatedTarget = relatedTarget;
- }
-}
-mixin(MouseEventImpl.prototype, EventModifierMixinImpl.prototype);
-MouseEventImpl.defaultInit = MouseEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: MouseEventImpl
-};
-
-
-/***/ }),
-
-/***/ 50265:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const PageTransitionEventInit = __nccwpck_require__(21782);
-
-// https://html.spec.whatwg.org/multipage/browsing-the-web.html#pagetransitionevent
-class PageTransitionEventImpl extends EventImpl {
- initPageTransitionEvent(type, bubbles, cancelable, persisted) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.persisted = persisted;
- }
-}
-PageTransitionEventImpl.defaultInit = PageTransitionEventInit.convert(undefined, undefined);
-
-exports.implementation = PageTransitionEventImpl;
-
-
-/***/ }),
-
-/***/ 46633:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const PopStateEventInit = __nccwpck_require__(18089);
-
-class PopStateEventImpl extends EventImpl {}
-PopStateEventImpl.defaultInit = PopStateEventInit.convert(undefined, undefined);
-
-exports.implementation = PopStateEventImpl;
-
-
-/***/ }),
-
-/***/ 38424:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const ProgressEventInit = __nccwpck_require__(24624);
-
-class ProgressEventImpl extends EventImpl {
-
-}
-ProgressEventImpl.defaultInit = ProgressEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: ProgressEventImpl
-};
-
-
-/***/ }),
-
-/***/ 85232:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const StorageEventInit = __nccwpck_require__(68629);
-
-// https://html.spec.whatwg.org/multipage/webstorage.html#the-storageevent-interface
-class StorageEventImpl extends EventImpl {
- initStorageEvent(type, bubbles, cancelable, key, oldValue, newValue, url, storageArea) {
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.key = key;
- this.oldValue = oldValue;
- this.newValue = newValue;
- this.url = url;
- this.storageArea = storageArea;
- }
-}
-StorageEventImpl.defaultInit = StorageEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: StorageEventImpl
-};
-
-
-/***/ }),
-
-/***/ 43230:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-const SubmitEventInit = __nccwpck_require__(7033);
-
-// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#the-submitevent-interface
-class SubmitEventImpl extends EventImpl {}
-SubmitEventImpl.defaultInit = SubmitEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: SubmitEventImpl
-};
-
-
-/***/ }),
-
-/***/ 8409:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const UIEventImpl = (__nccwpck_require__(55900).implementation);
-
-const TouchEventInit = __nccwpck_require__(36157);
-
-class TouchEventImpl extends UIEventImpl {
-
-}
-TouchEventImpl.defaultInit = TouchEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: TouchEventImpl
-};
-
-
-/***/ }),
-
-/***/ 55900:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-const UIEventInit = __nccwpck_require__(82015);
-const EventImpl = (__nccwpck_require__(61883).implementation);
-
-// Until webidl2js gains support for checking for Window, this would have to do.
-function isWindow(val) {
- if (typeof val !== "object") {
- return false;
- }
- const wrapper = idlUtils.wrapperForImpl(val);
- if (typeof wrapper === "object") {
- return wrapper === wrapper._globalProxy;
- }
-
- // `val` may be either impl or wrapper currently, because webidl2js currently unwraps Window objects (and their global
- // proxies) to their underlying EventTargetImpl during conversion, which is not what we want. But at the same time,
- // some internal usage call this constructor with the actual global proxy.
- return isWindow(idlUtils.implForWrapper(val));
-}
-
-class UIEventImpl extends EventImpl {
- constructor(globalObject, args, privateData) {
- const eventInitDict = args[1];
-
- // undefined check included so that we can omit the property in internal usage.
- if (eventInitDict && eventInitDict.view !== null && eventInitDict.view !== undefined) {
- if (!isWindow(eventInitDict.view)) {
- throw new TypeError(`Failed to construct '${new.target.name.replace(/Impl$/, "")}': member view is not of ` +
- "type Window.");
- }
- }
-
- super(globalObject, args, privateData);
- }
-
- initUIEvent(type, bubbles, cancelable, view, detail) {
- if (view !== null) {
- if (!isWindow(view)) {
- throw new TypeError(`Failed to execute 'initUIEvent' on '${this.constructor.name.replace(/Impl$/, "")}': ` +
- "parameter 4 is not of type 'Window'.");
- }
- }
-
- if (this._dispatchFlag) {
- return;
- }
-
- this.initEvent(type, bubbles, cancelable);
- this.view = view;
- this.detail = detail;
- }
-}
-UIEventImpl.defaultInit = UIEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: UIEventImpl
-};
-
-
-/***/ }),
-
-/***/ 96117:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const MouseEventImpl = (__nccwpck_require__(91684).implementation);
-
-const WheelEventInit = __nccwpck_require__(35117);
-
-class WheelEventImpl extends MouseEventImpl {}
-WheelEventImpl.defaultInit = WheelEventInit.convert(undefined, undefined);
-
-module.exports = {
- implementation: WheelEventImpl
-};
-
-
-/***/ }),
-
-/***/ 15643:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const {
- isForbidden,
- isForbiddenResponse,
- isPrivilegedNoCORSRequest,
- isNoCORSSafelistedRequest,
- isCORSWhitelisted
-} = __nccwpck_require__(74270);
-const HeaderList = __nccwpck_require__(94452);
-
-function assertName(name) {
- if (!name.match(/^[!#$%&'*+\-.^`|~\w]+$/)) {
- throw new TypeError("name is invalid");
- }
-}
-
-function assertValue(value) {
- if (value.match(/[\0\r\n]/)) {
- throw new TypeError("value is invalid");
- }
-}
-
-// https://fetch.spec.whatwg.org/#concept-header-value-normalize
-function normalizeValue(potentialValue) {
- return potentialValue.replace(/^[\n\r\t ]+|[\n\r\t ]+$/g, "");
-}
-
-class HeadersImpl {
- constructor(globalObject, args) {
- this.guard = "none";
- this.headersList = new HeaderList();
-
- if (args[0]) {
- this._fill(args[0]);
- }
- }
-
- _fill(init) {
- if (Array.isArray(init)) {
- for (const header of init) {
- if (header.length !== 2) {
- throw new TypeError("init is invalid");
- }
- this.append(header[0], header[1]);
- }
- } else {
- for (const key of Object.keys(init)) {
- this.append(key, init[key]);
- }
- }
- }
-
- has(name) {
- assertName(name);
- return this.headersList.contains(name);
- }
-
- get(name) {
- assertName(name);
- return this.headersList.get(name);
- }
-
- _removePrivilegedNoCORSHeaders() {
- this.headersList.delete("range");
- }
-
- append(name, value) {
- value = normalizeValue(value);
- assertName(name);
- assertValue(value);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- let temporaryValue = this.get(name);
- if (temporaryValue === null) {
- temporaryValue = value;
- } else {
- temporaryValue += `, ${value}`;
- }
- if (!isCORSWhitelisted(name, value)) {
- return;
- }
- break;
- }
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
- }
-
- this.headersList.append(name, value);
- this._removePrivilegedNoCORSHeaders();
- }
-
- set(name, value) {
- value = normalizeValue(value);
- assertName(name);
- assertValue(value);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- if (!isCORSWhitelisted(name, value)) {
- return;
- }
- break;
- }
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
- }
- this.headersList.set(name, value);
- this._removePrivilegedNoCORSHeaders();
- }
-
- delete(name) {
- assertName(name);
-
- switch (this.guard) {
- case "immutable":
- throw new TypeError("Headers is immutable");
- case "request":
- if (isForbidden(name)) {
- return;
- }
- break;
- case "request-no-cors": {
- if (
- !isNoCORSSafelistedRequest(name) &&
- !isPrivilegedNoCORSRequest(name)
- ) {
- return;
- }
- break;
- }
- case "response":
- if (isForbiddenResponse(name)) {
- return;
- }
- break;
- }
- this.headersList.delete(name);
- this._removePrivilegedNoCORSHeaders();
- }
-
- * [Symbol.iterator]() {
- for (const header of this.headersList.sortAndCombine()) {
- yield header;
- }
- }
-}
-
-exports.implementation = HeadersImpl;
-
-
-/***/ }),
-
-/***/ 94452:
-/***/ ((module) => {
-
-"use strict";
-
-
-/**
- * Provides some utility functions for somewhat efficiently modifying a
- * collection of headers.
- *
- * Note that this class only operates on ByteStrings (which is also why we use
- * toLowerCase internally).
- */
-class HeaderList {
- constructor() {
- this.headers = new Map();
- }
-
- append(name, value) {
- const existing = this.headers.get(name.toLowerCase());
- if (existing) {
- name = existing[0].name;
- existing.push({ name, value });
- } else {
- this.headers.set(name.toLowerCase(), [{ name, value }]);
- }
- }
-
- contains(name) {
- return this.headers.has(name.toLowerCase());
- }
-
- get(name) {
- name = name.toLowerCase();
- const values = this.headers.get(name);
- if (!values) {
- return null;
- }
- return values.map(h => h.value).join(", ");
- }
-
- delete(name) {
- this.headers.delete(name.toLowerCase());
- }
-
- set(name, value) {
- const lowerName = name.toLowerCase();
- this.headers.delete(lowerName);
- this.headers.set(lowerName, [{ name, value }]);
- }
-
- sortAndCombine() {
- const names = [...this.headers.keys()].sort();
- return names.map(n => [n, this.get(n)]);
- }
-}
-
-module.exports = HeaderList;
-
-
-/***/ }),
-
-/***/ 74270:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const MIMEType = __nccwpck_require__(59488);
-
-const PRIVILEGED_NO_CORS_REQUEST = new Set(["range"]);
-function isPrivilegedNoCORSRequest(name) {
- return PRIVILEGED_NO_CORS_REQUEST.has(name.toLowerCase());
-}
-
-const NO_CORS_SAFELISTED_REQUEST = new Set([
- `accept`,
- `accept-language`,
- `content-language`,
- `content-type`
-]);
-function isNoCORSSafelistedRequest(name) {
- return NO_CORS_SAFELISTED_REQUEST.has(name.toLowerCase());
-}
-
-const FORBIDDEN = new Set([
- `accept-charset`,
- `accept-encoding`,
- `access-control-request-headers`,
- `access-control-request-method`,
- `connection`,
- `content-length`,
- `cookie`,
- `cookie2`,
- `date`,
- `dnt`,
- `expect`,
- `host`,
- `keep-alive`,
- `origin`,
- `referer`,
- `te`,
- `trailer`,
- `transfer-encoding`,
- `upgrade`,
- `via`
-]);
-function isForbidden(name) {
- name = name.toLowerCase();
- return (
- FORBIDDEN.has(name) || name.startsWith("proxy-") || name.startsWith("sec-")
- );
-}
-
-const FORBIDDEN_RESPONSE = new Set(["set-cookie", "set-cookie2"]);
-function isForbiddenResponse(name) {
- return FORBIDDEN_RESPONSE.has(name.toLowerCase());
-}
-
-const CORS_UNSAFE_BYTE = /[\x00-\x08\x0A-\x1F"():<>?@[\\\]{}\x7F]/;
-function isCORSWhitelisted(name, value) {
- name = name.toLowerCase();
- switch (name) {
- case "accept":
- if (value.match(CORS_UNSAFE_BYTE)) {
- return false;
- }
- break;
- case "accept-language":
- case "content-language":
- if (value.match(/[^\x30-\x39\x41-\x5A\x61-\x7A *,\-.;=]/)) {
- return false;
- }
- break;
- case "content-type": {
- if (value.match(CORS_UNSAFE_BYTE)) {
- return false;
- }
- const mimeType = MIMEType.parse(value);
- if (mimeType === null) {
- return false;
- }
- if (
- ![
- "application/x-www-form-urlencoded",
- "multipart/form-data",
- "text/plain"
- ].includes(mimeType.essence)
- ) {
- return false;
- }
- break;
- }
- default:
- return false;
- }
- if (Buffer.from(value).length > 128) {
- return false;
- }
- return true;
-}
-
-module.exports = {
- isPrivilegedNoCORSRequest,
- isNoCORSSafelistedRequest,
- isForbidden,
- isForbiddenResponse,
- isCORSWhitelisted
-};
-
-
-/***/ }),
-
-/***/ 90699:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const Blob = __nccwpck_require__(48350);
-const { isArrayBuffer } = __nccwpck_require__(34908);
-
-function convertLineEndingsToNative(s) {
- // jsdom always pretends to be *nix, for consistency.
- // See also https://github.com/jsdom/jsdom/issues/2396.
- return s.replace(/\r\n|\r|\n/g, "\n");
-}
-
-exports.implementation = class BlobImpl {
- constructor(globalObject, args) {
- const parts = args[0];
- const properties = args[1];
-
- const buffers = [];
-
- if (parts !== undefined) {
- for (const part of parts) {
- let buffer;
- if (isArrayBuffer(part)) {
- buffer = Buffer.from(part);
- } else if (ArrayBuffer.isView(part)) {
- buffer = Buffer.from(part.buffer, part.byteOffset, part.byteLength);
- } else if (Blob.isImpl(part)) {
- buffer = part._buffer;
- } else {
- let s = part;
- if (properties.endings === "native") {
- s = convertLineEndingsToNative(part);
- }
- buffer = Buffer.from(s);
- }
- buffers.push(buffer);
- }
- }
-
- this._buffer = Buffer.concat(buffers);
- this._globalObject = globalObject;
-
- this.type = properties.type;
- if (/[^\u0020-\u007E]/.test(this.type)) {
- this.type = "";
- } else {
- this.type = this.type.toLowerCase();
- }
- }
-
- get size() {
- return this._buffer.length;
- }
-
- slice(start, end, contentType) {
- const { size } = this;
-
- let relativeStart, relativeEnd, relativeContentType;
-
- if (start === undefined) {
- relativeStart = 0;
- } else if (start < 0) {
- relativeStart = Math.max(size + start, 0);
- } else {
- relativeStart = Math.min(start, size);
- }
- if (end === undefined) {
- relativeEnd = size;
- } else if (end < 0) {
- relativeEnd = Math.max(size + end, 0);
- } else {
- relativeEnd = Math.min(end, size);
- }
-
- if (contentType === undefined) {
- relativeContentType = "";
- } else {
- // sanitization (lower case and invalid char check) is done in the
- // constructor
- relativeContentType = contentType;
- }
-
- const span = Math.max(relativeEnd - relativeStart, 0);
-
- const buffer = this._buffer;
- const slicedBuffer = buffer.slice(
- relativeStart,
- relativeStart + span
- );
-
- const blob = Blob.createImpl(this._globalObject, [[], { type: relativeContentType }], {});
- blob._buffer = slicedBuffer;
- return blob;
- }
-};
-
-
-/***/ }),
-
-/***/ 66294:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const BlobImpl = (__nccwpck_require__(90699).implementation);
-
-exports.implementation = class FileImpl extends BlobImpl {
- constructor(globalObject, [fileBits, fileName, options], privateData) {
- super(globalObject, [fileBits, options], privateData);
-
- this.name = fileName;
- this.lastModified = "lastModified" in options ? options.lastModified : Date.now();
- }
-};
-
-
-/***/ }),
-
-/***/ 87378:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-
-exports.implementation = class FileListImpl extends Array {
- constructor() {
- super(0);
- }
- item(index) {
- return this[index] || null;
- }
- get [idlUtils.supportedPropertyIndices]() {
- return this.keys();
- }
-};
-
-
-/***/ }),
-
-/***/ 75394:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const whatwgEncoding = __nccwpck_require__(49967);
-const MIMEType = __nccwpck_require__(59488);
-const DOMException = __nccwpck_require__(57617);
-const EventTargetImpl = (__nccwpck_require__(18557).implementation);
-const ProgressEvent = __nccwpck_require__(34426);
-const { setupForSimpleEventAccessors } = __nccwpck_require__(50238);
-const { fireAnEvent } = __nccwpck_require__(45673);
-const { copyToArrayBufferInNewRealm } = __nccwpck_require__(69232);
-
-const READY_STATES = Object.freeze({
- EMPTY: 0,
- LOADING: 1,
- DONE: 2
-});
-
-const events = ["loadstart", "progress", "load", "abort", "error", "loadend"];
-
-class FileReaderImpl extends EventTargetImpl {
- constructor(globalObject, args, privateData) {
- super(globalObject, args, privateData);
-
- this.error = null;
- this.readyState = READY_STATES.EMPTY;
- this.result = null;
-
- this._globalObject = globalObject;
- this._ownerDocument = globalObject.document;
- this._terminated = false;
- }
-
- readAsArrayBuffer(file) {
- this._readFile(file, "buffer");
- }
- readAsBinaryString(file) {
- this._readFile(file, "binaryString");
- }
- readAsDataURL(file) {
- this._readFile(file, "dataURL");
- }
- readAsText(file, encoding) {
- this._readFile(file, "text", whatwgEncoding.labelToName(encoding) || "UTF-8");
- }
-
- abort() {
- if (this.readyState === READY_STATES.EMPTY || this.readyState === READY_STATES.DONE) {
- this.result = null;
- return;
- }
-
- if (this.readyState === READY_STATES.LOADING) {
- this.readyState = READY_STATES.DONE;
- this.result = null;
- }
-
- this._terminated = true;
- this._fireProgressEvent("abort");
- this._fireProgressEvent("loadend");
- }
-
- _fireProgressEvent(name, props) {
- fireAnEvent(name, this, ProgressEvent, props);
- }
-
- _readFile(file, format, encoding) {
- if (this.readyState === READY_STATES.LOADING) {
- throw DOMException.create(this._globalObject, [
- "The object is in an invalid state.",
- "InvalidStateError"
- ]);
- }
-
- this.readyState = READY_STATES.LOADING;
-
- setImmediate(() => {
- if (this._terminated) {
- this._terminated = false;
- return;
- }
-
- this._fireProgressEvent("loadstart");
-
- let data = file._buffer;
- if (!data) {
- data = Buffer.alloc(0);
- }
- this._fireProgressEvent("progress", {
- lengthComputable: !isNaN(file.size),
- total: file.size,
- loaded: data.length
- });
-
- setImmediate(() => {
- if (this._terminated) {
- this._terminated = false;
- return;
- }
-
- switch (format) {
- case "binaryString": {
- this.result = data.toString("binary");
- break;
- }
- case "dataURL": {
- // Spec seems very unclear here; see https://github.com/w3c/FileAPI/issues/104.
- const contentType = MIMEType.parse(file.type) || "application/octet-stream";
- this.result = `data:${contentType};base64,${data.toString("base64")}`;
- break;
- }
- case "text": {
- this.result = whatwgEncoding.decode(data, encoding);
- break;
- }
- case "buffer":
- default: {
- this.result = copyToArrayBufferInNewRealm(data, this._globalObject);
- break;
- }
- }
- this.readyState = READY_STATES.DONE;
- this._fireProgressEvent("load");
- this._fireProgressEvent("loadend");
- });
- });
- }
-}
-setupForSimpleEventAccessors(FileReaderImpl.prototype, events);
-
-exports.implementation = FileReaderImpl;
-
-
-/***/ }),
-
-/***/ 42169:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "AbortController";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'AbortController'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["AbortController"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class AbortController {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'abort' called on an object that is not a valid instance of AbortController."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'abort' on 'AbortController': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].abort(...args);
- }
-
- get signal() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get signal' called on an object that is not a valid instance of AbortController."
- );
- }
-
- return utils.getSameObject(this, "signal", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["signal"]);
- });
- }
- }
- Object.defineProperties(AbortController.prototype, {
- abort: { enumerable: true },
- signal: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbortController", configurable: true }
- });
- ctorRegistry[interfaceName] = AbortController;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbortController
- });
-};
-
-const Impl = __nccwpck_require__(68314);
-
-
-/***/ }),
-
-/***/ 58571:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "AbortSignal";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'AbortSignal'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["AbortSignal"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class AbortSignal extends globalObject.EventTarget {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- throwIfAborted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'throwIfAborted' called on an object that is not a valid instance of AbortSignal."
- );
- }
-
- return esValue[implSymbol].throwIfAborted();
- }
-
- get aborted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get aborted' called on an object that is not a valid instance of AbortSignal."
- );
- }
-
- return esValue[implSymbol]["aborted"];
- }
-
- get reason() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get reason' called on an object that is not a valid instance of AbortSignal."
- );
- }
-
- return esValue[implSymbol]["reason"];
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of AbortSignal."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of AbortSignal."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'AbortSignal': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- static abort() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'abort' on 'AbortSignal': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(Impl.implementation.abort(globalObject, ...args));
- }
-
- static timeout(milliseconds) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'timeout' on 'AbortSignal': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long long"](curArg, {
- context: "Failed to execute 'timeout' on 'AbortSignal': parameter 1",
- globals: globalObject,
- enforceRange: true
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(Impl.implementation.timeout(globalObject, ...args));
- }
- }
- Object.defineProperties(AbortSignal.prototype, {
- throwIfAborted: { enumerable: true },
- aborted: { enumerable: true },
- reason: { enumerable: true },
- onabort: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbortSignal", configurable: true }
- });
- Object.defineProperties(AbortSignal, { abort: { enumerable: true }, timeout: { enumerable: true } });
- ctorRegistry[interfaceName] = AbortSignal;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbortSignal
- });
-};
-
-const Impl = __nccwpck_require__(57971);
-
-
-/***/ }),
-
-/***/ 10083:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "AbstractRange";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'AbstractRange'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["AbstractRange"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class AbstractRange {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get startContainer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get startContainer' called on an object that is not a valid instance of AbstractRange."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["startContainer"]);
- }
-
- get startOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get startOffset' called on an object that is not a valid instance of AbstractRange."
- );
- }
-
- return esValue[implSymbol]["startOffset"];
- }
-
- get endContainer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get endContainer' called on an object that is not a valid instance of AbstractRange."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["endContainer"]);
- }
-
- get endOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get endOffset' called on an object that is not a valid instance of AbstractRange."
- );
- }
-
- return esValue[implSymbol]["endOffset"];
- }
-
- get collapsed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get collapsed' called on an object that is not a valid instance of AbstractRange."
- );
- }
-
- return esValue[implSymbol]["collapsed"];
- }
- }
- Object.defineProperties(AbstractRange.prototype, {
- startContainer: { enumerable: true },
- startOffset: { enumerable: true },
- endContainer: { enumerable: true },
- endOffset: { enumerable: true },
- collapsed: { enumerable: true },
- [Symbol.toStringTag]: { value: "AbstractRange", configurable: true }
- });
- ctorRegistry[interfaceName] = AbstractRange;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: AbstractRange
- });
-};
-
-const Impl = __nccwpck_require__(30825);
-
-
-/***/ }),
-
-/***/ 34003:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const AbortSignal = __nccwpck_require__(58571);
-const EventListenerOptions = __nccwpck_require__(25619);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventListenerOptions._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "once";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'once' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "passive";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'passive' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "signal";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = AbortSignal.convert(globalObject, value, { context: context + " has member 'signal' that" });
-
- ret[key] = value;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 28411:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "flatten";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'flatten' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 78717:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Node = __nccwpck_require__(41209);
-
-const interfaceName = "Attr";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Attr'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Attr"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Attr extends globalObject.Node {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get namespaceURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get namespaceURI' called on an object that is not a valid instance of Attr."
- );
- }
-
- return esValue[implSymbol]["namespaceURI"];
- }
-
- get prefix() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get prefix' called on an object that is not a valid instance of Attr.");
- }
-
- return esValue[implSymbol]["prefix"];
- }
-
- get localName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get localName' called on an object that is not a valid instance of Attr.");
- }
-
- return esValue[implSymbol]["localName"];
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get name' called on an object that is not a valid instance of Attr.");
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get value' called on an object that is not a valid instance of Attr.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set value' called on an object that is not a valid instance of Attr.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'Attr': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get ownerElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ownerElement' called on an object that is not a valid instance of Attr."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerElement"]);
- }
-
- get specified() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get specified' called on an object that is not a valid instance of Attr.");
- }
-
- return esValue[implSymbol]["specified"];
- }
- }
- Object.defineProperties(Attr.prototype, {
- namespaceURI: { enumerable: true },
- prefix: { enumerable: true },
- localName: { enumerable: true },
- name: { enumerable: true },
- value: { enumerable: true },
- ownerElement: { enumerable: true },
- specified: { enumerable: true },
- [Symbol.toStringTag]: { value: "Attr", configurable: true }
- });
- ctorRegistry[interfaceName] = Attr;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Attr
- });
-};
-
-const Impl = __nccwpck_require__(34306);
-
-
-/***/ }),
-
-/***/ 35849:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "BarProp";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'BarProp'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["BarProp"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class BarProp {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get visible() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get visible' called on an object that is not a valid instance of BarProp.");
- }
-
- return esValue[implSymbol]["visible"];
- }
- }
- Object.defineProperties(BarProp.prototype, {
- visible: { enumerable: true },
- [Symbol.toStringTag]: { value: "BarProp", configurable: true }
- });
- ctorRegistry[interfaceName] = BarProp;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: BarProp
- });
-};
-
-const Impl = __nccwpck_require__(39949);
-
-
-/***/ }),
-
-/***/ 55075:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["blob", "arraybuffer"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for BinaryType`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 48350:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const BlobPropertyBag = __nccwpck_require__(72334);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Blob";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Blob'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Blob"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Blob {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError("Failed to construct 'Blob': parameter 1" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (exports.is(nextItem)) {
- nextItem = utils.implForWrapper(nextItem);
- } else if (utils.isArrayBuffer(nextItem)) {
- } else if (ArrayBuffer.isView(nextItem)) {
- } else {
- nextItem = conversions["USVString"](nextItem, {
- context: "Failed to construct 'Blob': parameter 1" + "'s element",
- globals: globalObject
- });
- }
- V.push(nextItem);
- }
- curArg = V;
- }
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = BlobPropertyBag.convert(globalObject, curArg, { context: "Failed to construct 'Blob': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- slice() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'slice' called on an object that is not a valid instance of Blob.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long long"](curArg, {
- context: "Failed to execute 'slice' on 'Blob': parameter 1",
- globals: globalObject,
- clamp: true
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["long long"](curArg, {
- context: "Failed to execute 'slice' on 'Blob': parameter 2",
- globals: globalObject,
- clamp: true
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'slice' on 'Blob': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].slice(...args));
- }
-
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get size' called on an object that is not a valid instance of Blob.");
- }
-
- return esValue[implSymbol]["size"];
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get type' called on an object that is not a valid instance of Blob.");
- }
-
- return esValue[implSymbol]["type"];
- }
- }
- Object.defineProperties(Blob.prototype, {
- slice: { enumerable: true },
- size: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "Blob", configurable: true }
- });
- ctorRegistry[interfaceName] = Blob;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Blob
- });
-};
-
-const Impl = __nccwpck_require__(90699);
-
-
-/***/ }),
-
-/***/ 45775:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new globalObject.TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction(blob) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- blob = utils.tryWrapperForImpl(blob);
-
- callResult = Reflect.apply(value, thisArg, [blob]);
- }
-
- invokeTheCallbackFunction.construct = blob => {
- blob = utils.tryWrapperForImpl(blob);
-
- let callResult = Reflect.construct(value, [blob]);
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 72334:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EndingType = __nccwpck_require__(52015);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "endings";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = EndingType.convert(globalObject, value, { context: context + " has member 'endings' that" });
-
- ret[key] = value;
- } else {
- ret[key] = "transparent";
- }
- }
-
- {
- const key = "type";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'type' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 85221:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Text = __nccwpck_require__(49374);
-
-const interfaceName = "CDATASection";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CDATASection'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CDATASection"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Text._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CDATASection extends globalObject.Text {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(CDATASection.prototype, {
- [Symbol.toStringTag]: { value: "CDATASection", configurable: true }
- });
- ctorRegistry[interfaceName] = CDATASection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CDATASection
- });
-};
-
-const Impl = __nccwpck_require__(68423);
-
-
-/***/ }),
-
-/***/ 30948:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "CharacterData";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CharacterData'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CharacterData"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CharacterData extends globalObject.Node {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- substringData(offset, count) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'substringData' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'substringData' on 'CharacterData': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'substringData' on 'CharacterData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'substringData' on 'CharacterData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].substringData(...args);
- }
-
- appendData(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'appendData' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'appendData' on 'CharacterData': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'appendData' on 'CharacterData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].appendData(...args);
- }
-
- insertData(offset, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertData' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'insertData' on 'CharacterData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertData' on 'CharacterData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].insertData(...args);
- }
-
- deleteData(offset, count) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteData' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'deleteData' on 'CharacterData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'deleteData' on 'CharacterData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].deleteData(...args);
- }
-
- replaceData(offset, count, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceData' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- if (arguments.length < 3) {
- throw new globalObject.TypeError(
- `Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceData' on 'CharacterData': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replaceData(...args);
- }
-
- before() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'before' called on an object that is not a valid instance of CharacterData.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'CharacterData': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].before(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- after() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'after' called on an object that is not a valid instance of CharacterData.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'CharacterData': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceWith() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceWith' called on an object that is not a valid instance of CharacterData."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'CharacterData': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of CharacterData.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get data' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- return esValue[implSymbol]["data"];
- }
-
- set data(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set data' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'data' property on 'CharacterData': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- esValue[implSymbol]["data"] = V;
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
-
- get previousElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get previousElementSibling' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
- }
-
- get nextElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get nextElementSibling' called on an object that is not a valid instance of CharacterData."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
- }
- }
- Object.defineProperties(CharacterData.prototype, {
- substringData: { enumerable: true },
- appendData: { enumerable: true },
- insertData: { enumerable: true },
- deleteData: { enumerable: true },
- replaceData: { enumerable: true },
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- data: { enumerable: true },
- length: { enumerable: true },
- previousElementSibling: { enumerable: true },
- nextElementSibling: { enumerable: true },
- [Symbol.toStringTag]: { value: "CharacterData", configurable: true },
- [Symbol.unscopables]: {
- value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
- configurable: true
- }
- });
- ctorRegistry[interfaceName] = CharacterData;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CharacterData
- });
-};
-
-const Impl = __nccwpck_require__(96727);
-
-
-/***/ }),
-
-/***/ 19235:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const CloseEventInit = __nccwpck_require__(6450);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "CloseEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CloseEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CloseEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CloseEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'CloseEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'CloseEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CloseEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'CloseEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get wasClean() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get wasClean' called on an object that is not a valid instance of CloseEvent."
- );
- }
-
- return esValue[implSymbol]["wasClean"];
- }
-
- get code() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get code' called on an object that is not a valid instance of CloseEvent.");
- }
-
- return esValue[implSymbol]["code"];
- }
-
- get reason() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get reason' called on an object that is not a valid instance of CloseEvent."
- );
- }
-
- return esValue[implSymbol]["reason"];
- }
- }
- Object.defineProperties(CloseEvent.prototype, {
- wasClean: { enumerable: true },
- code: { enumerable: true },
- reason: { enumerable: true },
- [Symbol.toStringTag]: { value: "CloseEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = CloseEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CloseEvent
- });
-};
-
-const Impl = __nccwpck_require__(9213);
-
-
-/***/ }),
-
-/***/ 6450:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "code";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned short"](value, {
- context: context + " has member 'code' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "reason";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, {
- context: context + " has member 'reason' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "wasClean";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'wasClean' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 56625:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
-
-const interfaceName = "Comment";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Comment'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Comment"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Comment extends globalObject.CharacterData {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'Comment': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
- }
- Object.defineProperties(Comment.prototype, { [Symbol.toStringTag]: { value: "Comment", configurable: true } });
- ctorRegistry[interfaceName] = Comment;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Comment
- });
-};
-
-const Impl = __nccwpck_require__(6119);
-
-
-/***/ }),
-
-/***/ 88774:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const CompositionEventInit = __nccwpck_require__(57053);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "CompositionEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CompositionEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CompositionEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CompositionEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'CompositionEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'CompositionEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CompositionEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'CompositionEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initCompositionEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initCompositionEvent' called on an object that is not a valid instance of CompositionEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initCompositionEvent' on 'CompositionEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 5",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initCompositionEvent(...args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get data' called on an object that is not a valid instance of CompositionEvent."
- );
- }
-
- return esValue[implSymbol]["data"];
- }
- }
- Object.defineProperties(CompositionEvent.prototype, {
- initCompositionEvent: { enumerable: true },
- data: { enumerable: true },
- [Symbol.toStringTag]: { value: "CompositionEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = CompositionEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CompositionEvent
- });
-};
-
-const Impl = __nccwpck_require__(79607);
-
-
-/***/ }),
-
-/***/ 57053:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const UIEventInit = __nccwpck_require__(82015);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'data' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 93623:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Crypto";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Crypto'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Crypto"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Crypto {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- getRandomValues(array) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getRandomValues' called on an object that is not a valid instance of Crypto."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getRandomValues' on 'Crypto': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (ArrayBuffer.isView(curArg)) {
- } else {
- throw new globalObject.TypeError(
- "Failed to execute 'getRandomValues' on 'Crypto': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
- return esValue[implSymbol].getRandomValues(...args);
- }
-
- randomUUID() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'randomUUID' called on an object that is not a valid instance of Crypto.");
- }
-
- return esValue[implSymbol].randomUUID();
- }
- }
- Object.defineProperties(Crypto.prototype, {
- getRandomValues: { enumerable: true },
- randomUUID: { enumerable: true },
- [Symbol.toStringTag]: { value: "Crypto", configurable: true }
- });
- ctorRegistry[interfaceName] = Crypto;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Crypto
- });
-};
-
-const Impl = __nccwpck_require__(70288);
-
-
-/***/ }),
-
-/***/ 58110:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new globalObject.TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction() {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- callResult = Reflect.apply(value, thisArg, []);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = () => {
- let callResult = Reflect.construct(value, []);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 17609:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const CustomElementConstructor = __nccwpck_require__(58110);
-const ElementDefinitionOptions = __nccwpck_require__(54882);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "CustomElementRegistry";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CustomElementRegistry'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CustomElementRegistry"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CustomElementRegistry {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- define(name, constructor) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'define' called on an object that is not a valid instance of CustomElementRegistry."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'define' on 'CustomElementRegistry': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CustomElementConstructor.convert(globalObject, curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = ElementDefinitionOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 3"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].define(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get' called on an object that is not a valid instance of CustomElementRegistry."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'get' on 'CustomElementRegistry': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'get' on 'CustomElementRegistry': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].get(...args);
- }
-
- whenDefined(name) {
- try {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'whenDefined' called on an object that is not a valid instance of CustomElementRegistry."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'whenDefined' on 'CustomElementRegistry': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'whenDefined' on 'CustomElementRegistry': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].whenDefined(...args));
- } catch (e) {
- return globalObject.Promise.reject(e);
- }
- }
-
- upgrade(root) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'upgrade' called on an object that is not a valid instance of CustomElementRegistry."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'upgrade' on 'CustomElementRegistry': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'upgrade' on 'CustomElementRegistry': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].upgrade(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(CustomElementRegistry.prototype, {
- define: { enumerable: true },
- get: { enumerable: true },
- whenDefined: { enumerable: true },
- upgrade: { enumerable: true },
- [Symbol.toStringTag]: { value: "CustomElementRegistry", configurable: true }
- });
- ctorRegistry[interfaceName] = CustomElementRegistry;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CustomElementRegistry
- });
-};
-
-const Impl = __nccwpck_require__(49495);
-
-
-/***/ }),
-
-/***/ 99023:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const CustomEventInit = __nccwpck_require__(29264);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "CustomEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'CustomEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["CustomEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class CustomEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'CustomEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'CustomEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = CustomEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'CustomEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initCustomEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initCustomEvent' called on an object that is not a valid instance of CustomEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initCustomEvent' on 'CustomEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'initCustomEvent' on 'CustomEvent': parameter 4",
- globals: globalObject
- });
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initCustomEvent(...args);
- }
-
- get detail() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get detail' called on an object that is not a valid instance of CustomEvent."
- );
- }
-
- return esValue[implSymbol]["detail"];
- }
- }
- Object.defineProperties(CustomEvent.prototype, {
- initCustomEvent: { enumerable: true },
- detail: { enumerable: true },
- [Symbol.toStringTag]: { value: "CustomEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = CustomEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: CustomEvent
- });
-};
-
-const Impl = __nccwpck_require__(47560);
-
-
-/***/ }),
-
-/***/ 29264:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "detail";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'detail' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 96374:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const DocumentType = __nccwpck_require__(53193);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMImplementation";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMImplementation'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMImplementation"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMImplementation {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- createDocumentType(qualifiedName, publicId, systemId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createDocumentType' called on an object that is not a valid instance of DOMImplementation."
- );
- }
-
- if (arguments.length < 3) {
- throw new globalObject.TypeError(
- `Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocumentType' on 'DOMImplementation': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentType(...args));
- }
-
- createDocument(namespace, qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createDocument' called on an object that is not a valid instance of DOMImplementation."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 2",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = DocumentType.convert(globalObject, curArg, {
- context: "Failed to execute 'createDocument' on 'DOMImplementation': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocument(...args));
- }
-
- createHTMLDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createHTMLDocument' on 'DOMImplementation': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createHTMLDocument(...args));
- }
-
- hasFeature() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'hasFeature' called on an object that is not a valid instance of DOMImplementation."
- );
- }
-
- return esValue[implSymbol].hasFeature();
- }
- }
- Object.defineProperties(DOMImplementation.prototype, {
- createDocumentType: { enumerable: true },
- createDocument: { enumerable: true },
- createHTMLDocument: { enumerable: true },
- hasFeature: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMImplementation", configurable: true }
- });
- ctorRegistry[interfaceName] = DOMImplementation;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMImplementation
- });
-};
-
-const Impl = __nccwpck_require__(20466);
-
-
-/***/ }),
-
-/***/ 63350:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const SupportedType = __nccwpck_require__(10095);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMParser";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMParser'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMParser"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMParser {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- parseFromString(str, type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'parseFromString' called on an object that is not a valid instance of DOMParser."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'parseFromString' on 'DOMParser': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = SupportedType.convert(globalObject, curArg, {
- context: "Failed to execute 'parseFromString' on 'DOMParser': parameter 2"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].parseFromString(...args));
- }
- }
- Object.defineProperties(DOMParser.prototype, {
- parseFromString: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMParser", configurable: true }
- });
- ctorRegistry[interfaceName] = DOMParser;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMParser
- });
-};
-
-const Impl = __nccwpck_require__(27124);
-
-
-/***/ }),
-
-/***/ 11281:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const DOMRectInit = __nccwpck_require__(91286);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const DOMRectReadOnly = __nccwpck_require__(44938);
-
-const interfaceName = "DOMRect";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMRect'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMRect"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- DOMRectReadOnly._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMRect extends globalObject.DOMRectReadOnly {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRect': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRect': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRect': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRect': parameter 4",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get x() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get x' called on an object that is not a valid instance of DOMRect.");
- }
-
- return esValue[implSymbol]["x"];
- }
-
- set x(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set x' called on an object that is not a valid instance of DOMRect.");
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'x' property on 'DOMRect': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["x"] = V;
- }
-
- get y() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get y' called on an object that is not a valid instance of DOMRect.");
- }
-
- return esValue[implSymbol]["y"];
- }
-
- set y(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set y' called on an object that is not a valid instance of DOMRect.");
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'y' property on 'DOMRect': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["y"] = V;
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get width' called on an object that is not a valid instance of DOMRect.");
- }
-
- return esValue[implSymbol]["width"];
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set width' called on an object that is not a valid instance of DOMRect.");
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'width' property on 'DOMRect': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["width"] = V;
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get height' called on an object that is not a valid instance of DOMRect.");
- }
-
- return esValue[implSymbol]["height"];
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set height' called on an object that is not a valid instance of DOMRect.");
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'height' property on 'DOMRect': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["height"] = V;
- }
-
- static fromRect() {
- const args = [];
- {
- let curArg = arguments[0];
- curArg = DOMRectInit.convert(globalObject, curArg, {
- context: "Failed to execute 'fromRect' on 'DOMRect': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(Impl.implementation.fromRect(globalObject, ...args));
- }
- }
- Object.defineProperties(DOMRect.prototype, {
- x: { enumerable: true },
- y: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMRect", configurable: true }
- });
- Object.defineProperties(DOMRect, { fromRect: { enumerable: true } });
- ctorRegistry[interfaceName] = DOMRect;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMRect
- });
-};
-
-const Impl = __nccwpck_require__(36671);
-
-
-/***/ }),
-
-/***/ 91286:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "height";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unrestricted double"](value, {
- context: context + " has member 'height' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "width";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unrestricted double"](value, {
- context: context + " has member 'width' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "x";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unrestricted double"](value, {
- context: context + " has member 'x' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "y";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unrestricted double"](value, {
- context: context + " has member 'y' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 44938:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const DOMRectInit = __nccwpck_require__(91286);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMRectReadOnly";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMRectReadOnly'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMRectReadOnly"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMRectReadOnly {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRectReadOnly': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRectReadOnly': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRectReadOnly': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["unrestricted double"](curArg, {
- context: "Failed to construct 'DOMRectReadOnly': parameter 4",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- toJSON() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toJSON' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol].toJSON();
- }
-
- get x() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get x' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["x"];
- }
-
- get y() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get y' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["y"];
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["width"];
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["height"];
- }
-
- get top() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get top' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["top"];
- }
-
- get right() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get right' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["right"];
- }
-
- get bottom() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bottom' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["bottom"];
- }
-
- get left() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get left' called on an object that is not a valid instance of DOMRectReadOnly."
- );
- }
-
- return esValue[implSymbol]["left"];
- }
-
- static fromRect() {
- const args = [];
- {
- let curArg = arguments[0];
- curArg = DOMRectInit.convert(globalObject, curArg, {
- context: "Failed to execute 'fromRect' on 'DOMRectReadOnly': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(Impl.implementation.fromRect(globalObject, ...args));
- }
- }
- Object.defineProperties(DOMRectReadOnly.prototype, {
- toJSON: { enumerable: true },
- x: { enumerable: true },
- y: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- top: { enumerable: true },
- right: { enumerable: true },
- bottom: { enumerable: true },
- left: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMRectReadOnly", configurable: true }
- });
- Object.defineProperties(DOMRectReadOnly, { fromRect: { enumerable: true } });
- ctorRegistry[interfaceName] = DOMRectReadOnly;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMRectReadOnly
- });
-};
-
-const Impl = __nccwpck_require__(6650);
-
-
-/***/ }),
-
-/***/ 81054:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMStringMap";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMStringMap'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMStringMap"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMStringMap {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(DOMStringMap.prototype, {
- [Symbol.toStringTag]: { value: "DOMStringMap", configurable: true }
- });
- ctorRegistry[interfaceName] = DOMStringMap;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMStringMap
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!utils.hasOwn(target, key)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- const namedValue = target[implSymbol][utils.namedGet](P);
-
- if (namedValue !== undefined && !utils.hasOwn(target, P) && !ignoreNamedProps) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (typeof P === "string") {
- let namedValue = V;
-
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
- if (creating) {
- target[implSymbol][utils.namedSetNew](P, namedValue);
- } else {
- target[implSymbol][utils.namedSetExisting](P, namedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
- }
- let ownDesc;
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (desc.get || desc.set) {
- return false;
- }
-
- let namedValue = desc.value;
-
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'DOMStringMap': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol][utils.namedGet](P) !== undefined);
- if (creating) {
- target[implSymbol][utils.namedSetNew](P, namedValue);
- } else {
- target[implSymbol][utils.namedSetExisting](P, namedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (target[implSymbol][utils.namedGet](P) !== undefined && !utils.hasOwn(target, P)) {
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- target[implSymbol][utils.namedDelete](P);
- return true;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(25770);
-
-
-/***/ }),
-
-/***/ 51252:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DOMTokenList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DOMTokenList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DOMTokenList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DOMTokenList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of DOMTokenList.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'DOMTokenList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'DOMTokenList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
- }
-
- contains(token) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'contains' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'contains' on 'DOMTokenList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'contains' on 'DOMTokenList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].contains(...args);
- }
-
- add() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'add' called on an object that is not a valid instance of DOMTokenList.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'add' on 'DOMTokenList': parameter " + (i + 1),
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of DOMTokenList.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'remove' on 'DOMTokenList': parameter " + (i + 1),
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toggle(token) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'toggle' called on an object that is not a valid instance of DOMTokenList.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'toggle' on 'DOMTokenList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'toggle' on 'DOMTokenList': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].toggle(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replace(token, newToken) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'replace' called on an object that is not a valid instance of DOMTokenList.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'replace' on 'DOMTokenList': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replace' on 'DOMTokenList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replace' on 'DOMTokenList': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replace(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- supports(token) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'supports' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'supports' on 'DOMTokenList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'supports' on 'DOMTokenList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].supports(...args);
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'DOMTokenList': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toString' called on an object that is not a valid instance of DOMTokenList."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(DOMTokenList.prototype, {
- item: { enumerable: true },
- contains: { enumerable: true },
- add: { enumerable: true },
- remove: { enumerable: true },
- toggle: { enumerable: true },
- replace: { enumerable: true },
- supports: { enumerable: true },
- length: { enumerable: true },
- value: { enumerable: true },
- toString: { enumerable: true },
- [Symbol.toStringTag]: { value: "DOMTokenList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true },
- keys: { value: globalObject.Array.prototype.keys, configurable: true, enumerable: true, writable: true },
- values: { value: globalObject.Array.prototype.values, configurable: true, enumerable: true, writable: true },
- entries: { value: globalObject.Array.prototype.entries, configurable: true, enumerable: true, writable: true },
- forEach: { value: globalObject.Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
- });
- ctorRegistry[interfaceName] = DOMTokenList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DOMTokenList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(26822);
-
-
-/***/ }),
-
-/***/ 11795:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ElementCreationOptions = __nccwpck_require__(41411);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const Node = __nccwpck_require__(41209);
-const NodeFilter = __nccwpck_require__(39151);
-const HTMLElement = __nccwpck_require__(8932);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Document";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Document'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Document"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-function getUnforgeables(globalObject) {
- let unforgeables = unforgeablesMap.get(globalObject);
- if (unforgeables === undefined) {
- unforgeables = Object.create(null);
- utils.define(unforgeables, {
- get location() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get location' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["location"]);
- },
- set location(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set location' called on an object that is not a valid instance of Document."
- );
- }
-
- const Q = esValue["location"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'location' is not an object");
- }
- Reflect.set(Q, "href", V);
- }
- });
- Object.defineProperties(unforgeables, {
- location: { configurable: false }
- });
- unforgeablesMap.set(globalObject, unforgeables);
- }
- return unforgeables;
-}
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-
- utils.define(wrapper, getUnforgeables(globalObject));
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const unforgeablesMap = new WeakMap();
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Document extends globalObject.Node {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- getElementsByTagName(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByTagName' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByTagName' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagName' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
- }
-
- getElementsByTagNameNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByTagNameNS' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByTagNameNS' on 'Document': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Document': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
- }
-
- getElementsByClassName(classNames) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByClassName' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByClassName' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByClassName' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
- }
-
- createElement(localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createElement' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createElement' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = ElementCreationOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2"
- });
- } else if (utils.isObject(curArg)) {
- curArg = ElementCreationOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2" + " dictionary"
- });
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElement' on 'Document': parameter 2",
- globals: globalObject
- });
- }
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createElement(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createElementNS(namespace, qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createElementNS' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'createElementNS' on 'Document': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = ElementCreationOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = ElementCreationOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3" + " dictionary"
- });
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createElementNS' on 'Document': parameter 3",
- globals: globalObject
- });
- }
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createElementNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createDocumentFragment() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createDocumentFragment' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createDocumentFragment());
- }
-
- createTextNode(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createTextNode' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createTextNode' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createTextNode(...args));
- }
-
- createCDATASection(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createCDATASection' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createCDATASection' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createCDATASection' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createCDATASection(...args));
- }
-
- createComment(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createComment' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createComment' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createComment(...args));
- }
-
- createProcessingInstruction(target, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createProcessingInstruction' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createProcessingInstruction' on 'Document': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createProcessingInstruction(...args));
- }
-
- importNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'importNode' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'importNode' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'importNode' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'importNode' on 'Document': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].importNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- adoptNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'adoptNode' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'adoptNode' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'adoptNode' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].adoptNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createAttribute(localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createAttribute' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createAttribute' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttribute' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createAttribute(...args));
- }
-
- createAttributeNS(namespace, qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createAttributeNS' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'createAttributeNS' on 'Document': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttributeNS' on 'Document': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createAttributeNS' on 'Document': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createAttributeNS(...args));
- }
-
- createEvent(interface_) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'createEvent' called on an object that is not a valid instance of Document.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createEvent' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createEvent' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createEvent(...args));
- }
-
- createRange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'createRange' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createRange());
- }
-
- createNodeIterator(root) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createNodeIterator' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createNodeIterator' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'createNodeIterator' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'createNodeIterator' on 'Document': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0xffffffff;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = NodeFilter.convert(globalObject, curArg, {
- context: "Failed to execute 'createNodeIterator' on 'Document': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createNodeIterator(...args));
- }
-
- createTreeWalker(root) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createTreeWalker' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createTreeWalker' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'createTreeWalker' on 'Document': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'createTreeWalker' on 'Document': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0xffffffff;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = NodeFilter.convert(globalObject, curArg, {
- context: "Failed to execute 'createTreeWalker' on 'Document': parameter 3"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].createTreeWalker(...args));
- }
-
- getElementsByName(elementName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByName' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByName' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByName' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByName(...args));
- }
-
- open() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'open' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'open' on 'Document': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = "text/html";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'open' on 'Document': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].open(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- close() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'close' called on an object that is not a valid instance of Document.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].close();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- write() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'write' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'write' on 'Document': parameter " + (i + 1),
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].write(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- writeln() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'writeln' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'writeln' on 'Document': parameter " + (i + 1),
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].writeln(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- hasFocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'hasFocus' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].hasFocus();
- }
-
- clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'clear' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol].clear();
- }
-
- captureEvents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'captureEvents' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol].captureEvents();
- }
-
- releaseEvents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'releaseEvents' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol].releaseEvents();
- }
-
- getSelection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getSelection' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getSelection());
- }
-
- getElementById(elementId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementById' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementById' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
- }
-
- prepend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'prepend' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'Document': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].prepend(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- append() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'append' called on an object that is not a valid instance of Document.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'Document': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].append(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceChildren() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceChildren' called on an object that is not a valid instance of Document."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceChildren' on 'Document': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceChildren(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- querySelector(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelector' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelector' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
- }
-
- querySelectorAll(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelectorAll' called on an object that is not a valid instance of Document."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelectorAll' on 'Document': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'Document': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
- }
-
- get implementation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get implementation' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.getSameObject(this, "implementation", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["implementation"]);
- });
- }
-
- get URL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get URL' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol]["URL"];
- }
-
- get documentURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get documentURI' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["documentURI"];
- }
-
- get compatMode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compatMode' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["compatMode"];
- }
-
- get characterSet() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get characterSet' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["characterSet"];
- }
-
- get charset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get charset' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol]["charset"];
- }
-
- get inputEncoding() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get inputEncoding' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["inputEncoding"];
- }
-
- get contentType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentType' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["contentType"];
- }
-
- get doctype() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get doctype' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["doctype"]);
- }
-
- get documentElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get documentElement' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["documentElement"]);
- }
-
- get referrer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get referrer' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["referrer"];
- }
-
- get cookie() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get cookie' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol]["cookie"];
- }
-
- set cookie(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set cookie' called on an object that is not a valid instance of Document.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'cookie' property on 'Document': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["cookie"] = V;
- }
-
- get lastModified() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastModified' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["lastModified"];
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["readyState"]);
- }
-
- get title() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get title' called on an object that is not a valid instance of Document.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["title"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set title(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set title' called on an object that is not a valid instance of Document.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'title' property on 'Document': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["title"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get dir() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get dir' called on an object that is not a valid instance of Document.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["dir"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dir(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set dir' called on an object that is not a valid instance of Document.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dir' property on 'Document': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["dir"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get body() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get body' called on an object that is not a valid instance of Document.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["body"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set body(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set body' called on an object that is not a valid instance of Document.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLElement.convert(globalObject, V, {
- context: "Failed to set the 'body' property on 'Document': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["body"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get head() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get head' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["head"]);
- }
-
- get images() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get images' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "images", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["images"]);
- });
- }
-
- get embeds() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get embeds' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "embeds", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["embeds"]);
- });
- }
-
- get plugins() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get plugins' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "plugins", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
- });
- }
-
- get links() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get links' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "links", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["links"]);
- });
- }
-
- get forms() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get forms' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "forms", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["forms"]);
- });
- }
-
- get scripts() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get scripts' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "scripts", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["scripts"]);
- });
- }
-
- get currentScript() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentScript' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentScript"]);
- }
-
- get defaultView() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultView' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["defaultView"]);
- }
-
- get onreadystatechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreadystatechange"]);
- }
-
- set onreadystatechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreadystatechange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onreadystatechange"] = V;
- }
-
- get anchors() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get anchors' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "anchors", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["anchors"]);
- });
- }
-
- get applets() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get applets' called on an object that is not a valid instance of Document.");
- }
-
- return utils.getSameObject(this, "applets", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["applets"]);
- });
- }
-
- get styleSheets() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get styleSheets' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.getSameObject(this, "styleSheets", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["styleSheets"]);
- });
- }
-
- get hidden() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get hidden' called on an object that is not a valid instance of Document.");
- }
-
- return esValue[implSymbol]["hidden"];
- }
-
- get visibilityState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get visibilityState' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["visibilityState"]);
- }
-
- get onvisibilitychange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onvisibilitychange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvisibilitychange"]);
- }
-
- set onvisibilitychange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onvisibilitychange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onvisibilitychange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onvisibilitychange"] = V;
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onabort' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onabort' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onauxclick' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
- }
-
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onauxclick' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onauxclick' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
- }
-
- get onbeforeinput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeinput' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeinput"]);
- }
-
- set onbeforeinput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeinput' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeinput' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeinput"] = V;
- }
-
- get onbeforematch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforematch' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforematch"]);
- }
-
- set onbeforematch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforematch' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforematch' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onbeforematch"] = V;
- }
-
- get onbeforetoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforetoggle' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforetoggle"]);
- }
-
- set onbeforetoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforetoggle' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforetoggle' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onbeforetoggle"] = V;
- }
-
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onblur' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
-
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onblur' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onblur' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
-
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncancel' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
- }
-
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncancel' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncancel' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
- }
-
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplay' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
- }
-
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplay' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplay' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
- }
-
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplaythrough' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
-
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplaythrough' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplaythrough' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
-
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onchange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
- }
-
- set onchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onchange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onchange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onchange"] = V;
- }
-
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onclick' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
- }
-
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onclick' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclick' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onclick"] = V;
- }
-
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onclose' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
-
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onclose' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclose' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
-
- get oncontextlost() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextlost' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextlost"]);
- }
-
- set oncontextlost(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextlost' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextlost' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncontextlost"] = V;
- }
-
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextmenu' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
-
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextmenu' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextmenu' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
-
- get oncontextrestored() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextrestored' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextrestored"]);
- }
-
- set oncontextrestored(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextrestored' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextrestored' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncontextrestored"] = V;
- }
-
- get oncopy() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get oncopy' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncopy"]);
- }
-
- set oncopy(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set oncopy' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncopy' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncopy"] = V;
- }
-
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncuechange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
-
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncuechange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncuechange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
-
- get oncut() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get oncut' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncut"]);
- }
-
- set oncut(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set oncut' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncut' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oncut"] = V;
- }
-
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondblclick' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
-
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondblclick' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondblclick' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
-
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get ondrag' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
-
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set ondrag' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrag' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
-
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
-
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
-
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragenter' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
-
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragenter' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragenter' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
-
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragleave' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
-
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragleave' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragleave' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
-
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragover' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
-
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragover' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragover' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
- }
-
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragstart' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
-
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragstart' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragstart' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondragstart"] = V;
- }
-
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get ondrop' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
-
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set ondrop' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrop' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
-
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondurationchange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
-
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondurationchange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondurationchange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
-
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onemptied' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
- }
-
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onemptied' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onemptied' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
-
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onended' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
-
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onended' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onended' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onerror' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onerror' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onfocus' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
-
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onfocus' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onfocus' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
-
- get onformdata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onformdata' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onformdata"]);
- }
-
- set onformdata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onformdata' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onformdata' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onformdata"] = V;
- }
-
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get oninput' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
-
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set oninput' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninput' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oninput"] = V;
- }
-
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninvalid' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
-
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninvalid' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninvalid' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
- }
-
- get onkeydown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeydown' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
-
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeydown' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeydown' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onkeydown"] = V;
- }
-
- get onkeypress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeypress' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
- }
-
- set onkeypress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeypress' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeypress' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onkeypress"] = V;
- }
-
- get onkeyup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onkeyup' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
- }
-
- set onkeyup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onkeyup' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeyup' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onload' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onload' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
-
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadeddata' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
- }
-
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadeddata' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadeddata' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadeddata"] = V;
- }
-
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadedmetadata' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
- }
-
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadedmetadata' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadedmetadata' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadedmetadata"] = V;
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
-
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousedown' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
-
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousedown' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousedown' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
-
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
-
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseenter' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
-
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
-
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseleave' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
-
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousemove' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
-
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousemove' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousemove' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
- }
-
- get onmouseout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseout' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
- }
-
- set onmouseout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseout' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseout' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseout"] = V;
- }
-
- get onmouseover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseover' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
- }
-
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseover' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseover' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseover"] = V;
- }
-
- get onmouseup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseup' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
- }
-
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseup' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseup' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onmouseup"] = V;
- }
-
- get onpaste() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onpaste' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpaste"]);
- }
-
- set onpaste(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onpaste' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpaste' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onpaste"] = V;
- }
-
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onpause' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
- }
-
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onpause' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpause' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onpause"] = V;
- }
-
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onplay' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
- }
-
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onplay' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplay' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onplay"] = V;
- }
-
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplaying' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
- }
-
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplaying' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplaying' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onplaying"] = V;
- }
-
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onratechange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
-
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onratechange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onratechange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
-
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onreset' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
-
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onreset' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreset' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
-
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onresize' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
-
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onresize' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onresize' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onresize"] = V;
- }
-
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscroll' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
- }
-
- set onscroll(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscroll' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscroll' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
- }
-
- get onscrollend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscrollend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscrollend"]);
- }
-
- set onscrollend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscrollend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscrollend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onscrollend"] = V;
- }
-
- get onsecuritypolicyviolation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
-
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
-
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeked' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
- }
-
- set onseeked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeked' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeked' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onseeked"] = V;
- }
-
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeking' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
- }
-
- set onseeking(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeking' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeking' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onseeking"] = V;
- }
-
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onselect' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
- }
-
- set onselect(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onselect' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onselect' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onselect"] = V;
- }
-
- get onslotchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onslotchange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onslotchange"]);
- }
-
- set onslotchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onslotchange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onslotchange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onslotchange"] = V;
- }
-
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstalled' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
- }
-
- set onstalled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstalled' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstalled' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onstalled"] = V;
- }
-
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsubmit' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
- }
-
- set onsubmit(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsubmit' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsubmit' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onsubmit"] = V;
- }
-
- get onsuspend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsuspend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
- }
-
- set onsuspend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsuspend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsuspend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onsuspend"] = V;
- }
-
- get ontimeupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontimeupdate' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
-
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontimeupdate' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontimeupdate' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
-
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontoggle' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
-
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontoggle' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontoggle' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
-
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onvolumechange' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
-
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onvolumechange' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onvolumechange' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onvolumechange"] = V;
- }
-
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwaiting' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
- }
-
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwaiting' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwaiting' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
- }
-
- get onwebkitanimationend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationend"]);
- }
-
- set onwebkitanimationend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationend"] = V;
- }
-
- get onwebkitanimationiteration() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationiteration' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationiteration"]);
- }
-
- set onwebkitanimationiteration(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationiteration' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationiteration' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationiteration"] = V;
- }
-
- get onwebkitanimationstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationstart' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationstart"]);
- }
-
- set onwebkitanimationstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationstart' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationstart' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationstart"] = V;
- }
-
- get onwebkittransitionend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkittransitionend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkittransitionend"]);
- }
-
- set onwebkittransitionend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkittransitionend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkittransitionend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwebkittransitionend"] = V;
- }
-
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onwheel' called on an object that is not a valid instance of Document.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
- }
-
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onwheel' called on an object that is not a valid instance of Document.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwheel' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["onwheel"] = V;
- }
-
- get ontouchstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchstart' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchstart"]);
- }
-
- set ontouchstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchstart' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchstart' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontouchstart"] = V;
- }
-
- get ontouchend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchend' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchend"]);
- }
-
- set ontouchend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchend' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchend' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontouchend"] = V;
- }
-
- get ontouchmove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchmove' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchmove"]);
- }
-
- set ontouchmove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchmove' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchmove' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontouchmove"] = V;
- }
-
- get ontouchcancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchcancel' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchcancel"]);
- }
-
- set ontouchcancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchcancel' called on an object that is not a valid instance of Document."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchcancel' property on 'Document': The provided value"
- });
- }
- esValue[implSymbol]["ontouchcancel"] = V;
- }
-
- get activeElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get activeElement' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
- }
-
- get children() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get children' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
- }
-
- get firstElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get firstElementChild' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
- }
-
- get lastElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastElementChild' called on an object that is not a valid instance of Document."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
- }
-
- get childElementCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get childElementCount' called on an object that is not a valid instance of Document."
- );
- }
-
- return esValue[implSymbol]["childElementCount"];
- }
- }
- Object.defineProperties(Document.prototype, {
- getElementsByTagName: { enumerable: true },
- getElementsByTagNameNS: { enumerable: true },
- getElementsByClassName: { enumerable: true },
- createElement: { enumerable: true },
- createElementNS: { enumerable: true },
- createDocumentFragment: { enumerable: true },
- createTextNode: { enumerable: true },
- createCDATASection: { enumerable: true },
- createComment: { enumerable: true },
- createProcessingInstruction: { enumerable: true },
- importNode: { enumerable: true },
- adoptNode: { enumerable: true },
- createAttribute: { enumerable: true },
- createAttributeNS: { enumerable: true },
- createEvent: { enumerable: true },
- createRange: { enumerable: true },
- createNodeIterator: { enumerable: true },
- createTreeWalker: { enumerable: true },
- getElementsByName: { enumerable: true },
- open: { enumerable: true },
- close: { enumerable: true },
- write: { enumerable: true },
- writeln: { enumerable: true },
- hasFocus: { enumerable: true },
- clear: { enumerable: true },
- captureEvents: { enumerable: true },
- releaseEvents: { enumerable: true },
- getSelection: { enumerable: true },
- getElementById: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- replaceChildren: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- implementation: { enumerable: true },
- URL: { enumerable: true },
- documentURI: { enumerable: true },
- compatMode: { enumerable: true },
- characterSet: { enumerable: true },
- charset: { enumerable: true },
- inputEncoding: { enumerable: true },
- contentType: { enumerable: true },
- doctype: { enumerable: true },
- documentElement: { enumerable: true },
- referrer: { enumerable: true },
- cookie: { enumerable: true },
- lastModified: { enumerable: true },
- readyState: { enumerable: true },
- title: { enumerable: true },
- dir: { enumerable: true },
- body: { enumerable: true },
- head: { enumerable: true },
- images: { enumerable: true },
- embeds: { enumerable: true },
- plugins: { enumerable: true },
- links: { enumerable: true },
- forms: { enumerable: true },
- scripts: { enumerable: true },
- currentScript: { enumerable: true },
- defaultView: { enumerable: true },
- onreadystatechange: { enumerable: true },
- anchors: { enumerable: true },
- applets: { enumerable: true },
- styleSheets: { enumerable: true },
- hidden: { enumerable: true },
- visibilityState: { enumerable: true },
- onvisibilitychange: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onbeforeinput: { enumerable: true },
- onbeforematch: { enumerable: true },
- onbeforetoggle: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextlost: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncontextrestored: { enumerable: true },
- oncopy: { enumerable: true },
- oncuechange: { enumerable: true },
- oncut: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- onformdata: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onpaste: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onscrollend: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onslotchange: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- onwebkitanimationend: { enumerable: true },
- onwebkitanimationiteration: { enumerable: true },
- onwebkitanimationstart: { enumerable: true },
- onwebkittransitionend: { enumerable: true },
- onwheel: { enumerable: true },
- ontouchstart: { enumerable: true },
- ontouchend: { enumerable: true },
- ontouchmove: { enumerable: true },
- ontouchcancel: { enumerable: true },
- activeElement: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- [Symbol.toStringTag]: { value: "Document", configurable: true },
- [Symbol.unscopables]: {
- value: { prepend: true, append: true, replaceChildren: true, __proto__: null },
- configurable: true
- }
- });
- ctorRegistry[interfaceName] = Document;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Document
- });
-};
-
-const Impl = __nccwpck_require__(54581);
-
-
-/***/ }),
-
-/***/ 11490:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DocumentFragment";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DocumentFragment'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DocumentFragment"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DocumentFragment extends globalObject.Node {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- getElementById(elementId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementById' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementById' on 'DocumentFragment': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'DocumentFragment': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
- }
-
- prepend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'prepend' called on an object that is not a valid instance of DocumentFragment."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'DocumentFragment': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].prepend(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- append() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'append' called on an object that is not a valid instance of DocumentFragment."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'DocumentFragment': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].append(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceChildren() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceChildren' called on an object that is not a valid instance of DocumentFragment."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceChildren' on 'DocumentFragment': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceChildren(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- querySelector(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelector' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelector' on 'DocumentFragment': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'DocumentFragment': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
- }
-
- querySelectorAll(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelectorAll' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelectorAll' on 'DocumentFragment': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'DocumentFragment': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
- }
-
- get children() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get children' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
- }
-
- get firstElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get firstElementChild' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
- }
-
- get lastElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastElementChild' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
- }
-
- get childElementCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get childElementCount' called on an object that is not a valid instance of DocumentFragment."
- );
- }
-
- return esValue[implSymbol]["childElementCount"];
- }
- }
- Object.defineProperties(DocumentFragment.prototype, {
- getElementById: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- replaceChildren: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- [Symbol.toStringTag]: { value: "DocumentFragment", configurable: true },
- [Symbol.unscopables]: {
- value: { prepend: true, append: true, replaceChildren: true, __proto__: null },
- configurable: true
- }
- });
- ctorRegistry[interfaceName] = DocumentFragment;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DocumentFragment
- });
-};
-
-const Impl = __nccwpck_require__(69567);
-
-
-/***/ }),
-
-/***/ 53193:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "DocumentType";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'DocumentType'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["DocumentType"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class DocumentType extends globalObject.Node {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- before() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'before' called on an object that is not a valid instance of DocumentType.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'DocumentType': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].before(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- after() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'after' called on an object that is not a valid instance of DocumentType.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'DocumentType': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceWith() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceWith' called on an object that is not a valid instance of DocumentType."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'DocumentType': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of DocumentType.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of DocumentType."
- );
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get publicId() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get publicId' called on an object that is not a valid instance of DocumentType."
- );
- }
-
- return esValue[implSymbol]["publicId"];
- }
-
- get systemId() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get systemId' called on an object that is not a valid instance of DocumentType."
- );
- }
-
- return esValue[implSymbol]["systemId"];
- }
- }
- Object.defineProperties(DocumentType.prototype, {
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- name: { enumerable: true },
- publicId: { enumerable: true },
- systemId: { enumerable: true },
- [Symbol.toStringTag]: { value: "DocumentType", configurable: true },
- [Symbol.unscopables]: {
- value: { before: true, after: true, replaceWith: true, remove: true, __proto__: null },
- configurable: true
- }
- });
- ctorRegistry[interfaceName] = DocumentType;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: DocumentType
- });
-};
-
-const Impl = __nccwpck_require__(98560);
-
-
-/***/ }),
-
-/***/ 4444:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const Attr = __nccwpck_require__(78717);
-const ShadowRootInit = __nccwpck_require__(83671);
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Element";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Element'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Element"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Node._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Element extends globalObject.Node {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- hasAttributes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'hasAttributes' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol].hasAttributes();
- }
-
- getAttributeNames() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getAttributeNames' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
- }
-
- getAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttribute' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getAttribute(...args);
- }
-
- getAttributeNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getAttributeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getAttributeNS(...args);
- }
-
- setAttribute(qualifiedName, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttribute' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttribute' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].setAttribute(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- setAttributeNS(namespace, qualifiedName, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setAttributeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 3) {
- throw new globalObject.TypeError(
- `Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setAttributeNS' on 'Element': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].setAttributeNS(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeAttribute' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttribute' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].removeAttribute(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeAttributeNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeAttributeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeAttributeNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].removeAttributeNS(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toggleAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toggleAttribute' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'toggleAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toggleAttribute' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'toggleAttribute' on 'Element': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].toggleAttribute(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- hasAttribute(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'hasAttribute' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttribute' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].hasAttribute(...args);
- }
-
- hasAttributeNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'hasAttributeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'hasAttributeNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].hasAttributeNS(...args);
- }
-
- getAttributeNode(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getAttributeNode' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNode' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNode(...args));
- }
-
- getAttributeNodeNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getAttributeNodeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'getAttributeNodeNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getAttributeNodeNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNodeNS(...args));
- }
-
- setAttributeNode(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setAttributeNode' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Attr.convert(globalObject, curArg, {
- context: "Failed to execute 'setAttributeNode' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- setAttributeNodeNS(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setAttributeNodeNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setAttributeNodeNS' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Attr.convert(globalObject, curArg, {
- context: "Failed to execute 'setAttributeNodeNS' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setAttributeNodeNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeAttributeNode(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeAttributeNode' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeAttributeNode' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Attr.convert(globalObject, curArg, {
- context: "Failed to execute 'removeAttributeNode' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeAttributeNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- attachShadow(init) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'attachShadow' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = ShadowRootInit.convert(globalObject, curArg, {
- context: "Failed to execute 'attachShadow' on 'Element': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].attachShadow(...args));
- }
-
- closest(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'closest' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'closest' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'closest' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].closest(...args));
- }
-
- matches(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'matches' called on an object that is not a valid instance of Element.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'matches' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'matches' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].matches(...args);
- }
-
- webkitMatchesSelector(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'webkitMatchesSelector' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'webkitMatchesSelector' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].webkitMatchesSelector(...args);
- }
-
- getElementsByTagName(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByTagName' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagName' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagName(...args));
- }
-
- getElementsByTagNameNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByTagNameNS' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByTagNameNS' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByTagNameNS(...args));
- }
-
- getElementsByClassName(classNames) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementsByClassName' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementsByClassName' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementsByClassName(...args));
- }
-
- insertAdjacentElement(where, element) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertAdjacentElement' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertAdjacentElement' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'insertAdjacentElement' on 'Element': parameter 2"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].insertAdjacentElement(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- insertAdjacentText(where, data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertAdjacentText' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertAdjacentText' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentText' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].insertAdjacentText(...args);
- }
-
- insertAdjacentHTML(position, text) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertAdjacentHTML' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertAdjacentHTML' on 'Element': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertAdjacentHTML' on 'Element': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].insertAdjacentHTML(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- getClientRects() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getClientRects' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
- }
-
- getBoundingClientRect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getBoundingClientRect' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
- }
-
- before() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'before' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'before' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].before(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- after() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'after' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'after' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].after(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceWith() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceWith' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceWith(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'remove' called on an object that is not a valid instance of Element.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- prepend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'prepend' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'prepend' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].prepend(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- append() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'append' called on an object that is not a valid instance of Element.");
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'append' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].append(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceChildren() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceChildren' called on an object that is not a valid instance of Element."
- );
- }
- const args = [];
- for (let i = 0; i < arguments.length; i++) {
- let curArg = arguments[i];
- if (Node.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceChildren' on 'Element': parameter " + (i + 1),
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].replaceChildren(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- querySelector(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelector' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelector' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelector' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelector(...args));
- }
-
- querySelectorAll(selectors) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'querySelectorAll' called on an object that is not a valid instance of Element."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'querySelectorAll' on 'Element': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'querySelectorAll' on 'Element': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].querySelectorAll(...args));
- }
-
- get namespaceURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get namespaceURI' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["namespaceURI"];
- }
-
- get prefix() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get prefix' called on an object that is not a valid instance of Element.");
- }
-
- return esValue[implSymbol]["prefix"];
- }
-
- get localName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get localName' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["localName"];
- }
-
- get tagName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get tagName' called on an object that is not a valid instance of Element.");
- }
-
- return esValue[implSymbol]["tagName"];
- }
-
- get id() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get id' called on an object that is not a valid instance of Element.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "id");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set id(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set id' called on an object that is not a valid instance of Element.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'id' property on 'Element': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "id", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get className() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get className' called on an object that is not a valid instance of Element."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "class");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set className(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set className' called on an object that is not a valid instance of Element."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'className' property on 'Element': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "class", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get classList() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get classList' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.getSameObject(this, "classList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["classList"]);
- });
- }
-
- set classList(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set classList' called on an object that is not a valid instance of Element."
- );
- }
-
- const Q = esValue["classList"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'classList' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
-
- get slot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get slot' called on an object that is not a valid instance of Element.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "slot");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set slot(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set slot' called on an object that is not a valid instance of Element.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'slot' property on 'Element': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "slot", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get attributes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get attributes' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.getSameObject(this, "attributes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["attributes"]);
- });
- }
-
- get shadowRoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shadowRoot' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
- }
-
- get outerHTML() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get outerHTML' called on an object that is not a valid instance of Element."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["outerHTML"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set outerHTML(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set outerHTML' called on an object that is not a valid instance of Element."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'outerHTML' property on 'Element': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["outerHTML"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scrollTop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollTop' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["scrollTop"];
- }
-
- set scrollTop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrollTop' called on an object that is not a valid instance of Element."
- );
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'scrollTop' property on 'Element': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["scrollTop"] = V;
- }
-
- get scrollLeft() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollLeft' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["scrollLeft"];
- }
-
- set scrollLeft(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrollLeft' called on an object that is not a valid instance of Element."
- );
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'scrollLeft' property on 'Element': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["scrollLeft"] = V;
- }
-
- get scrollWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollWidth' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["scrollWidth"];
- }
-
- get scrollHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollHeight' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["scrollHeight"];
- }
-
- get clientTop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientTop' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["clientTop"];
- }
-
- get clientLeft() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientLeft' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["clientLeft"];
- }
-
- get clientWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientWidth' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["clientWidth"];
- }
-
- get clientHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientHeight' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["clientHeight"];
- }
-
- get innerHTML() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get innerHTML' called on an object that is not a valid instance of Element."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["innerHTML"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set innerHTML(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set innerHTML' called on an object that is not a valid instance of Element."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["innerHTML"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get previousElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get previousElementSibling' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
- }
-
- get nextElementSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get nextElementSibling' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
- }
-
- get children() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get children' called on an object that is not a valid instance of Element.");
- }
-
- return utils.getSameObject(this, "children", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["children"]);
- });
- }
-
- get firstElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get firstElementChild' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
- }
-
- get lastElementChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastElementChild' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
- }
-
- get childElementCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get childElementCount' called on an object that is not a valid instance of Element."
- );
- }
-
- return esValue[implSymbol]["childElementCount"];
- }
-
- get assignedSlot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get assignedSlot' called on an object that is not a valid instance of Element."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
- }
- }
- Object.defineProperties(Element.prototype, {
- hasAttributes: { enumerable: true },
- getAttributeNames: { enumerable: true },
- getAttribute: { enumerable: true },
- getAttributeNS: { enumerable: true },
- setAttribute: { enumerable: true },
- setAttributeNS: { enumerable: true },
- removeAttribute: { enumerable: true },
- removeAttributeNS: { enumerable: true },
- toggleAttribute: { enumerable: true },
- hasAttribute: { enumerable: true },
- hasAttributeNS: { enumerable: true },
- getAttributeNode: { enumerable: true },
- getAttributeNodeNS: { enumerable: true },
- setAttributeNode: { enumerable: true },
- setAttributeNodeNS: { enumerable: true },
- removeAttributeNode: { enumerable: true },
- attachShadow: { enumerable: true },
- closest: { enumerable: true },
- matches: { enumerable: true },
- webkitMatchesSelector: { enumerable: true },
- getElementsByTagName: { enumerable: true },
- getElementsByTagNameNS: { enumerable: true },
- getElementsByClassName: { enumerable: true },
- insertAdjacentElement: { enumerable: true },
- insertAdjacentText: { enumerable: true },
- insertAdjacentHTML: { enumerable: true },
- getClientRects: { enumerable: true },
- getBoundingClientRect: { enumerable: true },
- before: { enumerable: true },
- after: { enumerable: true },
- replaceWith: { enumerable: true },
- remove: { enumerable: true },
- prepend: { enumerable: true },
- append: { enumerable: true },
- replaceChildren: { enumerable: true },
- querySelector: { enumerable: true },
- querySelectorAll: { enumerable: true },
- namespaceURI: { enumerable: true },
- prefix: { enumerable: true },
- localName: { enumerable: true },
- tagName: { enumerable: true },
- id: { enumerable: true },
- className: { enumerable: true },
- classList: { enumerable: true },
- slot: { enumerable: true },
- attributes: { enumerable: true },
- shadowRoot: { enumerable: true },
- outerHTML: { enumerable: true },
- scrollTop: { enumerable: true },
- scrollLeft: { enumerable: true },
- scrollWidth: { enumerable: true },
- scrollHeight: { enumerable: true },
- clientTop: { enumerable: true },
- clientLeft: { enumerable: true },
- clientWidth: { enumerable: true },
- clientHeight: { enumerable: true },
- innerHTML: { enumerable: true },
- previousElementSibling: { enumerable: true },
- nextElementSibling: { enumerable: true },
- children: { enumerable: true },
- firstElementChild: { enumerable: true },
- lastElementChild: { enumerable: true },
- childElementCount: { enumerable: true },
- assignedSlot: { enumerable: true },
- [Symbol.toStringTag]: { value: "Element", configurable: true },
- [Symbol.unscopables]: {
- value: {
- slot: true,
- before: true,
- after: true,
- replaceWith: true,
- remove: true,
- prepend: true,
- append: true,
- replaceChildren: true,
- __proto__: null
- },
- configurable: true
- }
- });
- ctorRegistry[interfaceName] = Element;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Element
- });
-};
-
-const Impl = __nccwpck_require__(5121);
-
-
-/***/ }),
-
-/***/ 41411:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "is";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'is' that", globals: globalObject });
-
- ret[key] = value;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 54882:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "extends";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, {
- context: context + " has member 'extends' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 52015:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["transparent", "native"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for EndingType`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 65153:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ErrorEventInit = __nccwpck_require__(72886);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "ErrorEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'ErrorEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["ErrorEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class ErrorEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'ErrorEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'ErrorEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = ErrorEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'ErrorEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get message() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get message' called on an object that is not a valid instance of ErrorEvent."
- );
- }
-
- return esValue[implSymbol]["message"];
- }
-
- get filename() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get filename' called on an object that is not a valid instance of ErrorEvent."
- );
- }
-
- return esValue[implSymbol]["filename"];
- }
-
- get lineno() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lineno' called on an object that is not a valid instance of ErrorEvent."
- );
- }
-
- return esValue[implSymbol]["lineno"];
- }
-
- get colno() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get colno' called on an object that is not a valid instance of ErrorEvent.");
- }
-
- return esValue[implSymbol]["colno"];
- }
-
- get error() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get error' called on an object that is not a valid instance of ErrorEvent.");
- }
-
- return esValue[implSymbol]["error"];
- }
- }
- Object.defineProperties(ErrorEvent.prototype, {
- message: { enumerable: true },
- filename: { enumerable: true },
- lineno: { enumerable: true },
- colno: { enumerable: true },
- error: { enumerable: true },
- [Symbol.toStringTag]: { value: "ErrorEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = ErrorEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ErrorEvent
- });
-};
-
-const Impl = __nccwpck_require__(21385);
-
-
-/***/ }),
-
-/***/ 72886:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "colno";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'colno' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "error";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'error' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "filename";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, {
- context: context + " has member 'filename' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "lineno";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'lineno' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "message";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, {
- context: context + " has member 'message' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 35348:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Event";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Event'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Event"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-function getUnforgeables(globalObject) {
- let unforgeables = unforgeablesMap.get(globalObject);
- if (unforgeables === undefined) {
- unforgeables = Object.create(null);
- utils.define(unforgeables, {
- get isTrusted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get isTrusted' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol]["isTrusted"];
- }
- });
- Object.defineProperties(unforgeables, {
- isTrusted: { configurable: false }
- });
- unforgeablesMap.set(globalObject, unforgeables);
- }
- return unforgeables;
-}
-
-exports._internalSetup = (wrapper, globalObject) => {
- utils.define(wrapper, getUnforgeables(globalObject));
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const unforgeablesMap = new WeakMap();
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'Event': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'Event': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = EventInit.convert(globalObject, curArg, { context: "Failed to construct 'Event': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- composedPath() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'composedPath' called on an object that is not a valid instance of Event.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].composedPath());
- }
-
- stopPropagation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'stopPropagation' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol].stopPropagation();
- }
-
- stopImmediatePropagation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'stopImmediatePropagation' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol].stopImmediatePropagation();
- }
-
- preventDefault() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'preventDefault' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol].preventDefault();
- }
-
- initEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'initEvent' called on an object that is not a valid instance of Event.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initEvent' on 'Event': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initEvent' on 'Event': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initEvent' on 'Event': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initEvent' on 'Event': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initEvent(...args);
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get type' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get target' called on an object that is not a valid instance of Event.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
- }
-
- get srcElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get srcElement' called on an object that is not a valid instance of Event.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["srcElement"]);
- }
-
- get currentTarget() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentTarget' called on an object that is not a valid instance of Event."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentTarget"]);
- }
-
- get eventPhase() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get eventPhase' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["eventPhase"];
- }
-
- get cancelBubble() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cancelBubble' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol]["cancelBubble"];
- }
-
- set cancelBubble(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cancelBubble' called on an object that is not a valid instance of Event."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'cancelBubble' property on 'Event': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["cancelBubble"] = V;
- }
-
- get bubbles() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get bubbles' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["bubbles"];
- }
-
- get cancelable() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get cancelable' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["cancelable"];
- }
-
- get returnValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get returnValue' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol]["returnValue"];
- }
-
- set returnValue(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set returnValue' called on an object that is not a valid instance of Event."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'returnValue' property on 'Event': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["returnValue"] = V;
- }
-
- get defaultPrevented() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultPrevented' called on an object that is not a valid instance of Event."
- );
- }
-
- return esValue[implSymbol]["defaultPrevented"];
- }
-
- get composed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get composed' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["composed"];
- }
-
- get timeStamp() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get timeStamp' called on an object that is not a valid instance of Event.");
- }
-
- return esValue[implSymbol]["timeStamp"];
- }
- }
- Object.defineProperties(Event.prototype, {
- composedPath: { enumerable: true },
- stopPropagation: { enumerable: true },
- stopImmediatePropagation: { enumerable: true },
- preventDefault: { enumerable: true },
- initEvent: { enumerable: true },
- type: { enumerable: true },
- target: { enumerable: true },
- srcElement: { enumerable: true },
- currentTarget: { enumerable: true },
- eventPhase: { enumerable: true },
- cancelBubble: { enumerable: true },
- bubbles: { enumerable: true },
- cancelable: { enumerable: true },
- returnValue: { enumerable: true },
- defaultPrevented: { enumerable: true },
- composed: { enumerable: true },
- timeStamp: { enumerable: true },
- [Symbol.toStringTag]: { value: "Event", configurable: true },
- NONE: { value: 0, enumerable: true },
- CAPTURING_PHASE: { value: 1, enumerable: true },
- AT_TARGET: { value: 2, enumerable: true },
- BUBBLING_PHASE: { value: 3, enumerable: true }
- });
- Object.defineProperties(Event, {
- NONE: { value: 0, enumerable: true },
- CAPTURING_PHASE: { value: 1, enumerable: true },
- AT_TARGET: { value: 2, enumerable: true },
- BUBBLING_PHASE: { value: 3, enumerable: true }
- });
- ctorRegistry[interfaceName] = Event;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Event
- });
-};
-
-const Impl = __nccwpck_require__(61883);
-
-
-/***/ }),
-
-/***/ 23129:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(event) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- if (typeof value === "function") {
- event = utils.tryWrapperForImpl(event);
-
- callResult = Reflect.apply(value, thisArg, [event]);
- }
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = event => {
- event = utils.tryWrapperForImpl(event);
-
- let callResult = Reflect.construct(value, [event]);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 4895:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "bubbles";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'bubbles' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "cancelable";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'cancelable' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "composed";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'composed' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 10694:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- function callTheUserObjectsOperation(event) {
- let thisArg = utils.tryWrapperForImpl(this);
- let O = value;
- let X = O;
-
- if (typeof O !== "function") {
- X = O["handleEvent"];
- if (typeof X !== "function") {
- throw new globalObject.TypeError(`${context} does not correctly implement EventListener.`);
- }
- thisArg = O;
- }
-
- event = utils.tryWrapperForImpl(event);
-
- let callResult = Reflect.apply(X, thisArg, [event]);
- }
-
- callTheUserObjectsOperation[utils.wrapperSymbol] = value;
- callTheUserObjectsOperation.objectReference = value;
-
- return callTheUserObjectsOperation;
-};
-
-exports.install = (globalObject, globalNames) => {};
-
-
-/***/ }),
-
-/***/ 25619:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "capture";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'capture' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 22409:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const UIEventInit = __nccwpck_require__(82015);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "altKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'altKey' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "ctrlKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'ctrlKey' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "metaKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'metaKey' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierAltGraph";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierAltGraph' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierCapsLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierCapsLock' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierFn";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierFn' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierFnLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierFnLock' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierHyper";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierHyper' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierNumLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierNumLock' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierScrollLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierScrollLock' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierSuper";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierSuper' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierSymbol";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierSymbol' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "modifierSymbolLock";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'modifierSymbolLock' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "shiftKey";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'shiftKey' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 71038:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventListener = __nccwpck_require__(10694);
-const AddEventListenerOptions = __nccwpck_require__(34003);
-const EventListenerOptions = __nccwpck_require__(25619);
-const Event = __nccwpck_require__(35348);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "EventTarget";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'EventTarget'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["EventTarget"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class EventTarget {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- addEventListener(type, callback) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'addEventListener' called on an object that is not a valid instance of EventTarget."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventListener.convert(globalObject, curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 2"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = AddEventListenerOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = AddEventListenerOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3" + " dictionary"
- });
- } else if (typeof curArg === "boolean") {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'addEventListener' on 'EventTarget': parameter 3",
- globals: globalObject
- });
- }
- }
- args.push(curArg);
- }
- return esValue[implSymbol].addEventListener(...args);
- }
-
- removeEventListener(type, callback) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeEventListener' called on an object that is not a valid instance of EventTarget."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventListener.convert(globalObject, curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 2"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = EventListenerOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3"
- });
- } else if (utils.isObject(curArg)) {
- curArg = EventListenerOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3" + " dictionary"
- });
- } else if (typeof curArg === "boolean") {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'removeEventListener' on 'EventTarget': parameter 3",
- globals: globalObject
- });
- }
- }
- args.push(curArg);
- }
- return esValue[implSymbol].removeEventListener(...args);
- }
-
- dispatchEvent(event) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'dispatchEvent' called on an object that is not a valid instance of EventTarget."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'dispatchEvent' on 'EventTarget': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Event.convert(globalObject, curArg, {
- context: "Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].dispatchEvent(...args);
- }
- }
- Object.defineProperties(EventTarget.prototype, {
- addEventListener: { enumerable: true },
- removeEventListener: { enumerable: true },
- dispatchEvent: { enumerable: true },
- [Symbol.toStringTag]: { value: "EventTarget", configurable: true }
- });
- ctorRegistry[interfaceName] = EventTarget;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: EventTarget
- });
-};
-
-const Impl = __nccwpck_require__(18557);
-
-
-/***/ }),
-
-/***/ 19995:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "External";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'External'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["External"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class External {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- AddSearchProvider() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'AddSearchProvider' called on an object that is not a valid instance of External."
- );
- }
-
- return esValue[implSymbol].AddSearchProvider();
- }
-
- IsSearchProviderInstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'IsSearchProviderInstalled' called on an object that is not a valid instance of External."
- );
- }
-
- return esValue[implSymbol].IsSearchProviderInstalled();
- }
- }
- Object.defineProperties(External.prototype, {
- AddSearchProvider: { enumerable: true },
- IsSearchProviderInstalled: { enumerable: true },
- [Symbol.toStringTag]: { value: "External", configurable: true }
- });
- ctorRegistry[interfaceName] = External;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: External
- });
-};
-
-const Impl = __nccwpck_require__(87625);
-
-
-/***/ }),
-
-/***/ 74022:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Blob = __nccwpck_require__(48350);
-const FilePropertyBag = __nccwpck_require__(3281);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "File";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'File'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["File"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Blob._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class File extends globalObject.Blob {
- constructor(fileBits, fileName) {
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError("Failed to construct 'File': parameter 1" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (Blob.is(nextItem)) {
- nextItem = utils.implForWrapper(nextItem);
- } else if (utils.isArrayBuffer(nextItem)) {
- } else if (ArrayBuffer.isView(nextItem)) {
- } else {
- nextItem = conversions["USVString"](nextItem, {
- context: "Failed to construct 'File': parameter 1" + "'s element",
- globals: globalObject
- });
- }
- V.push(nextItem);
- }
- curArg = V;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to construct 'File': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = FilePropertyBag.convert(globalObject, curArg, { context: "Failed to construct 'File': parameter 3" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get name' called on an object that is not a valid instance of File.");
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get lastModified() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastModified' called on an object that is not a valid instance of File."
- );
- }
-
- return esValue[implSymbol]["lastModified"];
- }
- }
- Object.defineProperties(File.prototype, {
- name: { enumerable: true },
- lastModified: { enumerable: true },
- [Symbol.toStringTag]: { value: "File", configurable: true }
- });
- ctorRegistry[interfaceName] = File;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: File
- });
-};
-
-const Impl = __nccwpck_require__(66294);
-
-
-/***/ }),
-
-/***/ 51414:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "FileList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'FileList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["FileList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class FileList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of FileList.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'FileList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'FileList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of FileList.");
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(FileList.prototype, {
- item: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "FileList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = FileList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FileList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(87378);
-
-
-/***/ }),
-
-/***/ 3281:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const BlobPropertyBag = __nccwpck_require__(72334);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- BlobPropertyBag._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "lastModified";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long long"](value, {
- context: context + " has member 'lastModified' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 82142:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Blob = __nccwpck_require__(48350);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "FileReader";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'FileReader'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["FileReader"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class FileReader extends globalObject.EventTarget {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- readAsArrayBuffer(blob) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'readAsArrayBuffer' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].readAsArrayBuffer(...args);
- }
-
- readAsBinaryString(blob) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'readAsBinaryString' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'readAsBinaryString' on 'FileReader': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].readAsBinaryString(...args);
- }
-
- readAsText(blob) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'readAsText' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'readAsText' on 'FileReader': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'readAsText' on 'FileReader': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'readAsText' on 'FileReader': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].readAsText(...args);
- }
-
- readAsDataURL(blob) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'readAsDataURL' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'readAsDataURL' on 'FileReader': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'readAsDataURL' on 'FileReader': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].readAsDataURL(...args);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'abort' called on an object that is not a valid instance of FileReader.");
- }
-
- return esValue[implSymbol].abort();
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return esValue[implSymbol]["readyState"];
- }
-
- get result() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get result' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["result"]);
- }
-
- get error() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get error' called on an object that is not a valid instance of FileReader.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["error"]);
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
-
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onload' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onload' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onloadend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadend' called on an object that is not a valid instance of FileReader."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
- }
-
- set onloadend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadend' called on an object that is not a valid instance of FileReader."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadend' property on 'FileReader': The provided value"
- });
- }
- esValue[implSymbol]["onloadend"] = V;
- }
- }
- Object.defineProperties(FileReader.prototype, {
- readAsArrayBuffer: { enumerable: true },
- readAsBinaryString: { enumerable: true },
- readAsText: { enumerable: true },
- readAsDataURL: { enumerable: true },
- abort: { enumerable: true },
- readyState: { enumerable: true },
- result: { enumerable: true },
- error: { enumerable: true },
- onloadstart: { enumerable: true },
- onprogress: { enumerable: true },
- onload: { enumerable: true },
- onabort: { enumerable: true },
- onerror: { enumerable: true },
- onloadend: { enumerable: true },
- [Symbol.toStringTag]: { value: "FileReader", configurable: true },
- EMPTY: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- DONE: { value: 2, enumerable: true }
- });
- Object.defineProperties(FileReader, {
- EMPTY: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- DONE: { value: 2, enumerable: true }
- });
- ctorRegistry[interfaceName] = FileReader;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FileReader
- });
-};
-
-const Impl = __nccwpck_require__(75394);
-
-
-/***/ }),
-
-/***/ 66651:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const FocusEventInit = __nccwpck_require__(89088);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "FocusEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'FocusEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["FocusEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class FocusEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'FocusEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'FocusEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = FocusEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'FocusEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get relatedTarget() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get relatedTarget' called on an object that is not a valid instance of FocusEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
- }
- }
- Object.defineProperties(FocusEvent.prototype, {
- relatedTarget: { enumerable: true },
- [Symbol.toStringTag]: { value: "FocusEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = FocusEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FocusEvent
- });
-};
-
-const Impl = __nccwpck_require__(8703);
-
-
-/***/ }),
-
-/***/ 89088:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventTarget = __nccwpck_require__(71038);
-const UIEventInit = __nccwpck_require__(82015);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "relatedTarget";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = EventTarget.convert(globalObject, value, { context: context + " has member 'relatedTarget' that" });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 75261:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLFormElement = __nccwpck_require__(37670);
-const HTMLElement = __nccwpck_require__(8932);
-const Blob = __nccwpck_require__(48350);
-const Function = __nccwpck_require__(79936);
-const newObjectInRealm = utils.newObjectInRealm;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "FormData";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'FormData'.`);
-};
-
-exports.createDefaultIterator = (globalObject, target, kind) => {
- const ctorRegistry = globalObject[ctorRegistrySymbol];
- const iteratorPrototype = ctorRegistry["FormData Iterator"];
- const iterator = Object.create(iteratorPrototype);
- Object.defineProperty(iterator, utils.iterInternalSymbol, {
- value: { target, kind, index: 0 },
- configurable: true
- });
- return iterator;
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["FormData"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class FormData {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = HTMLFormElement.convert(globalObject, curArg, {
- context: "Failed to construct 'FormData': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = HTMLElement.convert(globalObject, curArg, {
- context: "Failed to construct 'FormData': parameter 2"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- append(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'append' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'append' on 'FormData': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[1];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- } else {
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- }
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'append' on 'FormData': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].append(...args);
- }
-
- delete(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'delete' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'delete' on 'FormData': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'delete' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].delete(...args);
- }
-
- get(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'get' on 'FormData': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'get' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].get(...args));
- }
-
- getAll(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'getAll' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getAll' on 'FormData': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'getAll' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getAll(...args));
- }
-
- has(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'has' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'has' on 'FormData': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'has' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].has(...args);
- }
-
- set(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set' called on an object that is not a valid instance of FormData.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'set' on 'FormData': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[1];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- } else {
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- }
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 2"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'set' on 'FormData': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].set(...args);
- }
-
- keys() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'keys' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(globalObject, this, "key");
- }
-
- values() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'values' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(globalObject, this, "value");
- }
-
- entries() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'entries' called on an object that is not a valid instance of FormData.");
- }
- return exports.createDefaultIterator(globalObject, this, "key+value");
- }
-
- forEach(callback) {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'forEach' called on an object that is not a valid instance of FormData.");
- }
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- "Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present."
- );
- }
- callback = Function.convert(globalObject, callback, {
- context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
- });
- const thisArg = arguments[1];
- let pairs = Array.from(this[implSymbol]);
- let i = 0;
- while (i < pairs.length) {
- const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
- callback.call(thisArg, value, key, this);
- pairs = Array.from(this[implSymbol]);
- i++;
- }
- }
- }
- Object.defineProperties(FormData.prototype, {
- append: { enumerable: true },
- delete: { enumerable: true },
- get: { enumerable: true },
- getAll: { enumerable: true },
- has: { enumerable: true },
- set: { enumerable: true },
- keys: { enumerable: true },
- values: { enumerable: true },
- entries: { enumerable: true },
- forEach: { enumerable: true },
- [Symbol.toStringTag]: { value: "FormData", configurable: true },
- [Symbol.iterator]: { value: FormData.prototype.entries, configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = FormData;
-
- ctorRegistry["FormData Iterator"] = Object.create(ctorRegistry["%IteratorPrototype%"], {
- [Symbol.toStringTag]: {
- configurable: true,
- value: "FormData Iterator"
- }
- });
- utils.define(ctorRegistry["FormData Iterator"], {
- next() {
- const internal = this && this[utils.iterInternalSymbol];
- if (!internal) {
- throw new globalObject.TypeError("next() called on a value that is not a FormData iterator object");
- }
-
- const { target, kind, index } = internal;
- const values = Array.from(target[implSymbol]);
- const len = values.length;
- if (index >= len) {
- return newObjectInRealm(globalObject, { value: undefined, done: true });
- }
-
- const pair = values[index];
- internal.index = index + 1;
- return newObjectInRealm(globalObject, utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind));
- }
- });
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: FormData
- });
-};
-
-const Impl = __nccwpck_require__(22731);
-
-
-/***/ }),
-
-/***/ 79936:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new globalObject.TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction(...args) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- for (let i = 0; i < args.length; i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- callResult = Reflect.apply(value, thisArg, args);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = (...args) => {
- for (let i = 0; i < args.length; i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- let callResult = Reflect.construct(value, args);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 99981:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "composed";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'composed' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 41448:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLAnchorElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLAnchorElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLAnchorElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLAnchorElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set target' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get download() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get download' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "download");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set download(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set download' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'download' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "download", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rel' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rel' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get relList() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get relList' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
- }
-
- set relList(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set relList' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'relList' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
-
- get hreflang() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hreflang' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hreflang(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hreflang' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'hreflang' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "hreflang", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get text' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["text"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set text' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["text"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get coords() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get coords' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "coords");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set coords(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set coords' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'coords' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "coords", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get charset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get charset' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set charset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set charset' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rev() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rev' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rev");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rev(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rev' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rev' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rev", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get shape() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shape' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "shape");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set shape(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set shape' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'shape' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "shape", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get href' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set href' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toString' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get origin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get origin' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- return esValue[implSymbol]["origin"];
- }
-
- get protocol() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get protocol' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["protocol"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set protocol(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set protocol' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["protocol"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get username() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get username' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["username"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set username(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set username' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'username' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["username"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get password() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get password' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["password"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set password(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set password' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'password' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["password"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get host() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get host' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["host"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set host(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set host' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["host"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hostname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hostname' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hostname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hostname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hostname' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hostname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get port() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get port' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["port"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set port(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set port' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["port"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get pathname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pathname' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["pathname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set pathname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set pathname' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["pathname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get search() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get search' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["search"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set search(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set search' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["search"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hash() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hash' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hash"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hash(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hash' called on an object that is not a valid instance of HTMLAnchorElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'HTMLAnchorElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hash"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLAnchorElement.prototype, {
- target: { enumerable: true },
- download: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- hreflang: { enumerable: true },
- type: { enumerable: true },
- text: { enumerable: true },
- coords: { enumerable: true },
- charset: { enumerable: true },
- name: { enumerable: true },
- rev: { enumerable: true },
- shape: { enumerable: true },
- href: { enumerable: true },
- toString: { enumerable: true },
- origin: { enumerable: true },
- protocol: { enumerable: true },
- username: { enumerable: true },
- password: { enumerable: true },
- host: { enumerable: true },
- hostname: { enumerable: true },
- port: { enumerable: true },
- pathname: { enumerable: true },
- search: { enumerable: true },
- hash: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLAnchorElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLAnchorElement
- });
-};
-
-const Impl = __nccwpck_require__(10800);
-
-
-/***/ }),
-
-/***/ 52446:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLAreaElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLAreaElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLAreaElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLAreaElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get alt() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get alt' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set alt(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set alt' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get coords() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get coords' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "coords");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set coords(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set coords' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'coords' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "coords", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get shape() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shape' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "shape");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set shape(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set shape' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'shape' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "shape", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set target' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rel' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rel' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get relList() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get relList' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
- }
-
- set relList(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set relList' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'relList' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
-
- get noHref() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get noHref' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "nohref");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set noHref(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set noHref' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noHref' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "nohref", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "nohref");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get href' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set href' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toString' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get origin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get origin' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- return esValue[implSymbol]["origin"];
- }
-
- get protocol() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get protocol' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["protocol"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set protocol(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set protocol' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["protocol"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get username() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get username' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["username"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set username(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set username' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'username' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["username"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get password() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get password' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["password"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set password(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set password' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'password' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["password"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get host() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get host' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["host"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set host(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set host' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["host"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hostname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hostname' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hostname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hostname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hostname' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hostname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get port() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get port' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["port"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set port(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set port' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["port"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get pathname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pathname' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["pathname"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set pathname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set pathname' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["pathname"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get search() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get search' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["search"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set search(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set search' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["search"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hash() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hash' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["hash"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hash(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hash' called on an object that is not a valid instance of HTMLAreaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'HTMLAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["hash"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLAreaElement.prototype, {
- alt: { enumerable: true },
- coords: { enumerable: true },
- shape: { enumerable: true },
- target: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- noHref: { enumerable: true },
- href: { enumerable: true },
- toString: { enumerable: true },
- origin: { enumerable: true },
- protocol: { enumerable: true },
- username: { enumerable: true },
- password: { enumerable: true },
- host: { enumerable: true },
- hostname: { enumerable: true },
- port: { enumerable: true },
- pathname: { enumerable: true },
- search: { enumerable: true },
- hash: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLAreaElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLAreaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLAreaElement
- });
-};
-
-const Impl = __nccwpck_require__(54467);
-
-
-/***/ }),
-
-/***/ 29972:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLMediaElement = __nccwpck_require__(61639);
-
-const interfaceName = "HTMLAudioElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLAudioElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLAudioElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLMediaElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLAudioElement extends globalObject.HTMLMediaElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- }
- Object.defineProperties(HTMLAudioElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLAudioElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLAudioElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLAudioElement
- });
-};
-
-const Impl = __nccwpck_require__(29163);
-
-
-/***/ }),
-
-/***/ 11429:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLBRElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLBRElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLBRElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLBRElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clear' called on an object that is not a valid instance of HTMLBRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "clear");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set clear(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set clear' called on an object that is not a valid instance of HTMLBRElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'clear' property on 'HTMLBRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "clear", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLBRElement.prototype, {
- clear: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBRElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLBRElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLBRElement
- });
-};
-
-const Impl = __nccwpck_require__(79978);
-
-
-/***/ }),
-
-/***/ 95978:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLBaseElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLBaseElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLBaseElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLBaseElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get href' called on an object that is not a valid instance of HTMLBaseElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["href"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set href' called on an object that is not a valid instance of HTMLBaseElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLBaseElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["href"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of HTMLBaseElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set target' called on an object that is not a valid instance of HTMLBaseElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLBaseElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLBaseElement.prototype, {
- href: { enumerable: true },
- target: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBaseElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLBaseElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLBaseElement
- });
-};
-
-const Impl = __nccwpck_require__(53710);
-
-
-/***/ }),
-
-/***/ 84868:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLBodyElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLBodyElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLBodyElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLBodyElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get text' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "text");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set text' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLBodyElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "text", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get link() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get link' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "link");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set link(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set link' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'link' property on 'HTMLBodyElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "link", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vLink() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vLink' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "vlink");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vLink(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vLink' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vLink' property on 'HTMLBodyElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "vlink", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get aLink() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get aLink' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alink");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set aLink(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set aLink' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'aLink' property on 'HTMLBodyElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alink", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bgColor' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set bgColor' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLBodyElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get background() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get background' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "background");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set background(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set background' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'background' property on 'HTMLBodyElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "background", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get onafterprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onafterprint' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
- }
-
- set onafterprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onafterprint' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onafterprint' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onafterprint"] = V;
- }
-
- get onbeforeprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
- }
-
- set onbeforeprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeprint' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeprint"] = V;
- }
-
- get onbeforeunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
- }
-
- set onbeforeunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeunload' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeunload"] = V;
- }
-
- get onhashchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onhashchange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
- }
-
- set onhashchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onhashchange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onhashchange' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onhashchange"] = V;
- }
-
- get onlanguagechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
- }
-
- set onlanguagechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onlanguagechange' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onlanguagechange"] = V;
- }
-
- get onmessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessage' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
- }
-
- set onmessage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessage' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessage' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
- }
-
- get onmessageerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
- }
-
- set onmessageerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessageerror' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessageerror"] = V;
- }
-
- get onoffline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onoffline' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
- }
-
- set onoffline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onoffline' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onoffline' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onoffline"] = V;
- }
-
- get ononline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ononline' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
- }
-
- set ononline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ononline' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ononline' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["ononline"] = V;
- }
-
- get onpagehide() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpagehide' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
- }
-
- set onpagehide(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpagehide' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpagehide' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onpagehide"] = V;
- }
-
- get onpageshow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpageshow' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
- }
-
- set onpageshow(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpageshow' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpageshow' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onpageshow"] = V;
- }
-
- get onpopstate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpopstate' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
- }
-
- set onpopstate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpopstate' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpopstate' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onpopstate"] = V;
- }
-
- get onrejectionhandled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
- }
-
- set onrejectionhandled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onrejectionhandled' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onrejectionhandled"] = V;
- }
-
- get onstorage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstorage' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
- }
-
- set onstorage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstorage' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstorage' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onstorage"] = V;
- }
-
- get onunhandledrejection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
- }
-
- set onunhandledrejection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunhandledrejection' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onunhandledrejection"] = V;
- }
-
- get onunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
- }
-
- set onunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunload' called on an object that is not a valid instance of HTMLBodyElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunload' property on 'HTMLBodyElement': The provided value"
- });
- }
- esValue[implSymbol]["onunload"] = V;
- }
- }
- Object.defineProperties(HTMLBodyElement.prototype, {
- text: { enumerable: true },
- link: { enumerable: true },
- vLink: { enumerable: true },
- aLink: { enumerable: true },
- bgColor: { enumerable: true },
- background: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLBodyElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLBodyElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLBodyElement
- });
-};
-
-const Impl = __nccwpck_require__(32574);
-
-
-/***/ }),
-
-/***/ 87392:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLButtonElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLButtonElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLButtonElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLButtonElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLButtonElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get autofocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autofocus' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autofocus' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get formNoValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set formNoValidate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'formNoValidate' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get formTarget() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get formTarget' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set formTarget(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set formTarget' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'formTarget' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "formtarget", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["type"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["type"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLButtonElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLButtonElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
- }
- Object.defineProperties(HTMLButtonElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- autofocus: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- formNoValidate: { enumerable: true },
- formTarget: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLButtonElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLButtonElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLButtonElement
- });
-};
-
-const Impl = __nccwpck_require__(5009);
-
-
-/***/ }),
-
-/***/ 15063:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const BlobCallback = __nccwpck_require__(45775);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLCanvasElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLCanvasElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLCanvasElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLCanvasElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- getContext(contextId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getContext' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- for (let i = 1; i < arguments.length; i++) {
- let curArg = arguments[i];
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'getContext' on 'HTMLCanvasElement': parameter " + (i + 1),
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getContext(...args));
- }
-
- toDataURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toDataURL' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'toDataURL' on 'HTMLCanvasElement': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].toDataURL(...args);
- }
-
- toBlob(callback) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'toBlob' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'toBlob' on 'HTMLCanvasElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = BlobCallback.convert(globalObject, curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].toBlob(...args);
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["width"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLCanvasElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["width"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["height"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLCanvasElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLCanvasElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["height"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLCanvasElement.prototype, {
- getContext: { enumerable: true },
- toDataURL: { enumerable: true },
- toBlob: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLCanvasElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLCanvasElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLCanvasElement
- });
-};
-
-const Impl = __nccwpck_require__(95083);
-
-
-/***/ }),
-
-/***/ 49672:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "HTMLCollection";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLCollection'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLCollection"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLCollection {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of HTMLCollection.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'HTMLCollection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'HTMLCollection': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'namedItem' called on an object that is not a valid instance of HTMLCollection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'HTMLCollection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'HTMLCollection': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of HTMLCollection."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(HTMLCollection.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLCollection", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = HTMLCollection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLCollection
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- const namedValue = target[implSymbol].namedItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: false,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].namedItem(P) !== null);
- if (!creating) {
- return false;
- }
- }
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
- return false;
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(93009);
-
-
-/***/ }),
-
-/***/ 91646:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDListElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDListElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDListElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get compact() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compact' called on an object that is not a valid instance of HTMLDListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set compact(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set compact' called on an object that is not a valid instance of HTMLDListElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLDListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDListElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDListElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDListElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDListElement
- });
-};
-
-const Impl = __nccwpck_require__(59084);
-
-
-/***/ }),
-
-/***/ 77558:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDataElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDataElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDataElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDataElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLDataElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLDataElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLDataElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDataElement.prototype, {
- value: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDataElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDataElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDataElement
- });
-};
-
-const Impl = __nccwpck_require__(3680);
-
-
-/***/ }),
-
-/***/ 98633:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDataListElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDataListElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDataListElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDataListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get options() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get options' called on an object that is not a valid instance of HTMLDataListElement."
- );
- }
-
- return utils.getSameObject(this, "options", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
- });
- }
- }
- Object.defineProperties(HTMLDataListElement.prototype, {
- options: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDataListElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDataListElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDataListElement
- });
-};
-
-const Impl = __nccwpck_require__(70153);
-
-
-/***/ }),
-
-/***/ 14958:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDetailsElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDetailsElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDetailsElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDetailsElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get open() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get open' called on an object that is not a valid instance of HTMLDetailsElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "open");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set open(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set open' called on an object that is not a valid instance of HTMLDetailsElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'open' property on 'HTMLDetailsElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "open", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "open");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDetailsElement.prototype, {
- open: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDetailsElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDetailsElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDetailsElement
- });
-};
-
-const Impl = __nccwpck_require__(72835);
-
-
-/***/ }),
-
-/***/ 94943:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDialogElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDialogElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDialogElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDialogElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get open() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get open' called on an object that is not a valid instance of HTMLDialogElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "open");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set open(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set open' called on an object that is not a valid instance of HTMLDialogElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'open' property on 'HTMLDialogElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "open", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "open");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDialogElement.prototype, {
- open: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDialogElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDialogElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDialogElement
- });
-};
-
-const Impl = __nccwpck_require__(88845);
-
-
-/***/ }),
-
-/***/ 32964:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDirectoryElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDirectoryElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDirectoryElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDirectoryElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get compact() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compact' called on an object that is not a valid instance of HTMLDirectoryElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set compact(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set compact' called on an object that is not a valid instance of HTMLDirectoryElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLDirectoryElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDirectoryElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDirectoryElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDirectoryElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDirectoryElement
- });
-};
-
-const Impl = __nccwpck_require__(44619);
-
-
-/***/ }),
-
-/***/ 89150:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLDivElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLDivElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLDivElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLDivElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLDivElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLDivElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLDivElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLDivElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLDivElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLDivElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLDivElement
- });
-};
-
-const Impl = __nccwpck_require__(80810);
-
-
-/***/ }),
-
-/***/ 8932:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Element = __nccwpck_require__(4444);
-
-const interfaceName = "HTMLElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Element._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLElement extends globalObject.Element {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- click() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'click' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].click();
- }
-
- focus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'focus' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].focus();
- }
-
- blur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'blur' called on an object that is not a valid instance of HTMLElement.");
- }
-
- return esValue[implSymbol].blur();
- }
-
- get title() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get title' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "title");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set title(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set title' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'title' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "title", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get lang() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get lang' called on an object that is not a valid instance of HTMLElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "lang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set lang(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set lang' called on an object that is not a valid instance of HTMLElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'lang' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "lang", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get translate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get translate' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["translate"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set translate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set translate' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'translate' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["translate"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get dir() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get dir' called on an object that is not a valid instance of HTMLElement.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["dir"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dir(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set dir' called on an object that is not a valid instance of HTMLElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dir' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["dir"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hidden() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hidden' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "hidden");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hidden(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hidden' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'hidden' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "hidden", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "hidden");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get accessKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get accessKey' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "accesskey");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set accessKey(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set accessKey' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'accessKey' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "accesskey", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get draggable() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get draggable' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["draggable"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set draggable(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set draggable' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'draggable' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["draggable"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get offsetParent() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetParent' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["offsetParent"]);
- }
-
- get offsetTop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetTop' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return esValue[implSymbol]["offsetTop"];
- }
-
- get offsetLeft() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetLeft' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return esValue[implSymbol]["offsetLeft"];
- }
-
- get offsetWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetWidth' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return esValue[implSymbol]["offsetWidth"];
- }
-
- get offsetHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetHeight' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return esValue[implSymbol]["offsetHeight"];
- }
-
- get style() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get style' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.getSameObject(this, "style", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
- });
- }
-
- set style(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set style' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- const Q = esValue["style"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'style' is not an object");
- }
- Reflect.set(Q, "cssText", V);
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onauxclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
- }
-
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onauxclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onauxclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
- }
-
- get onbeforeinput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeinput' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeinput"]);
- }
-
- set onbeforeinput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeinput' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeinput' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeinput"] = V;
- }
-
- get onbeforematch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforematch' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforematch"]);
- }
-
- set onbeforematch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforematch' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforematch' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforematch"] = V;
- }
-
- get onbeforetoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforetoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforetoggle"]);
- }
-
- set onbeforetoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforetoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforetoggle' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforetoggle"] = V;
- }
-
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onblur' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
-
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onblur' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onblur' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
-
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
- }
-
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncancel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
- }
-
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
- }
-
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplay' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
- }
-
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplaythrough' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
-
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplaythrough' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplaythrough' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
-
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
- }
-
- set onchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onchange"] = V;
- }
-
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
- }
-
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onclick"] = V;
- }
-
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclose' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
-
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclose' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclose' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
-
- get oncontextlost() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextlost' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextlost"]);
- }
-
- set oncontextlost(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextlost' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextlost' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextlost"] = V;
- }
-
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextmenu' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
-
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextmenu' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextmenu' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
-
- get oncontextrestored() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextrestored' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextrestored"]);
- }
-
- set oncontextrestored(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextrestored' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextrestored' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextrestored"] = V;
- }
-
- get oncopy() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncopy' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncopy"]);
- }
-
- set oncopy(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncopy' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncopy' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncopy"] = V;
- }
-
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncuechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
-
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncuechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncuechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
-
- get oncut() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncut' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncut"]);
- }
-
- set oncut(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncut' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncut' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oncut"] = V;
- }
-
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondblclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
-
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondblclick' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondblclick' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
-
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrag' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
-
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrag' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrag' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
-
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
-
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
-
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
-
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragenter' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
-
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
-
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragleave' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
-
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragover' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
-
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragover' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
- }
-
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
-
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragstart"] = V;
- }
-
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrop' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
-
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrop' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrop' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
-
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondurationchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
-
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondurationchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondurationchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
-
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onemptied' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
- }
-
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onemptied' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onemptied' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
-
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onended' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
-
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onended' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onended' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onfocus' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
-
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onfocus' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onfocus' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
-
- get onformdata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onformdata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onformdata"]);
- }
-
- set onformdata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onformdata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onformdata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onformdata"] = V;
- }
-
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninput' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
-
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninput' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninput' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oninput"] = V;
- }
-
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninvalid' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
-
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninvalid' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninvalid' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
- }
-
- get onkeydown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeydown' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
-
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeydown' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeydown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeydown"] = V;
- }
-
- get onkeypress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeypress' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
- }
-
- set onkeypress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeypress' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeypress' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeypress"] = V;
- }
-
- get onkeyup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeyup' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
- }
-
- set onkeyup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeyup' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeyup' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onload' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onload' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
-
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadeddata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
- }
-
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadeddata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadeddata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadeddata"] = V;
- }
-
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadedmetadata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
- }
-
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadedmetadata' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadedmetadata' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadedmetadata"] = V;
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
-
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousedown' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
-
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousedown' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousedown' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
-
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
-
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseenter' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
-
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
-
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseleave' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
-
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousemove' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
-
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousemove' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousemove' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
- }
-
- get onmouseout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseout' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
- }
-
- set onmouseout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseout' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseout' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseout"] = V;
- }
-
- get onmouseover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseover' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
- }
-
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseover' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseover' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseover"] = V;
- }
-
- get onmouseup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseup' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
- }
-
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseup' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseup' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseup"] = V;
- }
-
- get onpaste() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpaste' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpaste"]);
- }
-
- set onpaste(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpaste' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpaste' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpaste"] = V;
- }
-
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpause' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
- }
-
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpause' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpause' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onpause"] = V;
- }
-
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
- }
-
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplay' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplay' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onplay"] = V;
- }
-
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplaying' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
- }
-
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplaying' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplaying' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onplaying"] = V;
- }
-
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onratechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
-
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onratechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onratechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
-
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onreset' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
-
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onreset' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreset' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
-
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onresize' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
-
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onresize' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onresize' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onresize"] = V;
- }
-
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscroll' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
- }
-
- set onscroll(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscroll' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscroll' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
- }
-
- get onscrollend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscrollend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscrollend"]);
- }
-
- set onscrollend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscrollend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscrollend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onscrollend"] = V;
- }
-
- get onsecuritypolicyviolation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
-
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
-
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeked' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
- }
-
- set onseeked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeked' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeked' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeked"] = V;
- }
-
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeking' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
- }
-
- set onseeking(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeking' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeking' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeking"] = V;
- }
-
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onselect' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
- }
-
- set onselect(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onselect' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onselect' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onselect"] = V;
- }
-
- get onslotchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onslotchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onslotchange"]);
- }
-
- set onslotchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onslotchange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onslotchange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onslotchange"] = V;
- }
-
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstalled' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
- }
-
- set onstalled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstalled' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstalled' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onstalled"] = V;
- }
-
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsubmit' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
- }
-
- set onsubmit(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsubmit' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsubmit' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsubmit"] = V;
- }
-
- get onsuspend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsuspend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
- }
-
- set onsuspend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsuspend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsuspend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onsuspend"] = V;
- }
-
- get ontimeupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontimeupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
-
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontimeupdate' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontimeupdate' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
-
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
-
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontoggle' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontoggle' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
-
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onvolumechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
-
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onvolumechange' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onvolumechange' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onvolumechange"] = V;
- }
-
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwaiting' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
- }
-
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwaiting' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwaiting' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
- }
-
- get onwebkitanimationend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationend"]);
- }
-
- set onwebkitanimationend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationend"] = V;
- }
-
- get onwebkitanimationiteration() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationiteration' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationiteration"]);
- }
-
- set onwebkitanimationiteration(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationiteration' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationiteration' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationiteration"] = V;
- }
-
- get onwebkitanimationstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationstart"]);
- }
-
- set onwebkitanimationstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationstart"] = V;
- }
-
- get onwebkittransitionend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkittransitionend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkittransitionend"]);
- }
-
- set onwebkittransitionend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkittransitionend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkittransitionend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkittransitionend"] = V;
- }
-
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwheel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
- }
-
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwheel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwheel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["onwheel"] = V;
- }
-
- get ontouchstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchstart"]);
- }
-
- set ontouchstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchstart' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchstart' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchstart"] = V;
- }
-
- get ontouchend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchend"]);
- }
-
- set ontouchend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchend' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchend' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchend"] = V;
- }
-
- get ontouchmove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchmove' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchmove"]);
- }
-
- set ontouchmove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchmove' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchmove' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchmove"] = V;
- }
-
- get ontouchcancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchcancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchcancel"]);
- }
-
- set ontouchcancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchcancel' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchcancel' property on 'HTMLElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchcancel"] = V;
- }
-
- get dataset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dataset' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- return utils.getSameObject(this, "dataset", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
- });
- }
-
- get nonce() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get nonce' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- const value = esValue[implSymbol].getAttributeNS(null, "nonce");
- return value === null ? "" : value;
- }
-
- set nonce(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set nonce' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nonce' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol].setAttributeNS(null, "nonce", V);
- }
-
- get tabIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tabIndex' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["tabIndex"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set tabIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set tabIndex' called on an object that is not a valid instance of HTMLElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'tabIndex' property on 'HTMLElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tabIndex"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLElement.prototype, {
- click: { enumerable: true },
- focus: { enumerable: true },
- blur: { enumerable: true },
- title: { enumerable: true },
- lang: { enumerable: true },
- translate: { enumerable: true },
- dir: { enumerable: true },
- hidden: { enumerable: true },
- accessKey: { enumerable: true },
- draggable: { enumerable: true },
- offsetParent: { enumerable: true },
- offsetTop: { enumerable: true },
- offsetLeft: { enumerable: true },
- offsetWidth: { enumerable: true },
- offsetHeight: { enumerable: true },
- style: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onbeforeinput: { enumerable: true },
- onbeforematch: { enumerable: true },
- onbeforetoggle: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextlost: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncontextrestored: { enumerable: true },
- oncopy: { enumerable: true },
- oncuechange: { enumerable: true },
- oncut: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- onformdata: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onpaste: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onscrollend: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onslotchange: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- onwebkitanimationend: { enumerable: true },
- onwebkitanimationiteration: { enumerable: true },
- onwebkitanimationstart: { enumerable: true },
- onwebkittransitionend: { enumerable: true },
- onwheel: { enumerable: true },
- ontouchstart: { enumerable: true },
- ontouchend: { enumerable: true },
- ontouchmove: { enumerable: true },
- ontouchcancel: { enumerable: true },
- dataset: { enumerable: true },
- nonce: { enumerable: true },
- tabIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLElement
- });
-};
-
-const Impl = __nccwpck_require__(74792);
-
-
-/***/ }),
-
-/***/ 69311:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLEmbedElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLEmbedElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLEmbedElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLEmbedElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLEmbedElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLEmbedElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLEmbedElement.prototype, {
- src: { enumerable: true },
- type: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- align: { enumerable: true },
- name: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLEmbedElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLEmbedElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLEmbedElement
- });
-};
-
-const Impl = __nccwpck_require__(19666);
-
-
-/***/ }),
-
-/***/ 37530:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLFieldSetElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFieldSetElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFieldSetElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFieldSetElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLFieldSetElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFieldSetElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get elements() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get elements' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return utils.getSameObject(this, "elements", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
- });
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return utils.getSameObject(this, "validity", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- });
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLFieldSetElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
- }
- Object.defineProperties(HTMLFieldSetElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- elements: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFieldSetElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLFieldSetElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFieldSetElement
- });
-};
-
-const Impl = __nccwpck_require__(97711);
-
-
-/***/ }),
-
-/***/ 91275:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLFontElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFontElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFontElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFontElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get color() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get color' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "color");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set color(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set color' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'color' property on 'HTMLFontElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "color", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get face() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get face' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "face");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set face(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set face' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'face' property on 'HTMLFontElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "face", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get size' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "size");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set size(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set size' called on an object that is not a valid instance of HTMLFontElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'size' property on 'HTMLFontElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "size", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLFontElement.prototype, {
- color: { enumerable: true },
- face: { enumerable: true },
- size: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFontElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLFontElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFontElement
- });
-};
-
-const Impl = __nccwpck_require__(13695);
-
-
-/***/ }),
-
-/***/ 63651:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLCollection = __nccwpck_require__(49672);
-
-const interfaceName = "HTMLFormControlsCollection";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFormControlsCollection'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFormControlsCollection"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLCollection._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFormControlsCollection extends globalObject.HTMLCollection {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'namedItem' called on an object that is not a valid instance of HTMLFormControlsCollection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'HTMLFormControlsCollection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'HTMLFormControlsCollection': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
- }
- }
- Object.defineProperties(HTMLFormControlsCollection.prototype, {
- namedItem: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFormControlsCollection", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = HTMLFormControlsCollection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFormControlsCollection
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- const namedValue = target[implSymbol].namedItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].namedItem(P) !== null);
- if (!creating) {
- return false;
- }
- }
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
- return false;
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(73220);
-
-
-/***/ }),
-
-/***/ 37670:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "HTMLFormElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFormElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFormElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFormElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- submit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'submit' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- return esValue[implSymbol].submit();
- }
-
- requestSubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'requestSubmit' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = HTMLElement.convert(globalObject, curArg, {
- context: "Failed to execute 'requestSubmit' on 'HTMLFormElement': parameter 1"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].requestSubmit(...args);
- }
-
- reset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reset' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].reset();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- get acceptCharset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get acceptCharset' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "accept-charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set acceptCharset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set acceptCharset' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'acceptCharset' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "accept-charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get action() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get action' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["action"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set action(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set action' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'action' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["action"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get enctype() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get enctype' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["enctype"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set enctype(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set enctype' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'enctype' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["enctype"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get method() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get method' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["method"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set method(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set method' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'method' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["method"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get noValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get noValidate' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "novalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set noValidate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set noValidate' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noValidate' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "novalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "novalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set target' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLFormElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get elements() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get elements' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- return utils.getSameObject(this, "elements", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["elements"]);
- });
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of HTMLFormElement."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(HTMLFormElement.prototype, {
- submit: { enumerable: true },
- requestSubmit: { enumerable: true },
- reset: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- acceptCharset: { enumerable: true },
- action: { enumerable: true },
- enctype: { enumerable: true },
- method: { enumerable: true },
- name: { enumerable: true },
- noValidate: { enumerable: true },
- target: { enumerable: true },
- elements: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFormElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLFormElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFormElement
- });
-};
-
-const Impl = __nccwpck_require__(43073);
-
-
-/***/ }),
-
-/***/ 95659:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLFrameElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFrameElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFrameElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFrameElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scrolling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrolling' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scrolling(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrolling' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scrolling' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "scrolling", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get frameBorder() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get frameBorder' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set frameBorder(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set frameBorder' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'frameBorder' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "frameborder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get longDesc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get longDesc' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set longDesc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set longDesc' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get noResize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get noResize' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "noresize");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set noResize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set noResize' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noResize' property on 'HTMLFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "noresize", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "noresize");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get contentDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
- }
-
- get contentWindow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentWindow' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
- }
-
- get marginHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get marginHeight' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set marginHeight(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set marginHeight' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginHeight' property on 'HTMLFrameElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginheight", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get marginWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get marginWidth' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set marginWidth(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set marginWidth' called on an object that is not a valid instance of HTMLFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginWidth' property on 'HTMLFrameElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLFrameElement.prototype, {
- name: { enumerable: true },
- scrolling: { enumerable: true },
- src: { enumerable: true },
- frameBorder: { enumerable: true },
- longDesc: { enumerable: true },
- noResize: { enumerable: true },
- contentDocument: { enumerable: true },
- contentWindow: { enumerable: true },
- marginHeight: { enumerable: true },
- marginWidth: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFrameElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLFrameElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFrameElement
- });
-};
-
-const Impl = __nccwpck_require__(16634);
-
-
-/***/ }),
-
-/***/ 336:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLFrameSetElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLFrameSetElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLFrameSetElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLFrameSetElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get cols() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cols' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "cols");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cols(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cols' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'cols' property on 'HTMLFrameSetElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "cols", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rows() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rows' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rows");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rows(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rows' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rows' property on 'HTMLFrameSetElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rows", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get onafterprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
- }
-
- set onafterprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onafterprint' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onafterprint"] = V;
- }
-
- get onbeforeprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
- }
-
- set onbeforeprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeprint' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeprint"] = V;
- }
-
- get onbeforeunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
- }
-
- set onbeforeunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeunload' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeunload"] = V;
- }
-
- get onhashchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
- }
-
- set onhashchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onhashchange' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onhashchange"] = V;
- }
-
- get onlanguagechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
- }
-
- set onlanguagechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onlanguagechange' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onlanguagechange"] = V;
- }
-
- get onmessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessage' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
- }
-
- set onmessage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessage' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessage' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
- }
-
- get onmessageerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
- }
-
- set onmessageerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessageerror' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessageerror"] = V;
- }
-
- get onoffline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onoffline' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
- }
-
- set onoffline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onoffline' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onoffline' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onoffline"] = V;
- }
-
- get ononline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ononline' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
- }
-
- set ononline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ononline' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ononline' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["ononline"] = V;
- }
-
- get onpagehide() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
- }
-
- set onpagehide(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpagehide' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onpagehide"] = V;
- }
-
- get onpageshow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
- }
-
- set onpageshow(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpageshow' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onpageshow"] = V;
- }
-
- get onpopstate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
- }
-
- set onpopstate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpopstate' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onpopstate"] = V;
- }
-
- get onrejectionhandled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
- }
-
- set onrejectionhandled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onrejectionhandled' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onrejectionhandled"] = V;
- }
-
- get onstorage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstorage' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
- }
-
- set onstorage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstorage' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstorage' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onstorage"] = V;
- }
-
- get onunhandledrejection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
- }
-
- set onunhandledrejection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunhandledrejection' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onunhandledrejection"] = V;
- }
-
- get onunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
- }
-
- set onunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunload' called on an object that is not a valid instance of HTMLFrameSetElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunload' property on 'HTMLFrameSetElement': The provided value"
- });
- }
- esValue[implSymbol]["onunload"] = V;
- }
- }
- Object.defineProperties(HTMLFrameSetElement.prototype, {
- cols: { enumerable: true },
- rows: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLFrameSetElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLFrameSetElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLFrameSetElement
- });
-};
-
-const Impl = __nccwpck_require__(13449);
-
-
-/***/ }),
-
-/***/ 18121:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHRElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLHRElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLHRElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLHRElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLHRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get color() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get color' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "color");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set color(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set color' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'color' property on 'HTMLHRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "color", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get noShade() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get noShade' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "noshade");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set noShade(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set noShade' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noShade' property on 'HTMLHRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "noshade", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "noshade");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get size' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "size");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set size(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set size' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'size' property on 'HTMLHRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "size", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLHRElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLHRElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLHRElement.prototype, {
- align: { enumerable: true },
- color: { enumerable: true },
- noShade: { enumerable: true },
- size: { enumerable: true },
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHRElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLHRElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHRElement
- });
-};
-
-const Impl = __nccwpck_require__(96676);
-
-
-/***/ }),
-
-/***/ 46196:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHeadElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLHeadElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLHeadElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLHeadElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- }
- Object.defineProperties(HTMLHeadElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLHeadElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLHeadElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHeadElement
- });
-};
-
-const Impl = __nccwpck_require__(25475);
-
-
-/***/ }),
-
-/***/ 92272:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHeadingElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLHeadingElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLHeadingElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLHeadingElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLHeadingElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLHeadingElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLHeadingElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLHeadingElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHeadingElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLHeadingElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHeadingElement
- });
-};
-
-const Impl = __nccwpck_require__(82223);
-
-
-/***/ }),
-
-/***/ 2146:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLHtmlElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLHtmlElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLHtmlElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLHtmlElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get version() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get version' called on an object that is not a valid instance of HTMLHtmlElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "version");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set version(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set version' called on an object that is not a valid instance of HTMLHtmlElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'version' property on 'HTMLHtmlElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "version", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLHtmlElement.prototype, {
- version: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLHtmlElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLHtmlElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLHtmlElement
- });
-};
-
-const Impl = __nccwpck_require__(64679);
-
-
-/***/ }),
-
-/***/ 46873:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLIFrameElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLIFrameElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLIFrameElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLIFrameElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- getSVGDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getSVGDocument' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].getSVGDocument());
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get srcdoc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get srcdoc' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcdoc");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set srcdoc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set srcdoc' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'srcdoc' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srcdoc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get allowFullscreen() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "allowfullscreen");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set allowFullscreen(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'allowFullscreen' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "allowfullscreen", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "allowfullscreen");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get contentDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
- }
-
- get contentWindow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentWindow' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scrolling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrolling' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "scrolling");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scrolling(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrolling' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scrolling' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "scrolling", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get frameBorder() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get frameBorder' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "frameborder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set frameBorder(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set frameBorder' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'frameBorder' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "frameborder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get longDesc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get longDesc' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set longDesc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set longDesc' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get marginHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginheight");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set marginHeight(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginHeight' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginheight", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get marginWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get marginWidth' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "marginwidth");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set marginWidth(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set marginWidth' called on an object that is not a valid instance of HTMLIFrameElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'marginWidth' property on 'HTMLIFrameElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "marginwidth", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLIFrameElement.prototype, {
- getSVGDocument: { enumerable: true },
- src: { enumerable: true },
- srcdoc: { enumerable: true },
- name: { enumerable: true },
- allowFullscreen: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- contentDocument: { enumerable: true },
- contentWindow: { enumerable: true },
- align: { enumerable: true },
- scrolling: { enumerable: true },
- frameBorder: { enumerable: true },
- longDesc: { enumerable: true },
- marginHeight: { enumerable: true },
- marginWidth: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLIFrameElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLIFrameElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLIFrameElement
- });
-};
-
-const Impl = __nccwpck_require__(10168);
-
-
-/***/ }),
-
-/***/ 69785:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLImageElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLImageElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLImageElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLImageElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get alt() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get alt' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set alt(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set alt' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get srcset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get srcset' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcset");
- return value === null ? "" : conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set srcset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set srcset' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'srcset' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srcset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get sizes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get sizes' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "sizes");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set sizes(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set sizes' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'sizes' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "sizes", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get crossOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get crossOrigin' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set crossOrigin(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set crossOrigin' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get useMap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get useMap' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set useMap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set useMap' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get isMap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get isMap' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "ismap");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set isMap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set isMap' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'isMap' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "ismap", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "ismap");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["width"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["width"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["height"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["height"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get naturalWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get naturalWidth' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- return esValue[implSymbol]["naturalWidth"];
- }
-
- get naturalHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get naturalHeight' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- return esValue[implSymbol]["naturalHeight"];
- }
-
- get complete() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get complete' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- return esValue[implSymbol]["complete"];
- }
-
- get currentSrc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentSrc' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- return esValue[implSymbol]["currentSrc"];
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get lowsrc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lowsrc' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "lowsrc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set lowsrc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set lowsrc' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'lowsrc' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "lowsrc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hspace' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hspace' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vspace' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "vspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vspace' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get longDesc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get longDesc' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "longdesc");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set longDesc(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set longDesc' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'longDesc' property on 'HTMLImageElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "longdesc", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get border() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get border' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set border(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set border' called on an object that is not a valid instance of HTMLImageElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLImageElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLImageElement.prototype, {
- alt: { enumerable: true },
- src: { enumerable: true },
- srcset: { enumerable: true },
- sizes: { enumerable: true },
- crossOrigin: { enumerable: true },
- useMap: { enumerable: true },
- isMap: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- naturalWidth: { enumerable: true },
- naturalHeight: { enumerable: true },
- complete: { enumerable: true },
- currentSrc: { enumerable: true },
- name: { enumerable: true },
- lowsrc: { enumerable: true },
- align: { enumerable: true },
- hspace: { enumerable: true },
- vspace: { enumerable: true },
- longDesc: { enumerable: true },
- border: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLImageElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLImageElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLImageElement
- });
-};
-
-const Impl = __nccwpck_require__(99033);
-
-
-/***/ }),
-
-/***/ 95472:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const SelectionMode = __nccwpck_require__(12458);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const FileList = __nccwpck_require__(51414);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLInputElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLInputElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLInputElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLInputElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- stepUp() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'stepUp' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'stepUp' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = 1;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].stepUp(...args);
- }
-
- stepDown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'stepDown' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'stepDown' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = 1;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].stepDown(...args);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- select() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'select' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol].select();
- }
-
- setRangeText(replacement) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setRangeText' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setRangeText' on 'HTMLInputElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- switch (arguments.length) {
- case 1:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- case 2:
- throw new globalObject.TypeError(
- `Failed to execute 'setRangeText' on 'HTMLInputElement': only ${arguments.length} arguments present.`
- );
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = SelectionMode.convert(globalObject, curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLInputElement': parameter 4"
- });
- } else {
- curArg = "preserve";
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].setRangeText(...args);
- }
-
- setSelectionRange(start, end) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setSelectionRange' on 'HTMLInputElement': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLInputElement': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].setSelectionRange(...args);
- }
-
- get accept() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get accept' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "accept");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set accept(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set accept' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'accept' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "accept", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get alt() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get alt' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "alt");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set alt(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set alt' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'alt' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "alt", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get autocomplete() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autocomplete' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autocomplete(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autocomplete' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'autocomplete' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get autofocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autofocus' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autofocus' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get defaultChecked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "checked");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultChecked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultChecked' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "checked", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "checked");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get checked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get checked' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["checked"];
- }
-
- set checked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set checked' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'checked' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["checked"] = V;
- }
-
- get dirName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dirName' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "dirname");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dirName(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set dirName' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dirName' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "dirname", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get files() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get files' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["files"]);
- }
-
- set files(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set files' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = FileList.convert(globalObject, V, {
- context: "Failed to set the 'files' property on 'HTMLInputElement': The provided value"
- });
- }
- esValue[implSymbol]["files"] = V;
- }
-
- get formNoValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "formnovalidate");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set formNoValidate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'formNoValidate' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "formnovalidate", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "formnovalidate");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get formTarget() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get formTarget' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "formtarget");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set formTarget(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set formTarget' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'formTarget' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "formtarget", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get indeterminate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["indeterminate"];
- }
-
- set indeterminate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'indeterminate' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["indeterminate"] = V;
- }
-
- get inputMode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get inputMode' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set inputMode(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set inputMode' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'inputMode' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "inputmode", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get list() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get list' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["list"]);
- }
-
- get max() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get max' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "max");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set max(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set max' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'max' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "max", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get maxLength() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get maxLength' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["maxLength"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set maxLength(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set maxLength' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["maxLength"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get min() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get min' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "min");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set min(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set min' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'min' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "min", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get minLength() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get minLength' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["minLength"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set minLength(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set minLength' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'minLength' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["minLength"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get multiple() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get multiple' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "multiple");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set multiple(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set multiple' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'multiple' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "multiple", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "multiple");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get pattern() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pattern' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "pattern");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set pattern(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set pattern' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'pattern' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "pattern", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get placeholder() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get placeholder' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set placeholder(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set placeholder' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'placeholder' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "placeholder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get readOnly() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readOnly' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "readonly");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set readOnly(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set readOnly' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'readOnly' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "readonly", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "readonly");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get required() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get required' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set required(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set required' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get size' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["size"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set size(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set size' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'size' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["size"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get step() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get step' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "step");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set step(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set step' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'step' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "step", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["type"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["type"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get defaultValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultValue' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultValue(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultValue' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLInputElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get valueAsDate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["valueAsDate"];
- }
-
- set valueAsDate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["object"](V, {
- context: "Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
- }
- esValue[implSymbol]["valueAsDate"] = V;
- }
-
- get valueAsNumber() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["valueAsNumber"];
- }
-
- set valueAsNumber(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["unrestricted double"](V, {
- context: "Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["valueAsNumber"] = V;
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
-
- get selectionStart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["selectionStart"];
- }
-
- set selectionStart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionStart' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
- }
- esValue[implSymbol]["selectionStart"] = V;
- }
-
- get selectionEnd() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["selectionEnd"];
- }
-
- set selectionEnd(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionEnd' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
- }
- esValue[implSymbol]["selectionEnd"] = V;
- }
-
- get selectionDirection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- return esValue[implSymbol]["selectionDirection"];
- }
-
- set selectionDirection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'selectionDirection' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
- }
- esValue[implSymbol]["selectionDirection"] = V;
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get useMap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get useMap' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set useMap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set useMap' called on an object that is not a valid instance of HTMLInputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLInputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLInputElement.prototype, {
- stepUp: { enumerable: true },
- stepDown: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- select: { enumerable: true },
- setRangeText: { enumerable: true },
- setSelectionRange: { enumerable: true },
- accept: { enumerable: true },
- alt: { enumerable: true },
- autocomplete: { enumerable: true },
- autofocus: { enumerable: true },
- defaultChecked: { enumerable: true },
- checked: { enumerable: true },
- dirName: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- files: { enumerable: true },
- formNoValidate: { enumerable: true },
- formTarget: { enumerable: true },
- indeterminate: { enumerable: true },
- inputMode: { enumerable: true },
- list: { enumerable: true },
- max: { enumerable: true },
- maxLength: { enumerable: true },
- min: { enumerable: true },
- minLength: { enumerable: true },
- multiple: { enumerable: true },
- name: { enumerable: true },
- pattern: { enumerable: true },
- placeholder: { enumerable: true },
- readOnly: { enumerable: true },
- required: { enumerable: true },
- size: { enumerable: true },
- src: { enumerable: true },
- step: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- valueAsDate: { enumerable: true },
- valueAsNumber: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- selectionStart: { enumerable: true },
- selectionEnd: { enumerable: true },
- selectionDirection: { enumerable: true },
- align: { enumerable: true },
- useMap: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLInputElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLInputElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLInputElement
- });
-};
-
-const Impl = __nccwpck_require__(9673);
-
-
-/***/ }),
-
-/***/ 46621:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLLIElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLLIElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLLIElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLLIElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLLIElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "value");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLLIElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'value' property on 'HTMLLIElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", String(V));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLLIElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLLIElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLLIElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLLIElement.prototype, {
- value: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLIElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLLIElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLLIElement
- });
-};
-
-const Impl = __nccwpck_require__(22153);
-
-
-/***/ }),
-
-/***/ 53321:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLLabelElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLLabelElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLLabelElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLLabelElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLLabelElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get htmlFor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get htmlFor' called on an object that is not a valid instance of HTMLLabelElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "for");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set htmlFor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set htmlFor' called on an object that is not a valid instance of HTMLLabelElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'htmlFor' property on 'HTMLLabelElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "for", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get control() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get control' called on an object that is not a valid instance of HTMLLabelElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["control"]);
- }
- }
- Object.defineProperties(HTMLLabelElement.prototype, {
- form: { enumerable: true },
- htmlFor: { enumerable: true },
- control: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLabelElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLLabelElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLLabelElement
- });
-};
-
-const Impl = __nccwpck_require__(82353);
-
-
-/***/ }),
-
-/***/ 66649:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLLegendElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLLegendElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLLegendElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLLegendElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLLegendElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLLegendElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLLegendElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLLegendElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLLegendElement.prototype, {
- form: { enumerable: true },
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLegendElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLLegendElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLLegendElement
- });
-};
-
-const Impl = __nccwpck_require__(21287);
-
-
-/***/ }),
-
-/***/ 14914:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLLinkElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLLinkElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLLinkElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLLinkElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get href' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "href");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set href' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "href", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get crossOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get crossOrigin' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set crossOrigin(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set crossOrigin' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rel' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rel");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rel' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rel' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rel", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get relList() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get relList' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- return utils.getSameObject(this, "relList", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["relList"]);
- });
- }
-
- set relList(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set relList' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- const Q = esValue["relList"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'relList' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
-
- get media() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get media' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set media(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set media' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hreflang() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hreflang' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "hreflang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hreflang(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hreflang' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'hreflang' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "hreflang", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get charset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get charset' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set charset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set charset' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rev() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rev' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rev");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rev(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rev' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rev' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rev", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "target");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set target(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set target' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'target' property on 'HTMLLinkElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "target", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get sheet() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get sheet' called on an object that is not a valid instance of HTMLLinkElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
- }
- }
- Object.defineProperties(HTMLLinkElement.prototype, {
- href: { enumerable: true },
- crossOrigin: { enumerable: true },
- rel: { enumerable: true },
- relList: { enumerable: true },
- media: { enumerable: true },
- hreflang: { enumerable: true },
- type: { enumerable: true },
- charset: { enumerable: true },
- rev: { enumerable: true },
- target: { enumerable: true },
- sheet: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLLinkElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLLinkElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLLinkElement
- });
-};
-
-const Impl = __nccwpck_require__(23206);
-
-
-/***/ }),
-
-/***/ 38553:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMapElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMapElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMapElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMapElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLMapElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLMapElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLMapElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get areas() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get areas' called on an object that is not a valid instance of HTMLMapElement."
- );
- }
-
- return utils.getSameObject(this, "areas", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["areas"]);
- });
- }
- }
- Object.defineProperties(HTMLMapElement.prototype, {
- name: { enumerable: true },
- areas: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMapElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLMapElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMapElement
- });
-};
-
-const Impl = __nccwpck_require__(18340);
-
-
-/***/ }),
-
-/***/ 7617:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMarqueeElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMarqueeElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMarqueeElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMarqueeElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get behavior() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get behavior' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "behavior");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set behavior(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set behavior' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'behavior' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "behavior", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bgColor' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set bgColor' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get direction() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get direction' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "direction");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set direction(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set direction' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'direction' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "direction", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hspace' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hspace' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scrollAmount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "scrollamount");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scrollAmount(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'scrollAmount' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "scrollamount", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scrollDelay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "scrolldelay");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scrollDelay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'scrollDelay' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "scrolldelay", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get trueSpeed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "truespeed");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set trueSpeed(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'trueSpeed' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "truespeed", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "truespeed");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vspace' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "vspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vspace' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLMarqueeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLMarqueeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLMarqueeElement.prototype, {
- behavior: { enumerable: true },
- bgColor: { enumerable: true },
- direction: { enumerable: true },
- height: { enumerable: true },
- hspace: { enumerable: true },
- scrollAmount: { enumerable: true },
- scrollDelay: { enumerable: true },
- trueSpeed: { enumerable: true },
- vspace: { enumerable: true },
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMarqueeElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLMarqueeElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMarqueeElement
- });
-};
-
-const Impl = __nccwpck_require__(61238);
-
-
-/***/ }),
-
-/***/ 61639:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const TextTrackKind = __nccwpck_require__(57191);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMediaElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMediaElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMediaElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMediaElement extends globalObject.HTMLElement {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- load() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'load' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol].load();
- }
-
- canPlayType(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'canPlayType' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'canPlayType' on 'HTMLMediaElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'canPlayType' on 'HTMLMediaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].canPlayType(...args));
- }
-
- play() {
- try {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'play' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].play());
- } catch (e) {
- return globalObject.Promise.reject(e);
- }
- }
-
- pause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'pause' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol].pause();
- }
-
- addTextTrack(kind) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'addTextTrack' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = TextTrackKind.convert(globalObject, curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'addTextTrack' on 'HTMLMediaElement': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].addTextTrack(...args));
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get currentSrc() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentSrc' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["currentSrc"];
- }
-
- get crossOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get crossOrigin' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set crossOrigin(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set crossOrigin' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get networkState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get networkState' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["networkState"];
- }
-
- get preload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get preload' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "preload");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set preload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set preload' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'preload' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "preload", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get buffered() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get buffered' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["buffered"]);
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["readyState"];
- }
-
- get seeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get seeking' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["seeking"];
- }
-
- get currentTime() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentTime' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["currentTime"];
- }
-
- set currentTime(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set currentTime' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["currentTime"] = V;
- }
-
- get duration() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get duration' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["duration"];
- }
-
- get paused() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get paused' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["paused"];
- }
-
- get defaultPlaybackRate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["defaultPlaybackRate"];
- }
-
- set defaultPlaybackRate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["defaultPlaybackRate"] = V;
- }
-
- get playbackRate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get playbackRate' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["playbackRate"];
- }
-
- set playbackRate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set playbackRate' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["playbackRate"] = V;
- }
-
- get played() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get played' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["played"]);
- }
-
- get seekable() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get seekable' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["seekable"]);
- }
-
- get ended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ended' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["ended"];
- }
-
- get autoplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autoplay' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autoplay");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autoplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autoplay' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autoplay' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autoplay", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autoplay");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get loop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get loop' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "loop");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set loop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set loop' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'loop' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "loop", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "loop");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get controls() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get controls' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "controls");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set controls(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set controls' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'controls' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "controls", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "controls");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get volume() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get volume' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["volume"];
- }
-
- set volume(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set volume' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'volume' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["volume"] = V;
- }
-
- get muted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get muted' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return esValue[implSymbol]["muted"];
- }
-
- set muted(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set muted' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'muted' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["muted"] = V;
- }
-
- get defaultMuted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultMuted' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "muted");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultMuted(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultMuted' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultMuted' property on 'HTMLMediaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "muted", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "muted");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get audioTracks() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get audioTracks' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.getSameObject(this, "audioTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["audioTracks"]);
- });
- }
-
- get videoTracks() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get videoTracks' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.getSameObject(this, "videoTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["videoTracks"]);
- });
- }
-
- get textTracks() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get textTracks' called on an object that is not a valid instance of HTMLMediaElement."
- );
- }
-
- return utils.getSameObject(this, "textTracks", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["textTracks"]);
- });
- }
- }
- Object.defineProperties(HTMLMediaElement.prototype, {
- load: { enumerable: true },
- canPlayType: { enumerable: true },
- play: { enumerable: true },
- pause: { enumerable: true },
- addTextTrack: { enumerable: true },
- src: { enumerable: true },
- currentSrc: { enumerable: true },
- crossOrigin: { enumerable: true },
- networkState: { enumerable: true },
- preload: { enumerable: true },
- buffered: { enumerable: true },
- readyState: { enumerable: true },
- seeking: { enumerable: true },
- currentTime: { enumerable: true },
- duration: { enumerable: true },
- paused: { enumerable: true },
- defaultPlaybackRate: { enumerable: true },
- playbackRate: { enumerable: true },
- played: { enumerable: true },
- seekable: { enumerable: true },
- ended: { enumerable: true },
- autoplay: { enumerable: true },
- loop: { enumerable: true },
- controls: { enumerable: true },
- volume: { enumerable: true },
- muted: { enumerable: true },
- defaultMuted: { enumerable: true },
- audioTracks: { enumerable: true },
- videoTracks: { enumerable: true },
- textTracks: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMediaElement", configurable: true },
- NETWORK_EMPTY: { value: 0, enumerable: true },
- NETWORK_IDLE: { value: 1, enumerable: true },
- NETWORK_LOADING: { value: 2, enumerable: true },
- NETWORK_NO_SOURCE: { value: 3, enumerable: true },
- HAVE_NOTHING: { value: 0, enumerable: true },
- HAVE_METADATA: { value: 1, enumerable: true },
- HAVE_CURRENT_DATA: { value: 2, enumerable: true },
- HAVE_FUTURE_DATA: { value: 3, enumerable: true },
- HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
- });
- Object.defineProperties(HTMLMediaElement, {
- NETWORK_EMPTY: { value: 0, enumerable: true },
- NETWORK_IDLE: { value: 1, enumerable: true },
- NETWORK_LOADING: { value: 2, enumerable: true },
- NETWORK_NO_SOURCE: { value: 3, enumerable: true },
- HAVE_NOTHING: { value: 0, enumerable: true },
- HAVE_METADATA: { value: 1, enumerable: true },
- HAVE_CURRENT_DATA: { value: 2, enumerable: true },
- HAVE_FUTURE_DATA: { value: 3, enumerable: true },
- HAVE_ENOUGH_DATA: { value: 4, enumerable: true }
- });
- ctorRegistry[interfaceName] = HTMLMediaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMediaElement
- });
-};
-
-const Impl = __nccwpck_require__(78090);
-
-
-/***/ }),
-
-/***/ 89976:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMenuElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMenuElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMenuElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMenuElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get compact() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compact' called on an object that is not a valid instance of HTMLMenuElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set compact(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set compact' called on an object that is not a valid instance of HTMLMenuElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLMenuElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLMenuElement.prototype, {
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMenuElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLMenuElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMenuElement
- });
-};
-
-const Impl = __nccwpck_require__(91149);
-
-
-/***/ }),
-
-/***/ 28277:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMetaElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMetaElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMetaElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMetaElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLMetaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get httpEquiv() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get httpEquiv' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "http-equiv");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set httpEquiv(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set httpEquiv' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'httpEquiv' property on 'HTMLMetaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "http-equiv", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get content() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get content' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "content");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set content(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set content' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'content' property on 'HTMLMetaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "content", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get scheme() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scheme' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "scheme");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scheme(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scheme' called on an object that is not a valid instance of HTMLMetaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scheme' property on 'HTMLMetaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "scheme", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLMetaElement.prototype, {
- name: { enumerable: true },
- httpEquiv: { enumerable: true },
- content: { enumerable: true },
- scheme: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMetaElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLMetaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMetaElement
- });
-};
-
-const Impl = __nccwpck_require__(40776);
-
-
-/***/ }),
-
-/***/ 63302:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLMeterElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLMeterElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLMeterElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLMeterElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'value' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get min() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get min' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["min"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set min(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set min' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'min' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["min"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get max() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get max' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["max"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set max(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set max' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'max' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["max"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get low() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get low' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["low"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set low(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set low' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'low' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["low"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get high() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get high' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["high"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set high(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set high' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'high' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["high"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get optimum() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get optimum' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["optimum"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set optimum(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set optimum' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'optimum' property on 'HTMLMeterElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["optimum"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLMeterElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
- }
- Object.defineProperties(HTMLMeterElement.prototype, {
- value: { enumerable: true },
- min: { enumerable: true },
- max: { enumerable: true },
- low: { enumerable: true },
- high: { enumerable: true },
- optimum: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLMeterElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLMeterElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLMeterElement
- });
-};
-
-const Impl = __nccwpck_require__(80737);
-
-
-/***/ }),
-
-/***/ 34615:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLModElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLModElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLModElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLModElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get cite() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cite' called on an object that is not a valid instance of HTMLModElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "cite");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cite(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cite' called on an object that is not a valid instance of HTMLModElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'cite' property on 'HTMLModElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "cite", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get dateTime() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dateTime' called on an object that is not a valid instance of HTMLModElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "datetime");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dateTime(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set dateTime' called on an object that is not a valid instance of HTMLModElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dateTime' property on 'HTMLModElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "datetime", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLModElement.prototype, {
- cite: { enumerable: true },
- dateTime: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLModElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLModElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLModElement
- });
-};
-
-const Impl = __nccwpck_require__(36105);
-
-
-/***/ }),
-
-/***/ 15739:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLOListElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLOListElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLOListElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLOListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get reversed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get reversed' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "reversed");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set reversed(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set reversed' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'reversed' property on 'HTMLOListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "reversed", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "reversed");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get start() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get start' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["start"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set start(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set start' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'start' property on 'HTMLOListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["start"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLOListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get compact() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compact' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set compact(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set compact' called on an object that is not a valid instance of HTMLOListElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLOListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLOListElement.prototype, {
- reversed: { enumerable: true },
- start: { enumerable: true },
- type: { enumerable: true },
- compact: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOListElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLOListElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOListElement
- });
-};
-
-const Impl = __nccwpck_require__(94999);
-
-
-/***/ }),
-
-/***/ 62055:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLObjectElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLObjectElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLObjectElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLObjectElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLObjectElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLObjectElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get data' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "data");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set data(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set data' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'data' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "data", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get useMap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get useMap' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "usemap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set useMap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set useMap' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'useMap' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "usemap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get contentDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get contentDocument' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get archive() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get archive' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "archive");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set archive(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set archive' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'archive' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "archive", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get code() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get code' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "code");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set code(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set code' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'code' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "code", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get declare() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get declare' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "declare");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set declare(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set declare' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'declare' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "declare", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "declare");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get hspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hspace' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "hspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set hspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hspace' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'hspace' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "hspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get standby() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get standby' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "standby");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set standby(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set standby' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'standby' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "standby", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vspace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vspace' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "vspace");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vspace(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vspace' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'vspace' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "vspace", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get codeBase() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get codeBase' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "codebase");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set codeBase(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set codeBase' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'codeBase' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "codebase", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get codeType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get codeType' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "codetype");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set codeType(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set codeType' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'codeType' property on 'HTMLObjectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "codetype", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get border() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get border' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set border(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set border' called on an object that is not a valid instance of HTMLObjectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLObjectElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLObjectElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- data: { enumerable: true },
- type: { enumerable: true },
- name: { enumerable: true },
- useMap: { enumerable: true },
- form: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- contentDocument: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- align: { enumerable: true },
- archive: { enumerable: true },
- code: { enumerable: true },
- declare: { enumerable: true },
- hspace: { enumerable: true },
- standby: { enumerable: true },
- vspace: { enumerable: true },
- codeBase: { enumerable: true },
- codeType: { enumerable: true },
- border: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLObjectElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLObjectElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLObjectElement
- });
-};
-
-const Impl = __nccwpck_require__(71860);
-
-
-/***/ }),
-
-/***/ 52880:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLOptGroupElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLOptGroupElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLOptGroupElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLOptGroupElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLOptGroupElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLOptGroupElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLOptGroupElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get label() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get label' called on an object that is not a valid instance of HTMLOptGroupElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "label");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set label(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set label' called on an object that is not a valid instance of HTMLOptGroupElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLOptGroupElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "label", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLOptGroupElement.prototype, {
- disabled: { enumerable: true },
- label: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptGroupElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLOptGroupElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOptGroupElement
- });
-};
-
-const Impl = __nccwpck_require__(93030);
-
-
-/***/ }),
-
-/***/ 26617:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLOptionElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLOptionElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLOptionElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLOptionElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get label() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get label' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["label"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set label(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set label' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["label"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get defaultSelected() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "selected");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultSelected(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defaultSelected' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "selected", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "selected");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get selected() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selected' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- return esValue[implSymbol]["selected"];
- }
-
- set selected(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selected' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'selected' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selected"] = V;
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get text' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["text"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set text' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLOptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["text"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get index() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get index' called on an object that is not a valid instance of HTMLOptionElement."
- );
- }
-
- return esValue[implSymbol]["index"];
- }
- }
- Object.defineProperties(HTMLOptionElement.prototype, {
- disabled: { enumerable: true },
- form: { enumerable: true },
- label: { enumerable: true },
- defaultSelected: { enumerable: true },
- selected: { enumerable: true },
- value: { enumerable: true },
- text: { enumerable: true },
- index: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptionElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLOptionElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOptionElement
- });
-};
-
-const Impl = __nccwpck_require__(72401);
-
-
-/***/ }),
-
-/***/ 58383:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLOptionElement = __nccwpck_require__(26617);
-const HTMLOptGroupElement = __nccwpck_require__(52880);
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLCollection = __nccwpck_require__(49672);
-
-const interfaceName = "HTMLOptionsCollection";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLOptionsCollection'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLOptionsCollection"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLCollection._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLOptionsCollection extends globalObject.HTMLCollection {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- add(element) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'add' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'add' on 'HTMLOptionsCollection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- throw new globalObject.TypeError(
- "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (HTMLElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (typeof curArg === "number") {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLOptionsCollection': parameter 2",
- globals: globalObject
- });
- }
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'remove' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'remove' on 'HTMLOptionsCollection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'remove' on 'HTMLOptionsCollection': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["length"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set length(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set length' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'length' property on 'HTMLOptionsCollection': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["length"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get selectedIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- return esValue[implSymbol]["selectedIndex"];
- }
-
- set selectedIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'selectedIndex' property on 'HTMLOptionsCollection': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selectedIndex"] = V;
- }
- }
- Object.defineProperties(HTMLOptionsCollection.prototype, {
- add: { enumerable: true },
- remove: { enumerable: true },
- length: { enumerable: true },
- selectedIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOptionsCollection", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = HTMLOptionsCollection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOptionsCollection
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- const namedValue = target[implSymbol].namedItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
-
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(globalObject, indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
- }
-
- const index = P >>> 0;
- let indexedValue = desc.value;
-
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(globalObject, indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLOptionsCollection': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].namedItem(P) !== null);
- if (!creating) {
- return false;
- }
- }
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- if (target[implSymbol].namedItem(P) !== null && !(P in target)) {
- return false;
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(35);
-
-
-/***/ }),
-
-/***/ 49514:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLOutputElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLOutputElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLOutputElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLOutputElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLOutputElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLOutputElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get htmlFor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get htmlFor' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return utils.getSameObject(this, "htmlFor", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["htmlFor"]);
- });
- }
-
- set htmlFor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set htmlFor' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- const Q = esValue["htmlFor"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'htmlFor' is not an object");
- }
- Reflect.set(Q, "value", V);
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLOutputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get defaultValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["defaultValue"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultValue(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLOutputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["defaultValue"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLOutputElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLOutputElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
- }
- Object.defineProperties(HTMLOutputElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- htmlFor: { enumerable: true },
- form: { enumerable: true },
- name: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLOutputElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLOutputElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLOutputElement
- });
-};
-
-const Impl = __nccwpck_require__(38297);
-
-
-/***/ }),
-
-/***/ 78759:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLParagraphElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLParagraphElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLParagraphElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLParagraphElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLParagraphElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLParagraphElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLParagraphElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLParagraphElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLParagraphElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLParagraphElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLParagraphElement
- });
-};
-
-const Impl = __nccwpck_require__(78556);
-
-
-/***/ }),
-
-/***/ 58213:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLParamElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLParamElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLParamElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLParamElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLParamElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "value");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLParamElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "value", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLParamElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get valueType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get valueType' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valuetype");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set valueType(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set valueType' called on an object that is not a valid instance of HTMLParamElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'valueType' property on 'HTMLParamElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valuetype", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLParamElement.prototype, {
- name: { enumerable: true },
- value: { enumerable: true },
- type: { enumerable: true },
- valueType: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLParamElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLParamElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLParamElement
- });
-};
-
-const Impl = __nccwpck_require__(80198);
-
-
-/***/ }),
-
-/***/ 65049:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLPictureElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLPictureElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLPictureElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLPictureElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- }
- Object.defineProperties(HTMLPictureElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLPictureElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLPictureElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLPictureElement
- });
-};
-
-const Impl = __nccwpck_require__(10611);
-
-
-/***/ }),
-
-/***/ 75574:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLPreElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLPreElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLPreElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLPreElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLPreElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "width");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLPreElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'width' property on 'HTMLPreElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", String(V));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLPreElement.prototype, {
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLPreElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLPreElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLPreElement
- });
-};
-
-const Impl = __nccwpck_require__(34233);
-
-
-/***/ }),
-
-/***/ 90536:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLProgressElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLProgressElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLProgressElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLProgressElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'value' property on 'HTMLProgressElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get max() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get max' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["max"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set max(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set max' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- V = conversions["double"](V, {
- context: "Failed to set the 'max' property on 'HTMLProgressElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["max"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get position() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get position' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- return esValue[implSymbol]["position"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLProgressElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
- }
- Object.defineProperties(HTMLProgressElement.prototype, {
- value: { enumerable: true },
- max: { enumerable: true },
- position: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLProgressElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLProgressElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLProgressElement
- });
-};
-
-const Impl = __nccwpck_require__(90842);
-
-
-/***/ }),
-
-/***/ 4544:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLQuoteElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLQuoteElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLQuoteElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLQuoteElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get cite() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cite' called on an object that is not a valid instance of HTMLQuoteElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "cite");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cite(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cite' called on an object that is not a valid instance of HTMLQuoteElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'cite' property on 'HTMLQuoteElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "cite", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLQuoteElement.prototype, {
- cite: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLQuoteElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLQuoteElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLQuoteElement
- });
-};
-
-const Impl = __nccwpck_require__(70359);
-
-
-/***/ }),
-
-/***/ 47755:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLScriptElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLScriptElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLScriptElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLScriptElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get defer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defer' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "defer");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defer(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defer' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'defer' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "defer", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "defer");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get crossOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get crossOrigin' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "crossorigin");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set crossOrigin(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set crossOrigin' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'crossOrigin' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "crossorigin", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get text' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["text"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set text' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["text"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get charset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get charset' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charset");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set charset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set charset' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'charset' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get event() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get event' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "event");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set event(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set event' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'event' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "event", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get htmlFor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get htmlFor' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "for");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set htmlFor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set htmlFor' called on an object that is not a valid instance of HTMLScriptElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'htmlFor' property on 'HTMLScriptElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "for", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLScriptElement.prototype, {
- src: { enumerable: true },
- type: { enumerable: true },
- defer: { enumerable: true },
- crossOrigin: { enumerable: true },
- text: { enumerable: true },
- charset: { enumerable: true },
- event: { enumerable: true },
- htmlFor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLScriptElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLScriptElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLScriptElement
- });
-};
-
-const Impl = __nccwpck_require__(63602);
-
-
-/***/ }),
-
-/***/ 46346:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const HTMLOptionElement = __nccwpck_require__(26617);
-const HTMLOptGroupElement = __nccwpck_require__(52880);
-const HTMLElement = __nccwpck_require__(8932);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "HTMLSelectElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLSelectElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLSelectElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLSelectElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'item' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'HTMLSelectElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'HTMLSelectElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'namedItem' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'HTMLSelectElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'HTMLSelectElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].namedItem(...args));
- }
-
- add(element) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'add' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'add' on 'HTMLSelectElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (HTMLOptionElement.is(curArg) || HTMLOptGroupElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else {
- throw new globalObject.TypeError(
- "Failed to execute 'add' on 'HTMLSelectElement': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (HTMLElement.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (typeof curArg === "number") {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'add' on 'HTMLSelectElement': parameter 2",
- globals: globalObject
- });
- }
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].add(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- remove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'remove' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
- const args = [];
- switch (arguments.length) {
- case 0:
- break;
- default: {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'remove' on 'HTMLSelectElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].remove(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLSelectElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLSelectElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- get autofocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autofocus' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autofocus' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get multiple() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get multiple' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "multiple");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set multiple(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set multiple' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'multiple' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "multiple", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "multiple");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get required() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get required' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set required(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set required' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get size() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get size' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "size");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set size(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set size' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'size' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "size", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get options() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get options' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return utils.getSameObject(this, "options", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["options"]);
- });
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["length"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set length(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set length' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'length' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["length"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get selectedOptions() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectedOptions' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return utils.getSameObject(this, "selectedOptions", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["selectedOptions"]);
- });
- }
-
- get selectedIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol]["selectedIndex"];
- }
-
- set selectedIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectedIndex' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'selectedIndex' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selectedIndex"] = V;
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol]["value"];
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLSelectElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["value"] = V;
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLSelectElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
- }
- Object.defineProperties(HTMLSelectElement.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- add: { enumerable: true },
- remove: { enumerable: true },
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- autofocus: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- multiple: { enumerable: true },
- name: { enumerable: true },
- required: { enumerable: true },
- size: { enumerable: true },
- type: { enumerable: true },
- options: { enumerable: true },
- length: { enumerable: true },
- selectedOptions: { enumerable: true },
- selectedIndex: { enumerable: true },
- value: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSelectElement", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = HTMLSelectElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSelectElement
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
-
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(globalObject, indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
- }
-
- const index = P >>> 0;
- let indexedValue = desc.value;
-
- if (indexedValue === null || indexedValue === undefined) {
- indexedValue = null;
- } else {
- indexedValue = HTMLOptionElement.convert(globalObject, indexedValue, {
- context: "Failed to set the " + index + " property on 'HTMLSelectElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const creating = !(target[implSymbol].item(index) !== null);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
-
- return true;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(80867);
-
-
-/***/ }),
-
-/***/ 44962:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const AssignedNodesOptions = __nccwpck_require__(28411);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLSlotElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLSlotElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLSlotElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLSlotElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- assignedNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'assignedNodes' called on an object that is not a valid instance of HTMLSlotElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = AssignedNodesOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'assignedNodes' on 'HTMLSlotElement': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].assignedNodes(...args));
- }
-
- assignedElements() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'assignedElements' called on an object that is not a valid instance of HTMLSlotElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = AssignedNodesOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'assignedElements' on 'HTMLSlotElement': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].assignedElements(...args));
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLSlotElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLSlotElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLSlotElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLSlotElement.prototype, {
- assignedNodes: { enumerable: true },
- assignedElements: { enumerable: true },
- name: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSlotElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLSlotElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSlotElement
- });
-};
-
-const Impl = __nccwpck_require__(46269);
-
-
-/***/ }),
-
-/***/ 16995:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLSourceElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLSourceElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLSourceElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLSourceElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLSourceElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLSourceElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get srcset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get srcset' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srcset");
- return value === null ? "" : conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set srcset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set srcset' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'srcset' property on 'HTMLSourceElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srcset", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get sizes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get sizes' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "sizes");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set sizes(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set sizes' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'sizes' property on 'HTMLSourceElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "sizes", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get media() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get media' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set media(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set media' called on an object that is not a valid instance of HTMLSourceElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLSourceElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLSourceElement.prototype, {
- src: { enumerable: true },
- type: { enumerable: true },
- srcset: { enumerable: true },
- sizes: { enumerable: true },
- media: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLSourceElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLSourceElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSourceElement
- });
-};
-
-const Impl = __nccwpck_require__(76604);
-
-
-/***/ }),
-
-/***/ 42549:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLSpanElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLSpanElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLSpanElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLSpanElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
- }
- Object.defineProperties(HTMLSpanElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLSpanElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLSpanElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLSpanElement
- });
-};
-
-const Impl = __nccwpck_require__(97825);
-
-
-/***/ }),
-
-/***/ 19570:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLStyleElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLStyleElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLStyleElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLStyleElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get media() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get media' called on an object that is not a valid instance of HTMLStyleElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "media");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set media(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set media' called on an object that is not a valid instance of HTMLStyleElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'media' property on 'HTMLStyleElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "media", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLStyleElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLStyleElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLStyleElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get sheet() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get sheet' called on an object that is not a valid instance of HTMLStyleElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);
- }
- }
- Object.defineProperties(HTMLStyleElement.prototype, {
- media: { enumerable: true },
- type: { enumerable: true },
- sheet: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLStyleElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLStyleElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLStyleElement
- });
-};
-
-const Impl = __nccwpck_require__(97572);
-
-
-/***/ }),
-
-/***/ 11672:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableCaptionElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableCaptionElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableCaptionElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableCaptionElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableCaptionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableCaptionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableCaptionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableCaptionElement.prototype, {
- align: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableCaptionElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableCaptionElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableCaptionElement
- });
-};
-
-const Impl = __nccwpck_require__(68219);
-
-
-/***/ }),
-
-/***/ 48587:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableCellElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableCellElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableCellElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableCellElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get colSpan() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get colSpan' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["colSpan"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set colSpan(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set colSpan' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'colSpan' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["colSpan"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rowSpan() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rowSpan' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["rowSpan"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rowSpan(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rowSpan' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'rowSpan' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["rowSpan"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get headers() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get headers' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "headers");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set headers(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set headers' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'headers' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "headers", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get cellIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cellIndex' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- return esValue[implSymbol]["cellIndex"];
- }
-
- get scope() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get scope' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["scope"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set scope(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set scope' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'scope' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["scope"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get abbr() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get abbr' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "abbr");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set abbr(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set abbr' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'abbr' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "abbr", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get axis() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get axis' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "axis");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set axis(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set axis' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'axis' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "axis", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "height");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'height' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "height", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get ch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ch' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set ch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ch' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get chOff() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get chOff' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set chOff(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set chOff' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get noWrap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get noWrap' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "nowrap");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set noWrap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set noWrap' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'noWrap' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "nowrap", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "nowrap");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vAlign' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vAlign' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bgColor' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set bgColor' called on an object that is not a valid instance of HTMLTableCellElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableCellElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableCellElement.prototype, {
- colSpan: { enumerable: true },
- rowSpan: { enumerable: true },
- headers: { enumerable: true },
- cellIndex: { enumerable: true },
- scope: { enumerable: true },
- abbr: { enumerable: true },
- align: { enumerable: true },
- axis: { enumerable: true },
- height: { enumerable: true },
- width: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- noWrap: { enumerable: true },
- vAlign: { enumerable: true },
- bgColor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableCellElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableCellElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableCellElement
- });
-};
-
-const Impl = __nccwpck_require__(6604);
-
-
-/***/ }),
-
-/***/ 30388:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableColElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableColElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableColElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableColElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get span() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get span' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "span");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set span(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set span' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'span' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "span", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get ch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ch' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set ch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ch' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get chOff() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get chOff' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set chOff(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set chOff' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vAlign' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vAlign' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLTableColElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableColElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableColElement.prototype, {
- span: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
- width: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableColElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableColElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableColElement
- });
-};
-
-const Impl = __nccwpck_require__(66146);
-
-
-/***/ }),
-
-/***/ 45197:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const HTMLTableCaptionElement = __nccwpck_require__(11672);
-const HTMLTableSectionElement = __nccwpck_require__(99167);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- createCaption() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createCaption' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createCaption());
- }
-
- deleteCaption() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteCaption' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteCaption();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createTHead() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createTHead' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTHead());
- }
-
- deleteTHead() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteTHead' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteTHead();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createTFoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createTFoot' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTFoot());
- }
-
- deleteTFoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteTFoot' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteTFoot();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- createTBody() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createTBody' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createTBody());
- }
-
- insertRow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertRow' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertRow' on 'HTMLTableElement': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = -1;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
- }
-
- deleteRow(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteRow' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteRow' on 'HTMLTableElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteRow(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get caption() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get caption' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["caption"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set caption(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set caption' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableCaptionElement.convert(globalObject, V, {
- context: "Failed to set the 'caption' property on 'HTMLTableElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["caption"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get tHead() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tHead' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tHead"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set tHead(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set tHead' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableSectionElement.convert(globalObject, V, {
- context: "Failed to set the 'tHead' property on 'HTMLTableElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tHead"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get tFoot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tFoot' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tFoot"]);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set tFoot(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set tFoot' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = HTMLTableSectionElement.convert(globalObject, V, {
- context: "Failed to set the 'tFoot' property on 'HTMLTableElement': The provided value"
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tFoot"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get tBodies() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tBodies' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.getSameObject(this, "tBodies", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["tBodies"]);
- });
- }
-
- get rows() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rows' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- return utils.getSameObject(this, "rows", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
- });
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get border() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get border' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "border");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set border(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set border' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'border' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "border", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get frame() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get frame' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "frame");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set frame(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set frame' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'frame' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "frame", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rules() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rules' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "rules");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rules(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rules' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'rules' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "rules", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get summary() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get summary' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "summary");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set summary(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set summary' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'summary' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "summary", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "width");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'width' property on 'HTMLTableElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "width", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bgColor' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set bgColor' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get cellPadding() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cellPadding' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "cellpadding");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cellPadding(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cellPadding' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'cellPadding' property on 'HTMLTableElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "cellpadding", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get cellSpacing() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cellSpacing' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "cellspacing");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cellSpacing(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cellSpacing' called on an object that is not a valid instance of HTMLTableElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'cellSpacing' property on 'HTMLTableElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "cellspacing", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableElement.prototype, {
- createCaption: { enumerable: true },
- deleteCaption: { enumerable: true },
- createTHead: { enumerable: true },
- deleteTHead: { enumerable: true },
- createTFoot: { enumerable: true },
- deleteTFoot: { enumerable: true },
- createTBody: { enumerable: true },
- insertRow: { enumerable: true },
- deleteRow: { enumerable: true },
- caption: { enumerable: true },
- tHead: { enumerable: true },
- tFoot: { enumerable: true },
- tBodies: { enumerable: true },
- rows: { enumerable: true },
- align: { enumerable: true },
- border: { enumerable: true },
- frame: { enumerable: true },
- rules: { enumerable: true },
- summary: { enumerable: true },
- width: { enumerable: true },
- bgColor: { enumerable: true },
- cellPadding: { enumerable: true },
- cellSpacing: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableElement
- });
-};
-
-const Impl = __nccwpck_require__(36975);
-
-
-/***/ }),
-
-/***/ 86057:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableRowElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableRowElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableRowElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableRowElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- insertCell() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertCell' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = -1;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].insertCell(...args));
- }
-
- deleteCell(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteCell' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteCell' on 'HTMLTableRowElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteCell(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rowIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rowIndex' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- return esValue[implSymbol]["rowIndex"];
- }
-
- get sectionRowIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get sectionRowIndex' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- return esValue[implSymbol]["sectionRowIndex"];
- }
-
- get cells() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cells' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- return utils.getSameObject(this, "cells", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["cells"]);
- });
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableRowElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get ch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ch' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set ch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ch' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableRowElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get chOff() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get chOff' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set chOff(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set chOff' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableRowElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vAlign' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vAlign' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableRowElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get bgColor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bgColor' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "bgcolor");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set bgColor(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set bgColor' called on an object that is not a valid instance of HTMLTableRowElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'bgColor' property on 'HTMLTableRowElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "bgcolor", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableRowElement.prototype, {
- insertCell: { enumerable: true },
- deleteCell: { enumerable: true },
- rowIndex: { enumerable: true },
- sectionRowIndex: { enumerable: true },
- cells: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
- bgColor: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableRowElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableRowElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableRowElement
- });
-};
-
-const Impl = __nccwpck_require__(76062);
-
-
-/***/ }),
-
-/***/ 99167:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTableSectionElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTableSectionElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTableSectionElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTableSectionElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- insertRow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertRow' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'insertRow' on 'HTMLTableSectionElement': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = -1;
- }
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].insertRow(...args));
- }
-
- deleteRow(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteRow' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'deleteRow' on 'HTMLTableSectionElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteRow(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rows() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rows' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- return utils.getSameObject(this, "rows", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["rows"]);
- });
- }
-
- get align() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get align' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "align");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set align(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set align' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'align' property on 'HTMLTableSectionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "align", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get ch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ch' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "char");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set ch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ch' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'ch' property on 'HTMLTableSectionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "char", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get chOff() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get chOff' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "charoff");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set chOff(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set chOff' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'chOff' property on 'HTMLTableSectionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "charoff", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get vAlign() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "valign");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set vAlign(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set vAlign' called on an object that is not a valid instance of HTMLTableSectionElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'vAlign' property on 'HTMLTableSectionElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "valign", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTableSectionElement.prototype, {
- insertRow: { enumerable: true },
- deleteRow: { enumerable: true },
- rows: { enumerable: true },
- align: { enumerable: true },
- ch: { enumerable: true },
- chOff: { enumerable: true },
- vAlign: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTableSectionElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTableSectionElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTableSectionElement
- });
-};
-
-const Impl = __nccwpck_require__(3803);
-
-
-/***/ }),
-
-/***/ 17164:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTemplateElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTemplateElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTemplateElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTemplateElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get content() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get content' called on an object that is not a valid instance of HTMLTemplateElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["content"]);
- }
- }
- Object.defineProperties(HTMLTemplateElement.prototype, {
- content: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTemplateElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTemplateElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTemplateElement
- });
-};
-
-const Impl = __nccwpck_require__(58610);
-
-
-/***/ }),
-
-/***/ 84134:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const SelectionMode = __nccwpck_require__(12458);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseInteger_helpers_strings = (__nccwpck_require__(4764).parseInteger);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTextAreaElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTextAreaElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTextAreaElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTextAreaElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- checkValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'checkValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol].checkValidity();
- }
-
- reportValidity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'reportValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol].reportValidity();
- }
-
- setCustomValidity(error) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setCustomValidity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setCustomValidity(...args);
- }
-
- select() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'select' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol].select();
- }
-
- setRangeText(replacement) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setRangeText' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setRangeText' on 'HTMLTextAreaElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- switch (arguments.length) {
- case 1:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- case 2:
- throw new globalObject.TypeError(
- `Failed to execute 'setRangeText' on 'HTMLTextAreaElement': only ${arguments.length} arguments present.`
- );
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = SelectionMode.convert(globalObject, curArg, {
- context: "Failed to execute 'setRangeText' on 'HTMLTextAreaElement': parameter 4"
- });
- } else {
- curArg = "preserve";
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].setRangeText(...args);
- }
-
- setSelectionRange(start, end) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setSelectionRange' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setSelectionRange' on 'HTMLTextAreaElement': parameter 3",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].setSelectionRange(...args);
- }
-
- get autocomplete() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "autocomplete");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autocomplete(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autocomplete' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'autocomplete' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "autocomplete", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get autofocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get autofocus' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "autofocus");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set autofocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set autofocus' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'autofocus' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "autofocus", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "autofocus");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get cols() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cols' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["cols"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set cols(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set cols' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'cols' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["cols"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get dirName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dirName' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "dirname");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dirName(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set dirName' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dirName' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "dirname", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get disabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get disabled' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "disabled");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set disabled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set disabled' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'disabled' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "disabled", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "disabled");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get form() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get form' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
- }
-
- get inputMode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get inputMode' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "inputmode");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set inputMode(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set inputMode' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'inputMode' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "inputmode", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get maxLength() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get maxLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "maxlength");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set maxLength(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set maxLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "maxlength", String(V));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get minLength() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get minLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "minlength");
- if (value === null) {
- return 0;
- }
- value = parseInteger_helpers_strings(value);
- return value !== null && conversions.long(value) === value ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set minLength(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set minLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'minLength' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "minlength", String(V));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get name' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "name");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set name(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set name' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'name' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "name", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get placeholder() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "placeholder");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set placeholder(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set placeholder' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'placeholder' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "placeholder", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get readOnly() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readOnly' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "readonly");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set readOnly(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set readOnly' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'readOnly' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "readonly", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "readonly");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get required() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get required' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "required");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set required(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set required' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'required' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "required", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "required");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get rows() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rows' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["rows"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set rows(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set rows' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'rows' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["rows"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get wrap() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get wrap' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "wrap");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set wrap(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set wrap' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'wrap' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "wrap", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get defaultValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["defaultValue"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set defaultValue(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set defaultValue' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'defaultValue' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["defaultValue"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["value"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["value"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get textLength() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get textLength' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["textLength"];
- }
-
- get willValidate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get willValidate' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["willValidate"];
- }
-
- get validity() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validity' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
- }
-
- get validationMessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get validationMessage' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["validationMessage"];
- }
-
- get labels() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get labels' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
- }
-
- get selectionStart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionStart"];
- }
-
- set selectionStart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionStart' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionStart' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selectionStart"] = V;
- }
-
- get selectionEnd() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionEnd"];
- }
-
- set selectionEnd(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionEnd' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'selectionEnd' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selectionEnd"] = V;
- }
-
- get selectionDirection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- return esValue[implSymbol]["selectionDirection"];
- }
-
- set selectionDirection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set selectionDirection' called on an object that is not a valid instance of HTMLTextAreaElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'selectionDirection' property on 'HTMLTextAreaElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["selectionDirection"] = V;
- }
- }
- Object.defineProperties(HTMLTextAreaElement.prototype, {
- checkValidity: { enumerable: true },
- reportValidity: { enumerable: true },
- setCustomValidity: { enumerable: true },
- select: { enumerable: true },
- setRangeText: { enumerable: true },
- setSelectionRange: { enumerable: true },
- autocomplete: { enumerable: true },
- autofocus: { enumerable: true },
- cols: { enumerable: true },
- dirName: { enumerable: true },
- disabled: { enumerable: true },
- form: { enumerable: true },
- inputMode: { enumerable: true },
- maxLength: { enumerable: true },
- minLength: { enumerable: true },
- name: { enumerable: true },
- placeholder: { enumerable: true },
- readOnly: { enumerable: true },
- required: { enumerable: true },
- rows: { enumerable: true },
- wrap: { enumerable: true },
- type: { enumerable: true },
- defaultValue: { enumerable: true },
- value: { enumerable: true },
- textLength: { enumerable: true },
- willValidate: { enumerable: true },
- validity: { enumerable: true },
- validationMessage: { enumerable: true },
- labels: { enumerable: true },
- selectionStart: { enumerable: true },
- selectionEnd: { enumerable: true },
- selectionDirection: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTextAreaElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTextAreaElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTextAreaElement
- });
-};
-
-const Impl = __nccwpck_require__(44239);
-
-
-/***/ }),
-
-/***/ 55515:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTimeElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTimeElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTimeElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTimeElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get dateTime() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dateTime' called on an object that is not a valid instance of HTMLTimeElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "datetime");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set dateTime(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set dateTime' called on an object that is not a valid instance of HTMLTimeElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'dateTime' property on 'HTMLTimeElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "datetime", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTimeElement.prototype, {
- dateTime: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTimeElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTimeElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTimeElement
- });
-};
-
-const Impl = __nccwpck_require__(82051);
-
-
-/***/ }),
-
-/***/ 18864:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTitleElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTitleElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTitleElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTitleElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get text() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get text' called on an object that is not a valid instance of HTMLTitleElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["text"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set text(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set text' called on an object that is not a valid instance of HTMLTitleElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'text' property on 'HTMLTitleElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["text"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLTitleElement.prototype, {
- text: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTitleElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLTitleElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTitleElement
- });
-};
-
-const Impl = __nccwpck_require__(73410);
-
-
-/***/ }),
-
-/***/ 10978:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLTrackElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLTrackElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLTrackElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLTrackElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get kind() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get kind' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "kind");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set kind(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set kind' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'kind' property on 'HTMLTrackElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "kind", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get src() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get src' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "src");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set src(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set src' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'src' property on 'HTMLTrackElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "src", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get srclang() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get srclang' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "srclang");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set srclang(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set srclang' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'srclang' property on 'HTMLTrackElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "srclang", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get label() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get label' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "label");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set label(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set label' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'label' property on 'HTMLTrackElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "label", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get default() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get default' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "default");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set default(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set default' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'default' property on 'HTMLTrackElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "default", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "default");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of HTMLTrackElement."
- );
- }
-
- return esValue[implSymbol]["readyState"];
- }
- }
- Object.defineProperties(HTMLTrackElement.prototype, {
- kind: { enumerable: true },
- src: { enumerable: true },
- srclang: { enumerable: true },
- label: { enumerable: true },
- default: { enumerable: true },
- readyState: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLTrackElement", configurable: true },
- NONE: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- LOADED: { value: 2, enumerable: true },
- ERROR: { value: 3, enumerable: true }
- });
- Object.defineProperties(HTMLTrackElement, {
- NONE: { value: 0, enumerable: true },
- LOADING: { value: 1, enumerable: true },
- LOADED: { value: 2, enumerable: true },
- ERROR: { value: 3, enumerable: true }
- });
- ctorRegistry[interfaceName] = HTMLTrackElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLTrackElement
- });
-};
-
-const Impl = __nccwpck_require__(35893);
-
-
-/***/ }),
-
-/***/ 33030:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLUListElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLUListElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLUListElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLUListElement extends globalObject.HTMLElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get compact() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get compact' called on an object that is not a valid instance of HTMLUListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "compact");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set compact(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set compact' called on an object that is not a valid instance of HTMLUListElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'compact' property on 'HTMLUListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "compact", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "compact");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of HTMLUListElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "type");
- return value === null ? "" : value;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set type(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set type' called on an object that is not a valid instance of HTMLUListElement."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'type' property on 'HTMLUListElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "type", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLUListElement.prototype, {
- compact: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLUListElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLUListElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLUListElement
- });
-};
-
-const Impl = __nccwpck_require__(64392);
-
-
-/***/ }),
-
-/***/ 30065:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLElement = __nccwpck_require__(8932);
-
-const interfaceName = "HTMLUnknownElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLUnknownElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLUnknownElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLUnknownElement extends globalObject.HTMLElement {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(HTMLUnknownElement.prototype, {
- [Symbol.toStringTag]: { value: "HTMLUnknownElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLUnknownElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLUnknownElement
- });
-};
-
-const Impl = __nccwpck_require__(96001);
-
-
-/***/ }),
-
-/***/ 50494:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLConstructor_helpers_html_constructor = (__nccwpck_require__(33302).HTMLConstructor);
-const parseNonNegativeInteger_helpers_strings = (__nccwpck_require__(4764).parseNonNegativeInteger);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const parseURLToResultingURLRecord_helpers_document_base_url =
- (__nccwpck_require__(20613).parseURLToResultingURLRecord);
-const serializeURLwhatwg_url = (__nccwpck_require__(66365).serializeURL);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const HTMLMediaElement = __nccwpck_require__(61639);
-
-const interfaceName = "HTMLVideoElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HTMLVideoElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HTMLVideoElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- HTMLMediaElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HTMLVideoElement extends globalObject.HTMLMediaElement {
- constructor() {
- return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get width' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "width");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set width(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set width' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'width' property on 'HTMLVideoElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "width", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get height' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- let value = esValue[implSymbol].getAttributeNS(null, "height");
- if (value === null) {
- return 0;
- }
- value = parseNonNegativeInteger_helpers_strings(value);
- return value !== null && value >= 0 && value <= 2147483647 ? value : 0;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set height(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set height' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'height' property on 'HTMLVideoElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const n = V <= 2147483647 ? V : 0;
- esValue[implSymbol].setAttributeNS(null, "height", String(n));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get videoWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get videoWidth' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- return esValue[implSymbol]["videoWidth"];
- }
-
- get videoHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get videoHeight' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- return esValue[implSymbol]["videoHeight"];
- }
-
- get poster() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get poster' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- const value = esValue[implSymbol].getAttributeNS(null, "poster");
- if (value === null) {
- return "";
- }
- const urlRecord = parseURLToResultingURLRecord_helpers_document_base_url(
- value,
- esValue[implSymbol]._ownerDocument
- );
- if (urlRecord !== null) {
- return serializeURLwhatwg_url(urlRecord);
- }
- return conversions.USVString(value);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set poster(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set poster' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'poster' property on 'HTMLVideoElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol].setAttributeNS(null, "poster", V);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get playsInline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get playsInline' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].hasAttributeNS(null, "playsinline");
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set playsInline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set playsInline' called on an object that is not a valid instance of HTMLVideoElement."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'playsInline' property on 'HTMLVideoElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- if (V) {
- esValue[implSymbol].setAttributeNS(null, "playsinline", "");
- } else {
- esValue[implSymbol].removeAttributeNS(null, "playsinline");
- }
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(HTMLVideoElement.prototype, {
- width: { enumerable: true },
- height: { enumerable: true },
- videoWidth: { enumerable: true },
- videoHeight: { enumerable: true },
- poster: { enumerable: true },
- playsInline: { enumerable: true },
- [Symbol.toStringTag]: { value: "HTMLVideoElement", configurable: true }
- });
- ctorRegistry[interfaceName] = HTMLVideoElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HTMLVideoElement
- });
-};
-
-const Impl = __nccwpck_require__(5714);
-
-
-/***/ }),
-
-/***/ 65874:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HashChangeEventInit = __nccwpck_require__(72491);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "HashChangeEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'HashChangeEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["HashChangeEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class HashChangeEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'HashChangeEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'HashChangeEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = HashChangeEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'HashChangeEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get oldURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oldURL' called on an object that is not a valid instance of HashChangeEvent."
- );
- }
-
- return esValue[implSymbol]["oldURL"];
- }
-
- get newURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get newURL' called on an object that is not a valid instance of HashChangeEvent."
- );
- }
-
- return esValue[implSymbol]["newURL"];
- }
- }
- Object.defineProperties(HashChangeEvent.prototype, {
- oldURL: { enumerable: true },
- newURL: { enumerable: true },
- [Symbol.toStringTag]: { value: "HashChangeEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = HashChangeEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: HashChangeEvent
- });
-};
-
-const Impl = __nccwpck_require__(93234);
-
-
-/***/ }),
-
-/***/ 72491:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "newURL";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, {
- context: context + " has member 'newURL' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "oldURL";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, {
- context: context + " has member 'oldURL' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 24704:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Function = __nccwpck_require__(79936);
-const newObjectInRealm = utils.newObjectInRealm;
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Headers";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Headers'.`);
-};
-
-exports.createDefaultIterator = (globalObject, target, kind) => {
- const ctorRegistry = globalObject[ctorRegistrySymbol];
- const iteratorPrototype = ctorRegistry["Headers Iterator"];
- const iterator = Object.create(iteratorPrototype);
- Object.defineProperty(iterator, utils.iterInternalSymbol, {
- value: { target, kind, index: 0 },
- configurable: true
- });
- return iterator;
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Headers"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Headers {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (utils.isObject(curArg)) {
- if (curArg[Symbol.iterator] !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError(
- "Failed to construct 'Headers': parameter 1" + " sequence" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- if (!utils.isObject(nextItem)) {
- throw new globalObject.TypeError(
- "Failed to construct 'Headers': parameter 1" +
- " sequence" +
- "'s element" +
- " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = nextItem;
- for (let nextItem of tmp) {
- nextItem = conversions["ByteString"](nextItem, {
- context:
- "Failed to construct 'Headers': parameter 1" + " sequence" + "'s element" + "'s element",
- globals: globalObject
- });
-
- V.push(nextItem);
- }
- nextItem = V;
- }
-
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError(
- "Failed to construct 'Headers': parameter 1" + " record" + " is not an object."
- );
- } else {
- const result = Object.create(null);
- for (const key of Reflect.ownKeys(curArg)) {
- const desc = Object.getOwnPropertyDescriptor(curArg, key);
- if (desc && desc.enumerable) {
- let typedKey = key;
-
- typedKey = conversions["ByteString"](typedKey, {
- context: "Failed to construct 'Headers': parameter 1" + " record" + "'s key",
- globals: globalObject
- });
-
- let typedValue = curArg[key];
-
- typedValue = conversions["ByteString"](typedValue, {
- context: "Failed to construct 'Headers': parameter 1" + " record" + "'s value",
- globals: globalObject
- });
-
- result[typedKey] = typedValue;
- }
- }
- curArg = result;
- }
- }
- } else {
- throw new globalObject.TypeError(
- "Failed to construct 'Headers': parameter 1" + " is not of any supported type."
- );
- }
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- append(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'append' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'append' on 'Headers': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'append' on 'Headers': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'append' on 'Headers': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].append(...args);
- }
-
- delete(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'delete' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'delete' on 'Headers': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'delete' on 'Headers': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].delete(...args);
- }
-
- get(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'get' on 'Headers': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'get' on 'Headers': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].get(...args);
- }
-
- has(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'has' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'has' on 'Headers': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'has' on 'Headers': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].has(...args);
- }
-
- set(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set' called on an object that is not a valid instance of Headers.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'set' on 'Headers': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'set' on 'Headers': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'set' on 'Headers': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].set(...args);
- }
-
- keys() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'keys' called on an object that is not a valid instance of Headers.");
- }
- return exports.createDefaultIterator(globalObject, this, "key");
- }
-
- values() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'values' called on an object that is not a valid instance of Headers.");
- }
- return exports.createDefaultIterator(globalObject, this, "value");
- }
-
- entries() {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'entries' called on an object that is not a valid instance of Headers.");
- }
- return exports.createDefaultIterator(globalObject, this, "key+value");
- }
-
- forEach(callback) {
- if (!exports.is(this)) {
- throw new globalObject.TypeError("'forEach' called on an object that is not a valid instance of Headers.");
- }
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- "Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present."
- );
- }
- callback = Function.convert(globalObject, callback, {
- context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
- });
- const thisArg = arguments[1];
- let pairs = Array.from(this[implSymbol]);
- let i = 0;
- while (i < pairs.length) {
- const [key, value] = pairs[i].map(utils.tryWrapperForImpl);
- callback.call(thisArg, value, key, this);
- pairs = Array.from(this[implSymbol]);
- i++;
- }
- }
- }
- Object.defineProperties(Headers.prototype, {
- append: { enumerable: true },
- delete: { enumerable: true },
- get: { enumerable: true },
- has: { enumerable: true },
- set: { enumerable: true },
- keys: { enumerable: true },
- values: { enumerable: true },
- entries: { enumerable: true },
- forEach: { enumerable: true },
- [Symbol.toStringTag]: { value: "Headers", configurable: true },
- [Symbol.iterator]: { value: Headers.prototype.entries, configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = Headers;
-
- ctorRegistry["Headers Iterator"] = Object.create(ctorRegistry["%IteratorPrototype%"], {
- [Symbol.toStringTag]: {
- configurable: true,
- value: "Headers Iterator"
- }
- });
- utils.define(ctorRegistry["Headers Iterator"], {
- next() {
- const internal = this && this[utils.iterInternalSymbol];
- if (!internal) {
- throw new globalObject.TypeError("next() called on a value that is not a Headers iterator object");
- }
-
- const { target, kind, index } = internal;
- const values = Array.from(target[implSymbol]);
- const len = values.length;
- if (index >= len) {
- return newObjectInRealm(globalObject, { value: undefined, done: true });
- }
-
- const pair = values[index];
- internal.index = index + 1;
- return newObjectInRealm(globalObject, utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind));
- }
- });
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Headers
- });
-};
-
-const Impl = __nccwpck_require__(15643);
-
-
-/***/ }),
-
-/***/ 49928:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "History";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'History'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["History"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class History {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- go() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'go' called on an object that is not a valid instance of History.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'go' on 'History': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].go(...args);
- }
-
- back() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'back' called on an object that is not a valid instance of History.");
- }
-
- return esValue[implSymbol].back();
- }
-
- forward() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'forward' called on an object that is not a valid instance of History.");
- }
-
- return esValue[implSymbol].forward();
- }
-
- pushState(data, title) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'pushState' called on an object that is not a valid instance of History.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'pushState' on 'History': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'pushState' on 'History': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'pushState' on 'History': parameter 3",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].pushState(...args);
- }
-
- replaceState(data, title) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'replaceState' called on an object that is not a valid instance of History.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'replaceState' on 'History': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'replaceState' on 'History': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceState' on 'History': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'replaceState' on 'History': parameter 3",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].replaceState(...args);
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of History.");
- }
-
- return esValue[implSymbol]["length"];
- }
-
- get state() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get state' called on an object that is not a valid instance of History.");
- }
-
- return esValue[implSymbol]["state"];
- }
- }
- Object.defineProperties(History.prototype, {
- go: { enumerable: true },
- back: { enumerable: true },
- forward: { enumerable: true },
- pushState: { enumerable: true },
- replaceState: { enumerable: true },
- length: { enumerable: true },
- state: { enumerable: true },
- [Symbol.toStringTag]: { value: "History", configurable: true }
- });
- ctorRegistry[interfaceName] = History;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: History
- });
-};
-
-const Impl = __nccwpck_require__(99101);
-
-
-/***/ }),
-
-/***/ 74569:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const InputEventInit = __nccwpck_require__(75799);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "InputEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'InputEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["InputEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class InputEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'InputEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'InputEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = InputEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'InputEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get data' called on an object that is not a valid instance of InputEvent.");
- }
-
- return esValue[implSymbol]["data"];
- }
-
- get isComposing() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get isComposing' called on an object that is not a valid instance of InputEvent."
- );
- }
-
- return esValue[implSymbol]["isComposing"];
- }
-
- get inputType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get inputType' called on an object that is not a valid instance of InputEvent."
- );
- }
-
- return esValue[implSymbol]["inputType"];
- }
- }
- Object.defineProperties(InputEvent.prototype, {
- data: { enumerable: true },
- isComposing: { enumerable: true },
- inputType: { enumerable: true },
- [Symbol.toStringTag]: { value: "InputEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = InputEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: InputEvent
- });
-};
-
-const Impl = __nccwpck_require__(58056);
-
-
-/***/ }),
-
-/***/ 75799:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const UIEventInit = __nccwpck_require__(82015);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- UIEventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, {
- context: context + " has member 'data' that",
- globals: globalObject
- });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "inputType";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, {
- context: context + " has member 'inputType' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "isComposing";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'isComposing' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 10929:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const KeyboardEventInit = __nccwpck_require__(72711);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "KeyboardEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'KeyboardEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["KeyboardEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class KeyboardEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'KeyboardEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'KeyboardEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = KeyboardEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'KeyboardEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- getModifierState(keyArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getModifierState' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getModifierState' on 'KeyboardEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getModifierState(...args);
- }
-
- initKeyboardEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initKeyboardEvent' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 5",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 6",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 7",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 8",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[8];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 9",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[9];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initKeyboardEvent' on 'KeyboardEvent': parameter 10",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initKeyboardEvent(...args);
- }
-
- get key() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get key' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["key"];
- }
-
- get code() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get code' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["code"];
- }
-
- get location() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get location' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["location"];
- }
-
- get ctrlKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ctrlKey' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["ctrlKey"];
- }
-
- get shiftKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shiftKey' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["shiftKey"];
- }
-
- get altKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get altKey' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["altKey"];
- }
-
- get metaKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get metaKey' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["metaKey"];
- }
-
- get repeat() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get repeat' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["repeat"];
- }
-
- get isComposing() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get isComposing' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["isComposing"];
- }
-
- get charCode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get charCode' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["charCode"];
- }
-
- get keyCode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get keyCode' called on an object that is not a valid instance of KeyboardEvent."
- );
- }
-
- return esValue[implSymbol]["keyCode"];
- }
- }
- Object.defineProperties(KeyboardEvent.prototype, {
- getModifierState: { enumerable: true },
- initKeyboardEvent: { enumerable: true },
- key: { enumerable: true },
- code: { enumerable: true },
- location: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- repeat: { enumerable: true },
- isComposing: { enumerable: true },
- charCode: { enumerable: true },
- keyCode: { enumerable: true },
- [Symbol.toStringTag]: { value: "KeyboardEvent", configurable: true },
- DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
- DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
- DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
- DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
- });
- Object.defineProperties(KeyboardEvent, {
- DOM_KEY_LOCATION_STANDARD: { value: 0x00, enumerable: true },
- DOM_KEY_LOCATION_LEFT: { value: 0x01, enumerable: true },
- DOM_KEY_LOCATION_RIGHT: { value: 0x02, enumerable: true },
- DOM_KEY_LOCATION_NUMPAD: { value: 0x03, enumerable: true }
- });
- ctorRegistry[interfaceName] = KeyboardEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: KeyboardEvent
- });
-};
-
-const Impl = __nccwpck_require__(44410);
-
-
-/***/ }),
-
-/***/ 72711:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventModifierInit = __nccwpck_require__(22409);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "charCode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'charCode' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "code";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'code' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "isComposing";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'isComposing' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "key";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, { context: context + " has member 'key' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "keyCode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'keyCode' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "location";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'location' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "repeat";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'repeat' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 98744:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Location";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Location'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Location"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-function getUnforgeables(globalObject) {
- let unforgeables = unforgeablesMap.get(globalObject);
- if (unforgeables === undefined) {
- unforgeables = Object.create(null);
- utils.define(unforgeables, {
- assign(url) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'assign' called on an object that is not a valid instance of Location.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'assign' on 'Location': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'assign' on 'Location': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].assign(...args);
- },
- replace(url) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'replace' called on an object that is not a valid instance of Location.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'replace' on 'Location': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'replace' on 'Location': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replace(...args);
- },
- reload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'reload' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol].reload();
- },
- get href() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get href' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["href"];
- },
- set href(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set href' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'href' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["href"] = V;
- },
- toString() {
- const esValue = this;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'toString' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["href"];
- },
- get origin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get origin' called on an object that is not a valid instance of Location."
- );
- }
-
- return esValue[implSymbol]["origin"];
- },
- get protocol() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get protocol' called on an object that is not a valid instance of Location."
- );
- }
-
- return esValue[implSymbol]["protocol"];
- },
- set protocol(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set protocol' called on an object that is not a valid instance of Location."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'protocol' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["protocol"] = V;
- },
- get host() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get host' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["host"];
- },
- set host(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set host' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'host' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["host"] = V;
- },
- get hostname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hostname' called on an object that is not a valid instance of Location."
- );
- }
-
- return esValue[implSymbol]["hostname"];
- },
- set hostname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set hostname' called on an object that is not a valid instance of Location."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hostname' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["hostname"] = V;
- },
- get port() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get port' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["port"];
- },
- set port(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set port' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'port' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["port"] = V;
- },
- get pathname() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pathname' called on an object that is not a valid instance of Location."
- );
- }
-
- return esValue[implSymbol]["pathname"];
- },
- set pathname(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set pathname' called on an object that is not a valid instance of Location."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'pathname' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["pathname"] = V;
- },
- get search() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get search' called on an object that is not a valid instance of Location."
- );
- }
-
- return esValue[implSymbol]["search"];
- },
- set search(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set search' called on an object that is not a valid instance of Location."
- );
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'search' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["search"] = V;
- },
- get hash() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get hash' called on an object that is not a valid instance of Location.");
- }
-
- return esValue[implSymbol]["hash"];
- },
- set hash(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set hash' called on an object that is not a valid instance of Location.");
- }
-
- V = conversions["USVString"](V, {
- context: "Failed to set the 'hash' property on 'Location': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["hash"] = V;
- }
- });
- Object.defineProperties(unforgeables, {
- assign: { configurable: false, writable: false },
- replace: { configurable: false, writable: false },
- reload: { configurable: false, writable: false },
- href: { configurable: false },
- toString: { configurable: false, writable: false },
- origin: { configurable: false },
- protocol: { configurable: false },
- host: { configurable: false },
- hostname: { configurable: false },
- port: { configurable: false },
- pathname: { configurable: false },
- search: { configurable: false },
- hash: { configurable: false }
- });
- unforgeablesMap.set(globalObject, unforgeables);
- }
- return unforgeables;
-}
-
-exports._internalSetup = (wrapper, globalObject) => {
- utils.define(wrapper, getUnforgeables(globalObject));
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const unforgeablesMap = new WeakMap();
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Location {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(Location.prototype, { [Symbol.toStringTag]: { value: "Location", configurable: true } });
- ctorRegistry[interfaceName] = Location;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Location
- });
-};
-
-const Impl = __nccwpck_require__(45513);
-
-
-/***/ }),
-
-/***/ 31371:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const MessageEventInit = __nccwpck_require__(75669);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "MessageEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MessageEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MessageEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker", "AudioWorklet"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MessageEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'MessageEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'MessageEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = MessageEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'MessageEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initMessageEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initMessageEvent' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initMessageEvent' on 'MessageEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- curArg = conversions["any"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 4",
- globals: globalObject
- });
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 5",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 6",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError(
- "Failed to execute 'initMessageEvent' on 'MessageEvent': parameter 8" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- curArg = [];
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initMessageEvent(...args);
- }
-
- get data() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get data' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- return esValue[implSymbol]["data"];
- }
-
- get origin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get origin' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- return esValue[implSymbol]["origin"];
- }
-
- get lastEventId() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lastEventId' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- return esValue[implSymbol]["lastEventId"];
- }
-
- get source() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get source' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["source"]);
- }
-
- get ports() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ports' called on an object that is not a valid instance of MessageEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ports"]);
- }
- }
- Object.defineProperties(MessageEvent.prototype, {
- initMessageEvent: { enumerable: true },
- data: { enumerable: true },
- origin: { enumerable: true },
- lastEventId: { enumerable: true },
- source: { enumerable: true },
- ports: { enumerable: true },
- [Symbol.toStringTag]: { value: "MessageEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = MessageEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MessageEvent
- });
-};
-
-const Impl = __nccwpck_require__(62673);
-
-
-/***/ }),
-
-/***/ 75669:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "data";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'data' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "lastEventId";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["DOMString"](value, {
- context: context + " has member 'lastEventId' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "origin";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, {
- context: context + " has member 'origin' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-
- {
- const key = "ports";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(context + " has member 'ports' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- } else {
- ret[key] = [];
- }
- }
-
- {
- const key = "source";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = utils.tryImplForWrapper(value);
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 83612:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "MimeType";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MimeType'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MimeType"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MimeType {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get type' called on an object that is not a valid instance of MimeType.");
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get description() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get description' called on an object that is not a valid instance of MimeType."
- );
- }
-
- return esValue[implSymbol]["description"];
- }
-
- get suffixes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get suffixes' called on an object that is not a valid instance of MimeType."
- );
- }
-
- return esValue[implSymbol]["suffixes"];
- }
-
- get enabledPlugin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get enabledPlugin' called on an object that is not a valid instance of MimeType."
- );
- }
-
- return esValue[implSymbol]["enabledPlugin"];
- }
- }
- Object.defineProperties(MimeType.prototype, {
- type: { enumerable: true },
- description: { enumerable: true },
- suffixes: { enumerable: true },
- enabledPlugin: { enumerable: true },
- [Symbol.toStringTag]: { value: "MimeType", configurable: true }
- });
- ctorRegistry[interfaceName] = MimeType;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MimeType
- });
-};
-
-const Impl = __nccwpck_require__(76572);
-
-
-/***/ }),
-
-/***/ 15023:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "MimeTypeArray";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MimeTypeArray'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MimeTypeArray"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MimeTypeArray {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of MimeTypeArray.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'MimeTypeArray': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'MimeTypeArray': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'namedItem' called on an object that is not a valid instance of MimeTypeArray."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'MimeTypeArray': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'MimeTypeArray': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].namedItem(...args);
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of MimeTypeArray."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(MimeTypeArray.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "MimeTypeArray", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = MimeTypeArray;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MimeTypeArray
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(77006);
-
-
-/***/ }),
-
-/***/ 35364:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const MouseEventInit = __nccwpck_require__(88445);
-const EventTarget = __nccwpck_require__(71038);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "MouseEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MouseEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MouseEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MouseEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'MouseEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'MouseEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = MouseEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'MouseEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- getModifierState(keyArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getModifierState' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getModifierState' on 'MouseEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getModifierState' on 'MouseEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getModifierState(...args);
- }
-
- initMouseEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initMouseEvent' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initMouseEvent' on 'MouseEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 5",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 6",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 7",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 8",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[8];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 9",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[9];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 10",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[10];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 11",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[11];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 12",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[12];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[13];
- if (curArg !== undefined) {
- curArg = conversions["short"](curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[14];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = EventTarget.convert(globalObject, curArg, {
- context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initMouseEvent(...args);
- }
-
- get screenX() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get screenX' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["screenX"];
- }
-
- get screenY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get screenY' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["screenY"];
- }
-
- get clientX() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientX' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["clientX"];
- }
-
- get clientY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get clientY' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["clientY"];
- }
-
- get ctrlKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ctrlKey' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["ctrlKey"];
- }
-
- get shiftKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shiftKey' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["shiftKey"];
- }
-
- get altKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get altKey' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["altKey"];
- }
-
- get metaKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get metaKey' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["metaKey"];
- }
-
- get button() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get button' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["button"];
- }
-
- get buttons() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get buttons' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["buttons"];
- }
-
- get relatedTarget() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get relatedTarget' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);
- }
-
- get pageX() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get pageX' called on an object that is not a valid instance of MouseEvent.");
- }
-
- return esValue[implSymbol]["pageX"];
- }
-
- get pageY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get pageY' called on an object that is not a valid instance of MouseEvent.");
- }
-
- return esValue[implSymbol]["pageY"];
- }
-
- get x() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get x' called on an object that is not a valid instance of MouseEvent.");
- }
-
- return esValue[implSymbol]["x"];
- }
-
- get y() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get y' called on an object that is not a valid instance of MouseEvent.");
- }
-
- return esValue[implSymbol]["y"];
- }
-
- get offsetX() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetX' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["offsetX"];
- }
-
- get offsetY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get offsetY' called on an object that is not a valid instance of MouseEvent."
- );
- }
-
- return esValue[implSymbol]["offsetY"];
- }
- }
- Object.defineProperties(MouseEvent.prototype, {
- getModifierState: { enumerable: true },
- initMouseEvent: { enumerable: true },
- screenX: { enumerable: true },
- screenY: { enumerable: true },
- clientX: { enumerable: true },
- clientY: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- button: { enumerable: true },
- buttons: { enumerable: true },
- relatedTarget: { enumerable: true },
- pageX: { enumerable: true },
- pageY: { enumerable: true },
- x: { enumerable: true },
- y: { enumerable: true },
- offsetX: { enumerable: true },
- offsetY: { enumerable: true },
- [Symbol.toStringTag]: { value: "MouseEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = MouseEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MouseEvent
- });
-};
-
-const Impl = __nccwpck_require__(91684);
-
-
-/***/ }),
-
-/***/ 88445:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventTarget = __nccwpck_require__(71038);
-const EventModifierInit = __nccwpck_require__(22409);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "button";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["short"](value, { context: context + " has member 'button' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "buttons";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned short"](value, {
- context: context + " has member 'buttons' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "clientX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'clientX' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "clientX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'clientX' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "clientY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'clientY' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "clientY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'clientY' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "relatedTarget";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = EventTarget.convert(globalObject, value, { context: context + " has member 'relatedTarget' that" });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "screenX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'screenX' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "screenX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'screenX' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "screenY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'screenY' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "screenY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'screenY' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 27319:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (typeof value !== "function") {
- throw new globalObject.TypeError(context + " is not a function");
- }
-
- function invokeTheCallbackFunction(mutations, observer) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- mutations = utils.tryWrapperForImpl(mutations);
-
- observer = utils.tryWrapperForImpl(observer);
-
- callResult = Reflect.apply(value, thisArg, [mutations, observer]);
- }
-
- invokeTheCallbackFunction.construct = (mutations, observer) => {
- mutations = utils.tryWrapperForImpl(mutations);
-
- observer = utils.tryWrapperForImpl(observer);
-
- let callResult = Reflect.construct(value, [mutations, observer]);
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 41260:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const MutationCallback = __nccwpck_require__(27319);
-const Node = __nccwpck_require__(41209);
-const MutationObserverInit = __nccwpck_require__(3901);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "MutationObserver";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MutationObserver'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MutationObserver"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MutationObserver {
- constructor(callback) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'MutationObserver': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = MutationCallback.convert(globalObject, curArg, {
- context: "Failed to construct 'MutationObserver': parameter 1"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- observe(target) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'observe' called on an object that is not a valid instance of MutationObserver."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'observe' on 'MutationObserver': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'observe' on 'MutationObserver': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = MutationObserverInit.convert(globalObject, curArg, {
- context: "Failed to execute 'observe' on 'MutationObserver': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].observe(...args);
- }
-
- disconnect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'disconnect' called on an object that is not a valid instance of MutationObserver."
- );
- }
-
- return esValue[implSymbol].disconnect();
- }
-
- takeRecords() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'takeRecords' called on an object that is not a valid instance of MutationObserver."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].takeRecords());
- }
- }
- Object.defineProperties(MutationObserver.prototype, {
- observe: { enumerable: true },
- disconnect: { enumerable: true },
- takeRecords: { enumerable: true },
- [Symbol.toStringTag]: { value: "MutationObserver", configurable: true }
- });
- ctorRegistry[interfaceName] = MutationObserver;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MutationObserver
- });
-};
-
-const Impl = __nccwpck_require__(53464);
-
-
-/***/ }),
-
-/***/ 3901:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "attributeFilter";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(
- context + " has member 'attributeFilter' that" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = conversions["DOMString"](nextItem, {
- context: context + " has member 'attributeFilter' that" + "'s element",
- globals: globalObject
- });
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- }
- }
-
- {
- const key = "attributeOldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'attributeOldValue' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-
- {
- const key = "attributes";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'attributes' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-
- {
- const key = "characterData";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'characterData' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-
- {
- const key = "characterDataOldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'characterDataOldValue' that",
- globals: globalObject
- });
-
- ret[key] = value;
- }
- }
-
- {
- const key = "childList";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'childList' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "subtree";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, { context: context + " has member 'subtree' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 34198:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "MutationRecord";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'MutationRecord'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["MutationRecord"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class MutationRecord {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get type' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return esValue[implSymbol]["type"];
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return utils.getSameObject(this, "target", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
- });
- }
-
- get addedNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get addedNodes' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return utils.getSameObject(this, "addedNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["addedNodes"]);
- });
- }
-
- get removedNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get removedNodes' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return utils.getSameObject(this, "removedNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["removedNodes"]);
- });
- }
-
- get previousSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get previousSibling' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
- }
-
- get nextSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get nextSibling' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
- }
-
- get attributeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get attributeName' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return esValue[implSymbol]["attributeName"];
- }
-
- get attributeNamespace() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get attributeNamespace' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return esValue[implSymbol]["attributeNamespace"];
- }
-
- get oldValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oldValue' called on an object that is not a valid instance of MutationRecord."
- );
- }
-
- return esValue[implSymbol]["oldValue"];
- }
- }
- Object.defineProperties(MutationRecord.prototype, {
- type: { enumerable: true },
- target: { enumerable: true },
- addedNodes: { enumerable: true },
- removedNodes: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- attributeName: { enumerable: true },
- attributeNamespace: { enumerable: true },
- oldValue: { enumerable: true },
- [Symbol.toStringTag]: { value: "MutationRecord", configurable: true }
- });
- ctorRegistry[interfaceName] = MutationRecord;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: MutationRecord
- });
-};
-
-const Impl = __nccwpck_require__(87203);
-
-
-/***/ }),
-
-/***/ 90212:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Attr = __nccwpck_require__(78717);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "NamedNodeMap";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'NamedNodeMap'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["NamedNodeMap"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class NamedNodeMap {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of NamedNodeMap.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'NamedNodeMap': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'NamedNodeMap': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- getNamedItem(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getNamedItem' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getNamedItem' on 'NamedNodeMap': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItem' on 'NamedNodeMap': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItem(...args));
- }
-
- getNamedItemNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getNamedItemNS' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'getNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getNamedItemNS' on 'NamedNodeMap': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getNamedItemNS(...args));
- }
-
- setNamedItem(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setNamedItem' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setNamedItem' on 'NamedNodeMap': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Attr.convert(globalObject, curArg, {
- context: "Failed to execute 'setNamedItem' on 'NamedNodeMap': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItem(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- setNamedItemNS(attr) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setNamedItemNS' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setNamedItemNS' on 'NamedNodeMap': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Attr.convert(globalObject, curArg, {
- context: "Failed to execute 'setNamedItemNS' on 'NamedNodeMap': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].setNamedItemNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeNamedItem(qualifiedName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeNamedItem' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeNamedItem' on 'NamedNodeMap': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItem' on 'NamedNodeMap': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItem(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeNamedItemNS(namespace, localName) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeNamedItemNS' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeNamedItemNS(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of NamedNodeMap."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(NamedNodeMap.prototype, {
- item: { enumerable: true },
- getNamedItem: { enumerable: true },
- getNamedItemNS: { enumerable: true },
- setNamedItem: { enumerable: true },
- setNamedItemNS: { enumerable: true },
- removeNamedItem: { enumerable: true },
- removeNamedItemNS: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "NamedNodeMap", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = NamedNodeMap;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: NamedNodeMap
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- const namedValue = target[implSymbol].getNamedItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: false,
- enumerable: false,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
- if (!utils.hasOwn(target, P)) {
- const creating = !(target[implSymbol].getNamedItem(P) !== null);
- if (!creating) {
- return false;
- }
- }
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- if (target[implSymbol].getNamedItem(P) !== null && !(P in target)) {
- return false;
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(28698);
-
-
-/***/ }),
-
-/***/ 96340:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Navigator";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Navigator'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Navigator"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Navigator {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- javaEnabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'javaEnabled' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol].javaEnabled();
- }
-
- get appCodeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get appCodeName' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["appCodeName"];
- }
-
- get appName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get appName' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["appName"];
- }
-
- get appVersion() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get appVersion' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["appVersion"];
- }
-
- get platform() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get platform' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["platform"];
- }
-
- get product() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get product' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["product"];
- }
-
- get productSub() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get productSub' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["productSub"];
- }
-
- get userAgent() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get userAgent' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["userAgent"];
- }
-
- get vendor() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get vendor' called on an object that is not a valid instance of Navigator.");
- }
-
- return esValue[implSymbol]["vendor"];
- }
-
- get vendorSub() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get vendorSub' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["vendorSub"];
- }
-
- get language() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get language' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["language"];
- }
-
- get languages() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get languages' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["languages"]);
- }
-
- get onLine() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onLine' called on an object that is not a valid instance of Navigator.");
- }
-
- return esValue[implSymbol]["onLine"];
- }
-
- get cookieEnabled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get cookieEnabled' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["cookieEnabled"];
- }
-
- get plugins() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get plugins' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return utils.getSameObject(this, "plugins", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["plugins"]);
- });
- }
-
- get mimeTypes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get mimeTypes' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return utils.getSameObject(this, "mimeTypes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["mimeTypes"]);
- });
- }
-
- get hardwareConcurrency() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get hardwareConcurrency' called on an object that is not a valid instance of Navigator."
- );
- }
-
- return esValue[implSymbol]["hardwareConcurrency"];
- }
- }
- Object.defineProperties(Navigator.prototype, {
- javaEnabled: { enumerable: true },
- appCodeName: { enumerable: true },
- appName: { enumerable: true },
- appVersion: { enumerable: true },
- platform: { enumerable: true },
- product: { enumerable: true },
- productSub: { enumerable: true },
- userAgent: { enumerable: true },
- vendor: { enumerable: true },
- vendorSub: { enumerable: true },
- language: { enumerable: true },
- languages: { enumerable: true },
- onLine: { enumerable: true },
- cookieEnabled: { enumerable: true },
- plugins: { enumerable: true },
- mimeTypes: { enumerable: true },
- hardwareConcurrency: { enumerable: true },
- [Symbol.toStringTag]: { value: "Navigator", configurable: true }
- });
- ctorRegistry[interfaceName] = Navigator;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Navigator
- });
-};
-
-const Impl = __nccwpck_require__(48925);
-
-
-/***/ }),
-
-/***/ 41209:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const GetRootNodeOptions = __nccwpck_require__(99981);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "Node";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Node'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Node"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Node extends globalObject.EventTarget {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- getRootNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'getRootNode' called on an object that is not a valid instance of Node.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = GetRootNodeOptions.convert(globalObject, curArg, {
- context: "Failed to execute 'getRootNode' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getRootNode(...args));
- }
-
- hasChildNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'hasChildNodes' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol].hasChildNodes();
- }
-
- normalize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'normalize' called on an object that is not a valid instance of Node.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].normalize();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- cloneNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'cloneNode' called on an object that is not a valid instance of Node.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'cloneNode' on 'Node': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneNode(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- isEqualNode(otherNode) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'isEqualNode' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'isEqualNode' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'isEqualNode' on 'Node': parameter 1"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].isEqualNode(...args);
- }
-
- isSameNode(otherNode) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'isSameNode' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'isSameNode' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'isSameNode' on 'Node': parameter 1"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].isSameNode(...args);
- }
-
- compareDocumentPosition(other) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'compareDocumentPosition' called on an object that is not a valid instance of Node."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'compareDocumentPosition' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'compareDocumentPosition' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].compareDocumentPosition(...args);
- }
-
- contains(other) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'contains' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'contains' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'contains' on 'Node': parameter 1"
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].contains(...args);
- }
-
- lookupPrefix(namespace) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'lookupPrefix' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'lookupPrefix' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'lookupPrefix' on 'Node': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].lookupPrefix(...args);
- }
-
- lookupNamespaceURI(prefix) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'lookupNamespaceURI' called on an object that is not a valid instance of Node."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'lookupNamespaceURI' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'lookupNamespaceURI' on 'Node': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].lookupNamespaceURI(...args);
- }
-
- isDefaultNamespace(namespace) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'isDefaultNamespace' called on an object that is not a valid instance of Node."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'isDefaultNamespace' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'isDefaultNamespace' on 'Node': parameter 1",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].isDefaultNamespace(...args);
- }
-
- insertBefore(node, child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'insertBefore' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'insertBefore' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'insertBefore' on 'Node': parameter 2"
- });
- }
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].insertBefore(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- appendChild(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'appendChild' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'appendChild' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'appendChild' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].appendChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- replaceChild(node, child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'replaceChild' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'replaceChild' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'replaceChild' on 'Node': parameter 2"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].replaceChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- removeChild(child) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'removeChild' called on an object that is not a valid instance of Node.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeChild' on 'Node': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'removeChild' on 'Node': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].removeChild(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get nodeType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get nodeType' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["nodeType"];
- }
-
- get nodeName() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get nodeName' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["nodeName"];
- }
-
- get baseURI() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get baseURI' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["baseURI"];
- }
-
- get isConnected() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get isConnected' called on an object that is not a valid instance of Node.");
- }
-
- return esValue[implSymbol]["isConnected"];
- }
-
- get ownerDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ownerDocument' called on an object that is not a valid instance of Node."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerDocument"]);
- }
-
- get parentNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get parentNode' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["parentNode"]);
- }
-
- get parentElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get parentElement' called on an object that is not a valid instance of Node."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["parentElement"]);
- }
-
- get childNodes() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get childNodes' called on an object that is not a valid instance of Node.");
- }
-
- return utils.getSameObject(this, "childNodes", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["childNodes"]);
- });
- }
-
- get firstChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get firstChild' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["firstChild"]);
- }
-
- get lastChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get lastChild' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["lastChild"]);
- }
-
- get previousSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get previousSibling' called on an object that is not a valid instance of Node."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["previousSibling"]);
- }
-
- get nextSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get nextSibling' called on an object that is not a valid instance of Node.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["nextSibling"]);
- }
-
- get nodeValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get nodeValue' called on an object that is not a valid instance of Node.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["nodeValue"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set nodeValue(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set nodeValue' called on an object that is not a valid instance of Node.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nodeValue' property on 'Node': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["nodeValue"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get textContent() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get textContent' called on an object that is not a valid instance of Node.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["textContent"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set textContent(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set textContent' called on an object that is not a valid instance of Node.");
- }
-
- if (V === null || V === undefined) {
- V = null;
- } else {
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'textContent' property on 'Node': The provided value",
- globals: globalObject
- });
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["textContent"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(Node.prototype, {
- getRootNode: { enumerable: true },
- hasChildNodes: { enumerable: true },
- normalize: { enumerable: true },
- cloneNode: { enumerable: true },
- isEqualNode: { enumerable: true },
- isSameNode: { enumerable: true },
- compareDocumentPosition: { enumerable: true },
- contains: { enumerable: true },
- lookupPrefix: { enumerable: true },
- lookupNamespaceURI: { enumerable: true },
- isDefaultNamespace: { enumerable: true },
- insertBefore: { enumerable: true },
- appendChild: { enumerable: true },
- replaceChild: { enumerable: true },
- removeChild: { enumerable: true },
- nodeType: { enumerable: true },
- nodeName: { enumerable: true },
- baseURI: { enumerable: true },
- isConnected: { enumerable: true },
- ownerDocument: { enumerable: true },
- parentNode: { enumerable: true },
- parentElement: { enumerable: true },
- childNodes: { enumerable: true },
- firstChild: { enumerable: true },
- lastChild: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- nodeValue: { enumerable: true },
- textContent: { enumerable: true },
- [Symbol.toStringTag]: { value: "Node", configurable: true },
- ELEMENT_NODE: { value: 1, enumerable: true },
- ATTRIBUTE_NODE: { value: 2, enumerable: true },
- TEXT_NODE: { value: 3, enumerable: true },
- CDATA_SECTION_NODE: { value: 4, enumerable: true },
- ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
- ENTITY_NODE: { value: 6, enumerable: true },
- PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
- COMMENT_NODE: { value: 8, enumerable: true },
- DOCUMENT_NODE: { value: 9, enumerable: true },
- DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
- DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
- NOTATION_NODE: { value: 12, enumerable: true },
- DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
- DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
- DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
- DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
- DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
- });
- Object.defineProperties(Node, {
- ELEMENT_NODE: { value: 1, enumerable: true },
- ATTRIBUTE_NODE: { value: 2, enumerable: true },
- TEXT_NODE: { value: 3, enumerable: true },
- CDATA_SECTION_NODE: { value: 4, enumerable: true },
- ENTITY_REFERENCE_NODE: { value: 5, enumerable: true },
- ENTITY_NODE: { value: 6, enumerable: true },
- PROCESSING_INSTRUCTION_NODE: { value: 7, enumerable: true },
- COMMENT_NODE: { value: 8, enumerable: true },
- DOCUMENT_NODE: { value: 9, enumerable: true },
- DOCUMENT_TYPE_NODE: { value: 10, enumerable: true },
- DOCUMENT_FRAGMENT_NODE: { value: 11, enumerable: true },
- NOTATION_NODE: { value: 12, enumerable: true },
- DOCUMENT_POSITION_DISCONNECTED: { value: 0x01, enumerable: true },
- DOCUMENT_POSITION_PRECEDING: { value: 0x02, enumerable: true },
- DOCUMENT_POSITION_FOLLOWING: { value: 0x04, enumerable: true },
- DOCUMENT_POSITION_CONTAINS: { value: 0x08, enumerable: true },
- DOCUMENT_POSITION_CONTAINED_BY: { value: 0x10, enumerable: true },
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: { value: 0x20, enumerable: true }
- });
- ctorRegistry[interfaceName] = Node;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Node
- });
-};
-
-const Impl = __nccwpck_require__(53563);
-
-
-/***/ }),
-
-/***/ 39151:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- function callTheUserObjectsOperation(node) {
- let thisArg = utils.tryWrapperForImpl(this);
- let O = value;
- let X = O;
-
- if (typeof O !== "function") {
- X = O["acceptNode"];
- if (typeof X !== "function") {
- throw new globalObject.TypeError(`${context} does not correctly implement NodeFilter.`);
- }
- thisArg = O;
- }
-
- node = utils.tryWrapperForImpl(node);
-
- let callResult = Reflect.apply(X, thisArg, [node]);
-
- callResult = conversions["unsigned short"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- }
-
- callTheUserObjectsOperation[utils.wrapperSymbol] = value;
- callTheUserObjectsOperation.objectReference = value;
-
- return callTheUserObjectsOperation;
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- const NodeFilter = () => {
- throw new globalObject.TypeError("Illegal invocation");
- };
-
- Object.defineProperties(NodeFilter, {
- FILTER_ACCEPT: { value: 1, enumerable: true },
- FILTER_REJECT: { value: 2, enumerable: true },
- FILTER_SKIP: { value: 3, enumerable: true },
- SHOW_ALL: { value: 0xffffffff, enumerable: true },
- SHOW_ELEMENT: { value: 0x1, enumerable: true },
- SHOW_ATTRIBUTE: { value: 0x2, enumerable: true },
- SHOW_TEXT: { value: 0x4, enumerable: true },
- SHOW_CDATA_SECTION: { value: 0x8, enumerable: true },
- SHOW_ENTITY_REFERENCE: { value: 0x10, enumerable: true },
- SHOW_ENTITY: { value: 0x20, enumerable: true },
- SHOW_PROCESSING_INSTRUCTION: { value: 0x40, enumerable: true },
- SHOW_COMMENT: { value: 0x80, enumerable: true },
- SHOW_DOCUMENT: { value: 0x100, enumerable: true },
- SHOW_DOCUMENT_TYPE: { value: 0x200, enumerable: true },
- SHOW_DOCUMENT_FRAGMENT: { value: 0x400, enumerable: true },
- SHOW_NOTATION: { value: 0x800, enumerable: true }
- });
-
- Object.defineProperty(globalObject, "NodeFilter", {
- configurable: true,
- writable: true,
- value: NodeFilter
- });
-};
-
-
-/***/ }),
-
-/***/ 83882:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "NodeIterator";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'NodeIterator'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["NodeIterator"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class NodeIterator {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- nextNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'nextNode' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
- }
-
- previousNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'previousNode' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
- }
-
- detach() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'detach' called on an object that is not a valid instance of NodeIterator.");
- }
-
- return esValue[implSymbol].detach();
- }
-
- get root() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get root' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return utils.getSameObject(this, "root", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
- });
- }
-
- get referenceNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get referenceNode' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["referenceNode"]);
- }
-
- get pointerBeforeReferenceNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pointerBeforeReferenceNode' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return esValue[implSymbol]["pointerBeforeReferenceNode"];
- }
-
- get whatToShow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get whatToShow' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return esValue[implSymbol]["whatToShow"];
- }
-
- get filter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get filter' called on an object that is not a valid instance of NodeIterator."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
- }
- }
- Object.defineProperties(NodeIterator.prototype, {
- nextNode: { enumerable: true },
- previousNode: { enumerable: true },
- detach: { enumerable: true },
- root: { enumerable: true },
- referenceNode: { enumerable: true },
- pointerBeforeReferenceNode: { enumerable: true },
- whatToShow: { enumerable: true },
- filter: { enumerable: true },
- [Symbol.toStringTag]: { value: "NodeIterator", configurable: true }
- });
- ctorRegistry[interfaceName] = NodeIterator;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: NodeIterator
- });
-};
-
-const Impl = __nccwpck_require__(65483);
-
-
-/***/ }),
-
-/***/ 65427:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "NodeList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'NodeList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["NodeList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class NodeList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of NodeList.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'NodeList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'NodeList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of NodeList.");
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(NodeList.prototype, {
- item: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "NodeList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true },
- keys: { value: globalObject.Array.prototype.keys, configurable: true, enumerable: true, writable: true },
- values: { value: globalObject.Array.prototype.values, configurable: true, enumerable: true, writable: true },
- entries: { value: globalObject.Array.prototype.entries, configurable: true, enumerable: true, writable: true },
- forEach: { value: globalObject.Array.prototype.forEach, configurable: true, enumerable: true, writable: true }
- });
- ctorRegistry[interfaceName] = NodeList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: NodeList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(8165);
-
-
-/***/ }),
-
-/***/ 64546:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(event) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- if (typeof value === "function") {
- event = utils.tryWrapperForImpl(event);
-
- callResult = Reflect.apply(value, thisArg, [event]);
- }
-
- if (callResult === null || callResult === undefined) {
- callResult = null;
- } else {
- callResult = conversions["DOMString"](callResult, { context: context, globals: globalObject });
- }
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = event => {
- event = utils.tryWrapperForImpl(event);
-
- let callResult = Reflect.construct(value, [event]);
-
- if (callResult === null || callResult === undefined) {
- callResult = null;
- } else {
- callResult = conversions["DOMString"](callResult, { context: context, globals: globalObject });
- }
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 87517:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- function invokeTheCallbackFunction(...args) {
- const thisArg = utils.tryWrapperForImpl(this);
- let callResult;
-
- if (typeof value === "function") {
- for (let i = 0; i < Math.min(args.length, 5); i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- if (args.length < 1) {
- for (let i = args.length; i < 1; i++) {
- args[i] = undefined;
- }
- } else if (args.length > 5) {
- args.length = 5;
- }
-
- callResult = Reflect.apply(value, thisArg, args);
- }
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- }
-
- invokeTheCallbackFunction.construct = (...args) => {
- for (let i = 0; i < Math.min(args.length, 5); i++) {
- args[i] = utils.tryWrapperForImpl(args[i]);
- }
-
- if (args.length < 1) {
- for (let i = args.length; i < 1; i++) {
- args[i] = undefined;
- }
- } else if (args.length > 5) {
- args.length = 5;
- }
-
- let callResult = Reflect.construct(value, args);
-
- callResult = conversions["any"](callResult, { context: context, globals: globalObject });
-
- return callResult;
- };
-
- invokeTheCallbackFunction[utils.wrapperSymbol] = value;
- invokeTheCallbackFunction.objectReference = value;
-
- return invokeTheCallbackFunction;
-};
-
-
-/***/ }),
-
-/***/ 32941:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const PageTransitionEventInit = __nccwpck_require__(21782);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "PageTransitionEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'PageTransitionEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["PageTransitionEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class PageTransitionEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'PageTransitionEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'PageTransitionEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = PageTransitionEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'PageTransitionEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get persisted() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get persisted' called on an object that is not a valid instance of PageTransitionEvent."
- );
- }
-
- return esValue[implSymbol]["persisted"];
- }
- }
- Object.defineProperties(PageTransitionEvent.prototype, {
- persisted: { enumerable: true },
- [Symbol.toStringTag]: { value: "PageTransitionEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = PageTransitionEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: PageTransitionEvent
- });
-};
-
-const Impl = __nccwpck_require__(50265);
-
-
-/***/ }),
-
-/***/ 21782:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "persisted";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'persisted' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 19264:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "Performance";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Performance'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Performance"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Performance extends globalObject.EventTarget {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- now() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'now' called on an object that is not a valid instance of Performance.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].now());
- }
-
- toJSON() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'toJSON' called on an object that is not a valid instance of Performance.");
- }
-
- return esValue[implSymbol].toJSON();
- }
-
- get timeOrigin() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get timeOrigin' called on an object that is not a valid instance of Performance."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["timeOrigin"]);
- }
- }
- Object.defineProperties(Performance.prototype, {
- now: { enumerable: true },
- toJSON: { enumerable: true },
- timeOrigin: { enumerable: true },
- [Symbol.toStringTag]: { value: "Performance", configurable: true }
- });
- ctorRegistry[interfaceName] = Performance;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Performance
- });
-};
-
-const Impl = __nccwpck_require__(91248);
-
-
-/***/ }),
-
-/***/ 79870:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Plugin";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Plugin'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Plugin"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Plugin {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of Plugin.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'Plugin': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'Plugin': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'namedItem' called on an object that is not a valid instance of Plugin.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'Plugin': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'Plugin': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].namedItem(...args);
- }
-
- get name() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get name' called on an object that is not a valid instance of Plugin.");
- }
-
- return esValue[implSymbol]["name"];
- }
-
- get description() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get description' called on an object that is not a valid instance of Plugin."
- );
- }
-
- return esValue[implSymbol]["description"];
- }
-
- get filename() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get filename' called on an object that is not a valid instance of Plugin.");
- }
-
- return esValue[implSymbol]["filename"];
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of Plugin.");
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(Plugin.prototype, {
- item: { enumerable: true },
- namedItem: { enumerable: true },
- name: { enumerable: true },
- description: { enumerable: true },
- filename: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "Plugin", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = Plugin;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Plugin
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].item(index);
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].item(index);
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !target[implSymbol][utils.supportsPropertyIndex](index);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(49869);
-
-
-/***/ }),
-
-/***/ 9432:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "PluginArray";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'PluginArray'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["PluginArray"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class PluginArray {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- refresh() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'refresh' called on an object that is not a valid instance of PluginArray.");
- }
-
- return esValue[implSymbol].refresh();
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of PluginArray.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'PluginArray': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'PluginArray': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].item(...args);
- }
-
- namedItem(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'namedItem' called on an object that is not a valid instance of PluginArray."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'namedItem' on 'PluginArray': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'namedItem' on 'PluginArray': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].namedItem(...args);
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of PluginArray."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(PluginArray.prototype, {
- refresh: { enumerable: true },
- item: { enumerable: true },
- namedItem: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "PluginArray", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = PluginArray;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: PluginArray
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(28482);
-
-
-/***/ }),
-
-/***/ 57448:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const PopStateEventInit = __nccwpck_require__(18089);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "PopStateEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'PopStateEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["PopStateEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class PopStateEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'PopStateEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'PopStateEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = PopStateEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'PopStateEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get state() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get state' called on an object that is not a valid instance of PopStateEvent."
- );
- }
-
- return esValue[implSymbol]["state"];
- }
- }
- Object.defineProperties(PopStateEvent.prototype, {
- state: { enumerable: true },
- [Symbol.toStringTag]: { value: "PopStateEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = PopStateEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: PopStateEvent
- });
-};
-
-const Impl = __nccwpck_require__(46633);
-
-
-/***/ }),
-
-/***/ 18089:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "state";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["any"](value, { context: context + " has member 'state' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 75221:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
-
-const interfaceName = "ProcessingInstruction";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'ProcessingInstruction'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["ProcessingInstruction"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class ProcessingInstruction extends globalObject.CharacterData {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get target() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get target' called on an object that is not a valid instance of ProcessingInstruction."
- );
- }
-
- return esValue[implSymbol]["target"];
- }
- }
- Object.defineProperties(ProcessingInstruction.prototype, {
- target: { enumerable: true },
- [Symbol.toStringTag]: { value: "ProcessingInstruction", configurable: true }
- });
- ctorRegistry[interfaceName] = ProcessingInstruction;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ProcessingInstruction
- });
-};
-
-const Impl = __nccwpck_require__(71952);
-
-
-/***/ }),
-
-/***/ 34426:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ProgressEventInit = __nccwpck_require__(24624);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "ProgressEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'ProgressEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["ProgressEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class ProgressEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'ProgressEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'ProgressEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = ProgressEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'ProgressEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get lengthComputable() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get lengthComputable' called on an object that is not a valid instance of ProgressEvent."
- );
- }
-
- return esValue[implSymbol]["lengthComputable"];
- }
-
- get loaded() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get loaded' called on an object that is not a valid instance of ProgressEvent."
- );
- }
-
- return esValue[implSymbol]["loaded"];
- }
-
- get total() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get total' called on an object that is not a valid instance of ProgressEvent."
- );
- }
-
- return esValue[implSymbol]["total"];
- }
- }
- Object.defineProperties(ProgressEvent.prototype, {
- lengthComputable: { enumerable: true },
- loaded: { enumerable: true },
- total: { enumerable: true },
- [Symbol.toStringTag]: { value: "ProgressEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = ProgressEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ProgressEvent
- });
-};
-
-const Impl = __nccwpck_require__(38424);
-
-
-/***/ }),
-
-/***/ 24624:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "lengthComputable";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["boolean"](value, {
- context: context + " has member 'lengthComputable' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = false;
- }
- }
-
- {
- const key = "loaded";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long long"](value, {
- context: context + " has member 'loaded' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "total";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long long"](value, {
- context: context + " has member 'total' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 93458:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const NodeList = __nccwpck_require__(65427);
-
-const interfaceName = "RadioNodeList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'RadioNodeList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["RadioNodeList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- NodeList._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class RadioNodeList extends globalObject.NodeList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get value' called on an object that is not a valid instance of RadioNodeList."
- );
- }
-
- return esValue[implSymbol]["value"];
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set value' called on an object that is not a valid instance of RadioNodeList."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'value' property on 'RadioNodeList': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["value"] = V;
- }
- }
- Object.defineProperties(RadioNodeList.prototype, {
- value: { enumerable: true },
- [Symbol.toStringTag]: { value: "RadioNodeList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = RadioNodeList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: RadioNodeList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(14999);
-
-
-/***/ }),
-
-/***/ 38522:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const AbstractRange = __nccwpck_require__(10083);
-
-const interfaceName = "Range";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Range'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Range"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- AbstractRange._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Range extends globalObject.AbstractRange {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- setStart(node, offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setStart' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setStart' on 'Range': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setStart' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setStart' on 'Range': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setStart(...args);
- }
-
- setEnd(node, offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setEnd' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setEnd' on 'Range': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, { context: "Failed to execute 'setEnd' on 'Range': parameter 1" });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setEnd' on 'Range': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setEnd(...args);
- }
-
- setStartBefore(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setStartBefore' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setStartBefore' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setStartBefore' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setStartBefore(...args);
- }
-
- setStartAfter(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setStartAfter' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setStartAfter' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setStartAfter' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setStartAfter(...args);
- }
-
- setEndBefore(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setEndBefore' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setEndBefore' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setEndBefore' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setEndBefore(...args);
- }
-
- setEndAfter(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setEndAfter' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setEndAfter' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setEndAfter' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setEndAfter(...args);
- }
-
- collapse() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'collapse' called on an object that is not a valid instance of Range.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'collapse' on 'Range': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].collapse(...args);
- }
-
- selectNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'selectNode' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'selectNode' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'selectNode' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].selectNode(...args);
- }
-
- selectNodeContents(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'selectNodeContents' called on an object that is not a valid instance of Range."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'selectNodeContents' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'selectNodeContents' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].selectNodeContents(...args);
- }
-
- compareBoundaryPoints(how, sourceRange) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'compareBoundaryPoints' called on an object that is not a valid instance of Range."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'compareBoundaryPoints' on 'Range': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned short"](curArg, {
- context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = exports.convert(globalObject, curArg, {
- context: "Failed to execute 'compareBoundaryPoints' on 'Range': parameter 2"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].compareBoundaryPoints(...args);
- }
-
- deleteContents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'deleteContents' called on an object that is not a valid instance of Range.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteContents();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- extractContents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'extractContents' called on an object that is not a valid instance of Range."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].extractContents());
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- cloneContents() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'cloneContents' called on an object that is not a valid instance of Range.");
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneContents());
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- insertNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'insertNode' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertNode' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'insertNode' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].insertNode(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- surroundContents(newParent) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'surroundContents' called on an object that is not a valid instance of Range."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'surroundContents' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'surroundContents' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].surroundContents(...args);
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- cloneRange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'cloneRange' called on an object that is not a valid instance of Range.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].cloneRange());
- }
-
- detach() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'detach' called on an object that is not a valid instance of Range.");
- }
-
- return esValue[implSymbol].detach();
- }
-
- isPointInRange(node, offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'isPointInRange' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'isPointInRange' on 'Range': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'isPointInRange' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'isPointInRange' on 'Range': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].isPointInRange(...args);
- }
-
- comparePoint(node, offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'comparePoint' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'comparePoint' on 'Range': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'comparePoint' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'comparePoint' on 'Range': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].comparePoint(...args);
- }
-
- intersectsNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'intersectsNode' called on an object that is not a valid instance of Range.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'intersectsNode' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'intersectsNode' on 'Range': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].intersectsNode(...args);
- }
-
- toString() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'toString' called on an object that is not a valid instance of Range.");
- }
-
- return esValue[implSymbol].toString();
- }
-
- createContextualFragment(fragment) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createContextualFragment' called on an object that is not a valid instance of Range."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'createContextualFragment' on 'Range': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'createContextualFragment' on 'Range': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return utils.tryWrapperForImpl(esValue[implSymbol].createContextualFragment(...args));
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get commonAncestorContainer() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get commonAncestorContainer' called on an object that is not a valid instance of Range."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["commonAncestorContainer"]);
- }
- }
- Object.defineProperties(Range.prototype, {
- setStart: { enumerable: true },
- setEnd: { enumerable: true },
- setStartBefore: { enumerable: true },
- setStartAfter: { enumerable: true },
- setEndBefore: { enumerable: true },
- setEndAfter: { enumerable: true },
- collapse: { enumerable: true },
- selectNode: { enumerable: true },
- selectNodeContents: { enumerable: true },
- compareBoundaryPoints: { enumerable: true },
- deleteContents: { enumerable: true },
- extractContents: { enumerable: true },
- cloneContents: { enumerable: true },
- insertNode: { enumerable: true },
- surroundContents: { enumerable: true },
- cloneRange: { enumerable: true },
- detach: { enumerable: true },
- isPointInRange: { enumerable: true },
- comparePoint: { enumerable: true },
- intersectsNode: { enumerable: true },
- toString: { enumerable: true },
- createContextualFragment: { enumerable: true },
- commonAncestorContainer: { enumerable: true },
- [Symbol.toStringTag]: { value: "Range", configurable: true },
- START_TO_START: { value: 0, enumerable: true },
- START_TO_END: { value: 1, enumerable: true },
- END_TO_END: { value: 2, enumerable: true },
- END_TO_START: { value: 3, enumerable: true }
- });
- Object.defineProperties(Range, {
- START_TO_START: { value: 0, enumerable: true },
- START_TO_END: { value: 1, enumerable: true },
- END_TO_END: { value: 2, enumerable: true },
- END_TO_START: { value: 3, enumerable: true }
- });
- ctorRegistry[interfaceName] = Range;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Range
- });
-};
-
-const Impl = __nccwpck_require__(67156);
-
-
-/***/ }),
-
-/***/ 69927:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "SVGAnimatedString";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGAnimatedString'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGAnimatedString"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGAnimatedString {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get baseVal() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get baseVal' called on an object that is not a valid instance of SVGAnimatedString."
- );
- }
-
- return esValue[implSymbol]["baseVal"];
- }
-
- set baseVal(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set baseVal' called on an object that is not a valid instance of SVGAnimatedString."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'baseVal' property on 'SVGAnimatedString': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["baseVal"] = V;
- }
-
- get animVal() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get animVal' called on an object that is not a valid instance of SVGAnimatedString."
- );
- }
-
- return esValue[implSymbol]["animVal"];
- }
- }
- Object.defineProperties(SVGAnimatedString.prototype, {
- baseVal: { enumerable: true },
- animVal: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGAnimatedString", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGAnimatedString;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGAnimatedString
- });
-};
-
-const Impl = __nccwpck_require__(3710);
-
-
-/***/ }),
-
-/***/ 98086:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Element = __nccwpck_require__(4444);
-
-const interfaceName = "SVGElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Element._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGElement extends globalObject.Element {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- focus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'focus' called on an object that is not a valid instance of SVGElement.");
- }
-
- return esValue[implSymbol].focus();
- }
-
- blur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'blur' called on an object that is not a valid instance of SVGElement.");
- }
-
- return esValue[implSymbol].blur();
- }
-
- get className() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get className' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.getSameObject(this, "className", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["className"]);
- });
- }
-
- get ownerSVGElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ownerSVGElement' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ownerSVGElement"]);
- }
-
- get viewportElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get viewportElement' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["viewportElement"]);
- }
-
- get style() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get style' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.getSameObject(this, "style", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
- });
- }
-
- set style(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set style' called on an object that is not a valid instance of SVGElement.");
- }
-
- const Q = esValue["style"];
- if (!utils.isObject(Q)) {
- throw new globalObject.TypeError("Property 'style' is not an object");
- }
- Reflect.set(Q, "cssText", V);
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onauxclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onauxclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
- }
-
- set onauxclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onauxclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onauxclick' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onauxclick"] = V;
- }
-
- get onbeforeinput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeinput' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeinput"]);
- }
-
- set onbeforeinput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeinput' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeinput' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeinput"] = V;
- }
-
- get onbeforematch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforematch' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforematch"]);
- }
-
- set onbeforematch(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforematch' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforematch' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforematch"] = V;
- }
-
- get onbeforetoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforetoggle' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforetoggle"]);
- }
-
- set onbeforetoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforetoggle' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforetoggle' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforetoggle"] = V;
- }
-
- get onblur() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onblur' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
- }
-
- set onblur(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onblur' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onblur' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onblur"] = V;
- }
-
- get oncancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncancel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
- }
-
- set oncancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncancel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncancel' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncancel"] = V;
- }
-
- get oncanplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplay' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
- }
-
- set oncanplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplay' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplay' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplay"] = V;
- }
-
- get oncanplaythrough() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncanplaythrough' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
- }
-
- set oncanplaythrough(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncanplaythrough' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncanplaythrough' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncanplaythrough"] = V;
- }
-
- get onchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
- }
-
- set onchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onchange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onchange"] = V;
- }
-
- get onclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
- }
-
- set onclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclick' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onclick"] = V;
- }
-
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclose' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
-
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclose' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclose' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
-
- get oncontextlost() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextlost' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextlost"]);
- }
-
- set oncontextlost(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextlost' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextlost' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextlost"] = V;
- }
-
- get oncontextmenu() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextmenu' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
- }
-
- set oncontextmenu(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextmenu' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextmenu' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextmenu"] = V;
- }
-
- get oncontextrestored() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncontextrestored' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextrestored"]);
- }
-
- set oncontextrestored(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncontextrestored' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncontextrestored' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncontextrestored"] = V;
- }
-
- get oncopy() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncopy' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncopy"]);
- }
-
- set oncopy(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncopy' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncopy' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncopy"] = V;
- }
-
- get oncuechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oncuechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
- }
-
- set oncuechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oncuechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncuechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncuechange"] = V;
- }
-
- get oncut() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get oncut' called on an object that is not a valid instance of SVGElement.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oncut"]);
- }
-
- set oncut(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set oncut' called on an object that is not a valid instance of SVGElement.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oncut' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oncut"] = V;
- }
-
- get ondblclick() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondblclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
- }
-
- set ondblclick(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondblclick' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondblclick' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondblclick"] = V;
- }
-
- get ondrag() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrag' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
- }
-
- set ondrag(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrag' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrag' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrag"] = V;
- }
-
- get ondragend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
- }
-
- set ondragend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragend"] = V;
- }
-
- get ondragenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragenter' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
- }
-
- set ondragenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragenter' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragenter' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragenter"] = V;
- }
-
- get ondragleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragleave' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
- }
-
- set ondragleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragleave' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragleave' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragleave"] = V;
- }
-
- get ondragover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragover' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
- }
-
- set ondragover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragover' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragover' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragover"] = V;
- }
-
- get ondragstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondragstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
- }
-
- set ondragstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondragstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondragstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondragstart"] = V;
- }
-
- get ondrop() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondrop' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
- }
-
- set ondrop(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondrop' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondrop' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondrop"] = V;
- }
-
- get ondurationchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ondurationchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
- }
-
- set ondurationchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ondurationchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ondurationchange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ondurationchange"] = V;
- }
-
- get onemptied() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onemptied' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
- }
-
- set onemptied(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onemptied' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onemptied' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onemptied"] = V;
- }
-
- get onended() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onended' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
- }
-
- set onended(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onended' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onended' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onended"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnErrorEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onfocus() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onfocus' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
- }
-
- set onfocus(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onfocus' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onfocus' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onfocus"] = V;
- }
-
- get onformdata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onformdata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onformdata"]);
- }
-
- set onformdata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onformdata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onformdata' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onformdata"] = V;
- }
-
- get oninput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninput' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
- }
-
- set oninput(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninput' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninput' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oninput"] = V;
- }
-
- get oninvalid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oninvalid' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
- }
-
- set oninvalid(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set oninvalid' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'oninvalid' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["oninvalid"] = V;
- }
-
- get onkeydown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeydown' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
- }
-
- set onkeydown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeydown' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeydown' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeydown"] = V;
- }
-
- get onkeypress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeypress' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
- }
-
- set onkeypress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeypress' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeypress' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeypress"] = V;
- }
-
- get onkeyup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onkeyup' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
- }
-
- set onkeyup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onkeyup' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onkeyup' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onkeyup"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onload' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onload' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
-
- get onloadeddata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadeddata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
- }
-
- set onloadeddata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadeddata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadeddata' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadeddata"] = V;
- }
-
- get onloadedmetadata() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadedmetadata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
- }
-
- set onloadedmetadata(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadedmetadata' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadedmetadata' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadedmetadata"] = V;
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
-
- get onmousedown() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousedown' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
- }
-
- set onmousedown(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousedown' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousedown' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousedown"] = V;
- }
-
- get onmouseenter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
- }
-
- set onmouseenter(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseenter' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseenter"] = V;
- }
-
- get onmouseleave() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
- }
-
- set onmouseleave(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- return;
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseleave' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseleave"] = V;
- }
-
- get onmousemove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmousemove' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
- }
-
- set onmousemove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmousemove' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmousemove' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmousemove"] = V;
- }
-
- get onmouseout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseout' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
- }
-
- set onmouseout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseout' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseout' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseout"] = V;
- }
-
- get onmouseover() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseover' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
- }
-
- set onmouseover(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseover' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseover' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseover"] = V;
- }
-
- get onmouseup() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmouseup' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
- }
-
- set onmouseup(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmouseup' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmouseup' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmouseup"] = V;
- }
-
- get onpaste() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpaste' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpaste"]);
- }
-
- set onpaste(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpaste' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpaste' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpaste"] = V;
- }
-
- get onpause() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpause' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
- }
-
- set onpause(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpause' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpause' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpause"] = V;
- }
-
- get onplay() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplay' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
- }
-
- set onplay(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplay' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplay' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onplay"] = V;
- }
-
- get onplaying() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onplaying' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
- }
-
- set onplaying(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onplaying' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onplaying' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onplaying"] = V;
- }
-
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onratechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onratechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
- }
-
- set onratechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onratechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onratechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onratechange"] = V;
- }
-
- get onreset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onreset' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
- }
-
- set onreset(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onreset' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreset' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onreset"] = V;
- }
-
- get onresize() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onresize' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
- }
-
- set onresize(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onresize' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onresize' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onresize"] = V;
- }
-
- get onscroll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscroll' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
- }
-
- set onscroll(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscroll' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscroll' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onscroll"] = V;
- }
-
- get onscrollend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onscrollend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onscrollend"]);
- }
-
- set onscrollend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onscrollend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onscrollend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onscrollend"] = V;
- }
-
- get onsecuritypolicyviolation() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
- }
-
- set onsecuritypolicyviolation(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsecuritypolicyviolation' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsecuritypolicyviolation"] = V;
- }
-
- get onseeked() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeked' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
- }
-
- set onseeked(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeked' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeked' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeked"] = V;
- }
-
- get onseeking() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onseeking' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
- }
-
- set onseeking(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onseeking' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onseeking' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onseeking"] = V;
- }
-
- get onselect() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onselect' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
- }
-
- set onselect(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onselect' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onselect' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onselect"] = V;
- }
-
- get onslotchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onslotchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onslotchange"]);
- }
-
- set onslotchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onslotchange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onslotchange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onslotchange"] = V;
- }
-
- get onstalled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstalled' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
- }
-
- set onstalled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstalled' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstalled' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onstalled"] = V;
- }
-
- get onsubmit() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsubmit' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
- }
-
- set onsubmit(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsubmit' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsubmit' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsubmit"] = V;
- }
-
- get onsuspend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onsuspend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
- }
-
- set onsuspend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onsuspend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onsuspend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onsuspend"] = V;
- }
-
- get ontimeupdate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontimeupdate' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
- }
-
- set ontimeupdate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontimeupdate' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontimeupdate' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontimeupdate"] = V;
- }
-
- get ontoggle() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontoggle' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
- }
-
- set ontoggle(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontoggle' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontoggle' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontoggle"] = V;
- }
-
- get onvolumechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onvolumechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
- }
-
- set onvolumechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onvolumechange' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onvolumechange' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onvolumechange"] = V;
- }
-
- get onwaiting() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwaiting' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
- }
-
- set onwaiting(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwaiting' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwaiting' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwaiting"] = V;
- }
-
- get onwebkitanimationend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationend"]);
- }
-
- set onwebkitanimationend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationend"] = V;
- }
-
- get onwebkitanimationiteration() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationiteration"]);
- }
-
- set onwebkitanimationiteration(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationiteration' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationiteration"] = V;
- }
-
- get onwebkitanimationstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationstart"]);
- }
-
- set onwebkitanimationstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkitanimationstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkitanimationstart"] = V;
- }
-
- get onwebkittransitionend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkittransitionend"]);
- }
-
- set onwebkittransitionend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwebkittransitionend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwebkittransitionend"] = V;
- }
-
- get onwheel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onwheel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
- }
-
- set onwheel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onwheel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onwheel' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onwheel"] = V;
- }
-
- get ontouchstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchstart"]);
- }
-
- set ontouchstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchstart' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchstart' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchstart"] = V;
- }
-
- get ontouchend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchend"]);
- }
-
- set ontouchend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchend' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchend' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchend"] = V;
- }
-
- get ontouchmove() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchmove' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchmove"]);
- }
-
- set ontouchmove(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchmove' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchmove' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchmove"] = V;
- }
-
- get ontouchcancel() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontouchcancel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchcancel"]);
- }
-
- set ontouchcancel(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontouchcancel' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontouchcancel' property on 'SVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ontouchcancel"] = V;
- }
-
- get dataset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get dataset' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- return utils.getSameObject(this, "dataset", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
- });
- }
-
- get nonce() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get nonce' called on an object that is not a valid instance of SVGElement.");
- }
-
- const value = esValue[implSymbol].getAttributeNS(null, "nonce");
- return value === null ? "" : value;
- }
-
- set nonce(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set nonce' called on an object that is not a valid instance of SVGElement.");
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'nonce' property on 'SVGElement': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol].setAttributeNS(null, "nonce", V);
- }
-
- get tabIndex() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tabIndex' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["tabIndex"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set tabIndex(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set tabIndex' called on an object that is not a valid instance of SVGElement."
- );
- }
-
- V = conversions["long"](V, {
- context: "Failed to set the 'tabIndex' property on 'SVGElement': The provided value",
- globals: globalObject
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["tabIndex"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
- }
- Object.defineProperties(SVGElement.prototype, {
- focus: { enumerable: true },
- blur: { enumerable: true },
- className: { enumerable: true },
- ownerSVGElement: { enumerable: true },
- viewportElement: { enumerable: true },
- style: { enumerable: true },
- onabort: { enumerable: true },
- onauxclick: { enumerable: true },
- onbeforeinput: { enumerable: true },
- onbeforematch: { enumerable: true },
- onbeforetoggle: { enumerable: true },
- onblur: { enumerable: true },
- oncancel: { enumerable: true },
- oncanplay: { enumerable: true },
- oncanplaythrough: { enumerable: true },
- onchange: { enumerable: true },
- onclick: { enumerable: true },
- onclose: { enumerable: true },
- oncontextlost: { enumerable: true },
- oncontextmenu: { enumerable: true },
- oncontextrestored: { enumerable: true },
- oncopy: { enumerable: true },
- oncuechange: { enumerable: true },
- oncut: { enumerable: true },
- ondblclick: { enumerable: true },
- ondrag: { enumerable: true },
- ondragend: { enumerable: true },
- ondragenter: { enumerable: true },
- ondragleave: { enumerable: true },
- ondragover: { enumerable: true },
- ondragstart: { enumerable: true },
- ondrop: { enumerable: true },
- ondurationchange: { enumerable: true },
- onemptied: { enumerable: true },
- onended: { enumerable: true },
- onerror: { enumerable: true },
- onfocus: { enumerable: true },
- onformdata: { enumerable: true },
- oninput: { enumerable: true },
- oninvalid: { enumerable: true },
- onkeydown: { enumerable: true },
- onkeypress: { enumerable: true },
- onkeyup: { enumerable: true },
- onload: { enumerable: true },
- onloadeddata: { enumerable: true },
- onloadedmetadata: { enumerable: true },
- onloadstart: { enumerable: true },
- onmousedown: { enumerable: true },
- onmouseenter: { enumerable: true },
- onmouseleave: { enumerable: true },
- onmousemove: { enumerable: true },
- onmouseout: { enumerable: true },
- onmouseover: { enumerable: true },
- onmouseup: { enumerable: true },
- onpaste: { enumerable: true },
- onpause: { enumerable: true },
- onplay: { enumerable: true },
- onplaying: { enumerable: true },
- onprogress: { enumerable: true },
- onratechange: { enumerable: true },
- onreset: { enumerable: true },
- onresize: { enumerable: true },
- onscroll: { enumerable: true },
- onscrollend: { enumerable: true },
- onsecuritypolicyviolation: { enumerable: true },
- onseeked: { enumerable: true },
- onseeking: { enumerable: true },
- onselect: { enumerable: true },
- onslotchange: { enumerable: true },
- onstalled: { enumerable: true },
- onsubmit: { enumerable: true },
- onsuspend: { enumerable: true },
- ontimeupdate: { enumerable: true },
- ontoggle: { enumerable: true },
- onvolumechange: { enumerable: true },
- onwaiting: { enumerable: true },
- onwebkitanimationend: { enumerable: true },
- onwebkitanimationiteration: { enumerable: true },
- onwebkitanimationstart: { enumerable: true },
- onwebkittransitionend: { enumerable: true },
- onwheel: { enumerable: true },
- ontouchstart: { enumerable: true },
- ontouchend: { enumerable: true },
- ontouchmove: { enumerable: true },
- ontouchcancel: { enumerable: true },
- dataset: { enumerable: true },
- nonce: { enumerable: true },
- tabIndex: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGElement", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGElement
- });
-};
-
-const Impl = __nccwpck_require__(10064);
-
-
-/***/ }),
-
-/***/ 18269:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGElement = __nccwpck_require__(98086);
-
-const interfaceName = "SVGGraphicsElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGGraphicsElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGGraphicsElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- SVGElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGGraphicsElement extends globalObject.SVGElement {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get requiredExtensions() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get requiredExtensions' called on an object that is not a valid instance of SVGGraphicsElement."
- );
- }
-
- return utils.getSameObject(this, "requiredExtensions", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["requiredExtensions"]);
- });
- }
-
- get systemLanguage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get systemLanguage' called on an object that is not a valid instance of SVGGraphicsElement."
- );
- }
-
- return utils.getSameObject(this, "systemLanguage", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["systemLanguage"]);
- });
- }
- }
- Object.defineProperties(SVGGraphicsElement.prototype, {
- requiredExtensions: { enumerable: true },
- systemLanguage: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGGraphicsElement", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGGraphicsElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGGraphicsElement
- });
-};
-
-const Impl = __nccwpck_require__(34638);
-
-
-/***/ }),
-
-/***/ 23577:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "SVGNumber";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGNumber'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGNumber"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGNumber {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get value() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get value' called on an object that is not a valid instance of SVGNumber.");
- }
-
- return esValue[implSymbol]["value"];
- }
-
- set value(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set value' called on an object that is not a valid instance of SVGNumber.");
- }
-
- V = conversions["float"](V, {
- context: "Failed to set the 'value' property on 'SVGNumber': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["value"] = V;
- }
- }
- Object.defineProperties(SVGNumber.prototype, {
- value: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGNumber", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGNumber;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGNumber
- });
-};
-
-const Impl = __nccwpck_require__(68401);
-
-
-/***/ }),
-
-/***/ 58833:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGGraphicsElement = __nccwpck_require__(18269);
-
-const interfaceName = "SVGSVGElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGSVGElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGSVGElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- SVGGraphicsElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGSVGElement extends globalObject.SVGGraphicsElement {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- createSVGNumber() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'createSVGNumber' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].createSVGNumber());
- }
-
- getElementById(elementId) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getElementById' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getElementById' on 'SVGSVGElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getElementById' on 'SVGSVGElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getElementById(...args));
- }
-
- suspendRedraw(maxWaitMilliseconds) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'suspendRedraw' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'suspendRedraw' on 'SVGSVGElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'suspendRedraw' on 'SVGSVGElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].suspendRedraw(...args);
- }
-
- unsuspendRedraw(suspendHandleID) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'unsuspendRedraw' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'unsuspendRedraw' on 'SVGSVGElement': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].unsuspendRedraw(...args);
- }
-
- unsuspendRedrawAll() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'unsuspendRedrawAll' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return esValue[implSymbol].unsuspendRedrawAll();
- }
-
- forceRedraw() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'forceRedraw' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return esValue[implSymbol].forceRedraw();
- }
-
- get onafterprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onafterprint' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
- }
-
- set onafterprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onafterprint' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onafterprint' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onafterprint"] = V;
- }
-
- get onbeforeprint() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeprint' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
- }
-
- set onbeforeprint(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeprint' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeprint' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeprint"] = V;
- }
-
- get onbeforeunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onbeforeunload' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
- }
-
- set onbeforeunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onbeforeunload' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = OnBeforeUnloadEventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onbeforeunload' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onbeforeunload"] = V;
- }
-
- get onhashchange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onhashchange' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
- }
-
- set onhashchange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onhashchange' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onhashchange' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onhashchange"] = V;
- }
-
- get onlanguagechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
- }
-
- set onlanguagechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onlanguagechange' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onlanguagechange' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onlanguagechange"] = V;
- }
-
- get onmessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessage' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
- }
-
- set onmessage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessage' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessage' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
- }
-
- get onmessageerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessageerror' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
- }
-
- set onmessageerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessageerror' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessageerror' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onmessageerror"] = V;
- }
-
- get onoffline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onoffline' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
- }
-
- set onoffline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onoffline' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onoffline' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onoffline"] = V;
- }
-
- get ononline() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ononline' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
- }
-
- set ononline(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ononline' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ononline' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["ononline"] = V;
- }
-
- get onpagehide() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpagehide' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
- }
-
- set onpagehide(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpagehide' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpagehide' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpagehide"] = V;
- }
-
- get onpageshow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpageshow' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
- }
-
- set onpageshow(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpageshow' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpageshow' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpageshow"] = V;
- }
-
- get onpopstate() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onpopstate' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
- }
-
- set onpopstate(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onpopstate' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onpopstate' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onpopstate"] = V;
- }
-
- get onrejectionhandled() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
- }
-
- set onrejectionhandled(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onrejectionhandled' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onrejectionhandled' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onrejectionhandled"] = V;
- }
-
- get onstorage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onstorage' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
- }
-
- set onstorage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onstorage' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onstorage' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onstorage"] = V;
- }
-
- get onunhandledrejection() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
- }
-
- set onunhandledrejection(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunhandledrejection' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunhandledrejection' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onunhandledrejection"] = V;
- }
-
- get onunload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onunload' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
- }
-
- set onunload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onunload' called on an object that is not a valid instance of SVGSVGElement."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onunload' property on 'SVGSVGElement': The provided value"
- });
- }
- esValue[implSymbol]["onunload"] = V;
- }
- }
- Object.defineProperties(SVGSVGElement.prototype, {
- createSVGNumber: { enumerable: true },
- getElementById: { enumerable: true },
- suspendRedraw: { enumerable: true },
- unsuspendRedraw: { enumerable: true },
- unsuspendRedrawAll: { enumerable: true },
- forceRedraw: { enumerable: true },
- onafterprint: { enumerable: true },
- onbeforeprint: { enumerable: true },
- onbeforeunload: { enumerable: true },
- onhashchange: { enumerable: true },
- onlanguagechange: { enumerable: true },
- onmessage: { enumerable: true },
- onmessageerror: { enumerable: true },
- onoffline: { enumerable: true },
- ononline: { enumerable: true },
- onpagehide: { enumerable: true },
- onpageshow: { enumerable: true },
- onpopstate: { enumerable: true },
- onrejectionhandled: { enumerable: true },
- onstorage: { enumerable: true },
- onunhandledrejection: { enumerable: true },
- onunload: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGSVGElement", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGSVGElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGSVGElement
- });
-};
-
-const Impl = __nccwpck_require__(65765);
-
-
-/***/ }),
-
-/***/ 19953:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "SVGStringList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGStringList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGStringList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGStringList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'clear' called on an object that is not a valid instance of SVGStringList.");
- }
-
- return esValue[implSymbol].clear();
- }
-
- initialize(newItem) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initialize' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initialize' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initialize' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].initialize(...args);
- }
-
- getItem(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getItem' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'getItem' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getItem(...args);
- }
-
- insertItemBefore(newItem, index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'insertItemBefore' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'insertItemBefore' on 'SVGStringList': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].insertItemBefore(...args);
- }
-
- replaceItem(newItem, index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'replaceItem' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'replaceItem' on 'SVGStringList': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].replaceItem(...args);
- }
-
- removeItem(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeItem' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'removeItem' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].removeItem(...args);
- }
-
- appendItem(newItem) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'appendItem' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'appendItem' on 'SVGStringList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].appendItem(...args);
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
-
- get numberOfItems() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get numberOfItems' called on an object that is not a valid instance of SVGStringList."
- );
- }
-
- return esValue[implSymbol]["numberOfItems"];
- }
- }
- Object.defineProperties(SVGStringList.prototype, {
- clear: { enumerable: true },
- initialize: { enumerable: true },
- getItem: { enumerable: true },
- insertItemBefore: { enumerable: true },
- replaceItem: { enumerable: true },
- removeItem: { enumerable: true },
- appendItem: { enumerable: true },
- length: { enumerable: true },
- numberOfItems: { enumerable: true },
- [Symbol.toStringTag]: { value: "SVGStringList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = SVGStringList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGStringList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].getItem(index);
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- let indexedValue = V;
-
- indexedValue = conversions["DOMString"](indexedValue, {
- context: "Failed to set the " + index + " property on 'SVGStringList': The provided value",
- globals: globalObject
- });
-
- const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
-
- return true;
- }
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
-
- if (target[implSymbol][utils.supportsPropertyIndex](index)) {
- const indexedValue = target[implSymbol].getItem(index);
- ownDesc = {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- if (desc.get || desc.set) {
- return false;
- }
-
- const index = P >>> 0;
- let indexedValue = desc.value;
-
- indexedValue = conversions["DOMString"](indexedValue, {
- context: "Failed to set the " + index + " property on 'SVGStringList': The provided value",
- globals: globalObject
- });
-
- const creating = !target[implSymbol][utils.supportsPropertyIndex](index);
- if (creating) {
- target[implSymbol][utils.indexedSetNew](index, indexedValue);
- } else {
- target[implSymbol][utils.indexedSetExisting](index, indexedValue);
- }
-
- return true;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !target[implSymbol][utils.supportsPropertyIndex](index);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(89904);
-
-
-/***/ }),
-
-/***/ 15462:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const SVGElement = __nccwpck_require__(98086);
-
-const interfaceName = "SVGTitleElement";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SVGTitleElement'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SVGTitleElement"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- SVGElement._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SVGTitleElement extends globalObject.SVGElement {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(SVGTitleElement.prototype, {
- [Symbol.toStringTag]: { value: "SVGTitleElement", configurable: true }
- });
- ctorRegistry[interfaceName] = SVGTitleElement;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SVGTitleElement
- });
-};
-
-const Impl = __nccwpck_require__(3694);
-
-
-/***/ }),
-
-/***/ 46164:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Screen";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Screen'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Screen"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Screen {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get availWidth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get availWidth' called on an object that is not a valid instance of Screen."
- );
- }
-
- return esValue[implSymbol]["availWidth"];
- }
-
- get availHeight() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get availHeight' called on an object that is not a valid instance of Screen."
- );
- }
-
- return esValue[implSymbol]["availHeight"];
- }
-
- get width() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get width' called on an object that is not a valid instance of Screen.");
- }
-
- return esValue[implSymbol]["width"];
- }
-
- get height() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get height' called on an object that is not a valid instance of Screen.");
- }
-
- return esValue[implSymbol]["height"];
- }
-
- get colorDepth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get colorDepth' called on an object that is not a valid instance of Screen."
- );
- }
-
- return esValue[implSymbol]["colorDepth"];
- }
-
- get pixelDepth() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get pixelDepth' called on an object that is not a valid instance of Screen."
- );
- }
-
- return esValue[implSymbol]["pixelDepth"];
- }
- }
- Object.defineProperties(Screen.prototype, {
- availWidth: { enumerable: true },
- availHeight: { enumerable: true },
- width: { enumerable: true },
- height: { enumerable: true },
- colorDepth: { enumerable: true },
- pixelDepth: { enumerable: true },
- [Symbol.toStringTag]: { value: "Screen", configurable: true }
- });
- ctorRegistry[interfaceName] = Screen;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Screen
- });
-};
-
-const Impl = __nccwpck_require__(97772);
-
-
-/***/ }),
-
-/***/ 69144:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Range = __nccwpck_require__(38522);
-const Node = __nccwpck_require__(41209);
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Selection";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Selection'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Selection"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Selection {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- getRangeAt(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'getRangeAt' called on an object that is not a valid instance of Selection.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getRangeAt' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'getRangeAt' on 'Selection': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].getRangeAt(...args));
- }
-
- addRange(range) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'addRange' called on an object that is not a valid instance of Selection.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'addRange' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Range.convert(globalObject, curArg, {
- context: "Failed to execute 'addRange' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].addRange(...args);
- }
-
- removeRange(range) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeRange' called on an object that is not a valid instance of Selection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeRange' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Range.convert(globalObject, curArg, {
- context: "Failed to execute 'removeRange' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].removeRange(...args);
- }
-
- removeAllRanges() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'removeAllRanges' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol].removeAllRanges();
- }
-
- empty() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'empty' called on an object that is not a valid instance of Selection.");
- }
-
- return esValue[implSymbol].empty();
- }
-
- collapse(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'collapse' called on an object that is not a valid instance of Selection.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'collapse' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'collapse' on 'Selection': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'collapse' on 'Selection': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].collapse(...args);
- }
-
- setPosition(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setPosition' called on an object that is not a valid instance of Selection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'setPosition' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setPosition' on 'Selection': parameter 1"
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setPosition' on 'Selection': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].setPosition(...args);
- }
-
- collapseToStart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'collapseToStart' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol].collapseToStart();
- }
-
- collapseToEnd() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'collapseToEnd' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol].collapseToEnd();
- }
-
- extend(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'extend' called on an object that is not a valid instance of Selection.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'extend' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'extend' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'extend' on 'Selection': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].extend(...args);
- }
-
- setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setBaseAndExtent' called on an object that is not a valid instance of Selection."
- );
- }
-
- if (arguments.length < 4) {
- throw new globalObject.TypeError(
- `Failed to execute 'setBaseAndExtent' on 'Selection': 4 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 3"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'setBaseAndExtent' on 'Selection': parameter 4",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setBaseAndExtent(...args);
- }
-
- selectAllChildren(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'selectAllChildren' called on an object that is not a valid instance of Selection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'selectAllChildren' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'selectAllChildren' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].selectAllChildren(...args);
- }
-
- deleteFromDocument() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'deleteFromDocument' called on an object that is not a valid instance of Selection."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol].deleteFromDocument();
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- containsNode(node) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'containsNode' called on an object that is not a valid instance of Selection."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'containsNode' on 'Selection': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'containsNode' on 'Selection': parameter 1"
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'containsNode' on 'Selection': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].containsNode(...args);
- }
-
- toString() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'toString' called on an object that is not a valid instance of Selection.");
- }
-
- return esValue[implSymbol].toString();
- }
-
- get anchorNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get anchorNode' called on an object that is not a valid instance of Selection."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["anchorNode"]);
- }
-
- get anchorOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get anchorOffset' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol]["anchorOffset"];
- }
-
- get focusNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get focusNode' called on an object that is not a valid instance of Selection."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["focusNode"]);
- }
-
- get focusOffset() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get focusOffset' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol]["focusOffset"];
- }
-
- get isCollapsed() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get isCollapsed' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol]["isCollapsed"];
- }
-
- get rangeCount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rangeCount' called on an object that is not a valid instance of Selection."
- );
- }
-
- return esValue[implSymbol]["rangeCount"];
- }
-
- get type() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get type' called on an object that is not a valid instance of Selection.");
- }
-
- return esValue[implSymbol]["type"];
- }
- }
- Object.defineProperties(Selection.prototype, {
- getRangeAt: { enumerable: true },
- addRange: { enumerable: true },
- removeRange: { enumerable: true },
- removeAllRanges: { enumerable: true },
- empty: { enumerable: true },
- collapse: { enumerable: true },
- setPosition: { enumerable: true },
- collapseToStart: { enumerable: true },
- collapseToEnd: { enumerable: true },
- extend: { enumerable: true },
- setBaseAndExtent: { enumerable: true },
- selectAllChildren: { enumerable: true },
- deleteFromDocument: { enumerable: true },
- containsNode: { enumerable: true },
- toString: { enumerable: true },
- anchorNode: { enumerable: true },
- anchorOffset: { enumerable: true },
- focusNode: { enumerable: true },
- focusOffset: { enumerable: true },
- isCollapsed: { enumerable: true },
- rangeCount: { enumerable: true },
- type: { enumerable: true },
- [Symbol.toStringTag]: { value: "Selection", configurable: true }
- });
- ctorRegistry[interfaceName] = Selection;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Selection
- });
-};
-
-const Impl = __nccwpck_require__(76803);
-
-
-/***/ }),
-
-/***/ 12458:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["select", "start", "end", "preserve"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for SelectionMode`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 17290:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ceReactionsPreSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPreSteps);
-const ceReactionsPostSteps_helpers_custom_elements = (__nccwpck_require__(25392).ceReactionsPostSteps);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const DocumentFragment = __nccwpck_require__(11490);
-
-const interfaceName = "ShadowRoot";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'ShadowRoot'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["ShadowRoot"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- DocumentFragment._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class ShadowRoot extends globalObject.DocumentFragment {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get mode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get mode' called on an object that is not a valid instance of ShadowRoot.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["mode"]);
- }
-
- get host() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get host' called on an object that is not a valid instance of ShadowRoot.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["host"]);
- }
-
- get innerHTML() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get innerHTML' called on an object that is not a valid instance of ShadowRoot."
- );
- }
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- return esValue[implSymbol]["innerHTML"];
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- set innerHTML(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set innerHTML' called on an object that is not a valid instance of ShadowRoot."
- );
- }
-
- V = conversions["DOMString"](V, {
- context: "Failed to set the 'innerHTML' property on 'ShadowRoot': The provided value",
- globals: globalObject,
- treatNullAsEmptyString: true
- });
-
- ceReactionsPreSteps_helpers_custom_elements(globalObject);
- try {
- esValue[implSymbol]["innerHTML"] = V;
- } finally {
- ceReactionsPostSteps_helpers_custom_elements(globalObject);
- }
- }
-
- get activeElement() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get activeElement' called on an object that is not a valid instance of ShadowRoot."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["activeElement"]);
- }
- }
- Object.defineProperties(ShadowRoot.prototype, {
- mode: { enumerable: true },
- host: { enumerable: true },
- innerHTML: { enumerable: true },
- activeElement: { enumerable: true },
- [Symbol.toStringTag]: { value: "ShadowRoot", configurable: true }
- });
- ctorRegistry[interfaceName] = ShadowRoot;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ShadowRoot
- });
-};
-
-const Impl = __nccwpck_require__(82239);
-
-
-/***/ }),
-
-/***/ 83671:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const ShadowRootMode = __nccwpck_require__(56801);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "mode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = ShadowRootMode.convert(globalObject, value, { context: context + " has member 'mode' that" });
-
- ret[key] = value;
- } else {
- throw new globalObject.TypeError("mode is required in 'ShadowRootInit'");
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 56801:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["open", "closed"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for ShadowRootMode`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 82721:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const StaticRangeInit = __nccwpck_require__(71626);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const AbstractRange = __nccwpck_require__(10083);
-
-const interfaceName = "StaticRange";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'StaticRange'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["StaticRange"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- AbstractRange._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class StaticRange extends globalObject.AbstractRange {
- constructor(init) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'StaticRange': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = StaticRangeInit.convert(globalObject, curArg, {
- context: "Failed to construct 'StaticRange': parameter 1"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
- }
- Object.defineProperties(StaticRange.prototype, {
- [Symbol.toStringTag]: { value: "StaticRange", configurable: true }
- });
- ctorRegistry[interfaceName] = StaticRange;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: StaticRange
- });
-};
-
-const Impl = __nccwpck_require__(74007);
-
-
-/***/ }),
-
-/***/ 71626:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- {
- const key = "endContainer";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = Node.convert(globalObject, value, { context: context + " has member 'endContainer' that" });
-
- ret[key] = value;
- } else {
- throw new globalObject.TypeError("endContainer is required in 'StaticRangeInit'");
- }
- }
-
- {
- const key = "endOffset";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'endOffset' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- throw new globalObject.TypeError("endOffset is required in 'StaticRangeInit'");
- }
- }
-
- {
- const key = "startContainer";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = Node.convert(globalObject, value, { context: context + " has member 'startContainer' that" });
-
- ret[key] = value;
- } else {
- throw new globalObject.TypeError("startContainer is required in 'StaticRangeInit'");
- }
- }
-
- {
- const key = "startOffset";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'startOffset' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- throw new globalObject.TypeError("startOffset is required in 'StaticRangeInit'");
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 76969:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "Storage";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Storage'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Storage"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Storage {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- key(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'key' called on an object that is not a valid instance of Storage.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'key' on 'Storage': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'key' on 'Storage': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].key(...args);
- }
-
- getItem(key) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'getItem' called on an object that is not a valid instance of Storage.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getItem' on 'Storage': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'getItem' on 'Storage': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getItem(...args);
- }
-
- setItem(key, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'setItem' called on an object that is not a valid instance of Storage.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setItem' on 'Storage': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setItem' on 'Storage': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'setItem' on 'Storage': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setItem(...args);
- }
-
- removeItem(key) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'removeItem' called on an object that is not a valid instance of Storage.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'removeItem' on 'Storage': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'removeItem' on 'Storage': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].removeItem(...args);
- }
-
- clear() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'clear' called on an object that is not a valid instance of Storage.");
- }
-
- return esValue[implSymbol].clear();
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of Storage.");
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(Storage.prototype, {
- key: { enumerable: true },
- getItem: { enumerable: true },
- setItem: { enumerable: true },
- removeItem: { enumerable: true },
- clear: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "Storage", configurable: true }
- });
- ctorRegistry[interfaceName] = Storage;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Storage
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyNames]) {
- if (!(key in target)) {
- keys.add(`${key}`);
- }
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- const namedValue = target[implSymbol].getItem(P);
-
- if (namedValue !== null && !(P in target) && !ignoreNamedProps) {
- return {
- writable: true,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(namedValue)
- };
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
-
- if (typeof P === "string") {
- let namedValue = V;
-
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'Storage': The provided value",
- globals: globalObject
- });
-
- target[implSymbol].setItem(P, namedValue);
-
- return true;
- }
- }
- let ownDesc;
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
- if (!utils.hasOwn(target, P)) {
- if (desc.get || desc.set) {
- return false;
- }
-
- let namedValue = desc.value;
-
- namedValue = conversions["DOMString"](namedValue, {
- context: "Failed to set the '" + P + "' property on 'Storage': The provided value",
- globals: globalObject
- });
-
- target[implSymbol].setItem(P, namedValue);
-
- return true;
- }
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (target[implSymbol].getItem(P) !== null && !(P in target)) {
- target[implSymbol].removeItem(P);
- return true;
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(5570);
-
-
-/***/ }),
-
-/***/ 85048:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const StorageEventInit = __nccwpck_require__(68629);
-const Storage = __nccwpck_require__(76969);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "StorageEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'StorageEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["StorageEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class StorageEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'StorageEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'StorageEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = StorageEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'StorageEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initStorageEvent(type) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'initStorageEvent' called on an object that is not a valid instance of StorageEvent."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initStorageEvent' on 'StorageEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 4",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 5",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[5];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 6",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[6];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 7",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[7];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = Storage.convert(globalObject, curArg, {
- context: "Failed to execute 'initStorageEvent' on 'StorageEvent': parameter 8"
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initStorageEvent(...args);
- }
-
- get key() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get key' called on an object that is not a valid instance of StorageEvent.");
- }
-
- return esValue[implSymbol]["key"];
- }
-
- get oldValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get oldValue' called on an object that is not a valid instance of StorageEvent."
- );
- }
-
- return esValue[implSymbol]["oldValue"];
- }
-
- get newValue() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get newValue' called on an object that is not a valid instance of StorageEvent."
- );
- }
-
- return esValue[implSymbol]["newValue"];
- }
-
- get url() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get url' called on an object that is not a valid instance of StorageEvent.");
- }
-
- return esValue[implSymbol]["url"];
- }
-
- get storageArea() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get storageArea' called on an object that is not a valid instance of StorageEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["storageArea"]);
- }
- }
- Object.defineProperties(StorageEvent.prototype, {
- initStorageEvent: { enumerable: true },
- key: { enumerable: true },
- oldValue: { enumerable: true },
- newValue: { enumerable: true },
- url: { enumerable: true },
- storageArea: { enumerable: true },
- [Symbol.toStringTag]: { value: "StorageEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = StorageEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: StorageEvent
- });
-};
-
-const Impl = __nccwpck_require__(85232);
-
-
-/***/ }),
-
-/***/ 68629:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Storage = __nccwpck_require__(76969);
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "key";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, { context: context + " has member 'key' that", globals: globalObject });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "newValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, {
- context: context + " has member 'newValue' that",
- globals: globalObject
- });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "oldValue";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = conversions["DOMString"](value, {
- context: context + " has member 'oldValue' that",
- globals: globalObject
- });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "storageArea";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = Storage.convert(globalObject, value, { context: context + " has member 'storageArea' that" });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "url";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["USVString"](value, { context: context + " has member 'url' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = "";
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 5924:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "StyleSheetList";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'StyleSheetList'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["StyleSheetList"].prototype;
- }
-
- return Object.create(proto);
-}
-
-function makeProxy(wrapper, globalObject) {
- let proxyHandler = proxyHandlerCache.get(globalObject);
- if (proxyHandler === undefined) {
- proxyHandler = new ProxyHandler(globalObject);
- proxyHandlerCache.set(globalObject, proxyHandler);
- }
- return new Proxy(wrapper, proxyHandler);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- let wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper = makeProxy(wrapper, globalObject);
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class StyleSheetList {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- item(index) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'item' called on an object that is not a valid instance of StyleSheetList.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'item' on 'StyleSheetList': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'item' on 'StyleSheetList': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].item(...args));
- }
-
- get length() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get length' called on an object that is not a valid instance of StyleSheetList."
- );
- }
-
- return esValue[implSymbol]["length"];
- }
- }
- Object.defineProperties(StyleSheetList.prototype, {
- item: { enumerable: true },
- length: { enumerable: true },
- [Symbol.toStringTag]: { value: "StyleSheetList", configurable: true },
- [Symbol.iterator]: { value: globalObject.Array.prototype[Symbol.iterator], configurable: true, writable: true }
- });
- ctorRegistry[interfaceName] = StyleSheetList;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: StyleSheetList
- });
-};
-
-const proxyHandlerCache = new WeakMap();
-class ProxyHandler {
- constructor(globalObject) {
- this._globalObject = globalObject;
- }
-
- get(target, P, receiver) {
- if (typeof P === "symbol") {
- return Reflect.get(target, P, receiver);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc === undefined) {
- const parent = Object.getPrototypeOf(target);
- if (parent === null) {
- return undefined;
- }
- return Reflect.get(target, P, receiver);
- }
- if (!desc.get && !desc.set) {
- return desc.value;
- }
- const getter = desc.get;
- if (getter === undefined) {
- return undefined;
- }
- return Reflect.apply(getter, receiver, []);
- }
-
- has(target, P) {
- if (typeof P === "symbol") {
- return Reflect.has(target, P);
- }
- const desc = this.getOwnPropertyDescriptor(target, P);
- if (desc !== undefined) {
- return true;
- }
- const parent = Object.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.has(parent, P);
- }
- return false;
- }
-
- ownKeys(target) {
- const keys = new Set();
-
- for (const key of target[implSymbol][utils.supportedPropertyIndices]) {
- keys.add(`${key}`);
- }
-
- for (const key of Reflect.ownKeys(target)) {
- keys.add(key);
- }
- return [...keys];
- }
-
- getOwnPropertyDescriptor(target, P) {
- if (typeof P === "symbol") {
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
- let ignoreNamedProps = false;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- return {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- ignoreNamedProps = true;
- }
-
- return Reflect.getOwnPropertyDescriptor(target, P);
- }
-
- set(target, P, V, receiver) {
- if (typeof P === "symbol") {
- return Reflect.set(target, P, V, receiver);
- }
- // The `receiver` argument refers to the Proxy exotic object or an object
- // that inherits from it, whereas `target` refers to the Proxy target:
- if (target[implSymbol][utils.wrapperSymbol] === receiver) {
- const globalObject = this._globalObject;
- }
- let ownDesc;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- const indexedValue = target[implSymbol].item(index);
- if (indexedValue !== null) {
- ownDesc = {
- writable: false,
- enumerable: true,
- configurable: true,
- value: utils.tryWrapperForImpl(indexedValue)
- };
- }
- }
-
- if (ownDesc === undefined) {
- ownDesc = Reflect.getOwnPropertyDescriptor(target, P);
- }
- if (ownDesc === undefined) {
- const parent = Reflect.getPrototypeOf(target);
- if (parent !== null) {
- return Reflect.set(parent, P, V, receiver);
- }
- ownDesc = { writable: true, enumerable: true, configurable: true, value: undefined };
- }
- if (!ownDesc.writable) {
- return false;
- }
- if (!utils.isObject(receiver)) {
- return false;
- }
- const existingDesc = Reflect.getOwnPropertyDescriptor(receiver, P);
- let valueDesc;
- if (existingDesc !== undefined) {
- if (existingDesc.get || existingDesc.set) {
- return false;
- }
- if (!existingDesc.writable) {
- return false;
- }
- valueDesc = { value: V };
- } else {
- valueDesc = { writable: true, enumerable: true, configurable: true, value: V };
- }
- return Reflect.defineProperty(receiver, P, valueDesc);
- }
-
- defineProperty(target, P, desc) {
- if (typeof P === "symbol") {
- return Reflect.defineProperty(target, P, desc);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- return false;
- }
-
- return Reflect.defineProperty(target, P, desc);
- }
-
- deleteProperty(target, P) {
- if (typeof P === "symbol") {
- return Reflect.deleteProperty(target, P);
- }
-
- const globalObject = this._globalObject;
-
- if (utils.isArrayIndexPropName(P)) {
- const index = P >>> 0;
- return !(target[implSymbol].item(index) !== null);
- }
-
- return Reflect.deleteProperty(target, P);
- }
-
- preventExtensions() {
- return false;
- }
-}
-
-const Impl = __nccwpck_require__(63894);
-
-
-/***/ }),
-
-/***/ 43305:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const SubmitEventInit = __nccwpck_require__(7033);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "SubmitEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'SubmitEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["SubmitEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class SubmitEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'SubmitEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'SubmitEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = SubmitEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'SubmitEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get submitter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get submitter' called on an object that is not a valid instance of SubmitEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["submitter"]);
- }
- }
- Object.defineProperties(SubmitEvent.prototype, {
- submitter: { enumerable: true },
- [Symbol.toStringTag]: { value: "SubmitEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = SubmitEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: SubmitEvent
- });
-};
-
-const Impl = __nccwpck_require__(43230);
-
-
-/***/ }),
-
-/***/ 7033:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const HTMLElement = __nccwpck_require__(8932);
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "submitter";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = HTMLElement.convert(globalObject, value, { context: context + " has member 'submitter' that" });
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 10095:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set([
- "text/html",
- "text/xml",
- "application/xml",
- "application/xhtml+xml",
- "image/svg+xml"
-]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for SupportedType`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 49374:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const CharacterData = __nccwpck_require__(30948);
-
-const interfaceName = "Text";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'Text'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["Text"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- CharacterData._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class Text extends globalObject.CharacterData {
- constructor() {
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'Text': parameter 1",
- globals: globalObject
- });
- } else {
- curArg = "";
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- splitText(offset) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'splitText' called on an object that is not a valid instance of Text.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'splitText' on 'Text': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["unsigned long"](curArg, {
- context: "Failed to execute 'splitText' on 'Text': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return utils.tryWrapperForImpl(esValue[implSymbol].splitText(...args));
- }
-
- get wholeText() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get wholeText' called on an object that is not a valid instance of Text.");
- }
-
- return esValue[implSymbol]["wholeText"];
- }
-
- get assignedSlot() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get assignedSlot' called on an object that is not a valid instance of Text."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
- }
- }
- Object.defineProperties(Text.prototype, {
- splitText: { enumerable: true },
- wholeText: { enumerable: true },
- assignedSlot: { enumerable: true },
- [Symbol.toStringTag]: { value: "Text", configurable: true }
- });
- ctorRegistry[interfaceName] = Text;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: Text
- });
-};
-
-const Impl = __nccwpck_require__(58791);
-
-
-/***/ }),
-
-/***/ 57191:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["subtitles", "captions", "descriptions", "chapters", "metadata"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for TextTrackKind`);
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 83234:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const TouchEventInit = __nccwpck_require__(36157);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const UIEvent = __nccwpck_require__(58078);
-
-const interfaceName = "TouchEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'TouchEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["TouchEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- UIEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class TouchEvent extends globalObject.UIEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'TouchEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'TouchEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = TouchEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'TouchEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get touches() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get touches' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["touches"]);
- }
-
- get targetTouches() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get targetTouches' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["targetTouches"]);
- }
-
- get changedTouches() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get changedTouches' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["changedTouches"]);
- }
-
- get altKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get altKey' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return esValue[implSymbol]["altKey"];
- }
-
- get metaKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get metaKey' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return esValue[implSymbol]["metaKey"];
- }
-
- get ctrlKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ctrlKey' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return esValue[implSymbol]["ctrlKey"];
- }
-
- get shiftKey() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get shiftKey' called on an object that is not a valid instance of TouchEvent."
- );
- }
-
- return esValue[implSymbol]["shiftKey"];
- }
- }
- Object.defineProperties(TouchEvent.prototype, {
- touches: { enumerable: true },
- targetTouches: { enumerable: true },
- changedTouches: { enumerable: true },
- altKey: { enumerable: true },
- metaKey: { enumerable: true },
- ctrlKey: { enumerable: true },
- shiftKey: { enumerable: true },
- [Symbol.toStringTag]: { value: "TouchEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = TouchEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: TouchEvent
- });
-};
-
-const Impl = __nccwpck_require__(8409);
-
-
-/***/ }),
-
-/***/ 36157:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventModifierInit = __nccwpck_require__(22409);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventModifierInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "changedTouches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(context + " has member 'changedTouches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- } else {
- ret[key] = [];
- }
- }
-
- {
- const key = "targetTouches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(context + " has member 'targetTouches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- } else {
- ret[key] = [];
- }
- }
-
- {
- const key = "touches";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (!utils.isObject(value)) {
- throw new globalObject.TypeError(context + " has member 'touches' that" + " is not an iterable object.");
- } else {
- const V = [];
- const tmp = value;
- for (let nextItem of tmp) {
- nextItem = utils.tryImplForWrapper(nextItem);
-
- V.push(nextItem);
- }
- value = V;
- }
-
- ret[key] = value;
- } else {
- ret[key] = [];
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 69029:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "TreeWalker";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'TreeWalker'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["TreeWalker"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class TreeWalker {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- parentNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'parentNode' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].parentNode());
- }
-
- firstChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'firstChild' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].firstChild());
- }
-
- lastChild() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'lastChild' called on an object that is not a valid instance of TreeWalker.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].lastChild());
- }
-
- previousSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'previousSibling' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].previousSibling());
- }
-
- nextSibling() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'nextSibling' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].nextSibling());
- }
-
- previousNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'previousNode' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].previousNode());
- }
-
- nextNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'nextNode' called on an object that is not a valid instance of TreeWalker.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol].nextNode());
- }
-
- get root() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get root' called on an object that is not a valid instance of TreeWalker.");
- }
-
- return utils.getSameObject(this, "root", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["root"]);
- });
- }
-
- get whatToShow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get whatToShow' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return esValue[implSymbol]["whatToShow"];
- }
-
- get filter() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get filter' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["filter"]);
- }
-
- get currentNode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get currentNode' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["currentNode"]);
- }
-
- set currentNode(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set currentNode' called on an object that is not a valid instance of TreeWalker."
- );
- }
-
- V = Node.convert(globalObject, V, {
- context: "Failed to set the 'currentNode' property on 'TreeWalker': The provided value"
- });
-
- esValue[implSymbol]["currentNode"] = V;
- }
- }
- Object.defineProperties(TreeWalker.prototype, {
- parentNode: { enumerable: true },
- firstChild: { enumerable: true },
- lastChild: { enumerable: true },
- previousSibling: { enumerable: true },
- nextSibling: { enumerable: true },
- previousNode: { enumerable: true },
- nextNode: { enumerable: true },
- root: { enumerable: true },
- whatToShow: { enumerable: true },
- filter: { enumerable: true },
- currentNode: { enumerable: true },
- [Symbol.toStringTag]: { value: "TreeWalker", configurable: true }
- });
- ctorRegistry[interfaceName] = TreeWalker;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: TreeWalker
- });
-};
-
-const Impl = __nccwpck_require__(73498);
-
-
-/***/ }),
-
-/***/ 58078:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const UIEventInit = __nccwpck_require__(82015);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Event = __nccwpck_require__(35348);
-
-const interfaceName = "UIEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'UIEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["UIEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Event._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class UIEvent extends globalObject.Event {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'UIEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'UIEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = UIEventInit.convert(globalObject, curArg, { context: "Failed to construct 'UIEvent': parameter 2" });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- initUIEvent(typeArg) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'initUIEvent' called on an object that is not a valid instance of UIEvent.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'initUIEvent' on 'UIEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 2",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- if (curArg !== undefined) {
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 3",
- globals: globalObject
- });
- } else {
- curArg = false;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = utils.tryImplForWrapper(curArg);
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- curArg = conversions["long"](curArg, {
- context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 5",
- globals: globalObject
- });
- } else {
- curArg = 0;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].initUIEvent(...args);
- }
-
- get view() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get view' called on an object that is not a valid instance of UIEvent.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["view"]);
- }
-
- get detail() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get detail' called on an object that is not a valid instance of UIEvent.");
- }
-
- return esValue[implSymbol]["detail"];
- }
-
- get which() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get which' called on an object that is not a valid instance of UIEvent.");
- }
-
- return esValue[implSymbol]["which"];
- }
- }
- Object.defineProperties(UIEvent.prototype, {
- initUIEvent: { enumerable: true },
- view: { enumerable: true },
- detail: { enumerable: true },
- which: { enumerable: true },
- [Symbol.toStringTag]: { value: "UIEvent", configurable: true }
- });
- ctorRegistry[interfaceName] = UIEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: UIEvent
- });
-};
-
-const Impl = __nccwpck_require__(55900);
-
-
-/***/ }),
-
-/***/ 82015:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventInit = __nccwpck_require__(4895);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- EventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "detail";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["long"](value, { context: context + " has member 'detail' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "view";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- if (value === null || value === undefined) {
- value = null;
- } else {
- value = utils.tryImplForWrapper(value);
- }
- ret[key] = value;
- } else {
- ret[key] = null;
- }
- }
-
- {
- const key = "which";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'which' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 84979:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "ValidityState";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'ValidityState'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["ValidityState"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class ValidityState {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get valueMissing() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get valueMissing' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["valueMissing"];
- }
-
- get typeMismatch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get typeMismatch' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["typeMismatch"];
- }
-
- get patternMismatch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get patternMismatch' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["patternMismatch"];
- }
-
- get tooLong() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tooLong' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["tooLong"];
- }
-
- get tooShort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get tooShort' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["tooShort"];
- }
-
- get rangeUnderflow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rangeUnderflow' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["rangeUnderflow"];
- }
-
- get rangeOverflow() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get rangeOverflow' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["rangeOverflow"];
- }
-
- get stepMismatch() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get stepMismatch' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["stepMismatch"];
- }
-
- get badInput() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get badInput' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["badInput"];
- }
-
- get customError() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get customError' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["customError"];
- }
-
- get valid() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get valid' called on an object that is not a valid instance of ValidityState."
- );
- }
-
- return esValue[implSymbol]["valid"];
- }
- }
- Object.defineProperties(ValidityState.prototype, {
- valueMissing: { enumerable: true },
- typeMismatch: { enumerable: true },
- patternMismatch: { enumerable: true },
- tooLong: { enumerable: true },
- tooShort: { enumerable: true },
- rangeUnderflow: { enumerable: true },
- rangeOverflow: { enumerable: true },
- stepMismatch: { enumerable: true },
- badInput: { enumerable: true },
- customError: { enumerable: true },
- valid: { enumerable: true },
- [Symbol.toStringTag]: { value: "ValidityState", configurable: true }
- });
- ctorRegistry[interfaceName] = ValidityState;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: ValidityState
- });
-};
-
-const Impl = __nccwpck_require__(82125);
-
-
-/***/ }),
-
-/***/ 61870:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Blob = __nccwpck_require__(48350);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const BinaryType = __nccwpck_require__(55075);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "WebSocket";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'WebSocket'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["WebSocket"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "Worker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class WebSocket extends globalObject.EventTarget {
- constructor(url) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'WebSocket': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to construct 'WebSocket': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- if (utils.isObject(curArg)) {
- if (curArg[Symbol.iterator] !== undefined) {
- if (!utils.isObject(curArg)) {
- throw new globalObject.TypeError(
- "Failed to construct 'WebSocket': parameter 2" + " sequence" + " is not an iterable object."
- );
- } else {
- const V = [];
- const tmp = curArg;
- for (let nextItem of tmp) {
- nextItem = conversions["DOMString"](nextItem, {
- context: "Failed to construct 'WebSocket': parameter 2" + " sequence" + "'s element",
- globals: globalObject
- });
-
- V.push(nextItem);
- }
- curArg = V;
- }
- } else {
- }
- } else {
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'WebSocket': parameter 2",
- globals: globalObject
- });
- }
- } else {
- curArg = [];
- }
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- close() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'close' called on an object that is not a valid instance of WebSocket.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- curArg = conversions["unsigned short"](curArg, {
- context: "Failed to execute 'close' on 'WebSocket': parameter 1",
- globals: globalObject,
- clamp: true
- });
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- if (curArg !== undefined) {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'close' on 'WebSocket': parameter 2",
- globals: globalObject
- });
- }
- args.push(curArg);
- }
- return esValue[implSymbol].close(...args);
- }
-
- send(data) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'send' called on an object that is not a valid instance of WebSocket.");
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'send' on 'WebSocket': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (Blob.is(curArg)) {
- {
- let curArg = arguments[0];
- curArg = Blob.convert(globalObject, curArg, {
- context: "Failed to execute 'send' on 'WebSocket': parameter 1"
- });
- args.push(curArg);
- }
- } else if (utils.isArrayBuffer(curArg)) {
- {
- let curArg = arguments[0];
- curArg = conversions["ArrayBuffer"](curArg, {
- context: "Failed to execute 'send' on 'WebSocket': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- } else if (ArrayBuffer.isView(curArg)) {
- {
- let curArg = arguments[0];
- if (ArrayBuffer.isView(curArg)) {
- } else {
- throw new globalObject.TypeError(
- "Failed to execute 'send' on 'WebSocket': parameter 1" + " is not of any supported type."
- );
- }
- args.push(curArg);
- }
- } else {
- {
- let curArg = arguments[0];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'send' on 'WebSocket': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- }
- }
- return esValue[implSymbol].send(...args);
- }
-
- get url() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get url' called on an object that is not a valid instance of WebSocket.");
- }
-
- return esValue[implSymbol]["url"];
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return esValue[implSymbol]["readyState"];
- }
-
- get bufferedAmount() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get bufferedAmount' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return esValue[implSymbol]["bufferedAmount"];
- }
-
- get onopen() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'get onopen' called on an object that is not a valid instance of WebSocket.");
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onopen"]);
- }
-
- set onopen(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'set onopen' called on an object that is not a valid instance of WebSocket.");
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onopen' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onopen"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onclose() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onclose' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
- }
-
- set onclose(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onclose' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onclose' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onclose"] = V;
- }
-
- get extensions() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get extensions' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return esValue[implSymbol]["extensions"];
- }
-
- get protocol() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get protocol' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return esValue[implSymbol]["protocol"];
- }
-
- get onmessage() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onmessage' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
- }
-
- set onmessage(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onmessage' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onmessage' property on 'WebSocket': The provided value"
- });
- }
- esValue[implSymbol]["onmessage"] = V;
- }
-
- get binaryType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get binaryType' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["binaryType"]);
- }
-
- set binaryType(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set binaryType' called on an object that is not a valid instance of WebSocket."
- );
- }
-
- V = `${V}`;
- if (!BinaryType.enumerationValues.has(V)) {
- return;
- }
-
- esValue[implSymbol]["binaryType"] = V;
- }
- }
- Object.defineProperties(WebSocket.prototype, {
- close: { enumerable: true },
- send: { enumerable: true },
- url: { enumerable: true },
- readyState: { enumerable: true },
- bufferedAmount: { enumerable: true },
- onopen: { enumerable: true },
- onerror: { enumerable: true },
- onclose: { enumerable: true },
- extensions: { enumerable: true },
- protocol: { enumerable: true },
- onmessage: { enumerable: true },
- binaryType: { enumerable: true },
- [Symbol.toStringTag]: { value: "WebSocket", configurable: true },
- CONNECTING: { value: 0, enumerable: true },
- OPEN: { value: 1, enumerable: true },
- CLOSING: { value: 2, enumerable: true },
- CLOSED: { value: 3, enumerable: true }
- });
- Object.defineProperties(WebSocket, {
- CONNECTING: { value: 0, enumerable: true },
- OPEN: { value: 1, enumerable: true },
- CLOSING: { value: 2, enumerable: true },
- CLOSED: { value: 3, enumerable: true }
- });
- ctorRegistry[interfaceName] = WebSocket;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: WebSocket
- });
-};
-
-const Impl = __nccwpck_require__(13846);
-
-
-/***/ }),
-
-/***/ 85064:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const WheelEventInit = __nccwpck_require__(35117);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const MouseEvent = __nccwpck_require__(35364);
-
-const interfaceName = "WheelEvent";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'WheelEvent'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["WheelEvent"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- MouseEvent._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class WheelEvent extends globalObject.MouseEvent {
- constructor(type) {
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to construct 'WheelEvent': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to construct 'WheelEvent': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = WheelEventInit.convert(globalObject, curArg, {
- context: "Failed to construct 'WheelEvent': parameter 2"
- });
- args.push(curArg);
- }
- return exports.setup(Object.create(new.target.prototype), globalObject, args);
- }
-
- get deltaX() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get deltaX' called on an object that is not a valid instance of WheelEvent."
- );
- }
-
- return esValue[implSymbol]["deltaX"];
- }
-
- get deltaY() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get deltaY' called on an object that is not a valid instance of WheelEvent."
- );
- }
-
- return esValue[implSymbol]["deltaY"];
- }
-
- get deltaZ() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get deltaZ' called on an object that is not a valid instance of WheelEvent."
- );
- }
-
- return esValue[implSymbol]["deltaZ"];
- }
-
- get deltaMode() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get deltaMode' called on an object that is not a valid instance of WheelEvent."
- );
- }
-
- return esValue[implSymbol]["deltaMode"];
- }
- }
- Object.defineProperties(WheelEvent.prototype, {
- deltaX: { enumerable: true },
- deltaY: { enumerable: true },
- deltaZ: { enumerable: true },
- deltaMode: { enumerable: true },
- [Symbol.toStringTag]: { value: "WheelEvent", configurable: true },
- DOM_DELTA_PIXEL: { value: 0x00, enumerable: true },
- DOM_DELTA_LINE: { value: 0x01, enumerable: true },
- DOM_DELTA_PAGE: { value: 0x02, enumerable: true }
- });
- Object.defineProperties(WheelEvent, {
- DOM_DELTA_PIXEL: { value: 0x00, enumerable: true },
- DOM_DELTA_LINE: { value: 0x01, enumerable: true },
- DOM_DELTA_PAGE: { value: 0x02, enumerable: true }
- });
- ctorRegistry[interfaceName] = WheelEvent;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: WheelEvent
- });
-};
-
-const Impl = __nccwpck_require__(96117);
-
-
-/***/ }),
-
-/***/ 35117:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const MouseEventInit = __nccwpck_require__(88445);
-
-exports._convertInherit = (globalObject, obj, ret, { context = "The provided value" } = {}) => {
- MouseEventInit._convertInherit(globalObject, obj, ret, { context });
-
- {
- const key = "deltaMode";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["unsigned long"](value, {
- context: context + " has member 'deltaMode' that",
- globals: globalObject
- });
-
- ret[key] = value;
- } else {
- ret[key] = 0;
- }
- }
-
- {
- const key = "deltaX";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaX' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "deltaY";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaY' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-
- {
- const key = "deltaZ";
- let value = obj === undefined || obj === null ? undefined : obj[key];
- if (value !== undefined) {
- value = conversions["double"](value, { context: context + " has member 'deltaZ' that", globals: globalObject });
-
- ret[key] = value;
- } else {
- ret[key] = 0.0;
- }
- }
-};
-
-exports.convert = (globalObject, obj, { context = "The provided value" } = {}) => {
- if (obj !== undefined && typeof obj !== "object" && typeof obj !== "function") {
- throw new globalObject.TypeError(`${context} is not an object.`);
- }
-
- const ret = Object.create(null);
- exports._convertInherit(globalObject, obj, ret, { context });
- return ret;
-};
-
-
-/***/ }),
-
-/***/ 79133:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const Document = __nccwpck_require__(11795);
-
-const interfaceName = "XMLDocument";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'XMLDocument'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["XMLDocument"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- Document._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class XMLDocument extends globalObject.Document {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(XMLDocument.prototype, {
- [Symbol.toStringTag]: { value: "XMLDocument", configurable: true }
- });
- ctorRegistry[interfaceName] = XMLDocument;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLDocument
- });
-};
-
-const Impl = __nccwpck_require__(80803);
-
-
-/***/ }),
-
-/***/ 25099:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Document = __nccwpck_require__(11795);
-const Blob = __nccwpck_require__(48350);
-const FormData = __nccwpck_require__(75261);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const XMLHttpRequestResponseType = __nccwpck_require__(68166);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const XMLHttpRequestEventTarget = __nccwpck_require__(75651);
-
-const interfaceName = "XMLHttpRequest";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'XMLHttpRequest'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["XMLHttpRequest"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- XMLHttpRequestEventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class XMLHttpRequest extends globalObject.XMLHttpRequestEventTarget {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- open(method, url) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'open' called on an object that is not a valid instance of XMLHttpRequest.");
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'open' on 'XMLHttpRequest': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- switch (arguments.length) {
- case 2:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- case 3:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- break;
- case 4:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 4",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- break;
- default:
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[2];
- curArg = conversions["boolean"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 3",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[3];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 4",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- {
- let curArg = arguments[4];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'open' on 'XMLHttpRequest': parameter 5",
- globals: globalObject
- });
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- }
- return esValue[implSymbol].open(...args);
- }
-
- setRequestHeader(name, value) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'setRequestHeader' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- if (arguments.length < 2) {
- throw new globalObject.TypeError(
- `Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 2 arguments required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'setRequestHeader' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- {
- let curArg = arguments[1];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'setRequestHeader' on 'XMLHttpRequest': parameter 2",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].setRequestHeader(...args);
- }
-
- send() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'send' called on an object that is not a valid instance of XMLHttpRequest.");
- }
- const args = [];
- {
- let curArg = arguments[0];
- if (curArg !== undefined) {
- if (curArg === null || curArg === undefined) {
- curArg = null;
- } else {
- if (Document.is(curArg) || Blob.is(curArg) || FormData.is(curArg)) {
- curArg = utils.implForWrapper(curArg);
- } else if (utils.isArrayBuffer(curArg)) {
- } else if (ArrayBuffer.isView(curArg)) {
- } else {
- curArg = conversions["USVString"](curArg, {
- context: "Failed to execute 'send' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- }
- }
- } else {
- curArg = null;
- }
- args.push(curArg);
- }
- return esValue[implSymbol].send(...args);
- }
-
- abort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError("'abort' called on an object that is not a valid instance of XMLHttpRequest.");
- }
-
- return esValue[implSymbol].abort();
- }
-
- getResponseHeader(name) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getResponseHeader' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'getResponseHeader' on 'XMLHttpRequest': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["ByteString"](curArg, {
- context: "Failed to execute 'getResponseHeader' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].getResponseHeader(...args);
- }
-
- getAllResponseHeaders() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'getAllResponseHeaders' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol].getAllResponseHeaders();
- }
-
- overrideMimeType(mime) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'overrideMimeType' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'overrideMimeType' on 'XMLHttpRequest': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = conversions["DOMString"](curArg, {
- context: "Failed to execute 'overrideMimeType' on 'XMLHttpRequest': parameter 1",
- globals: globalObject
- });
- args.push(curArg);
- }
- return esValue[implSymbol].overrideMimeType(...args);
- }
-
- get onreadystatechange() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onreadystatechange' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onreadystatechange"]);
- }
-
- set onreadystatechange(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onreadystatechange' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onreadystatechange' property on 'XMLHttpRequest': The provided value"
- });
- }
- esValue[implSymbol]["onreadystatechange"] = V;
- }
-
- get readyState() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get readyState' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["readyState"];
- }
-
- get timeout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get timeout' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["timeout"];
- }
-
- set timeout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set timeout' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- V = conversions["unsigned long"](V, {
- context: "Failed to set the 'timeout' property on 'XMLHttpRequest': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["timeout"] = V;
- }
-
- get withCredentials() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get withCredentials' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["withCredentials"];
- }
-
- set withCredentials(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set withCredentials' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- V = conversions["boolean"](V, {
- context: "Failed to set the 'withCredentials' property on 'XMLHttpRequest': The provided value",
- globals: globalObject
- });
-
- esValue[implSymbol]["withCredentials"] = V;
- }
-
- get upload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get upload' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return utils.getSameObject(this, "upload", () => {
- return utils.tryWrapperForImpl(esValue[implSymbol]["upload"]);
- });
- }
-
- get responseURL() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get responseURL' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["responseURL"];
- }
-
- get status() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get status' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["status"];
- }
-
- get statusText() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get statusText' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["statusText"];
- }
-
- get responseType() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get responseType' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["responseType"]);
- }
-
- set responseType(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set responseType' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- V = `${V}`;
- if (!XMLHttpRequestResponseType.enumerationValues.has(V)) {
- return;
- }
-
- esValue[implSymbol]["responseType"] = V;
- }
-
- get response() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get response' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["response"];
- }
-
- get responseText() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get responseText' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return esValue[implSymbol]["responseText"];
- }
-
- get responseXML() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get responseXML' called on an object that is not a valid instance of XMLHttpRequest."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["responseXML"]);
- }
- }
- Object.defineProperties(XMLHttpRequest.prototype, {
- open: { enumerable: true },
- setRequestHeader: { enumerable: true },
- send: { enumerable: true },
- abort: { enumerable: true },
- getResponseHeader: { enumerable: true },
- getAllResponseHeaders: { enumerable: true },
- overrideMimeType: { enumerable: true },
- onreadystatechange: { enumerable: true },
- readyState: { enumerable: true },
- timeout: { enumerable: true },
- withCredentials: { enumerable: true },
- upload: { enumerable: true },
- responseURL: { enumerable: true },
- status: { enumerable: true },
- statusText: { enumerable: true },
- responseType: { enumerable: true },
- response: { enumerable: true },
- responseText: { enumerable: true },
- responseXML: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLHttpRequest", configurable: true },
- UNSENT: { value: 0, enumerable: true },
- OPENED: { value: 1, enumerable: true },
- HEADERS_RECEIVED: { value: 2, enumerable: true },
- LOADING: { value: 3, enumerable: true },
- DONE: { value: 4, enumerable: true }
- });
- Object.defineProperties(XMLHttpRequest, {
- UNSENT: { value: 0, enumerable: true },
- OPENED: { value: 1, enumerable: true },
- HEADERS_RECEIVED: { value: 2, enumerable: true },
- LOADING: { value: 3, enumerable: true },
- DONE: { value: 4, enumerable: true }
- });
- ctorRegistry[interfaceName] = XMLHttpRequest;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLHttpRequest
- });
-};
-
-const Impl = __nccwpck_require__(9347);
-
-
-/***/ }),
-
-/***/ 75651:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const EventTarget = __nccwpck_require__(71038);
-
-const interfaceName = "XMLHttpRequestEventTarget";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'XMLHttpRequestEventTarget'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["XMLHttpRequestEventTarget"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- EventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class XMLHttpRequestEventTarget extends globalObject.EventTarget {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
-
- get onloadstart() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadstart' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
- }
-
- set onloadstart(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadstart' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadstart' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onloadstart"] = V;
- }
-
- get onprogress() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onprogress' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
- }
-
- set onprogress(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onprogress' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onprogress' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onprogress"] = V;
- }
-
- get onabort() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onabort' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
- }
-
- set onabort(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onabort' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onabort' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onabort"] = V;
- }
-
- get onerror() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onerror' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
- }
-
- set onerror(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onerror' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onerror' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onerror"] = V;
- }
-
- get onload() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onload' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
- }
-
- set onload(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onload' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onload' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onload"] = V;
- }
-
- get ontimeout() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get ontimeout' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeout"]);
- }
-
- set ontimeout(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set ontimeout' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'ontimeout' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["ontimeout"] = V;
- }
-
- get onloadend() {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'get onloadend' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
- }
-
- set onloadend(V) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
-
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'set onloadend' called on an object that is not a valid instance of XMLHttpRequestEventTarget."
- );
- }
-
- if (!utils.isObject(V)) {
- V = null;
- } else {
- V = EventHandlerNonNull.convert(globalObject, V, {
- context: "Failed to set the 'onloadend' property on 'XMLHttpRequestEventTarget': The provided value"
- });
- }
- esValue[implSymbol]["onloadend"] = V;
- }
- }
- Object.defineProperties(XMLHttpRequestEventTarget.prototype, {
- onloadstart: { enumerable: true },
- onprogress: { enumerable: true },
- onabort: { enumerable: true },
- onerror: { enumerable: true },
- onload: { enumerable: true },
- ontimeout: { enumerable: true },
- onloadend: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLHttpRequestEventTarget", configurable: true }
- });
- ctorRegistry[interfaceName] = XMLHttpRequestEventTarget;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLHttpRequestEventTarget
- });
-};
-
-const Impl = __nccwpck_require__(99561);
-
-
-/***/ }),
-
-/***/ 68166:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-const enumerationValues = new Set(["", "arraybuffer", "blob", "document", "json", "text"]);
-exports.enumerationValues = enumerationValues;
-
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- const string = `${value}`;
- if (!enumerationValues.has(string)) {
- throw new globalObject.TypeError(
- `${context} '${string}' is not a valid enumeration value for XMLHttpRequestResponseType`
- );
- }
- return string;
-};
-
-
-/***/ }),
-
-/***/ 55482:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-const XMLHttpRequestEventTarget = __nccwpck_require__(75651);
-
-const interfaceName = "XMLHttpRequestUpload";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'XMLHttpRequestUpload'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["XMLHttpRequestUpload"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {
- XMLHttpRequestEventTarget._internalSetup(wrapper, globalObject);
-};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window", "DedicatedWorker", "SharedWorker"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class XMLHttpRequestUpload extends globalObject.XMLHttpRequestEventTarget {
- constructor() {
- throw new globalObject.TypeError("Illegal constructor");
- }
- }
- Object.defineProperties(XMLHttpRequestUpload.prototype, {
- [Symbol.toStringTag]: { value: "XMLHttpRequestUpload", configurable: true }
- });
- ctorRegistry[interfaceName] = XMLHttpRequestUpload;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLHttpRequestUpload
- });
-};
-
-const Impl = __nccwpck_require__(28354);
-
-
-/***/ }),
-
-/***/ 85315:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const conversions = __nccwpck_require__(54886);
-const utils = __nccwpck_require__(34908);
-
-const Node = __nccwpck_require__(41209);
-const implSymbol = utils.implSymbol;
-const ctorRegistrySymbol = utils.ctorRegistrySymbol;
-
-const interfaceName = "XMLSerializer";
-
-exports.is = value => {
- return utils.isObject(value) && utils.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
-};
-exports.isImpl = value => {
- return utils.isObject(value) && value instanceof Impl.implementation;
-};
-exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
- if (exports.is(value)) {
- return utils.implForWrapper(value);
- }
- throw new globalObject.TypeError(`${context} is not of type 'XMLSerializer'.`);
-};
-
-function makeWrapper(globalObject, newTarget) {
- let proto;
- if (newTarget !== undefined) {
- proto = newTarget.prototype;
- }
-
- if (!utils.isObject(proto)) {
- proto = globalObject[ctorRegistrySymbol]["XMLSerializer"].prototype;
- }
-
- return Object.create(proto);
-}
-
-exports.create = (globalObject, constructorArgs, privateData) => {
- const wrapper = makeWrapper(globalObject);
- return exports.setup(wrapper, globalObject, constructorArgs, privateData);
-};
-
-exports.createImpl = (globalObject, constructorArgs, privateData) => {
- const wrapper = exports.create(globalObject, constructorArgs, privateData);
- return utils.implForWrapper(wrapper);
-};
-
-exports._internalSetup = (wrapper, globalObject) => {};
-
-exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
- privateData.wrapper = wrapper;
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: new Impl.implementation(globalObject, constructorArgs, privateData),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper;
-};
-
-exports["new"] = (globalObject, newTarget) => {
- const wrapper = makeWrapper(globalObject, newTarget);
-
- exports._internalSetup(wrapper, globalObject);
- Object.defineProperty(wrapper, implSymbol, {
- value: Object.create(Impl.implementation.prototype),
- configurable: true
- });
-
- wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
- if (Impl.init) {
- Impl.init(wrapper[implSymbol]);
- }
- return wrapper[implSymbol];
-};
-
-const exposed = new Set(["Window"]);
-
-exports.install = (globalObject, globalNames) => {
- if (!globalNames.some(globalName => exposed.has(globalName))) {
- return;
- }
-
- const ctorRegistry = utils.initCtorRegistry(globalObject);
- class XMLSerializer {
- constructor() {
- return exports.setup(Object.create(new.target.prototype), globalObject, undefined);
- }
-
- serializeToString(root) {
- const esValue = this !== null && this !== undefined ? this : globalObject;
- if (!exports.is(esValue)) {
- throw new globalObject.TypeError(
- "'serializeToString' called on an object that is not a valid instance of XMLSerializer."
- );
- }
-
- if (arguments.length < 1) {
- throw new globalObject.TypeError(
- `Failed to execute 'serializeToString' on 'XMLSerializer': 1 argument required, but only ${arguments.length} present.`
- );
- }
- const args = [];
- {
- let curArg = arguments[0];
- curArg = Node.convert(globalObject, curArg, {
- context: "Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1"
- });
- args.push(curArg);
- }
- return esValue[implSymbol].serializeToString(...args);
- }
- }
- Object.defineProperties(XMLSerializer.prototype, {
- serializeToString: { enumerable: true },
- [Symbol.toStringTag]: { value: "XMLSerializer", configurable: true }
- });
- ctorRegistry[interfaceName] = XMLSerializer;
-
- Object.defineProperty(globalObject, interfaceName, {
- configurable: true,
- writable: true,
- value: XMLSerializer
- });
-};
-
-const Impl = __nccwpck_require__(347);
-
-
-/***/ }),
-
-/***/ 34908:
-/***/ ((module, exports) => {
-
-"use strict";
-
-
-// Returns "Type(value) is Object" in ES terminology.
-function isObject(value) {
- return (typeof value === "object" && value !== null) || typeof value === "function";
-}
-
-const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
-
-// Like `Object.assign`, but using `[[GetOwnProperty]]` and `[[DefineOwnProperty]]`
-// instead of `[[Get]]` and `[[Set]]` and only allowing objects
-function define(target, source) {
- for (const key of Reflect.ownKeys(source)) {
- const descriptor = Reflect.getOwnPropertyDescriptor(source, key);
- if (descriptor && !Reflect.defineProperty(target, key, descriptor)) {
- throw new TypeError(`Cannot redefine property: ${String(key)}`);
- }
- }
-}
-
-function newObjectInRealm(globalObject, object) {
- const ctorRegistry = initCtorRegistry(globalObject);
- return Object.defineProperties(
- Object.create(ctorRegistry["%Object.prototype%"]),
- Object.getOwnPropertyDescriptors(object)
- );
-}
-
-const wrapperSymbol = Symbol("wrapper");
-const implSymbol = Symbol("impl");
-const sameObjectCaches = Symbol("SameObject caches");
-const ctorRegistrySymbol = Symbol.for("[webidl2js] constructor registry");
-
-const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
-
-function initCtorRegistry(globalObject) {
- if (hasOwn(globalObject, ctorRegistrySymbol)) {
- return globalObject[ctorRegistrySymbol];
- }
-
- const ctorRegistry = Object.create(null);
-
- // In addition to registering all the WebIDL2JS-generated types in the constructor registry,
- // we also register a few intrinsics that we make use of in generated code, since they are not
- // easy to grab from the globalObject variable.
- ctorRegistry["%Object.prototype%"] = globalObject.Object.prototype;
- ctorRegistry["%IteratorPrototype%"] = Object.getPrototypeOf(
- Object.getPrototypeOf(new globalObject.Array()[Symbol.iterator]())
- );
-
- try {
- ctorRegistry["%AsyncIteratorPrototype%"] = Object.getPrototypeOf(
- Object.getPrototypeOf(
- globalObject.eval("(async function* () {})").prototype
- )
- );
- } catch {
- ctorRegistry["%AsyncIteratorPrototype%"] = AsyncIteratorPrototype;
- }
-
- globalObject[ctorRegistrySymbol] = ctorRegistry;
- return ctorRegistry;
-}
-
-function getSameObject(wrapper, prop, creator) {
- if (!wrapper[sameObjectCaches]) {
- wrapper[sameObjectCaches] = Object.create(null);
- }
-
- if (prop in wrapper[sameObjectCaches]) {
- return wrapper[sameObjectCaches][prop];
- }
-
- wrapper[sameObjectCaches][prop] = creator();
- return wrapper[sameObjectCaches][prop];
-}
-
-function wrapperForImpl(impl) {
- return impl ? impl[wrapperSymbol] : null;
-}
-
-function implForWrapper(wrapper) {
- return wrapper ? wrapper[implSymbol] : null;
-}
-
-function tryWrapperForImpl(impl) {
- const wrapper = wrapperForImpl(impl);
- return wrapper ? wrapper : impl;
-}
-
-function tryImplForWrapper(wrapper) {
- const impl = implForWrapper(wrapper);
- return impl ? impl : wrapper;
-}
-
-const iterInternalSymbol = Symbol("internal");
-
-function isArrayIndexPropName(P) {
- if (typeof P !== "string") {
- return false;
- }
- const i = P >>> 0;
- if (i === 2 ** 32 - 1) {
- return false;
- }
- const s = `${i}`;
- if (P !== s) {
- return false;
- }
- return true;
-}
-
-const byteLengthGetter =
- Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
-function isArrayBuffer(value) {
- try {
- byteLengthGetter.call(value);
- return true;
- } catch (e) {
- return false;
- }
-}
-
-function iteratorResult([key, value], kind) {
- let result;
- switch (kind) {
- case "key":
- result = key;
- break;
- case "value":
- result = value;
- break;
- case "key+value":
- result = [key, value];
- break;
- }
- return { value: result, done: false };
-}
-
-const supportsPropertyIndex = Symbol("supports property index");
-const supportedPropertyIndices = Symbol("supported property indices");
-const supportsPropertyName = Symbol("supports property name");
-const supportedPropertyNames = Symbol("supported property names");
-const indexedGet = Symbol("indexed property get");
-const indexedSetNew = Symbol("indexed property set new");
-const indexedSetExisting = Symbol("indexed property set existing");
-const namedGet = Symbol("named property get");
-const namedSetNew = Symbol("named property set new");
-const namedSetExisting = Symbol("named property set existing");
-const namedDelete = Symbol("named property delete");
-
-const asyncIteratorNext = Symbol("async iterator get the next iteration result");
-const asyncIteratorReturn = Symbol("async iterator return steps");
-const asyncIteratorInit = Symbol("async iterator initialization steps");
-const asyncIteratorEOI = Symbol("async iterator end of iteration");
-
-module.exports = exports = {
- isObject,
- hasOwn,
- define,
- newObjectInRealm,
- wrapperSymbol,
- implSymbol,
- getSameObject,
- ctorRegistrySymbol,
- initCtorRegistry,
- wrapperForImpl,
- implForWrapper,
- tryWrapperForImpl,
- tryImplForWrapper,
- iterInternalSymbol,
- isArrayBuffer,
- isArrayIndexPropName,
- supportsPropertyIndex,
- supportedPropertyIndices,
- supportsPropertyName,
- supportedPropertyNames,
- indexedGet,
- indexedSetNew,
- indexedSetExisting,
- namedGet,
- namedSetNew,
- namedSetExisting,
- namedDelete,
- asyncIteratorNext,
- asyncIteratorReturn,
- asyncIteratorInit,
- asyncIteratorEOI,
- iteratorResult
-};
-
-
-/***/ }),
-
-/***/ 36671:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const DOMRectReadOnlyImpl = (__nccwpck_require__(6650).implementation);
-const DOMRect = __nccwpck_require__(11281);
-
-class DOMRectImpl extends DOMRectReadOnlyImpl {
- static fromRect(globalObject, other) {
- return DOMRect.createImpl(globalObject, [other.x, other.y, other.width, other.height]);
- }
-
- get x() {
- return super.x;
- }
- set x(newX) {
- this._x = newX;
- }
-
- get y() {
- return super.y;
- }
- set y(newY) {
- this._y = newY;
- }
-
- get width() {
- return super.width;
- }
- set width(newWidth) {
- this._width = newWidth;
- }
-
- get height() {
- return super.height;
- }
- set height(newHeight) {
- this._height = newHeight;
- }
-}
-
-exports.implementation = DOMRectImpl;
-
-
-/***/ }),
-
-/***/ 6650:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const DOMRectReadOnly = __nccwpck_require__(44938);
-
-class DOMRectReadOnlyImpl {
- constructor(globalObject, [x = 0, y = 0, width = 0, height = 0]) {
- this._globalObject = globalObject;
- this._x = x;
- this._y = y;
- this._width = width;
- this._height = height;
- }
-
- static fromRect(globalObject, other) {
- return DOMRectReadOnly.createImpl(globalObject, [other.x, other.y, other.width, other.height]);
- }
-
- get x() {
- return this._x;
- }
-
- get y() {
- return this._y;
- }
-
- get width() {
- return this._width;
- }
-
- get height() {
- return this._height;
- }
-
- get top() {
- const { height, y } = this;
- // We use Math.min's built-in NaN handling: https://github.com/w3c/fxtf-drafts/issues/222
- return Math.min(y, y + height);
- }
-
- get right() {
- const { width, x } = this;
- // We use Math.max's built-in NaN handling: https://github.com/w3c/fxtf-drafts/issues/222
- return Math.max(x, x + width);
- }
-
- get bottom() {
- const { height, y } = this;
- // We use Math.max's built-in NaN handling: https://github.com/w3c/fxtf-drafts/issues/222
- return Math.max(y, y + height);
- }
-
- get left() {
- const { width, x } = this;
- // We use Math.min's built-in NaN handling: https://github.com/w3c/fxtf-drafts/issues/222
- return Math.min(x, x + width);
- }
-
- // Could be removed after https://github.com/jsdom/webidl2js/issues/185 gets fixed.
- toJSON() {
- return {
- x: this.x,
- y: this.y,
- width: this.width,
- height: this.height,
- top: this.top,
- right: this.right,
- bottom: this.bottom,
- left: this.left
- };
- }
-}
-
-exports.implementation = DOMRectReadOnlyImpl;
-
-
-/***/ }),
-
-/***/ 9670:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-const http = __nccwpck_require__(13685);
-const https = __nccwpck_require__(95687);
-const { parse: parseURLToNodeOptions } = __nccwpck_require__(57310);
-const HttpProxyAgent = __nccwpck_require__(23764);
-const HttpsProxyAgent = __nccwpck_require__(77219);
-
-module.exports = function agentFactory(proxy, rejectUnauthorized) {
- const agentOpts = { keepAlive: true, rejectUnauthorized };
- if (proxy) {
- const proxyOpts = { ...parseURLToNodeOptions(proxy), ...agentOpts };
- return { https: new HttpsProxyAgent(proxyOpts), http: new HttpProxyAgent(proxyOpts) };
- }
- return { http: new http.Agent(agentOpts), https: new https.Agent(agentOpts) };
-};
-
-
-/***/ }),
-
-/***/ 69232:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-// See https://github.com/jsdom/jsdom/pull/2743#issuecomment-562991955 for background.
-exports.copyToArrayBufferInNewRealm = (nodejsBuffer, newRealm) => {
- const newAB = new newRealm.ArrayBuffer(nodejsBuffer.byteLength);
- const view = new Uint8Array(newAB);
- view.set(nodejsBuffer);
- return newAB;
-};
-
-
-/***/ }),
-
-/***/ 55680:
-/***/ ((__unused_webpack_module, exports) => {
-
-"use strict";
-
-
-// https://drafts.csswg.org/css-color-4/#named-color
-const namedColors = {
- __proto__: null,
- aliceblue: [0xF0, 0xF8, 0xFF],
- antiquewhite: [0xFA, 0xEB, 0xD7],
- aqua: [0x00, 0xFF, 0xFF],
- aquamarine: [0x7F, 0xFF, 0xD4],
- azure: [0xF0, 0xFF, 0xFF],
- beige: [0xF5, 0xF5, 0xDC],
- bisque: [0xFF, 0xE4, 0xC4],
- black: [0x00, 0x00, 0x00],
- blanchedalmond: [0xFF, 0xEB, 0xCD],
- blue: [0x00, 0x00, 0xFF],
- blueviolet: [0x8A, 0x2B, 0xE2],
- brown: [0xA5, 0x2A, 0x2A],
- burlywood: [0xDE, 0xB8, 0x87],
- cadetblue: [0x5F, 0x9E, 0xA0],
- chartreuse: [0x7F, 0xFF, 0x00],
- chocolate: [0xD2, 0x69, 0x1E],
- coral: [0xFF, 0x7F, 0x50],
- cornflowerblue: [0x64, 0x95, 0xED],
- cornsilk: [0xFF, 0xF8, 0xDC],
- crimson: [0xDC, 0x14, 0x3C],
- cyan: [0x00, 0xFF, 0xFF],
- darkblue: [0x00, 0x00, 0x8B],
- darkcyan: [0x00, 0x8B, 0x8B],
- darkgoldenrod: [0xB8, 0x86, 0x0B],
- darkgray: [0xA9, 0xA9, 0xA9],
- darkgreen: [0x00, 0x64, 0x00],
- darkgrey: [0xA9, 0xA9, 0xA9],
- darkkhaki: [0xBD, 0xB7, 0x6B],
- darkmagenta: [0x8B, 0x00, 0x8B],
- darkolivegreen: [0x55, 0x6B, 0x2F],
- darkorange: [0xFF, 0x8C, 0x00],
- darkorchid: [0x99, 0x32, 0xCC],
- darkred: [0x8B, 0x00, 0x00],
- darksalmon: [0xE9, 0x96, 0x7A],
- darkseagreen: [0x8F, 0xBC, 0x8F],
- darkslateblue: [0x48, 0x3D, 0x8B],
- darkslategray: [0x2F, 0x4F, 0x4F],
- darkslategrey: [0x2F, 0x4F, 0x4F],
- darkturquoise: [0x00, 0xCE, 0xD1],
- darkviolet: [0x94, 0x00, 0xD3],
- deeppink: [0xFF, 0x14, 0x93],
- deepskyblue: [0x00, 0xBF, 0xFF],
- dimgray: [0x69, 0x69, 0x69],
- dimgrey: [0x69, 0x69, 0x69],
- dodgerblue: [0x1E, 0x90, 0xFF],
- firebrick: [0xB2, 0x22, 0x22],
- floralwhite: [0xFF, 0xFA, 0xF0],
- forestgreen: [0x22, 0x8B, 0x22],
- fuchsia: [0xFF, 0x00, 0xFF],
- gainsboro: [0xDC, 0xDC, 0xDC],
- ghostwhite: [0xF8, 0xF8, 0xFF],
- gold: [0xFF, 0xD7, 0x00],
- goldenrod: [0xDA, 0xA5, 0x20],
- gray: [0x80, 0x80, 0x80],
- green: [0x00, 0x80, 0x00],
- greenyellow: [0xAD, 0xFF, 0x2F],
- grey: [0x80, 0x80, 0x80],
- honeydew: [0xF0, 0xFF, 0xF0],
- hotpink: [0xFF, 0x69, 0xB4],
- indianred: [0xCD, 0x5C, 0x5C],
- indigo: [0x4B, 0x00, 0x82],
- ivory: [0xFF, 0xFF, 0xF0],
- khaki: [0xF0, 0xE6, 0x8C],
- lavender: [0xE6, 0xE6, 0xFA],
- lavenderblush: [0xFF, 0xF0, 0xF5],
- lawngreen: [0x7C, 0xFC, 0x00],
- lemonchiffon: [0xFF, 0xFA, 0xCD],
- lightblue: [0xAD, 0xD8, 0xE6],
- lightcoral: [0xF0, 0x80, 0x80],
- lightcyan: [0xE0, 0xFF, 0xFF],
- lightgoldenrodyellow: [0xFA, 0xFA, 0xD2],
- lightgray: [0xD3, 0xD3, 0xD3],
- lightgreen: [0x90, 0xEE, 0x90],
- lightgrey: [0xD3, 0xD3, 0xD3],
- lightpink: [0xFF, 0xB6, 0xC1],
- lightsalmon: [0xFF, 0xA0, 0x7A],
- lightseagreen: [0x20, 0xB2, 0xAA],
- lightskyblue: [0x87, 0xCE, 0xFA],
- lightslategray: [0x77, 0x88, 0x99],
- lightslategrey: [0x77, 0x88, 0x99],
- lightsteelblue: [0xB0, 0xC4, 0xDE],
- lightyellow: [0xFF, 0xFF, 0xE0],
- lime: [0x00, 0xFF, 0x00],
- limegreen: [0x32, 0xCD, 0x32],
- linen: [0xFA, 0xF0, 0xE6],
- magenta: [0xFF, 0x00, 0xFF],
- maroon: [0x80, 0x00, 0x00],
- mediumaquamarine: [0x66, 0xCD, 0xAA],
- mediumblue: [0x00, 0x00, 0xCD],
- mediumorchid: [0xBA, 0x55, 0xD3],
- mediumpurple: [0x93, 0x70, 0xDB],
- mediumseagreen: [0x3C, 0xB3, 0x71],
- mediumslateblue: [0x7B, 0x68, 0xEE],
- mediumspringgreen: [0x00, 0xFA, 0x9A],
- mediumturquoise: [0x48, 0xD1, 0xCC],
- mediumvioletred: [0xC7, 0x15, 0x85],
- midnightblue: [0x19, 0x19, 0x70],
- mintcream: [0xF5, 0xFF, 0xFA],
- mistyrose: [0xFF, 0xE4, 0xE1],
- moccasin: [0xFF, 0xE4, 0xB5],
- navajowhite: [0xFF, 0xDE, 0xAD],
- navy: [0x00, 0x00, 0x80],
- oldlace: [0xFD, 0xF5, 0xE6],
- olive: [0x80, 0x80, 0x00],
- olivedrab: [0x6B, 0x8E, 0x23],
- orange: [0xFF, 0xA5, 0x00],
- orangered: [0xFF, 0x45, 0x00],
- orchid: [0xDA, 0x70, 0xD6],
- palegoldenrod: [0xEE, 0xE8, 0xAA],
- palegreen: [0x98, 0xFB, 0x98],
- paleturquoise: [0xAF, 0xEE, 0xEE],
- palevioletred: [0xDB, 0x70, 0x93],
- papayawhip: [0xFF, 0xEF, 0xD5],
- peachpuff: [0xFF, 0xDA, 0xB9],
- peru: [0xCD, 0x85, 0x3F],
- pink: [0xFF, 0xC0, 0xCB],
- plum: [0xDD, 0xA0, 0xDD],
- powderblue: [0xB0, 0xE0, 0xE6],
- purple: [0x80, 0x00, 0x80],
- rebeccapurple: [0x66, 0x33, 0x99],
- red: [0xFF, 0x00, 0x00],
- rosybrown: [0xBC, 0x8F, 0x8F],
- royalblue: [0x41, 0x69, 0xE1],
- saddlebrown: [0x8B, 0x45, 0x13],
- salmon: [0xFA, 0x80, 0x72],
- sandybrown: [0xF4, 0xA4, 0x60],
- seagreen: [0x2E, 0x8B, 0x57],
- seashell: [0xFF, 0xF5, 0xEE],
- sienna: [0xA0, 0x52, 0x2D],
- silver: [0xC0, 0xC0, 0xC0],
- skyblue: [0x87, 0xCE, 0xEB],
- slateblue: [0x6A, 0x5A, 0xCD],
- slategray: [0x70, 0x80, 0x90],
- slategrey: [0x70, 0x80, 0x90],
- snow: [0xFF, 0xFA, 0xFA],
- springgreen: [0x00, 0xFF, 0x7F],
- steelblue: [0x46, 0x82, 0xB4],
- tan: [0xD2, 0xB4, 0x8C],
- teal: [0x00, 0x80, 0x80],
- thistle: [0xD8, 0xBF, 0xD8],
- tomato: [0xFF, 0x63, 0x47],
- turquoise: [0x40, 0xE0, 0xD0],
- violet: [0xEE, 0x82, 0xEE],
- wheat: [0xF5, 0xDE, 0xB3],
- white: [0xFF, 0xFF, 0xFF],
- whitesmoke: [0xF5, 0xF5, 0xF5],
- yellow: [0xFF, 0xFF, 0x00],
- yellowgreen: [0x9A, 0xCD, 0x32]
-};
-
-// Implements some of https://drafts.csswg.org/css-color-4/#resolving-sRGB-values and
-// https://drafts.csswg.org/css-color-4/#serializing-sRGB-values, in a somewhat fragile way since
-// we're not using a real parser/serializer. Attempts to cover:
-// * hex colors
-// * 'rgb()' and 'rgba()' values
-// * named colors
-// * 'transparent'
-
-exports.getSpecifiedColor = color => {
- const lowercasedColor = color.toLowerCase();
- if (Object.hasOwn(namedColors, lowercasedColor) || lowercasedColor === "transparent") {
- return lowercasedColor;
- }
-
- return sharedSpecifiedAndComputedAndUsed(color);
-};
-
-exports.getComputedOrUsedColor = color => {
- const lowercasedColor = color.toLowerCase();
- const fromNamedColors = namedColors[lowercasedColor];
- if (fromNamedColors !== undefined) {
- return `rgb(${fromNamedColors.join(", ")})`;
- }
-
- if (lowercasedColor === "transparent") {
- return "rgba(0, 0, 0, 0)";
- }
-
- return sharedSpecifiedAndComputedAndUsed(color);
-};
-
-function sharedSpecifiedAndComputedAndUsed(color) {
- if (/^#[0-9A-Fa-f]{6}$/.test(color) || /^#[0-9A-Fa-f]{3}$/.test(color)) {
- return hexToRGB(color.slice(1));
- }
-
- if (/^#[0-9A-Fa-f]{8}$/.test(color) || /^#[0-9A-Fa-f]{4}$/.test(color)) {
- return hexToRGBA(color.slice(1));
- }
-
- if (/^rgba?\(/.test(color)) {
- return color.split(",").map(s => s.trim()).join(", ");
- }
-
- return color;
-}
-
-function hexToRGB(color) {
- if (color.length === 6) {
- const [r1, r2, g1, g2, b1, b2] = color.split("");
-
- return `rgb(${hexesToDecimals([r1, r2], [g1, g2], [b1, b2]).join(", ")})`;
- }
-
- if (color.length === 3) {
- const [r1, g1, b1] = color.split("");
-
- return `rgb(${hexesToDecimals([r1, r1], [g1, g1], [b1, b1]).join(", ")})`;
- }
-
- return "rgb(0, 0, 0)";
-}
-
-function hexToRGBA(color) {
- if (color.length === 8) {
- const [r1, r2, g1, g2, b1, b2, a1, a2] = color.split("");
-
- return `rgba(${hexesToDecimals([r1, r2], [g1, g2], [b1, b2]).join(", ")}, ${hexToPercent(a1, a2)})`;
- }
-
- if (color.length === 4) {
- const [r1, g1, b1, a1] = color.split("");
-
- return `rgba(${hexesToDecimals([r1, r1], [g1, g1], [b1, b1]).join(", ")}, ${hexToPercent(a1, a1)})`;
- }
-
- return "rgba(0, 0, 0, 1)";
-}
-
-function hexToDecimal(d1, d2) {
- return parseInt(d1, 16) * 16 + parseInt(d2, 16);
-}
-
-function hexesToDecimals(...hexes) {
- return hexes.map(pair => hexToDecimal(pair[0], pair[1]));
-}
-
-function hexToPercent(d1, d2) {
- return Math.floor(1000 * hexToDecimal(d1, d2) / 255) / 1000;
-}
-
-
-/***/ }),
-
-/***/ 98548:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const DOMException = __nccwpck_require__(57617);
-
-const interfaces = __nccwpck_require__(71643);
-
-const { implForWrapper } = __nccwpck_require__(34908);
-
-const { HTML_NS, SVG_NS } = __nccwpck_require__(52635);
-const { domSymbolTree } = __nccwpck_require__(35633);
-const { validateAndExtract } = __nccwpck_require__(87130);
-const reportException = __nccwpck_require__(15612);
-const {
- isValidCustomElementName, upgradeElement, lookupCEDefinition, enqueueCEUpgradeReaction
-} = __nccwpck_require__(25392);
-
-const INTERFACE_TAG_MAPPING = {
- // https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom%3Aelement-interface
- // https://html.spec.whatwg.org/multipage/indices.html#elements-3
- [HTML_NS]: {
- HTMLElement: [
- "abbr", "address", "article", "aside", "b", "bdi", "bdo", "cite", "code", "dd", "dfn", "dt", "em", "figcaption",
- "figure", "footer", "header", "hgroup", "i", "kbd", "main", "mark", "nav", "noscript", "rp", "rt", "ruby", "s",
- "samp", "section", "small", "strong", "sub", "summary", "sup", "u", "var", "wbr"
- ],
- HTMLAnchorElement: ["a"],
- HTMLAreaElement: ["area"],
- HTMLAudioElement: ["audio"],
- HTMLBaseElement: ["base"],
- HTMLBodyElement: ["body"],
- HTMLBRElement: ["br"],
- HTMLButtonElement: ["button"],
- HTMLCanvasElement: ["canvas"],
- HTMLDataElement: ["data"],
- HTMLDataListElement: ["datalist"],
- HTMLDetailsElement: ["details"],
- HTMLDialogElement: ["dialog"],
- HTMLDirectoryElement: ["dir"],
- HTMLDivElement: ["div"],
- HTMLDListElement: ["dl"],
- HTMLEmbedElement: ["embed"],
- HTMLFieldSetElement: ["fieldset"],
- HTMLFontElement: ["font"],
- HTMLFormElement: ["form"],
- HTMLFrameElement: ["frame"],
- HTMLFrameSetElement: ["frameset"],
- HTMLHeadingElement: ["h1", "h2", "h3", "h4", "h5", "h6"],
- HTMLHeadElement: ["head"],
- HTMLHRElement: ["hr"],
- HTMLHtmlElement: ["html"],
- HTMLIFrameElement: ["iframe"],
- HTMLImageElement: ["img"],
- HTMLInputElement: ["input"],
- HTMLLabelElement: ["label"],
- HTMLLegendElement: ["legend"],
- HTMLLIElement: ["li"],
- HTMLLinkElement: ["link"],
- HTMLMapElement: ["map"],
- HTMLMarqueeElement: ["marquee"],
- HTMLMediaElement: [],
- HTMLMenuElement: ["menu"],
- HTMLMetaElement: ["meta"],
- HTMLMeterElement: ["meter"],
- HTMLModElement: ["del", "ins"],
- HTMLObjectElement: ["object"],
- HTMLOListElement: ["ol"],
- HTMLOptGroupElement: ["optgroup"],
- HTMLOptionElement: ["option"],
- HTMLOutputElement: ["output"],
- HTMLParagraphElement: ["p"],
- HTMLParamElement: ["param"],
- HTMLPictureElement: ["picture"],
- HTMLPreElement: ["listing", "pre", "xmp"],
- HTMLProgressElement: ["progress"],
- HTMLQuoteElement: ["blockquote", "q"],
- HTMLScriptElement: ["script"],
- HTMLSelectElement: ["select"],
- HTMLSlotElement: ["slot"],
- HTMLSourceElement: ["source"],
- HTMLSpanElement: ["span"],
- HTMLStyleElement: ["style"],
- HTMLTableCaptionElement: ["caption"],
- HTMLTableCellElement: ["th", "td"],
- HTMLTableColElement: ["col", "colgroup"],
- HTMLTableElement: ["table"],
- HTMLTimeElement: ["time"],
- HTMLTitleElement: ["title"],
- HTMLTableRowElement: ["tr"],
- HTMLTableSectionElement: ["thead", "tbody", "tfoot"],
- HTMLTemplateElement: ["template"],
- HTMLTextAreaElement: ["textarea"],
- HTMLTrackElement: ["track"],
- HTMLUListElement: ["ul"],
- HTMLUnknownElement: [],
- HTMLVideoElement: ["video"]
- },
- [SVG_NS]: {
- SVGElement: [],
- SVGGraphicsElement: [],
- SVGSVGElement: ["svg"],
- SVGTitleElement: ["title"]
- }
-};
-
-const TAG_INTERFACE_LOOKUP = {};
-
-for (const namespace of [HTML_NS, SVG_NS]) {
- TAG_INTERFACE_LOOKUP[namespace] = {};
-
- const interfaceNames = Object.keys(INTERFACE_TAG_MAPPING[namespace]);
- for (const interfaceName of interfaceNames) {
- const tagNames = INTERFACE_TAG_MAPPING[namespace][interfaceName];
-
- for (const tagName of tagNames) {
- TAG_INTERFACE_LOOKUP[namespace][tagName] = interfaceName;
- }
- }
-}
-
-const UNKNOWN_HTML_ELEMENTS_NAMES = ["applet", "bgsound", "blink", "isindex", "keygen", "multicol", "nextid", "spacer"];
-const HTML_ELEMENTS_NAMES = [
- "acronym", "basefont", "big", "center", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc",
- "strike", "tt"
-];
-
-// https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:element-interface
-function getHTMLElementInterface(name) {
- if (UNKNOWN_HTML_ELEMENTS_NAMES.includes(name)) {
- return interfaces.getInterfaceWrapper("HTMLUnknownElement");
- }
-
- if (HTML_ELEMENTS_NAMES.includes(name)) {
- return interfaces.getInterfaceWrapper("HTMLElement");
- }
-
- const specDefinedInterface = TAG_INTERFACE_LOOKUP[HTML_NS][name];
- if (specDefinedInterface !== undefined) {
- return interfaces.getInterfaceWrapper(specDefinedInterface);
- }
-
- if (isValidCustomElementName(name)) {
- return interfaces.getInterfaceWrapper("HTMLElement");
- }
-
- return interfaces.getInterfaceWrapper("HTMLUnknownElement");
-}
-
-// https://svgwg.org/svg2-draft/types.html#ElementsInTheSVGDOM
-function getSVGInterface(name) {
- const specDefinedInterface = TAG_INTERFACE_LOOKUP[SVG_NS][name];
- if (specDefinedInterface !== undefined) {
- return interfaces.getInterfaceWrapper(specDefinedInterface);
- }
-
- return interfaces.getInterfaceWrapper("SVGElement");
-}
-
-// Returns the list of valid tag names that can bo associated with a element given its namespace and name.
-function getValidTagNames(namespace, name) {
- if (INTERFACE_TAG_MAPPING[namespace] && INTERFACE_TAG_MAPPING[namespace][name]) {
- return INTERFACE_TAG_MAPPING[namespace][name];
- }
-
- return [];
-}
-
-// https://dom.spec.whatwg.org/#concept-create-element
-function createElement(
- document,
- localName,
- namespace,
- prefix = null,
- isValue = null,
- synchronousCE = false
-) {
- let result = null;
-
- const { _globalObject } = document;
- const definition = lookupCEDefinition(document, namespace, localName, isValue);
-
- if (definition !== null && definition.name !== localName) {
- const elementInterface = getHTMLElementInterface(localName);
-
- result = elementInterface.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "undefined",
- ceDefinition: null,
- isValue
- });
-
- if (synchronousCE) {
- upgradeElement(definition, result);
- } else {
- enqueueCEUpgradeReaction(result, definition);
- }
- } else if (definition !== null) {
- if (synchronousCE) {
- try {
- const C = definition.constructor;
-
- const resultWrapper = C.construct();
- result = implForWrapper(resultWrapper);
-
- if (!result._ceState || !result._ceDefinition || result._namespaceURI !== HTML_NS) {
- throw new TypeError("Internal error: Invalid custom element.");
- }
-
- if (result._attributeList.length !== 0) {
- throw DOMException.create(_globalObject, ["Unexpected attributes.", "NotSupportedError"]);
- }
- if (domSymbolTree.hasChildren(result)) {
- throw DOMException.create(_globalObject, ["Unexpected child nodes.", "NotSupportedError"]);
- }
- if (domSymbolTree.parent(result)) {
- throw DOMException.create(_globalObject, ["Unexpected element parent.", "NotSupportedError"]);
- }
- if (result._ownerDocument !== document) {
- throw DOMException.create(_globalObject, ["Unexpected element owner document.", "NotSupportedError"]);
- }
- if (result._namespaceURI !== namespace) {
- throw DOMException.create(_globalObject, ["Unexpected element namespace URI.", "NotSupportedError"]);
- }
- if (result._localName !== localName) {
- throw DOMException.create(_globalObject, ["Unexpected element local name.", "NotSupportedError"]);
- }
-
- result._prefix = prefix;
- result._isValue = isValue;
- } catch (error) {
- reportException(document._defaultView, error);
-
- const interfaceWrapper = interfaces.getInterfaceWrapper("HTMLUnknownElement");
- result = interfaceWrapper.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "failed",
- ceDefinition: null,
- isValue: null
- });
- }
- } else {
- const interfaceWrapper = interfaces.getInterfaceWrapper("HTMLElement");
- result = interfaceWrapper.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace: HTML_NS,
- prefix,
- ceState: "undefined",
- ceDefinition: null,
- isValue: null
- });
-
- enqueueCEUpgradeReaction(result, definition);
- }
- } else {
- let elementInterface;
-
- switch (namespace) {
- case HTML_NS:
- elementInterface = getHTMLElementInterface(localName);
- break;
-
- case SVG_NS:
- elementInterface = getSVGInterface(localName);
- break;
-
- default:
- elementInterface = interfaces.getInterfaceWrapper("Element");
- break;
- }
-
- result = elementInterface.createImpl(_globalObject, [], {
- ownerDocument: document,
- localName,
- namespace,
- prefix,
- ceState: "uncustomized",
- ceDefinition: null,
- isValue
- });
-
- if (namespace === HTML_NS && (isValidCustomElementName(localName) || isValue !== null)) {
- result._ceState = "undefined";
- }
- }
-
- return result;
-}
-
-// https://dom.spec.whatwg.org/#internal-createelementns-steps
-function internalCreateElementNSSteps(document, namespace, qualifiedName, options) {
- const extracted = validateAndExtract(document._globalObject, namespace, qualifiedName);
-
- let isValue = null;
- if (options && options.is !== undefined) {
- isValue = options.is;
- }
-
- return createElement(
- document,
- extracted.localName,
- extracted.namespace,
- extracted.prefix,
- isValue,
- true
- );
-}
-
-module.exports = {
- createElement,
- internalCreateElementNSSteps,
-
- getValidTagNames,
- getHTMLElementInterface
-};
-
-
-/***/ }),
-
-/***/ 50238:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const idlUtils = __nccwpck_require__(34908);
-const ErrorEvent = __nccwpck_require__(65153);
-const EventHandlerNonNull = __nccwpck_require__(23129);
-const OnBeforeUnloadEventHandlerNonNull = __nccwpck_require__(64546);
-const OnErrorEventHandlerNonNull = __nccwpck_require__(87517);
-const reportException = __nccwpck_require__(15612);
-
-exports.appendHandler = (el, eventName) => {
- // tryImplForWrapper() is currently required due to use in Window.js
- idlUtils.tryImplForWrapper(el).addEventListener(eventName, event => {
- // https://html.spec.whatwg.org/#the-event-handler-processing-algorithm
- const callback = exports.getCurrentEventHandlerValue(el, eventName);
- if (callback === null) {
- return;
- }
-
- const specialError = ErrorEvent.isImpl(event) && event.type === "error" &&
- event.currentTarget.constructor.name === "Window";
-
- let returnValue = null;
- // https://heycam.github.io/webidl/#es-invoking-callback-functions
- if (typeof callback === "function") {
- if (specialError) {
- returnValue = callback.call(
- event.currentTarget,
- event.message,
- event.filename,
- event.lineno,
- event.colno,
- event.error
- );
- } else {
- returnValue = callback.call(event.currentTarget, event);
- }
- }
-
- // TODO: we don't implement BeforeUnloadEvent so we can't brand-check here
- if (event.type === "beforeunload") {
- if (returnValue !== null) {
- event._canceledFlag = true;
- if (event.returnValue === "") {
- event.returnValue = returnValue;
- }
- }
- } else if (specialError) {
- if (returnValue === true) {
- event._canceledFlag = true;
- }
- } else if (returnValue === false) {
- event._canceledFlag = true;
- }
- });
-};
-
-// "Simple" in this case means "no content attributes involved"
-exports.setupForSimpleEventAccessors = (prototype, events) => {
- prototype._getEventHandlerFor = function (event) {
- return this._eventHandlers ? this._eventHandlers[event] : undefined;
- };
-
- prototype._setEventHandlerFor = function (event, handler) {
- if (!this._registeredHandlers) {
- this._registeredHandlers = new Set();
- this._eventHandlers = Object.create(null);
- }
-
- if (!this._registeredHandlers.has(event) && handler !== null) {
- this._registeredHandlers.add(event);
- exports.appendHandler(this, event);
- }
- this._eventHandlers[event] = handler;
- };
-
- for (const event of events) {
- exports.createEventAccessor(prototype, event);
- }
-};
-
-// https://html.spec.whatwg.org/multipage/webappapis.html#getting-the-current-value-of-the-event-handler
-exports.getCurrentEventHandlerValue = (target, event) => {
- const value = target._getEventHandlerFor(event);
- if (!value) {
- return null;
- }
-
- if (value.body !== undefined) {
- let element, document, fn;
- if (target.constructor.name === "Window") {
- element = null;
- document = idlUtils.implForWrapper(target.document);
- } else {
- element = target;
- document = element.ownerDocument;
- }
- const { body } = value;
-
- const formOwner = element !== null && element.form ? element.form : null;
- const window = target.constructor.name === "Window" && target._document ? target : document.defaultView;
-
- try {
- // eslint-disable-next-line no-new-func
- Function(body); // properly error out on syntax errors
- // Note: this won't execute body; that would require `Function(body)()`.
- } catch (e) {
- if (window) {
- reportException(window, e);
- }
- target._setEventHandlerFor(event, null);
- return null;
- }
-
- // Note: the with (window) { } is not necessary in Node, but is necessary in a browserified environment.
-
- const createFunction = document.defaultView.Function;
- if (event === "error" && element === null) {
- const sourceURL = document ? `\n//# sourceURL=${document.URL}` : "";
-
- fn = createFunction(`\
-with (arguments[0]) { return function onerror(event, source, lineno, colno, error) {
-${body}
-}; }${sourceURL}`)(window);
-
- fn = OnErrorEventHandlerNonNull.convert(window, fn);
- } else {
- const calls = [];
- if (element !== null) {
- calls.push(idlUtils.wrapperForImpl(document));
- }
-
- if (formOwner !== null) {
- calls.push(idlUtils.wrapperForImpl(formOwner));
- }
-
- if (element !== null) {
- calls.push(idlUtils.wrapperForImpl(element));
- }
-
- let wrapperBody = `\
-with (arguments[0]) { return function on${event}(event) {
-${body}
-}; }`;
-
- // eslint-disable-next-line no-unused-vars
- for (const call of calls) {
- wrapperBody = `\
-with (arguments[0]) { return function () {
-${wrapperBody}
-}; }`;
- }
-
- if (document) {
- wrapperBody += `\n//# sourceURL=${document.URL}`;
- }
-
- fn = createFunction(wrapperBody)(window);
- for (const call of calls) {
- fn = fn(call);
- }
-
- if (event === "beforeunload") {
- fn = OnBeforeUnloadEventHandlerNonNull.convert(window, fn);
- } else {
- fn = EventHandlerNonNull.convert(window, fn);
- }
- }
-
- target._setEventHandlerFor(event, fn);
- }
-
- return target._getEventHandlerFor(event);
-};
-
-// https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-idl-attributes
-// TODO: Consider replacing this with `[ReflectEvent]`
-exports.createEventAccessor = (obj, event) => {
- Object.defineProperty(obj, "on" + event, {
- configurable: true,
- enumerable: true,
- get() {
- return exports.getCurrentEventHandlerValue(this, event);
- },
- set(val) {
- this._setEventHandlerFor(event, val);
- }
- });
-};
-
-
-/***/ }),
-
-/***/ 25392:
-/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
-
-"use strict";
-
-
-const DOMException = __nccwpck_require__(57617);
-const isPotentialCustomElementName = __nccwpck_require__(42469);
-
-const NODE_TYPE = __nccwpck_require__(10656);
-const { HTML_NS } = __nccwpck_require__(52635);
-const { shadowIncludingRoot } = __nccwpck_require__(36893);
-const reportException = __nccwpck_require__(15612);
-
-const { implForWrapper, wrapperForImpl } = __nccwpck_require__(34908);
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions-stack
-class CEReactionsStack {
- constructor() {
- this._stack = [];
-
- // https://html.spec.whatwg.org/multipage/custom-elements.html#backup-element-queue
- this.backupElementQueue = [];
-
- // https://html.spec.whatwg.org/multipage/custom-elements.html#processing-the-backup-element-queue
- this.processingBackupElementQueue = false;
- }
-
- push(elementQueue) {
- this._stack.push(elementQueue);
- }
-
- pop() {
- return this._stack.pop();
- }
-
- get currentElementQueue() {
- const { _stack } = this;
- return _stack[_stack.length - 1];
- }
-
- isEmpty() {
- return this._stack.length === 0;
- }
-}
-
-// In theory separate cross-origin Windows created by separate JSDOM instances could have separate stacks. But, we would
-// need to implement the whole agent architecture. Which is kind of questionable given that we don't run our Windows in
-// their own separate threads, which is what agents are meant to represent.
-const customElementReactionsStack = new CEReactionsStack();
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#cereactions
-function ceReactionsPreSteps() {
- customElementReactionsStack.push([]);
-}
-function ceReactionsPostSteps() {
- const queue = customElementReactionsStack.pop();
- invokeCEReactions(queue);
-}
-
-const RESTRICTED_CUSTOM_ELEMENT_NAME = new Set([
- "annotation-xml",
- "color-profile",
- "font-face",
- "font-face-src",
- "font-face-uri",
- "font-face-format",
- "font-face-name",
- "missing-glyph"
-]);
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
-function isValidCustomElementName(name) {
- if (RESTRICTED_CUSTOM_ELEMENT_NAME.has(name)) {
- return false;
- }
-
- return isPotentialCustomElementName(name);
-}
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element
-function upgradeElement(definition, element) {
- if (element._ceState !== "undefined" || element._ceState === "uncustomized") {
- return;
- }
-
- element._ceDefinition = definition;
- element._ceState = "failed";
-
- for (const attribute of element._attributeList) {
- const { _localName, _namespace, _value } = attribute;
- enqueueCECallbackReaction(element, "attributeChangedCallback", [_localName, null, _value, _namespace]);
- }
-
- if (shadowIncludingRoot(element).nodeType === NODE_TYPE.DOCUMENT_NODE) {
- enqueueCECallbackReaction(element, "connectedCallback", []);
- }
-
- definition.constructionStack.push(element);
-
- const { constructionStack, constructor: C } = definition;
-
- let constructionError;
- try {
- if (definition.disableShadow === true && element._shadowRoot !== null) {
- throw DOMException.create(element._globalObject, [
- "Can't upgrade a custom element with a shadow root if shadow is disabled",
- "NotSupportedError"
- ]);
- }
-
- const constructionResult = C.construct();
- const constructionResultImpl = implForWrapper(constructionResult);
-
- if (constructionResultImpl !== element) {
- throw new TypeError("Invalid custom element constructor return value");
- }
- } catch (error) {
- constructionError = error;
- }
-
- constructionStack.pop();
-
- if (constructionError !== undefined) {
- element._ceDefinition = null;
- element._ceReactionQueue = [];
-
- throw constructionError;
- }
-
- element._ceState = "custom";
-}
-
-// https://html.spec.whatwg.org/#concept-try-upgrade
-function tryUpgradeElement(element) {
- const { _ownerDocument, _namespaceURI, _localName, _isValue } = element;
- const definition = lookupCEDefinition(_ownerDocument, _namespaceURI, _localName, _isValue);
-
- if (definition !== null) {
- enqueueCEUpgradeReaction(element, definition);
- }
-}
-
-// https://html.spec.whatwg.org/#look-up-a-custom-element-definition
-function lookupCEDefinition(document, namespace, localName, isValue) {
- const definition = null;
-
- if (namespace !== HTML_NS) {
- return definition;
- }
-
- if (!document._defaultView) {
- return definition;
- }
-
- const registry = implForWrapper(document._globalObject._customElementRegistry);
-
- const definitionByName = registry._customElementDefinitions.find(def => {
- return def.name === def.localName && def.localName === localName;
- });
- if (definitionByName !== undefined) {
- return definitionByName;
- }
-
- const definitionByIs = registry._customElementDefinitions.find(def => {
- return def.name === isValue && def.localName === localName;
- });
- if (definitionByIs !== undefined) {
- return definitionByIs;
- }
-
- return definition;
-}
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#invoke-custom-element-reactions
-function invokeCEReactions(elementQueue) {
- while (elementQueue.length > 0) {
- const element = elementQueue.shift();
-
- const reactions = element._ceReactionQueue;
-
- try {
- while (reactions.length > 0) {
- const reaction = reactions.shift();
-
- switch (reaction.type) {
- case "upgrade":
- upgradeElement(reaction.definition, element);
- break;
-
- case "callback":
- reaction.callback.apply(wrapperForImpl(element), reaction.args);
- break;
- }
- }
- } catch (error) {
- reportException(element._globalObject, error);
- }
- }
-}
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#enqueue-an-element-on-the-appropriate-element-queue
-function enqueueElementOnAppropriateElementQueue(element) {
- if (customElementReactionsStack.isEmpty()) {
- customElementReactionsStack.backupElementQueue.push(element);
-
- if (customElementReactionsStack.processingBackupElementQueue) {
- return;
- }
-
- customElementReactionsStack.processingBackupElementQueue = true;
-
- Promise.resolve().then(() => {
- const elementQueue = customElementReactionsStack.backupElementQueue;
- invokeCEReactions(elementQueue);
-
- customElementReactionsStack.processingBackupElementQueue = false;
- });
- } else {
- customElementReactionsStack.currentElementQueue.push(element);
- }
-}
-
-// https://html.spec.whatwg.org/multipage/custom-elements.html#enqueue-a-custom-element-callback-reaction
-function enqueueCECallbackReaction(element, callbackName, args) {
- const { _ceDefinition: { lifecycleCallbacks, observedAttributes } } = element;
-
- const callback = lifecycleCallbacks[callbackName];
- if (callback === null) {
- return;
- }
-
- if (callbackName === "attributeChangedCallback") {
- const attributeName = args[0];
- if (!observedAttributes.includes(attributeName)) {
- return;
- }
- }
-
- element._ceReactionQueue.push({
- type: "callback",
- callback,
- args
- });
-
- enqueueElementOnAppropriateElementQueue(element);
-}
-
-// https://html.spec.whatwg.org/#enqueue-a-custom-element-upgrade-reaction
-function enqueueCEUpgradeReaction(element, definition) {
- element._ceReactionQueue.push({
- type: "upgrade",
- definition
- });
-
- enqueueElementOnAppropriateElementQueue(element);
-}
-
-module.exports = {
- customElementReactionsStack,
-
- ceReactionsPreSteps,
- ceReactionsPostSteps,
-
- isValidCustomElementName,
-
- upgradeElement,
- tryUpgradeElement,
-
- lookupCEDefinition,
- enqueueCEUpgradeReaction,
- enqueueCECallbackReaction,
- invokeCEReactions
-};
-
-
-/***/ }),
-
-/***/ 34622:
-/***/ ((module) => {
-
-"use strict";
-
-
-function isLeapYear(year) {
- return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#number-of-days-in-month-month-of-year-year
-const daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
-function numberOfDaysInMonthOfYear(month, year) {
- if (month === 2 && isLeapYear(year)) {
- return 29;
- }
- return daysInMonth[month - 1];
-}
-
-const monthRe = /^([0-9]{4,})-([0-9]{2})$/;
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-month-string
-function parseMonthString(str) {
- const matches = monthRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
- }
- const month = Number(matches[2]);
- if (month < 1 || month > 12) {
- return null;
- }
- return { year, month };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-month-string
-function isValidMonthString(str) {
- return parseMonthString(str) !== null;
-}
-function serializeMonth({ year, month }) {
- const yearStr = `${year}`.padStart(4, "0");
- const monthStr = `${month}`.padStart(2, "0");
- return `${yearStr}-${monthStr}`;
-}
-
-const dateRe = /^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/;
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-date-string
-function parseDateString(str) {
- const matches = dateRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
- }
- const month = Number(matches[2]);
- if (month < 1 || month > 12) {
- return null;
- }
- const day = Number(matches[3]);
- if (day < 1 || day > numberOfDaysInMonthOfYear(month, year)) {
- return null;
- }
- return { year, month, day };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string
-function isValidDateString(str) {
- return parseDateString(str) !== null;
-}
-function serializeDate(date) {
- const dayStr = `${date.day}`.padStart(2, "0");
- return `${serializeMonth(date)}-${dayStr}`;
-}
-
-const yearlessDateRe = /^(?:--)?([0-9]{2})-([0-9]{2})$/;
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-yearless-date-string
-function parseYearlessDateString(str) {
- const matches = yearlessDateRe.exec(str);
- if (!matches) {
- return null;
- }
- const month = Number(matches[1]);
- if (month < 1 || month > 12) {
- return null;
- }
- const day = Number(matches[2]);
- if (day < 1 || day > numberOfDaysInMonthOfYear(month, 4)) {
- return null;
- }
- return { month, day };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-yearless-date-string
-function isValidYearlessDateString(str) {
- return parseYearlessDateString(str) !== null;
-}
-function serializeYearlessDate({ month, day }) {
- const monthStr = `${month}`.padStart(2, "0");
- const dayStr = `${day}`.padStart(2, "0");
- return `${monthStr}-${dayStr}`;
-}
-
-const timeRe = /^([0-9]{2}):([0-9]{2})(?::([0-9]{2}(?:\.([0-9]{1,3}))?))?$/;
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-time-string
-function parseTimeString(str) {
- const matches = timeRe.exec(str);
- if (!matches) {
- return null;
- }
- const hour = Number(matches[1]);
- if (hour < 0 || hour > 23) {
- return null;
- }
- const minute = Number(matches[2]);
- if (minute < 0 || minute > 59) {
- return null;
- }
- const second = matches[3] !== undefined ? Math.trunc(Number(matches[3])) : 0;
- if (second < 0 || second >= 60) {
- return null;
- }
- const millisecond = matches[4] !== undefined ? Number(matches[4]) : 0;
- return { hour, minute, second, millisecond };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-time-string
-function isValidTimeString(str) {
- return parseTimeString(str) !== null;
-}
-
-function serializeTime({ hour, minute, second, millisecond }) {
- const hourStr = `${hour}`.padStart(2, "0");
- const minuteStr = `${minute}`.padStart(2, "0");
- if (second === 0 && millisecond === 0) {
- return `${hourStr}:${minuteStr}`;
- }
- const secondStr = `${second}`.padStart(2, "0");
- const millisecondStr = `${millisecond}`.padStart(3, "0");
- return `${hourStr}:${minuteStr}:${secondStr}.${millisecondStr}`;
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-local-date-and-time-string
-function parseLocalDateAndTimeString(str, normalized = false) {
- let separatorIdx = str.indexOf("T");
- if (separatorIdx < 0 && !normalized) {
- separatorIdx = str.indexOf(" ");
- }
- if (separatorIdx < 0) {
- return null;
- }
- const date = parseDateString(str.slice(0, separatorIdx));
- if (date === null) {
- return null;
- }
- const time = parseTimeString(str.slice(separatorIdx + 1));
- if (time === null) {
- return null;
- }
- return { date, time };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-local-date-and-time-string
-function isValidLocalDateAndTimeString(str) {
- return parseLocalDateAndTimeString(str) !== null;
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-normalised-local-date-and-time-string
-function isValidNormalizedLocalDateAndTimeString(str) {
- return parseLocalDateAndTimeString(str, true) !== null;
-}
-function serializeNormalizedDateAndTime({ date, time }) {
- return `${serializeDate(date)}T${serializeTime(time)}`;
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#week-number-of-the-last-day
-// https://stackoverflow.com/a/18538272/1937836
-function weekNumberOfLastDay(year) {
- const jan1 = new Date(year, 0);
- return jan1.getDay() === 4 || (isLeapYear(year) && jan1.getDay() === 3) ? 53 : 52;
-}
-
-const weekRe = /^([0-9]{4,5})-W([0-9]{2})$/;
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#parse-a-week-string
-function parseWeekString(str) {
- const matches = weekRe.exec(str);
- if (!matches) {
- return null;
- }
- const year = Number(matches[1]);
- if (year <= 0) {
- return null;
- }
- const week = Number(matches[2]);
- if (week < 1 || week > weekNumberOfLastDay(year)) {
- return null;
- }
- return { year, week };
-}
-
-// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-week-string
-function isValidWeekString(str) {
- return parseWeekString(str) !== null;
-}
-function serializeWeek({ year, week }) {
- const yearStr = `${year}`.padStart(4, "0");
- const weekStr = `${week}`.padStart(2, "0");
- return `${yearStr}-W${weekStr}`;
-}
-
-// https://stackoverflow.com/a/6117889
-function parseDateAsWeek(originalDate) {
- const dayInSeconds = 86400000;
- // Copy date so don't modify original
- const date = new Date(Date.UTC(originalDate.getUTCFullYear(), originalDate.getUTCMonth(), originalDate.getUTCDate()));
- // Set to nearest Thursday: current date + 4 - current day number
- // Make Sunday's day number 7
- date.setUTCDate(date.getUTCDate() + 4 - (date.getUTCDay() || 7));
- // Get first day of year
- const yearStart = new Date(Date.UTC(date.getUTCFullYear(), 0, 1));
- // Calculate full weeks to nearest Thursday
- const week = Math.ceil((((date - yearStart) / dayInSeconds) + 1) / 7);
-
- return { year: date.getUTCFullYear(), week };
-}
-
-function isDate(obj) {
- try {
- Date.prototype.valueOf.call(obj);
- return true;
- } catch {
- return false;
- }
-}
-
-module.exports = {
- isDate,
- numberOfDaysInMonthOfYear,
-
- parseMonthString,
- isValidMonthString,
- serializeMonth,
-
- parseDateString,
- isValidDateString,
- serializeDate,
-
- parseYearlessDateString,
- isValidYearlessDateString,
- serializeYearlessDate,
-
- parseTimeString,
- isValidTimeString,
- serializeTime,
-
- parseLocalDateAndTimeString,
- isValidLocalDateAndTimeString,
- isValidNormalizedLocalDateAndTimeString,
- serializeNormalizedDateAndTime,
-
- parseDateAsWeek,
- weekNumberOfLastDay,
- parseWeekString,
- isValidWeekString,
- serializeWeek
-};
-
-
-/***/ }),
-
-/***/ 827:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const { firstChildWithLocalName } = __nccwpck_require__(32604);
-const { HTML_NS } = __nccwpck_require__(52635);
-
-// https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details
-exports.isSummaryForParentDetails = summaryElement => {
- const parent = summaryElement.parentNode;
- if (parent === null) {
- return false;
- }
- if (parent._localName !== "details" || parent._namespaceURI !== HTML_NS) {
- return false;
- }
- return firstChildWithLocalName(parent, "summary") === summaryElement;
-};
-
-
-/***/ }),
-
-/***/ 20613:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
-
-"use strict";
-
-const whatwgURL = __nccwpck_require__(66365);
-const { implForWrapper } = __nccwpck_require__(34908);
-
-exports.documentBaseURL = document => {
- // https://html.spec.whatwg.org/multipage/infrastructure.html#document-base-url
-
- const firstBase = document.querySelector("base[href]");
- const fallbackBaseURL = exports.fallbackBaseURL(document);
-
- if (firstBase === null) {
- return fallbackBaseURL;
- }
-
- return frozenBaseURL(firstBase, fallbackBaseURL);
-};
-
-exports.documentBaseURLSerialized = document => {
- return whatwgURL.serializeURL(exports.documentBaseURL(document));
-};
-
-exports.fallbackBaseURL = document => {
- // https://html.spec.whatwg.org/multipage/infrastructure.html#fallback-base-url
-
- // Unimplemented: