Compare commits

..
Author SHA1 Message Date
dependabot[bot] 5ddbcb71d4 build(deps): bump the codeql-actions group with 2 updates
Bumps the codeql-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.39.2 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1fc58d04a4d4374f921bdac573c3811c240f9c26...33d7b85da1a04171e211befe2c739303b9a4c066)

Updates `github/codeql-action/analyze` from 4.39.2 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1fc58d04a4d4374f921bdac573c3811c240f9c26...33d7b85da1a04171e211befe2c739303b9a4c066)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-06 05:52:39 +00:00
CrazyMax d0b8297dd5 Merge pull request #1107 from crazy-max/ci-codecov-oidc
ci: use OIDC for Codecov uploads
2026-11-05 17:24:30 +01:00
CrazyMax 736162f27b ci: use OIDC for Codecov uploads
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-11-05 17:09:25 +01:00
CrazyMax 8aa5831fb8 Merge pull request #1105 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.108.0
build(deps): bump @docker/actions-toolkit from 0.107.0 to 0.109.0
2026-11-05 13:54:17 +01:00
github-actions[bot] 043f81d4e0 [dependabot skip] chore: update generated content 2026-11-05 12:52:56 +00:00
dependabot[bot] 3ff6998ba6 build(deps): bump @docker/actions-toolkit from 0.107.0 to 0.109.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.107.0 to 0.109.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.107.0...v0.109.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.108.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 12:52:07 +00:00
CrazyMax 694ef6a96b Merge pull request #1103 from docker/dependabot/npm_and_yarn/aws-sdk-dependencies-d92cb63d91
build(deps): bump the aws-sdk-dependencies group across 1 directory with 2 updates
2026-11-05 13:49:47 +01:00
github-actions[bot] 7c6e412a10 [dependabot skip] chore: update generated content 2026-11-05 12:17:52 +00:00
dependabot[bot] aa2441f70f build(deps): bump the aws-sdk-dependencies group across 1 directory with 2 updates
Bumps the aws-sdk-dependencies group with 2 updates in the / directory: [@aws-sdk/client-ecr](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ecr) and [@aws-sdk/client-ecr-public](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ecr-public).


Updates `@aws-sdk/client-ecr` from 3.1154.0 to 3.1161.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ecr/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1161.0/clients/client-ecr)

Updates `@aws-sdk/client-ecr-public` from 3.1154.0 to 3.1161.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ecr-public/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1161.0/clients/client-ecr-public)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-ecr"
  dependency-version: 3.1156.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-dependencies
- dependency-name: "@aws-sdk/client-ecr-public"
  dependency-version: 3.1156.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 12:16:58 +00:00
CrazyMax d6c10b0849 Merge pull request #1106 from docker/dependabot/github_actions/codeql-actions-54bdb232ba
build(deps): bump the codeql-actions group with 2 updates
2026-11-05 13:14:45 +01:00
CrazyMax 319f1ee2c2 Merge pull request #1104 from docker/dependabot/github_actions/actions/setup-node-7.1.0
build(deps): bump actions/setup-node from 7.0.0 to 7.1.0
2026-11-05 13:14:24 +01:00
CrazyMax b483b7fe94 Merge pull request #1101 from docker/dependabot/npm_and_yarn/vite-7.3.7
build(deps): bump vite from 7.3.6 to 7.3.7
2026-11-05 13:13:42 +01:00
CrazyMax dc7d67cbf2 Merge pull request #1070 from crazy-max/increase-oidc-default-expiry
set Docker Hub OIDC token lifetime default to 1 hour
2026-11-05 12:32:15 +01:00
CrazyMax 98b667573a chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-11-05 11:51:32 +01:00
dependabot[bot] f28b5e1647 build(deps): bump the codeql-actions group with 2 updates
Bumps the codeql-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.39.1 to 4.39.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...1fc58d04a4d4374f921bdac573c3811c240f9c26)

Updates `github/codeql-action/analyze` from 4.39.1 to 4.39.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...1fc58d04a4d4374f921bdac573c3811c240f9c26)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 05:54:33 +00:00
CrazyMax 475278bf9c set Docker Hub OIDC token lifetime default to 1 hour
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-11-04 21:47:52 +01:00
dependabot[bot] 9b798b1a27 build(deps): bump actions/setup-node from 7.0.0 to 7.1.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 06:03:26 +00:00
dependabot[bot] 0d47106d05 build(deps): bump vite from 7.3.6 to 7.3.7
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.6 to 7.3.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.7/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 16:35:15 +00:00
CrazyMax 81c6f93d4b Merge pull request #1100 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.107.0
build(deps): bump @docker/actions-toolkit from 0.94.0 to 0.107.0
2026-10-23 17:11:41 +02:00
CrazyMax 1b16c8d181 Merge pull request #1096 from docker/dependabot/npm_and_yarn/uuid-14.0.3
build(deps): bump uuid from 14.0.1 to 14.0.3
2026-10-23 17:07:32 +02:00
github-actions[bot] ac86b5e9e9 [dependabot skip] chore: update generated content 2026-10-23 15:07:27 +00:00
dependabot[bot] 1476d845f0 build(deps): bump @docker/actions-toolkit from 0.94.0 to 0.107.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.94.0 to 0.107.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.94.0...v0.107.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.107.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:06:27 +00:00
CrazyMax 503cee68d8 Merge pull request #1095 from docker/dependabot/github_actions/actions/create-github-app-token-3.3.0
build(deps): bump actions/create-github-app-token from 3.2.0 to 3.3.0
2026-10-23 17:05:26 +02:00
CrazyMax f0935357f5 Merge pull request #1099 from docker/dependabot/github_actions/codecov/codecov-action-7.1.1
build(deps): bump codecov/codecov-action from 7.1.0 to 7.1.1
2026-10-23 17:04:55 +02:00
CrazyMax d5ae7f1887 Merge pull request #1098 from docker/dependabot/github_actions/docker/bake-action-7.5.0
build(deps): bump docker/bake-action from 7.4.0 to 7.5.0
2026-10-23 17:04:26 +02:00
CrazyMax 6f9750797f Merge pull request #1097 from docker/dependabot/github_actions/docker/bake-action/subaction/matrix-7.5.0
build(deps): bump docker/bake-action/subaction/matrix from 7.3.0 to 7.5.0
2026-10-23 17:04:07 +02:00
CrazyMax 006d61fa59 Merge pull request #1094 from docker/dependabot/github_actions/codeql-actions-271845e79b
build(deps): bump the codeql-actions group with 2 updates
2026-10-23 17:03:37 +02:00
CrazyMax 93f5f522ee Merge pull request #1093 from docker/dependabot/npm_and_yarn/aws-sdk-dependencies-31e82f202a
build(deps): bump the aws-sdk-dependencies group with 2 updates
2026-10-23 17:03:10 +02:00
github-actions[bot] 7c852d24cc [dependabot skip] chore: update generated content 2026-10-23 15:01:55 +00:00
github-actions[bot] 4ceed959c1 [dependabot skip] chore: update generated content 2026-10-23 15:01:33 +00:00
dependabot[bot] 919c5b190a build(deps): bump codecov/codecov-action from 7.1.0 to 7.1.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/0b35c9ecc4f0529d0eb674914510c22f85b196b4...303a32d7a59b442fa8d48b6a1cc6825c09c847a5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 7.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:01:11 +00:00
dependabot[bot] 9803d0ec68 build(deps): bump docker/bake-action from 7.4.0 to 7.5.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.4.0 to 7.5.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/018cb6412ab401ebaa809aa5f85966b74628600f...59cb1203cd42bcefd40a1b6d73b589e48c86040e)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:01:06 +00:00
dependabot[bot] 55f683f41c build(deps): bump uuid from 14.0.1 to 14.0.3
Bumps [uuid](https://github.com/uuidjs/uuid) from 14.0.1 to 14.0.3.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v14.0.1...v14.0.3)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 14.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:00:51 +00:00
dependabot[bot] 2a7f8e4bbd build(deps): bump actions/create-github-app-token from 3.2.0 to 3.3.0
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/bcd2ba49218906704ab6c1aa796996da409d3eb1...64ab729a6294000f5aa4a4bc0b73d1f32bc45510)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:00:44 +00:00
dependabot[bot] f6a1cf2ba4 build(deps): bump the codeql-actions group with 2 updates
Bumps the codeql-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.39.0 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `github/codeql-action/analyze` from 4.39.0 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:00:39 +00:00
dependabot[bot] 74f58135ad build(deps): bump the aws-sdk-dependencies group with 2 updates
Bumps the aws-sdk-dependencies group with 2 updates: [@aws-sdk/client-ecr](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ecr) and [@aws-sdk/client-ecr-public](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ecr-public).


Updates `@aws-sdk/client-ecr` from 3.1095.0 to 3.1154.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ecr/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1154.0/clients/client-ecr)

Updates `@aws-sdk/client-ecr-public` from 3.1095.0 to 3.1154.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ecr-public/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1154.0/clients/client-ecr-public)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-ecr"
  dependency-version: 3.1154.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-dependencies
- dependency-name: "@aws-sdk/client-ecr-public"
  dependency-version: 3.1154.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:00:28 +00:00
12 changed files with 670 additions and 914 deletions

No files matched your search

+3 -3
View File
@@ -30,17 +30,17 @@ jobs:
yarn --version
-
name: Set up Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: javascript-typescript
build-mode: none
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:javascript-typescript"
+6 -3
View File
@@ -17,19 +17,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for Codecov authentication
steps:
-
name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Test
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
source: .
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
+2 -2
View File
@@ -21,7 +21,7 @@ jobs:
-
name: GitHub auth token from GitHub App
id: docker-read-app
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
@@ -37,7 +37,7 @@ jobs:
token: ${{ steps.docker-read-app.outputs.token }}
-
name: Build
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
source: .
targets: build
+1 -1
View File
@@ -41,6 +41,6 @@ jobs:
steps:
-
name: Validate
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
targets: ${{ matrix.target }}
+1 -1
View File
@@ -760,7 +760,7 @@ The following environment variables can be set as `step.env` keys:
| Name | Type | Default | Description |
|-------------------------------|--------|---------|----------------------------------------------------------------------------------------------------|
| `DOCKERHUB_OIDC_CONNECTIONID` | String | | Docker Hub OIDC connection ID. Required for Docker Hub OIDC login |
| `DOCKERHUB_OIDC_EXPIREIN` | Number | `300` | Docker Hub OIDC token lifetime in seconds. Must be between `300` (5 minutes) and `21600` (6 hours) |
| `DOCKERHUB_OIDC_EXPIREIN` | Number | `3600` | Docker Hub OIDC token lifetime in seconds. Must be between `300` (5 minutes) and `21600` (6 hours) |
## Contributing
+2 -2
View File
@@ -82,14 +82,14 @@ describe('getOIDCToken', () => {
expect(body.get('subject_token_type')).toBe('urn:ietf:params:oauth:token-type:id_token');
expect(body.get('subject_token')).toBe('github-id-token');
expect(body.get('connection_id')).toBe(validConnectionID);
expect(body.get('expires_in')).toBe('300');
expect(body.get('expires_in')).toBe('3600');
expect(setSecretMock).toHaveBeenCalledWith('hub-token');
expect(core.info).toHaveBeenCalledWith('Docker Hub OIDC detected for docker.io');
expect(core.info).toHaveBeenCalledWith('Retrieving GitHub OIDC token for Docker Hub');
expect(core.info).toHaveBeenCalledWith('Exchanging GitHub OIDC token for Docker Hub token');
expect(core.info).toHaveBeenCalledWith('Docker Hub OIDC token exchange succeeded');
expect(core.debug).toHaveBeenCalledWith('Docker Hub OIDC token audience: https://identity.docker.com');
expect(core.debug).toHaveBeenCalledWith('Docker Hub OIDC token expiration: 300s');
expect(core.debug).toHaveBeenCalledWith('Docker Hub OIDC token expiration: 3600s');
expect(core.debug).toHaveBeenCalledWith('Sending Docker Hub OIDC token request to https://identity.docker.com/oauth/token');
expect(core.debug).toHaveBeenCalledWith('Docker Hub OIDC token request returned status code 200');
expect(core.debug).toHaveBeenCalledWith('Docker Hub OIDC token response status code: 200');
Generated Vendored
+143 -139
View File
@@ -1,81 +1,81 @@
var lHe=Object.create;var zy=Object.defineProperty;var uHe=Object.getOwnPropertyDescriptor;var dHe=Object.getOwnPropertyNames;var pHe=Object.getPrototypeOf,mHe=Object.prototype.hasOwnProperty;var i=(t,e)=>zy(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Or=(t,e)=>{for(var r in e)zy(t,r,{get:e[r],enumerable:!0})},xK=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of dHe(e))!mHe.call(t,s)&&s!==r&&zy(t,s,{get:()=>e[s],enumerable:!(n=uHe(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?lHe(pHe(t)):{},xK(e||!t||!t.__esModule?zy(r,"default",{value:t,enumerable:!0}):r,t)),re=t=>xK(zy({},"__esModule",{value:!0}),t);var QK=I(Mf=>{"use strict";var rzt=require("net"),EHe=require("tls"),QM=require("http"),vK=require("https"),CHe=require("events"),nzt=require("assert"),IHe=require("util");Mf.httpOverHttp=wHe;Mf.httpsOverHttp=SHe;Mf.httpOverHttps=xHe;Mf.httpsOverHttps=bHe;function wHe(t){var e=new fl(t);return e.request=QM.request,e}i(wHe,"httpOverHttp");function SHe(t){var e=new fl(t);return e.request=QM.request,e.createSocket=PK,e.defaultPort=443,e}i(SHe,"httpsOverHttp");function xHe(t){var e=new fl(t);return e.request=vK.request,e}i(xHe,"httpOverHttps");function bHe(t){var e=new fl(t);return e.request=vK.request,e.createSocket=PK,e.defaultPort=443,e}i(bHe,"httpsOverHttps");function fl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||QM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=_K(s,o,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(fl,"TunnelingAgent");IHe.inherits(fl,CHe.EventEmitter);fl.prototype.addRequest=i(function(e,r,n,s){var o=this,a=DM({request:e},o.options,_K(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");fl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=DM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),Eu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");function u(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){Eu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.destroy();var A=new Error("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(f.length>0){Eu("got illegal response body from proxy"),m.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}return Eu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");function d(p){a.removeAllListeners(),Eu(`tunneling socket could not be established, cause=%s
`,p.message,p.stack);var m=new Error("tunneling socket could not be established, cause="+p.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}i(d,"onError")},"createSocket");fl.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function PK(t,e){var r=this;fl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=DM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=EHe.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(PK,"createSecureSocket");function _K(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(_K,"toOptions");function DM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),o=0,a=s.length;o<a;++o){var c=s[o];n[c]!==void 0&&(t[c]=n[c])}}return t}i(DM,"mergeOptions");var Eu;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Eu=i(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Eu=i(function(){},"debug");Mf.debug=Eu});var Ff=I((izt,DK)=>{DK.exports=QK()});var Mt=I((azt,kK)=>{kK.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var nt=I((czt,iX)=>{"use strict";var LK=Symbol.for("undici.error.UND_ERR"),Ft=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[LK]===!0}[LK]=!0},OK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),kM=class extends Ft{static{i(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[OK]===!0}[OK]=!0},MK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),LM=class extends Ft{static{i(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[MK]===!0}[MK]=!0},FK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),OM=class extends Ft{static{i(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[FK]===!0}[FK]=!0},UK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),MM=class extends Ft{static{i(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}i(C7,"isValidHeaderValue");function Gze(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(Bze.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(Gze,"setRequestReferrerPolicyOnRedirect");function Hze(){return"allowed"}i(Hze,"crossOriginResourcePolicyCheck");function $ze(){return"success"}i($ze,"corsCheck");function zze(){return"success"}i(zze,"TAOCheck");function Vze(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(Vze,"appendFetchMetadata");function Wze(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&vF(t.origin)&&!vF(tE(t))&&(e=null);break;case"same-origin":mb(t,tE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(Wze,"appendRequestOriginHeader");function Jf(t,e){return t}i(Jf,"coarsenTime");function Yze(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jf(t.domainLookupStartTime,r),domainLookupEndTime:Jf(t.domainLookupEndTime,r),connectionStartTime:Jf(t.connectionStartTime,r),connectionEndTime:Jf(t.connectionEndTime,r),secureConnectionStartTime:Jf(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(Yze,"clampAndCoarsenConnectionTimingInfo");function Jze(t){return Jf(Pze.now(),t)}i(Jze,"coarsenedSharedCurrentTime");function jze(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}i(jze,"createOpaqueTimingInfo");function I7(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(I7,"makePolicyContainer");function Kze(t){return{referrerPolicy:t.referrerPolicy}}i(Kze,"clonePolicyContainer");function Xze(t){let e=t.referrerPolicy;gp(e);let r=null;if(t.referrer==="client"){let c=A7();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=TF(r),s=TF(r,!0);n.toString().length>4096&&(n=s);let o=mb(t,n),a=eE(n)&&!eE(t.url);switch(e){case"origin":return s??TF(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=tE(t);return mb(n,c)?n:eE(n)&&!eE(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(Xze,"determineRequestsReferrer");function TF(t,e){return gp(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(TF,"stripURLForReferrer");function eE(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(eE,"isURLPotentiallyTrustworthy");function Zze(t,e){if(pb===void 0)return!0;let r=w7(e);if(r==="no metadata"||r.length===0)return!0;let n=t3e(r),s=r3e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=pb.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),n3e(l,c))return!0}return!1}i(Zze,"bytesMatch");var e3e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function w7(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=e3e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();g7.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(w7,"parseMetadata");function t3e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(t3e,"getStrongestMetadata");function r3e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(r3e,"filterMetadataListByAlgorithm");function n3e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}i(n3e,"compareBase64Mixed");function s3e(t){}i(s3e,"tryUpgradeReque Line truncated
`);function U3e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(U3e,"isAsciiString");function q3e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(q3e,"validateBoundary");function G3e(t,e){Ab(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&hb(t,M3e,o)||o.position===t.length-4&&hb(t,F3e,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=H3e(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let m;{let A=t.indexOf(n.subarray(2),o.position);if(A===-1)return"failure";m=t.subarray(o.position,A-4),o.position+=m.length,p==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let f;u!==null?(d??="text/plain",U3e(d)||(d=""),f=new L3e([m],u,{type:d})):f=P3e(Buffer.from(m)),Ab(k7(l)),Ab(typeof f=="string"&&k7(f)||Q3e(f)),s.push(D3e(l,f,u))}}i(G3e,"multipartFormDataParser");function H3e(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=Kf(c=>c!==10&&c!==13&&c!==58,t,e);if(a=OF(a,!0,!0,c=>c===9||c===32),!_3e.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Kf(c=>c===32||c===9,t,e),v3e(a)){case"content-disposition":{if(r=n=null,!hb(t,O3e,e)||(e.position+=17,r=M7(t,e),r===null))return"failure";if(hb(t,O7,e)){let c=e.position+O7.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=M7(t,e),n===null))return"failure"}break}case"content-type":{let c=Kf(l=>l!==10&&l!==13,t,e);c=OF(c,!1,!0,l=>l===9||l===32),s=L7(c);break}case"content-transfer-encoding":{let c=Kf(l=>l!==10&&l!==13,t,e);c=OF(c,!1,!0,l=>l===9||l===32),o=L7(c);break}default:Kf(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(H3e,"parseMultipartFormDataHeaders");function M7(t,e){Ab(t[e.position-1]===34);let r=Kf(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(M7,"parseMultipartFormDataName");function Kf(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(Kf,"collectASequenceOfBytes");function OF(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;o>0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(OF,"removeChars");function hb(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(hb,"bufferStartsWith");F7.exports={multipartFormDataParser:G3e,validateBoundary:q3e}});var eA=I((Yzt,j7)=>{"use strict";var sE=He(),{ReadableStreamFrom:$3e,isBlobLike:q7,isReadableStreamLike:z3e,readableStreamClose:V3e,createDeferredPromise:W3e,fullyReadBody:Y3e,extractMimeType:J3e,utf8DecodeBytes:$7}=Ys(),{FormData:G7}=nE(),{kState:Zf}=Cu(),{webidl:j3e}=dn(),{Blob:K3e}=require("node:buffer"),MF=require("node:assert"),{isErrored:z7,isDisturbed:X3e}=require("node:stream"),{isArrayBuffer:Z3e}=require("node:util/types"),{serializeAMimeType:eVe}=gs(),{multipartFormDataParser:tVe}=U7(),FF;try{let t=require("node:crypto");FF=i(e=>t.randomInt(0,e),"random")}catch{FF=i(t=>Math.floor(Math.random(t)),"random")}var gb=new TextEncoder;function rVe(){}i(rVe,"noop");var V7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,W7;V7&&(W7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!X3e(e)&&!z7(e)&&e.cancel("Response object has been garbage collected").catch(rVe)}));function Y7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:q7(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?gb.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>V3e(l))},start(){},type:"bytes"}),MF(z3e(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Z3e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(sE.isFormDataLike(t)){let l=`----formdata-undici-0${`${FF(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=i(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(E=>E.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),m=[],f=new Uint8Array([13,10]);o=0;let A=!1;for(let[E,C]of t)if(typeof C=="string"){let w=gb.encode(u+`; name="${d(p(E))}"\r
var Lje=Object.create;var FC=Object.defineProperty;var Mje=Object.getOwnPropertyDescriptor;var Fje=Object.getOwnPropertyNames;var Uje=Object.getPrototypeOf,qje=Object.prototype.hasOwnProperty;var i=(t,e)=>FC(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cr=(t,e)=>{for(var r in e)FC(t,r,{get:e[r],enumerable:!0})},jte=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Fje(e))!qje.call(t,s)&&s!==r&&FC(t,s,{get:()=>e[s],enumerable:!(n=Mje(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?Lje(Uje(t)):{},jte(e||!t||!t.__esModule?FC(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>jte(FC({},"__esModule",{value:!0}),t);var ore=S(Xh=>{"use strict";var wXt=require("net"),Wje=require("tls"),m2=require("http"),rre=require("https"),Jje=require("events"),xXt=require("assert"),Yje=require("util");Xh.httpOverHttp=jje;Xh.httpsOverHttp=Kje;Xh.httpOverHttps=Xje;Xh.httpsOverHttps=Zje;function jje(t){var e=new Yl(t);return e.request=m2.request,e}i(jje,"httpOverHttp");function Kje(t){var e=new Yl(t);return e.request=m2.request,e.createSocket=nre,e.defaultPort=443,e}i(Kje,"httpsOverHttp");function Xje(t){var e=new Yl(t);return e.request=rre.request,e}i(Xje,"httpOverHttps");function Zje(t){var e=new Yl(t);return e.request=rre.request,e.createSocket=nre,e.defaultPort=443,e}i(Zje,"httpsOverHttps");function Yl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||m2.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=sre(s,o,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(Yl,"TunnelingAgent");Yje.inherits(Yl,Jje.EventEmitter);Yl.prototype.addRequest=i(function(e,r,n,s){var o=this,a=h2({request:e},o.options,sre(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Yl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=h2({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),Zu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");function u(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){Zu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();var h=new Error("tunneling socket could not be established, statusCode="+p.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(m.length>0){Zu("got illegal response body from proxy"),f.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Zu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),Zu(`tunneling socket could not be established, cause=%s
`,p.message,p.stack);var f=new Error("tunneling socket could not be established, cause="+p.message);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s)}i(d,"onError")},"createSocket");Yl.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function nre(t,e){var r=this;Yl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=h2({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Wje.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(nre,"createSecureSocket");function sre(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(sre,"toOptions");function h2(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),o=0,a=s.length;o<a;++o){var c=s[o];n[c]!==void 0&&(t[c]=n[c])}}return t}i(h2,"mergeOptions");var Zu;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Zu=i(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Zu=i(function(){},"debug");Xh.debug=Zu});var Zh=S((RXt,ire)=>{ire.exports=ore()});var Ht=S((NXt,are)=>{are.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var at=S((TXt,vre)=>{"use strict";var cre=Symbol.for("undici.error.UND_ERR"),zt=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[cre]===!0}[cre]=!0},lre=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),A2=class extends zt{static{i(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lre]===!0}[lre]=!0},ure=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),g2=class extends zt{static{i(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[ure]===!0}[ure]=!0},dre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),y2=class extends zt{static{i(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[dre]===!0}[dre]=!0},pre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),E2=class extends zt{static{i(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}i(Vne,"isValidHeaderValue");function A9e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(e9e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(A9e,"setRequestReferrerPolicyOnRedirect");function g9e(){return"allowed"}i(g9e,"crossOriginResourcePolicyCheck");function y9e(){return"success"}i(y9e,"corsCheck");function E9e(){return"success"}i(E9e,"TAOCheck");function C9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(C9e,"appendFetchMetadata");function I9e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&dq(t.origin)&&!dq(YC(t))&&(e=null);break;case"same-origin":_B(t,YC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(I9e,"appendRequestOriginHeader");function lA(t,e){return t}i(lA,"coarsenTime");function S9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:lA(t.domainLookupStartTime,r),domainLookupEndTime:lA(t.domainLookupEndTime,r),connectionStartTime:lA(t.connectionStartTime,r),connectionEndTime:lA(t.connectionEndTime,r),secureConnectionStartTime:lA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(S9e,"clampAndCoarsenConnectionTimingInfo");function w9e(t){return lA(o9e.now(),t)}i(w9e,"coarsenedSharedCurrentTime");function x9e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}i(x9e,"createOpaqueTimingInfo");function Wne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(Wne,"makePolicyContainer");function b9e(t){return{referrerPolicy:t.referrerPolicy}}i(b9e,"clonePolicyContainer");function B9e(t){let e=t.referrerPolicy;gf(e);let r=null;if(t.referrer==="client"){let c=qne();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=uq(r),s=uq(r,!0);n.toString().length>4096&&(n=s);let o=_B(t,n),a=JC(n)&&!JC(t.url);switch(e){case"origin":return s??uq(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=YC(t);return _B(n,c)?n:JC(n)&&!JC(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(B9e,"determineRequestsReferrer");function uq(t,e){return gf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(uq,"stripURLForReferrer");function JC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(JC,"isURLPotentiallyTrustworthy");function R9e(t,e){if(PB===void 0)return!0;let r=Jne(e);if(r==="no metadata"||r.length===0)return!0;let n=T9e(r),s=P9e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=PB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),_9e(l,c))return!0}return!1}i(R9e,"bytesMatch");var N9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Jne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=N9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();Gne.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(Jne,"parseMetadata");function T9e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(T9e,"getStrongestMetadata");function P9e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(P9e,"filterMetadataListByAlgorithm");function _9e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}i(_9e,"compareBase64Mixed");function v9e(t){}i(v9e,"tryUpgr Line truncated
`);function mKe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(mKe,"isAsciiString");function hKe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(hKe,"validateBoundary");function AKe(t,e){QB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&DB(t,pKe,o)||o.position===t.length-4&&DB(t,fKe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=gKe(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let f;{let h=t.indexOf(n.subarray(2),o.position);if(h===-1)return"failure";f=t.subarray(o.position,h-4),o.position+=f.length,p==="base64"&&(f=Buffer.from(f.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let m;u!==null?(d??="text/plain",mKe(d)||(d=""),m=new uKe([f],u,{type:d})):m=oKe(Buffer.from(f)),QB(ase(l)),QB(typeof m=="string"&&ase(m)||aKe(m)),s.push(cKe(l,m,u))}}i(AKe,"multipartFormDataParser");function gKe(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=dA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=yq(a,!0,!0,c=>c===9||c===32),!iKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,dA(c=>c===32||c===9,t,e),sKe(a)){case"content-disposition":{if(r=n=null,!DB(t,dKe,e)||(e.position+=17,r=use(t,e),r===null))return"failure";if(DB(t,lse,e)){let c=e.position+lse.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=use(t,e),n===null))return"failure"}break}case"content-type":{let c=dA(l=>l!==10&&l!==13,t,e);c=yq(c,!1,!0,l=>l===9||l===32),s=cse(c);break}case"content-transfer-encoding":{let c=dA(l=>l!==10&&l!==13,t,e);c=yq(c,!1,!0,l=>l===9||l===32),o=cse(c);break}default:dA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(gKe,"parseMultipartFormDataHeaders");function use(t,e){QB(t[e.position-1]===34);let r=dA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(use,"parseMultipartFormDataName");function dA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(dA,"collectASequenceOfBytes");function yq(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;o>0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(yq,"removeChars");function DB(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(DB,"bufferStartsWith");dse.exports={multipartFormDataParser:AKe,validateBoundary:hKe}});var mA=S((h7t,Sse)=>{"use strict";var XC=Je(),{ReadableStreamFrom:yKe,isBlobLike:fse,isReadableStreamLike:EKe,readableStreamClose:CKe,createDeferredPromise:IKe,fullyReadBody:SKe,extractMimeType:wKe,utf8DecodeBytes:Ase}=ho(),{FormData:mse}=KC(),{kState:fA}=ed(),{webidl:xKe}=bn(),{Blob:bKe}=require("node:buffer"),Eq=require("node:assert"),{isErrored:gse,isDisturbed:BKe}=require("node:stream"),{isArrayBuffer:RKe}=require("node:util/types"),{serializeAMimeType:NKe}=_s(),{multipartFormDataParser:TKe}=pse(),Cq;try{let t=require("node:crypto");Cq=i(e=>t.randomInt(0,e),"random")}catch{Cq=i(t=>Math.floor(Math.random(t)),"random")}var kB=new TextEncoder;function PKe(){}i(PKe,"noop");var yse=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Ese;yse&&(Ese=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!BKe(e)&&!gse(e)&&e.cancel("Response object has been garbage collected").catch(PKe)}));function Cse(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fse(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?kB.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>CKe(l))},start(){},type:"bytes"}),Eq(EKe(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(RKe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let l=`----formdata-undici-0${`${Cq(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),f=[],m=new Uint8Array([13,10]);o=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let I=kB.encode(u+`; name="${d(p(y))}"\r
\r
${p(C)}\r
`);m.push(w),o+=w.byteLength}else{let w=gb.encode(`${u}; name="${d(p(E))}"`+(C.name?`; filename="${d(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${p(E)}\r
`);f.push(I),o+=I.byteLength}else{let I=kB.encode(`${u}; name="${d(p(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);m.push(w,C,f),typeof C.size=="number"?o+=w.byteLength+C.size+f.byteLength:A=!0}let h=gb.encode(`--${l}--\r
`);m.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let E of m)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(q7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(sE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:$3e(t)}if((typeof s=="string"||sE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!z7(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(Y7,"extractBody");function nVe(t,e=!1){return t instanceof ReadableStream&&(MF(!sE.isDisturbed(t),"The body has already been consumed."),MF(!t.locked,"The stream is locked.")),Y7(t,e)}i(nVe,"safelyExtractBody");function sVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(sVe,"cloneBody");function oVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(oVe,"throwIfAborted");function iVe(t){return{blob(){return Xf(this,r=>{let n=H7(this);return n===null?n="":n&&(n=eVe(n)),new K3e([r],{type:n})},t)},arrayBuffer(){return Xf(this,r=>new Uint8Array(r).buffer,t)},text(){return Xf(this,$7,t)},json(){return Xf(this,cVe,t)},formData(){return Xf(this,r=>{let n=H7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=tVe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new G7;return o[Zf]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new G7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Xf(this,r=>new Uint8Array(r),t)}}}i(iVe,"bodyMixinMethods");function aVe(t){Object.assign(t.prototype,iVe(t))}i(aVe,"mixinBody");async function Xf(t,e,r){if(j3e.brandCheck(t,r),J7(t))throw new TypeError("Body is unusable: Body has already been read");oVe(t[Zf]);let n=W3e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Zf].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await Y3e(t[Zf].body,o,s),n.promise)}i(Xf,"consumeBody");function J7(t){let e=t[Zf].body;return e!=null&&(e.stream.locked||sE.isDisturbed(e.stream))}i(J7,"bodyUnusable");function cVe(t){return JSON.parse($7(t))}i(cVe,"parseJSONFromBytes");function H7(t){let e=t[Zf].headersList,r=J3e(e);return r==="failure"?null:r}i(H7,"bodyMimeType");j7.exports={extractBody:Y7,safelyExtractBody:nVe,cloneBody:sVe,mixinBody:aVe,streamRegistry:W7,hasFinalizationRegistry:V7,bodyUnusable:J7}});var pZ=I((jzt,dZ)=>{"use strict";var Ae=require("node:assert"),le=He(),{channels:K7}=qf(),UF=IF(),{RequestContentLengthMismatchError:yp,ResponseContentLengthMismatchError:X7,RequestAbortedError:iZ,InvalidArgumentError:lVe,HeadersTimeoutError:uVe,HeadersOverflowError:dVe,SocketError:tA,InformationalError:Ep,BodyTimeoutError:pVe,HTTPParserError:mVe,ResponseExceededMaxSizeError:fVe}=nt(),{kUrl:aZ,kReset:ys,kClient:Ib,kParser:vt,kBlocking:aE,kRunning:Nr,kPending:cZ,kSize:Z7,kWriting:Iu,kQueue:Bi,kNoRef:oE,kKeepAliveDefaultTimeout:AVe,kHostHeader:hVe,kPendingIdx:gVe,kRunningIdx:Do,kError:Yn,kPipelining:wb,kSocket:Cp,kKeepAliveTimeoutValue:xb,kMaxHeadersSize:qF,kKeepAliveMaxTimeout:yVe,kKeepAliveTimeoutThreshold:EVe,kHeadersTimeout:CVe,kBodyTimeout:IVe,kStrictContentLength:$F,kMaxRequests:eZ,kCounter:wVe,kMaxResponseSize:SVe,kOnError:tZ,kResume:El,kHTTPContext:lZ}=Mt(),Js=WX(),rZ=Buffer.alloc(0),yb=Buffer[Symbol.species],Eb=le.addListener,xVe=le.removeAllListeners,Ip=Symbol("kIdleSocketValidation"),rA=Symbol("kIdleSocketValidationTimeout"),YF=Symbol("kSocketUsed"),GF;async function bVe(){let t=process.env.JEST_WORKER_ID?xF():void 0,e;try{e=await WebAssembly.compile(jX())}catch{e=await WebAssembly.compile(t||xF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{Ae(nr.ptr===r);let o=n-Na+Ra.byteOffset;return nr.onStatus(new yb(Ra.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(Ae(nr.ptr===r),nr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{Ae(nr.ptr===r);let o=n-Na+Ra.byteOffset;return nr.onHeaderField(new yb(Ra.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{Ae(nr.ptr===r);let o=n-Na+Ra.byteOffset;return nr.onHeaderValue(new yb(Ra.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(Ae(nr.ptr===r),nr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{Ae(nr.ptr===r);let o=n-Na+Ra.byteOffset;retu Line truncated
`;if(typeof s=="string"?h+=`host: ${s}\r
`:h+=t[hVe],o?h+=`connection: upgrade\r
`);f.push(I,E,m),typeof E.size=="number"?o+=I.byteLength+E.size+m.byteLength:h=!0}let A=kB.encode(`--${l}--\r
`);f.push(A),o+=A.byteLength,h&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(fse(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yKe(t)}if((typeof s=="string"||XC.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!gse(r)){let f=new Uint8Array(d);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(Cse,"extractBody");function _Ke(t,e=!1){return t instanceof ReadableStream&&(Eq(!XC.isDisturbed(t),"The body has already been consumed."),Eq(!t.locked,"The stream is locked.")),Cse(t,e)}i(_Ke,"safelyExtractBody");function vKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(vKe,"cloneBody");function QKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(QKe,"throwIfAborted");function DKe(t){return{blob(){return pA(this,r=>{let n=hse(this);return n===null?n="":n&&(n=NKe(n)),new bKe([r],{type:n})},t)},arrayBuffer(){return pA(this,r=>new Uint8Array(r).buffer,t)},text(){return pA(this,Ase,t)},json(){return pA(this,OKe,t)},formData(){return pA(this,r=>{let n=hse(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=TKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new mse;return o[fA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new mse;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return pA(this,r=>new Uint8Array(r),t)}}}i(DKe,"bodyMixinMethods");function kKe(t){Object.assign(t.prototype,DKe(t))}i(kKe,"mixinBody");async function pA(t,e,r){if(xKe.brandCheck(t,r),Ise(t))throw new TypeError("Body is unusable: Body has already been read");QKe(t[fA]);let n=IKe(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[fA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await SKe(t[fA].body,o,s),n.promise)}i(pA,"consumeBody");function Ise(t){let e=t[fA].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}i(Ise,"bodyUnusable");function OKe(t){return JSON.parse(Ase(t))}i(OKe,"parseJSONFromBytes");function hse(t){let e=t[fA].headersList,r=wKe(e);return r==="failure"?null:r}i(hse,"bodyMimeType");Sse.exports={extractBody:Cse,safelyExtractBody:_Ke,cloneBody:vKe,mixinBody:kKe,streamRegistry:Ese,hasFinalizationRegistry:yse,bodyUnusable:Ise}});var Mse=S((g7t,Lse)=>{"use strict";var ge=require("node:assert"),le=Je(),{channels:wse}=tA(),Iq=rq(),{RequestContentLengthMismatchError:yf,ResponseContentLengthMismatchError:xse,RequestAbortedError:vse,InvalidArgumentError:LKe,HeadersTimeoutError:MKe,HeadersOverflowError:FKe,SocketError:hA,InformationalError:Ef,BodyTimeoutError:UKe,HTTPParserError:qKe,ResponseExceededMaxSizeError:$Ke}=at(),{kUrl:Qse,kReset:vs,kClient:FB,kParser:kt,kBlocking:tI,kRunning:kr,kPending:Dse,kSize:bse,kWriting:td,kQueue:Xi,kNoRef:ZC,kKeepAliveDefaultTimeout:GKe,kHostHeader:HKe,kPendingIdx:zKe,kRunningIdx:ri,kError:is,kPipelining:UB,kSocket:Cf,kKeepAliveTimeoutValue:$B,kMaxHeadersSize:Sq,kKeepAliveMaxTimeout:VKe,kKeepAliveTimeoutThreshold:WKe,kHeadersTimeout:JKe,kBodyTimeout:YKe,kStrictContentLength:bq,kMaxRequests:Bse,kCounter:jKe,kMaxResponseSize:KKe,kOnError:Rse,kResume:eu,kHTTPContext:kse}=Ht(),Ao=Ene(),Nse=Buffer.alloc(0),OB=Buffer[Symbol.species],LB=le.addListener,XKe=le.removeAllListeners,If=Symbol("kIdleSocketValidation"),AA=Symbol("kIdleSocketValidationTimeout"),Tq=Symbol("kSocketUsed"),wq;async function ZKe(){let t=process.env.JEST_WORKER_ID?oq():void 0,e;try{e=await WebAssembly.compile(Sne())}catch{e=await WebAssembly.compile(t||oq())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onStatus(new OB(Za.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(ge(lr.ptr===r),lr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderField(new OB(Za.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderValue(new OB(Za.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(ge(lr.ptr===r),lr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{ge(lr.ptr= Line truncated
`;if(typeof s=="string"?A+=`host: ${s}\r
`:A+=t[HKe],o?A+=`connection: upgrade\r
upgrade: ${o}\r
`:t[wb]&&!f[ys]?h+=`connection: keep-alive\r
`:h+=`connection: close\r
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let C=u[E+0],w=u[E+1];if(Array.isArray(w))for(let x=0;x<w.length;x++)h+=`${C}: ${w[x]}\r
`;else h+=`${C}: ${w}\r
`}return K7.sendHeaders.hasSubscribers&&K7.sendHeaders.publish({request:e,headers:h,socket:f}),!l||m===0?sZ(A,null,t,e,f,d,h,p):le.isBuffer(l)?sZ(A,l,t,e,f,d,h,p):le.isBlobLike(l)?typeof l.stream=="function"?oZ(A,l.stream(),t,e,f,d,h,p):QVe(A,l,t,e,f,d,h,p):le.isStream(l)?_Ve(A,l,t,e,f,d,h,p):le.isIterable(l)?oZ(A,l,t,e,f,d,h,p):Ae(!1),!0}i(PVe,"writeH1");function _Ve(t,e,r,n,s,o,a,c){Ae(o!==0||r[Nr]===0,"stream body cannot be pipelined");let l=!1,u=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(h){le.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),m=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let A=new iZ;queueMicrotask(()=>f(A))}},"onClose"),f=i(function(A){if(!l){if(l=!0,Ae(s.destroyed||s[Iu]&&r[Nr]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?le.destroy(e,A):le.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(_Ve,"writeStream");function sZ(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(Ae(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r
`:t[UB]&&!m[vs]?A+=`connection: keep-alive\r
`:A+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],I=u[y+1];if(Array.isArray(I))for(let x=0;x<I.length;x++)A+=`${E}: ${I[x]}\r
`;else A+=`${E}: ${I}\r
`}return wse.sendHeaders.hasSubscribers&&wse.sendHeaders.publish({request:e,headers:A,socket:m}),!l||f===0?Pse(h,null,t,e,m,d,A,p):le.isBuffer(l)?Pse(h,l,t,e,m,d,A,p):le.isBlobLike(l)?typeof l.stream=="function"?_se(h,l.stream(),t,e,m,d,A,p):aXe(h,l,t,e,m,d,A,p):le.isStream(l)?iXe(h,l,t,e,m,d,A,p):le.isIterable(l)?_se(h,l,t,e,m,d,A,p):ge(!1),!0}i(oXe,"writeH1");function iXe(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===0,"stream body cannot be pipelined");let l=!1,u=new GB({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(A){le.destroy(this,A)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new vse;queueMicrotask(()=>m(h))}},"onClose"),m=i(function(h){if(!l){if(l=!0,ge(s.destroyed||s[td]&&r[kr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!h)try{u.end()}catch(A){h=A}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?le.destroy(e,h):le.destroy(e)}},"onFinished");e.on("data",d).on("end",m).on("error",m).on("close",f),e.resume&&e.resume(),s.on("drain",p).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}i(iXe,"writeStream");function Pse(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(ge(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[ys]=!0)):o===0?s.write(`${a}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[vs]=!0)):o===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(Ae(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[El]()}catch(l){t(l)}}i(sZ,"writeBuffer");async function QVe(t,e,r,n,s,o,a,c){Ae(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new yp;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r
`,"latin1"):(ge(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[eu]()}catch(l){t(l)}}i(Pse,"writeBuffer");async function aXe(t,e,r,n,s,o,a,c){ge(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new yf;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r
\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[ys]=!0),r[El]()}catch(l){t(l)}}i(QVe,"writeBlob");async function oZ(t,e,r,n,s,o,a,c){Ae(o!==0||r[Nr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Ae(l===null),s[Yn]?f(s[Yn]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Yn])throw s[Yn];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(oZ,"writeIterable");var bb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Iu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Yn])throw r[Yn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[$F])throw new yp;process.emitWarning(new yp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[ys]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[vs]=!0),r[eu]()}catch(l){t(l)}}i(aXe,"writeBlob");async function _se(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}i(u,"onDrain");let d=i(()=>new Promise((f,m)=>{ge(l===null),s[is]?m(s[is]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new GB({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[is])throw s[is];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(_se,"writeIterable");var GB=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[td]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[is])throw r[is];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[bq])throw new yf;process.emitWarning(new yf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[vs]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[vt].timeout&&r[vt].timeoutType===nA&&r[vt].timeout.refresh&&r[vt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[Iu]=!1,e[Yn])throw e[Yn];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[kt].timeout&&r[kt].timeoutType===gA&&r[kt].timeout.refresh&&r[kt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[td]=!1,e[is])throw e[is];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[$F])throw new yp;process.emitWarning(new yp)}e[vt].timeout&&e[vt].timeoutType===nA&&e[vt].timeout.refresh&&e[vt].timeout.refresh(),n[El]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Iu]=!1,e&&(Ae(n[Nr]<=1,"pipeline should only contain this request"),s(e))}};dZ.exports=RVe});var CZ=I((Xzt,EZ)=>{"use strict";var va=require("node:assert"),{errorMonitor:JF}=require("node:events"),{pipeline:DVe}=require("node:stream"),ze=He(),{RequestContentLengthMismatchError:KF,RequestAbortedError:jF,SocketError:cE,InformationalError:Bb}=nt(),{kUrl:Rb,kReset:Tb,kClient:sA,kRunning:vb,kPending:kVe,kQueue:wp,kPendingIdx:ZF,kRunningIdx:Ta,kError:Ni,kSocket:Jr,kStrictContentLength:LVe,kOnError:eU,kMaxConcurrentStreams:gZ,kHTTP2Session:Ri,kResume:Su,kSize:OVe,kHTTPContext:MVe}=Mt(),wu=Symbol("open streams"),mZ,fZ=!1,Nb;try{Nb=require("node:http2")}catch{Nb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:FVe,HTTP2_HEADER_METHOD:UVe,HTTP2_HEADER_PATH:qVe,HTTP2_HEADER_SCHEME:GVe,HTTP2_HEADER_CONTENT_LENGTH:HVe,HTTP2_HEADER_EXPECT:$Ve,HTTP2_HEADER_STATUS:XF}}=Nb;function yZ(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(yZ,"parseH2Headers");function zVe(t){let{[XF]:e,...r}=t;return yZ(r)}i(zVe,"parseH2ResponseHeaders");async function VVe(t,e){t[Jr]=e,fZ||(fZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Nb.connect(t[Rb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[gZ]});r[wu]=0,r[sA]=t,r[Jr]=e,ze.addListener(r,"error",YVe),ze.addListener(r,"frameError",JVe),ze.addListener(r,"end",jVe),ze.addListener(r,"goaway",KVe),ze.addListener(r,"close",function(){let{[sA]:s}=this,{[Jr]:o}=s,a=this[Jr][Ni]||this[Ni]||new cE("closed",ze.getSocketInfo(o));if(s[Ri]=null,s.destroyed){va(s[kVe]===0);let c=s[wp].splice(s[Ta]);for(let l=0;l<c.length;l++){let u=c[l];ze.errorRequest(s,u,a)}}}),r.unref(),t[Ri]=r,e[Ri]=r,ze.addListener(e,"error",function(s){this[Ni]=s,this[sA][eU](s)}),ze.addListener(e,"end",function(){ze.destroy(this,new cE("other side closed",ze.getSocketInfo(this)))}),ze.addListener(e,"close",function(){let s=this[Ni]||new cE("closed",ze.getSocketInfo(this));t[Jr]=null,this[Ri]!=null&&this[Ri].destroy(s),t[ZF]=t[Ta],va(t[vb]===0),t.emit("disconnect",t[Rb],[t],s),t[Su]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ZVe(t,...s)},resume(){WVe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(VVe,"connectH2");function WVe(t){let e=t[Jr];e?.destroyed===!1&&(t[OVe]===0&&t[gZ]===0?(e.unref(),t[Ri].unref()):(e.ref(),t[Ri].ref()))}i(WVe,"resumeH2");function YVe(t){this[Jr][Ni]=t,this[sA][eU](t)}i(YVe,"onHttp2SessionError");function JVe(t,e,r){if(r===0){let n=new Bb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Jr][Ni]=n,this[sA][eU](n)}}i(JVe,"onHttp2FrameError");function jVe(){let t=new cE("other side closed",ze.getSocketInfo(this[Jr]));this.destroy(t),ze.destroy(this[Jr],t)}i(jVe,"onHttp2SessionEnd");function KVe(t){let e=this[Ni]||new cE(`HTTP/2: "GOAWAY" frame received with code ${t}`,ze.getSocketInfo(this)),r=this[sA];if(r[Jr]=null,r[MVe]=null,this[Ri]!=null&&(this[Ri].destroy(e),this[Ri]=null),ze.destroy(this[Jr],e),r[Ta]<r[wp].length){let n=r[wp][r[Ta]];r[wp][r[Ta]++]=null,ze.errorRequest(r,n,e),r[ZF]=r[Ta]}va(r[vb]===0),r.emit("disconnect",r[Rb],[r],e),r[Su]()}i(KVe,"onHTTP2GoAway");function XVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(XVe,"shouldSendContentLength");function ZVe(t,e){let r=t[Ri],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return ze.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let b=0;b<u.length;b+=2){let N=u[b+0],P=u[b+1];if(Array.isArray(P))for(let _=0;_<P.length;_++)p[N]?p[N]+=`,${P[_]}`:p[N]=P[_];else p[N]=P}let m,{hostname:f,port:A}=t[Rb];p[FVe]=o||`${f}${A?`:${A}`:""}`,p[UVe]=n;let h=i(b=>{if(!e.aborted){if(e.completed){n==="CONNECT"&&m!=null&&ze.destroy(m,b||new jF);return}b=b||new jF,ze.errorRequest(t,e,b),m!=null&&ze.destroy(m,b),ze.destroy(d,b),t[wp][t[Ta]++]=null,t[Su]()}},"abort");try{e.onConnect(h)}catch(b){ze.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),m=r.request(p,{endStream:!1,signal:l});let b=!1,N=i(J=>{b=!0,m.off(JF,P),e.onUpgradeResponse(Number(J[XF]),J,zVe)},"onResponse"),P=i(J=>{b=!0,m.off("response",N),e.onUpgradeError(J)},"onUpgradeError"),_=i(()=>{try{e.onUpgrade(null,null,m)}catch(J){m.off("response",N),h(J);return}e.aborted||(m.off("error",h),m.once(JF,P),t[wp][t[Ta]++]=null)},"onReady");return m.once("response",N),m.once("error",h),++r[wu],_(),m.once("close",()=>{!b&&e.completed&&(m.off("response",N),m.off(JF,P),e.onUpgradeError(new Bb(`HTTP/2: "stream error" receiLine truncated
`,this[b4e]=l??3e5,this[x4e]=s??3e5,this[B4e]=w??!0,this[R4e]=b,this[sU]=P,this[bu]=null,this[_4e]=J>-1?J:-1,this[D4e]=qe??100,this[Ar]=null,this[Ti]=[],this[Il]=0,this[vi]=0,this[pE]=ut=>iU(this,ut),this[Q4e]=ut=>_Z(this,ut)}get pipelining(){return this[Db]}set pipelining(e){this[Db]=e,this[pE](!0)}get[AE](){return this[Ti].length-this[vi]}get[fE](){return this[vi]-this[Il]}get[mE](){return this[Ti].length-this[Il]}get[g4e](){return!!this[Ar]&&!this[iA]&&!this[Ar].destroyed}get[nU](){return!!(this[Ar]?.busy(null)||this[mE]>=(PZ(this)||1)||this[AE]>0)}[h4e](e){QZ(this),this.once("connect",e)}[P4e](e,r){let n=e.origin||this[_a].origin,s=new u4e(n,e,r);return this[Ti].push(s),this[xp]||(Sp.bodyLength(s.body)==null&&Sp.isIterable(s.body)?(this[xp]=1,queueMicrotask(()=>iU(this))):this[pE](!0)),this[xp]&&this[Bu]!==2&&this[nU]&&(this[Bu]=2),this[Bu]<2}async[T4e](){return new Promise(e=>{this[mE]?this[bu]=e:e(null)})}async[v4e](e){return new Promise(r=>{let n=this[Ti].splice(this[vi]);for(let o=0;o<n.length;o++){let a=n[o];Sp.errorRequest(this,a,e)}let s=i(()=>{this[bu]&&(this[bu](),this[bu]=null),r(null)},"callback");this[Ar]?(this[Ar].destroy(e,s),this[Ar]=null):queueMicrotask(s),this[pE]()})}},O4e=Qb();function _Z(t,e){if(t[fE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Cl(t[vi]===t[Il]);let r=t[Ti].splice(t[Il]);for(let n=0;n<r.length;n++){let s=r[n];Sp.errorRequest(t,s,e)}Cl(t[mE]===0)}}i(_Z,"onError");async function QZ(t){Cl(!t[iA]),Cl(!t[Ar]);let{host:e,hostname:r,protocol:n,port:s}=t[_a];if(r[0]==="["){let o=r.indexOf("]");Cl(o!==-1);let a=r.substring(1,o);Cl(vZ.isIP(a)),r=a}t[iA]=!0,oA.beforeConnect.hasSubscribers&&oA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ar]?.version,servername:t[xu],localAddress:t[dE]},connector:t[uE]});try{let o=await new Promise((a,c)=>{t[uE]({host:e,hostname:r,protocol:n,port:s,servername:t[xu],localAddress:t[dE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Sp.destroy(o.on("error",NZ),new m4e);return}Cl(o);try{t[Ar]=o.alpnProtocol==="h2"?await L4e(t,o):await k4e(t,o)}catch(a){throw o.destroy().on("error",NZ),a}t[iA]=!1,o[N4e]=0,o[sU]=t[sU],o[A4e]=t,o[E4e]=null,oA.connected.hasSubscribers&&oA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ar]?.version,servername:t[xu],localAddress:t[dE]},connector:t[uE],socket:o}),t.emit("connect",t[_a],[t])}catch(o){if(t.destroyed)return;if(t[iA]=!1,oA.connectError.hasSubscribers&&oA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ar]?.version,servername:t[xu],localAddress:t[dE]},connector:t[uE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Cl(t[fE]===0);t[AE]>0&&t[Ti][t[vi]].servername===t[xu];){let a=t[Ti][t[vi]++];Sp.errorRequest(t,a,o)}else _Z(t,o);t.emit("connectionError",t[_a],[t],o)}t[pE]()}i(QZ,"connect");function TZ(t){t[Bu]=0,t.emit("drain",t[_a],[t])}i(TZ,"emitDrain");function iU(t,e){t[xp]!==2&&(t[xp]=2,M4e(t,e),t[xp]=0,t[Il]>256&&(t[Ti].splice(0,t[Il]),t[vi]-=t[Il],t[Il]=0))}i(iU,"resume");function M4e(t,e){for(;;){if(t.destroyed){Cl(t[AE]===0);return}if(t[bu]&&!t[mE]){t[bu](),t[bu]=null;return}if(t[Ar]&&t[Ar].resume(),t[nU])t[Bu]=2;else if(t[Bu]===2){e?(t[Bu]=1,queueMicrotask(()=>TZ(t))):TZ(t);continue}if(t[AE]===0||t[fE]>=(PZ(t)||1))return;let r=t[Ti][t[vi]];if(t[_a].protocol==="https:"&&t[xu]!==r.servername){if(t[fE]>0)return;t[xu]=r.servername,t[Ar]?.destroy(new p4e("servername changed"),()=>{t[Ar]=null,iU(t)})}if(t[iA])return;if(!t[Ar]){QZ(t);return}if(t[Ar].destroyed||t[Ar].busy(r))return;!r.aborted&&t[Ar].write(r)?t[vi]++:t[Ti].splice(t[vi],1)}}i(M4e,"_resume");DZ.exports=oU});var aU=I((a3t,kZ)=>{"use strict";var kb=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};kZ.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new kb}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new kb),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var OZ=I((l3t,LZ)=>{var{kFree:F4e,kConnected:U4e,kPending:q4e,kQueued:G4e,kRunning:H4e,kSize:$4e}=Mt(),bp=Symbol("pool"),cU=class{static{i(this,"PoolStats")}constructor(e){this[bp]=e}get connected(){return this[bp][U4e]}get free(){return this[bp][F4e]}get pending(){return this[bp][q4e]}get queued(){return this[bp][G4e]}get running(){return this[bp][H4e]}get size(){return this[bp][$4e]}};LZ.exports=cU});var fU=I((d3t,WZ)=>{"use strict";var z4e=zf(),V4e=aU(),{kConnected:lU,kSize:MZ,kRunning:FZ,kPending:UZ,kQueued:hE,kBusy:W4e,kFree:Y4e,kUrl:J4e,kClose:j4e,kDestroy:K4e,kDispatch:X4e}=Mt(),Z4e=OZ(),Es=Symbol("clie Line truncated
`,"latin1"),r!==null&&s!==r){if(n[bq])throw new yf;process.emitWarning(new yf)}e[kt].timeout&&e[kt].timeoutType===gA&&e[kt].timeout.refresh&&e[kt].timeout.refresh(),n[eu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[td]=!1,e&&(ge(n[kr]<=1,"pipeline should only contain this request"),s(e))}};Lse.exports=tXe});var Vse=S((E7t,zse)=>{"use strict";var rc=require("node:assert"),{errorMonitor:Pq}=require("node:events"),{pipeline:cXe}=require("node:stream"),Ke=Je(),{RequestContentLengthMismatchError:vq,RequestAbortedError:_q,SocketError:rI,InformationalError:HB}=at(),{kUrl:zB,kReset:WB,kClient:yA,kRunning:JB,kPending:lXe,kQueue:Sf,kPendingIdx:Dq,kRunningIdx:tc,kError:ea,kSocket:sn,kStrictContentLength:uXe,kOnError:kq,kMaxConcurrentStreams:Gse,kHTTP2Session:Zi,kResume:nd,kSize:dXe,kHTTPContext:pXe}=Ht(),rd=Symbol("open streams"),Fse,Use=!1,VB;try{VB=require("node:http2")}catch{VB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fXe,HTTP2_HEADER_METHOD:mXe,HTTP2_HEADER_PATH:hXe,HTTP2_HEADER_SCHEME:AXe,HTTP2_HEADER_CONTENT_LENGTH:gXe,HTTP2_HEADER_EXPECT:yXe,HTTP2_HEADER_STATUS:Qq}}=VB;function Hse(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(Hse,"parseH2Headers");function EXe(t){let{[Qq]:e,...r}=t;return Hse(r)}i(EXe,"parseH2ResponseHeaders");async function CXe(t,e){t[sn]=e,Use||(Use=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=VB.connect(t[zB],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Gse]});r[rd]=0,r[yA]=t,r[sn]=e,Ke.addListener(r,"error",SXe),Ke.addListener(r,"frameError",wXe),Ke.addListener(r,"end",xXe),Ke.addListener(r,"goaway",bXe),Ke.addListener(r,"close",function(){let{[yA]:s}=this,{[sn]:o}=s,a=this[sn][ea]||this[ea]||new rI("closed",Ke.getSocketInfo(o));if(s[Zi]=null,s.destroyed){rc(s[lXe]===0);let c=s[Sf].splice(s[tc]);for(let l=0;l<c.length;l++){let u=c[l];Ke.errorRequest(s,u,a)}}}),r.unref(),t[Zi]=r,e[Zi]=r,Ke.addListener(e,"error",function(s){this[ea]=s,this[yA][kq](s)}),Ke.addListener(e,"end",function(){Ke.destroy(this,new rI("other side closed",Ke.getSocketInfo(this)))}),Ke.addListener(e,"close",function(){let s=this[ea]||new rI("closed",Ke.getSocketInfo(this));t[sn]=null,this[Zi]!=null&&this[Zi].destroy(s),t[Dq]=t[tc],rc(t[JB]===0),t.emit("disconnect",t[zB],[t],s),t[nd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return RXe(t,...s)},resume(){IXe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(CXe,"connectH2");function IXe(t){let e=t[sn];e?.destroyed===!1&&(t[dXe]===0&&t[Gse]===0?(e.unref(),t[Zi].unref()):(e.ref(),t[Zi].ref()))}i(IXe,"resumeH2");function SXe(t){this[sn][ea]=t,this[yA][kq](t)}i(SXe,"onHttp2SessionError");function wXe(t,e,r){if(r===0){let n=new HB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[sn][ea]=n,this[yA][kq](n)}}i(wXe,"onHttp2FrameError");function xXe(){let t=new rI("other side closed",Ke.getSocketInfo(this[sn]));this.destroy(t),Ke.destroy(this[sn],t)}i(xXe,"onHttp2SessionEnd");function bXe(t){let e=this[ea]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ke.getSocketInfo(this)),r=this[yA];if(r[sn]=null,r[pXe]=null,this[Zi]!=null&&(this[Zi].destroy(e),this[Zi]=null),Ke.destroy(this[sn],e),r[tc]<r[Sf].length){let n=r[Sf][r[tc]];r[Sf][r[tc]++]=null,Ke.errorRequest(r,n,e),r[Dq]=r[tc]}rc(r[JB]===0),r.emit("disconnect",r[zB],[r],e),r[nd]()}i(bXe,"onHTTP2GoAway");function BXe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(BXe,"shouldSendContentLength");function RXe(t,e){let r=t[Zi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Ke.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let b=0;b<u.length;b+=2){let N=u[b+0],_=u[b+1];if(Array.isArray(_))for(let v=0;v<_.length;v++)p[N]?p[N]+=`,${_[v]}`:p[N]=_[v];else p[N]=_}let f,{hostname:m,port:h}=t[zB];p[fXe]=o||`${m}${h?`:${h}`:""}`,p[mXe]=n;let A=i(b=>{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&Ke.destroy(f,b||new _q);return}b=b||new _q,Ke.errorRequest(t,e,b),f!=null&&Ke.destroy(f,b),Ke.destroy(d,b),t[Sf][t[tc]++]=null,t[nd]()}},"abort");try{e.onConnect(A)}catch(b){Ke.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),f=r.request(p,{endStream:!1,signal:l});let b=!1,N=i(Y=>{b=!0,f.off(Pq,_),e.onUpgradeResponse(Number(Y[Qq]),Y,EXe)},"onResponse"),_=i(Y=>{b=!0,f.off("response",N),e.onUpgradeError(Y)},"onUpgradeError"),v=i(()=>{try{e.onUpgrade(null,null,f)}catch(Y){f.off("response",N),A(Y);return}e.aborted||(f.off("error",A),f.once(Pq,_),t[Sf][t[tc]++]=null)},"onReady");return f.once("response",N),f.once("error",A),++r[rd],v(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(Pq,_),e.onUpgradeError(new HB(`HTTP/2: "streamLine truncated
`,this[ZXe]=l??3e5,this[XXe]=s??3e5,this[e7e]=I??!0,this[t7e]=b,this[Fq]=_,this[od]=null,this[i7e]=Y>-1?Y:-1,this[c7e]=De??100,this[xr]=null,this[ta]=[],this[ru]=0,this[ra]=0,this[iI]=oe=>qq(this,oe),this[a7e]=oe=>soe(this,oe)}get pipelining(){return this[XB]}set pipelining(e){this[XB]=e,this[iI](!0)}get[lI](){return this[ta].length-this[ra]}get[cI](){return this[ra]-this[ru]}get[aI](){return this[ta].length-this[ru]}get[zXe](){return!!this[xr]&&!this[CA]&&!this[xr].destroyed}get[Mq](){return!!(this[xr]?.busy(null)||this[aI]>=(noe(this)||1)||this[lI]>0)}[HXe](e){ooe(this),this.once("connect",e)}[o7e](e,r){let n=e.origin||this[sc].origin,s=new MXe(n,e,r);return this[ta].push(s),this[xf]||(wf.bodyLength(s.body)==null&&wf.isIterable(s.body)?(this[xf]=1,queueMicrotask(()=>qq(this))):this[iI](!0)),this[xf]&&this[id]!==2&&this[Mq]&&(this[id]=2),this[id]<2}async[n7e](){return new Promise(e=>{this[aI]?this[od]=e:e(null)})}async[s7e](e){return new Promise(r=>{let n=this[ta].splice(this[ra]);for(let o=0;o<n.length;o++){let a=n[o];wf.errorRequest(this,a,e)}let s=i(()=>{this[od]&&(this[od](),this[od]=null),r(null)},"callback");this[xr]?(this[xr].destroy(e,s),this[xr]=null):queueMicrotask(s),this[iI]()})}},d7e=KB();function soe(t,e){if(t[cI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){tu(t[ra]===t[ru]);let r=t[ta].splice(t[ru]);for(let n=0;n<r.length;n++){let s=r[n];wf.errorRequest(t,s,e)}tu(t[aI]===0)}}i(soe,"onError");async function ooe(t){tu(!t[CA]),tu(!t[xr]);let{host:e,hostname:r,protocol:n,port:s}=t[sc];if(r[0]==="["){let o=r.indexOf("]");tu(o!==-1);let a=r.substring(1,o);tu(roe.isIP(a)),r=a}t[CA]=!0,EA.beforeConnect.hasSubscribers&&EA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[sd],localAddress:t[oI]},connector:t[sI]});try{let o=await new Promise((a,c)=>{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[sd],localAddress:t[oI]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){wf.destroy(o.on("error",eoe),new qXe);return}tu(o);try{t[xr]=o.alpnProtocol==="h2"?await u7e(t,o):await l7e(t,o)}catch(a){throw o.destroy().on("error",eoe),a}t[CA]=!1,o[r7e]=0,o[Fq]=t[Fq],o[GXe]=t,o[WXe]=null,EA.connected.hasSubscribers&&EA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[sd],localAddress:t[oI]},connector:t[sI],socket:o}),t.emit("connect",t[sc],[t])}catch(o){if(t.destroyed)return;if(t[CA]=!1,EA.connectError.hasSubscribers&&EA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[sd],localAddress:t[oI]},connector:t[sI],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(tu(t[cI]===0);t[lI]>0&&t[ta][t[ra]].servername===t[sd];){let a=t[ta][t[ra]++];wf.errorRequest(t,a,o)}else soe(t,o);t.emit("connectionError",t[sc],[t],o)}t[iI]()}i(ooe,"connect");function toe(t){t[id]=0,t.emit("drain",t[sc],[t])}i(toe,"emitDrain");function qq(t,e){t[xf]!==2&&(t[xf]=2,p7e(t,e),t[xf]=0,t[ru]>256&&(t[ta].splice(0,t[ru]),t[ra]-=t[ru],t[ru]=0))}i(qq,"resume");function p7e(t,e){for(;;){if(t.destroyed){tu(t[lI]===0);return}if(t[od]&&!t[aI]){t[od](),t[od]=null;return}if(t[xr]&&t[xr].resume(),t[Mq])t[id]=2;else if(t[id]===2){e?(t[id]=1,queueMicrotask(()=>toe(t))):toe(t);continue}if(t[lI]===0||t[cI]>=(noe(t)||1))return;let r=t[ta][t[ra]];if(t[sc].protocol==="https:"&&t[sd]!==r.servername){if(t[cI]>0)return;t[sd]=r.servername,t[xr]?.destroy(new UXe("servername changed"),()=>{t[xr]=null,qq(t)})}if(t[CA])return;if(!t[xr]){ooe(t);return}if(t[xr].destroyed||t[xr].busy(r))return;!r.aborted&&t[xr].write(r)?t[ra]++:t[ta].splice(t[ra],1)}}i(p7e,"_resume");ioe.exports=Uq});var $q=S((N7t,aoe)=>{"use strict";var ZB=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aoe.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new ZB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var loe=S((P7t,coe)=>{var{kFree:f7e,kConnected:m7e,kPending:h7e,kQueued:A7e,kRunning:g7e,kSize:y7e}=Ht(),bf=Symbol("pool"),Gq=class{static{i(this,"PoolStats")}constructor(e){this[bf]=e}get connected(){return this[bf][m7e]}get free(){return this[bf][f7e]}get pending(){return this[bf][h7e]}get queued(){return this[bf][A7e]}get running(){return this[bf][g7e]}get size(){return this[bf][y7e]}};coe.exports=Gq});var Yq=S((v7t,Eoe)=>{"use strict";var E7e=oA(),C7e=$q(),{kConnected:Hq,kSize:uoe,kRunning:doe,kPending:poe,kQueued:uI,kBusy:I7e,kFree:S7e,kUrl:w7e,kClose:x7e,kDestroy:b7e,kDispatch:B7e}=Ht Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};ere.exports=f1});var BE=I((lVt,ore)=>{"use strict";var rre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:b8e}=nt(),B8e=lA();sre()===void 0&&nre(new B8e);function nre(t){if(!t||typeof t.dispatch!="function")throw new b8e("Argument agent must implement Agent");Object.defineProperty(globalThis,rre,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(nre,"setGlobalDispatcher");function sre(){return globalThis[rre]}i(sre,"getGlobalDispatcher");ore.exports={setGlobalDispatcher:nre,getGlobalDispatcher:sre}});var Zb=I((pVt,ire)=>{"use strict";ire.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var cre=I((fVt,are)=>{"use strict";var R8e=_b();are.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new R8e(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var ure=I((hVt,lre)=>{"use strict";var N8e=Hb();lre.exports=t=>e=>i(function(n,s){return e(n,new N8e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var pre=I((yVt,dre)=>{"use strict";var T8e=He(),{InvalidArgumentError:v8e,RequestAbortedError:P8e}=nt(),_8e=Zb(),A1=class extends _8e{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#s=!1;#o=0;#n=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new v8e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#s=!0,this.#n=e}onHeaders(e,r,n,s){let a=T8e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new P8e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#i.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#r=!0,this.#s?this.#i.onError(this.#n):this.#i.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function Q8e({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new A1({maxSize:o},s);return e(n,a)},"Intercept")}i(Q8e,"createDumpInterceptor");dre.exports=Q8e});var Are=I((CVt,fre)=>{"use strict";var{isIP:D8e}=require("node:net"),{lookup:k8e}=require("node:dns"),L8e=Zb(),{InvalidArgumentError:yA,InformationalError:O8e}=nt(),mre=Math.pow(2,31)-1,h1=class{static{i(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#o}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new O8e("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,o.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,o.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#s(e,r,n){k8e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===mre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===mre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new g1(this,e,r)}},g1=class extends L8e{static{i(this,"DNSDispatchHan Line truncated
${l}`,this.dataLineCount++;return}if(F0(e,s,X6e)){r9e(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(F0(e,s,K6e)){n9e(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}F0(e,s,j6e)&&o<e.length&&(this.setEventFieldSize("event",e.length-o),r.event=e.toString("utf8",o))}setEventFieldSize(e,r){let n=this.eventSize-this.eventFieldSizes[e]+r;if(this.maxEventSize>0&&n>this.maxEventSize)throw U0();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&$6e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&z6e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],o=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:s.length,c=s.subarray(o,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],o=s.length-n;if(e<o)return s[n+e];e-=o,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===_A[0]||(this.checkBOM=!1),!0):n===void 0?e===_A[0]&&r===_A[1]?!0:(this.checkBOM=!1,!1):(e===_A[0]&&r===_A[1]&&n===_A[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Vse.exports={EventSourceStream:i2}});var toe=I((S4t,eoe)=>{"use strict";var{pipeline:s9e}=require("node:stream"),{fetching:o9e}=PE(),{makeRequest:i9e}=IA(),{webidl:bl}=dn(),{EventSourceStream:a9e}=Wse(),{parseMIMEType:c9e}=gs(),{createFastMessageEvent:l9e}=RA(),{isNetworkError:Yse}=TE(),{delay:u9e}=o2(),{kEnumerableProperty:qp}=He(),{environmentSettingsObject:Jse}=Ys(),{getGlobalDispatcher:d9e}=BE(),jse=!1,Kse=3e3,VE=0,Xse=1,WE=2,p9e="anonymous",m9e="use-credentials",QA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#s=VE;#o=null;#n=null;#i;#a;constructor(e,r={}){super(),bl.util.markAsUncloneable(this);let n="EventSource constructor";bl.argumentLengthCheck(arguments,1,n),jse||(jse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bl.converters.USVString(e,n,"url"),r=bl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Kse};let s=Jse,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=p9e;r.withCredentials&&(a=m9e,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Jse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=i9e(c),this.#l()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#s===WE)return;this.#s=VE;let e={request:this.#o,dispatcher:this.#i},r=i(n=>{Yse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Yse(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));retu Line truncated
%s`,N,N,w,n);var P=w.type==="*"?oq:w.type==="?"?sq:"\\"+w.type;s=!0,n=n.slice(0,w.reStart)+P+"\\("+N}A(),o&&(n+="\\\\");var _=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(var J=c.length-1;J>-1;J--){var Ce=c[J],ae=n.slice(0,Ce.reStart),qe=n.slice(Ce.reStart,Ce.reEnd-8),ne=n.slice(Ce.reEnd-8,Ce.reEnd),Z=n.slice(Ce.reEnd);ne+=Z;var U=ae.split("(").length-1,ut=Z;for(h=0;h<U;h++)ut=ut.replace(/\)[+*?]?/,"");Z=ut;var ee="";Z===""&&e!==mB&&(ee="$");var dt=ae+qe+Z+ee+ne;n=dt}if(n!==""&&s&&(n="(?=.)"+n),_&&(n=m+n),e===mB)return[n,s];if(!s)return jZe(t);var Sa=r.nocase?"i":"";try{var gu=new RegExp("^"+n+"$",Sa)}catch{return new RegExp("$.")}return gu._glob=t,gu._src=n,gu}i(YZe,"parse");oo.makeRe=function(t,e){return new _r(t,e||{}).makeRe()};_r.prototype.makeRe=JZe;function JZe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?oq:e.dot?qZe:GZe,n=e.nocase?"i":"",s=t.map(function(o){return o.map(function(a){return a===Jp?r:typeof a=="string"?KZe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}i(JZe,"makeRe");oo.match=function(t,e,r){r=r||{};var n=new _r(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};_r.prototype.match=i(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;gC.sep!=="/"&&(e=e.split(gC.sep).join("/")),e=e.split(ace),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var o,a;for(a=e.length-1;a>=0&&(o=e[a],!o);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[o]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");_r.prototype.matchOne=function(t,e,r){return e.indexOf(Jp)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};_r.prototype._matchGlobstar=function(t,e,r,n,s){var o,a=-1;for(o=s;o<e.length;o++)if(e[o]===Jp){a=o;break}var c=-1;for(o=e.length-1;o>=0;o--)if(e[o]===Jp){c=o;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var p=t.slice(n,n+l.length);if(!this._matchOne(p,l,r,0,0))return!1;n+=l.length}var m=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))m=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;m=d.length+1}}if(!u.length){var A=!!m;for(o=n;o<t.length-m;o++){var h=String(t[o]);if(A=!0,h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1}return r||A}for(var E=[[[],0]],C=E[0],w=0,x=[0],b=0;b<u.length;b++){var N=u[b];N===Jp?(x.push(w),C=[[],0],E.push(C)):(C[0].push(N),w++)}for(var P=E.length-1,_=t.length-m,J=0;J<E.length;J++)E[J][1]=_-(x[P--]+E[J][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!m)};_r.prototype._matchGlobStarBodySections=function(t,e,r,n,s,o,a){var c=e[n];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],p=c[1];r<=p;){var m=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(m&&o<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,o+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return s||null};_r.prototype._matchOne=function(t,e,r,n,s){var o,a,c,l;for(o=n,a=s,c=t.length,l=e.length;o<c&&a<l;o++,a++){this.debug("matchOne loop");var u=e[a],d=t[o];if(this.debug(e,u,d),u===!1||u===Jp)return!1;var p;if(typeof u=="string"?(p=d===u,this.debug("string match",u,d,p)):(p=d.match(u),this.debug("pattern match",u,d,p)),!p)return!1}if(o===c&&a===l)return!0;if(o===c)return r;if(a===l)return o===c-1&&t[o]==="";throw new Error("wtf?")};function jZe(t){return t.replace(/\\(.)/g,"$1")}i(jZe,"globUnescape");function KZe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(KZe,"regExpEscape")});var HA=I((S5t,fce)=>{"use strict";var oet="2.0.0",iet=Number.MAX_SAFE_INTEGER||9007199254740991,aet=16,cet=250,uet=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:aet,MAX_SAFE_BUILD_LENGTH:cet,MAX_SAFE_INTEGER:iet,RELEASE_TYPES:uet,SEMVER_SPEC_VERSION:oet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var CC=I((x5t,Ace)=>{"use strict";var det=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ace.exports=det});var $A=I((Ua,hce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:aq,MAX_SAFE_BUILD_LENGTH:pet,MAX_LENGTH:met}=HA(),fet=CC();Ua=hce.exports={};var Aet=Ua.re=[],het=Ua.safeRe=[],z=Ua.src=[],get=Ua.safeSrc=[],V=Ua.t={},yet=0,cq="[a-zA-Z0-9-]",Eet=[["\\s",1],["\\d",met],[c Line truncated
`.trim())}};Bae.exports=Y$});var CI=S((PZt,_ae)=>{"use strict";var Nae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ttt}=at(),rtt=wA();Pae()===void 0&&Tae(new rtt);function Tae(t){if(!t||typeof t.dispatch!="function")throw new ttt("Argument agent must implement Agent");Object.defineProperty(globalThis,Nae,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Tae,"setGlobalDispatcher");function Pae(){return globalThis[Nae]}i(Pae,"getGlobalDispatcher");_ae.exports={setGlobalDispatcher:Tae,getGlobalDispatcher:Pae}});var gR=S((QZt,vae)=>{"use strict";vae.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Dae=S((kZt,Qae)=>{"use strict";var ntt=jB();Qae.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new ntt(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Oae=S((LZt,kae)=>{"use strict";var stt=aR();kae.exports=t=>e=>i(function(n,s){return e(n,new stt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Mae=S((FZt,Lae)=>{"use strict";var ott=Je(),{InvalidArgumentError:itt,RequestAbortedError:att}=at(),ctt=gR(),j$=class extends ctt{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#o=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new itt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#o=e}onHeaders(e,r,n,s){let a=ott.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new att(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#o??e,this.#i.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#i.onError(this.#o):this.#i.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function ltt({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new j$({maxSize:o},s);return e(n,a)},"Intercept")}i(ltt,"createDumpInterceptor");Lae.exports=ltt});var qae=S((qZt,Uae)=>{"use strict";var{isIP:utt}=require("node:net"),{lookup:dtt}=require("node:dns"),ptt=gR(),{InvalidArgumentError:vA,InformationalError:ftt}=at(),Fae=Math.pow(2,31)-1,K$=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new ftt("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,o.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,o.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){dtt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Fae?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===Fae?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new X$(this,e,r)}},X$=class extends ptt{static{i(this,"DNSDispatchHan Line truncated
${l}`,this.dataLineCount++;return}if(nN(e,s,Not)){vot(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(nN(e,s,Rot)){Qot(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}nN(e,s,Bot)&&o<e.length&&(this.setEventFieldSize("event",e.length-o),r.event=e.toString("utf8",o))}setEventFieldSize(e,r){let n=this.eventSize-this.eventFieldSizes[e]+r;if(this.maxEventSize>0&&n>this.maxEventSize)throw sN();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&Cot(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iot(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],o=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:s.length,c=s.subarray(o,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],o=s.length-n;if(e<o)return s[n+e];e-=o,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===VA[0]||(this.checkBOM=!1),!0):n===void 0?e===VA[0]&&r===VA[1]?!0:(this.checkBOM=!1,!1):(e===VA[0]&&r===VA[1]&&n===VA[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};yue.exports={EventSourceStream:qG}});var Rue=S((Her,Bue)=>{"use strict";var{pipeline:Dot}=require("node:stream"),{fetching:kot}=bI(),{makeRequest:Oot}=kA(),{webidl:iu}=bn(),{EventSourceStream:Lot}=Eue(),{parseMIMEType:Mot}=_s(),{createFastMessageEvent:Fot}=qA(),{isNetworkError:Cue}=wI(),{delay:Uot}=UG(),{kEnumerableProperty:qf}=Je(),{environmentSettingsObject:Iue}=ho(),{getGlobalDispatcher:qot}=CI(),Sue=!1,wue=3e3,UI=0,xue=1,qI=2,$ot="anonymous",Got="use-credentials",WA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=UI;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),iu.util.markAsUncloneable(this);let n="EventSource constructor";iu.argumentLengthCheck(arguments,1,n),Sue||(Sue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=iu.converters.USVString(e,n,"url"),r=iu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:wue};let s=Iue,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=$ot;r.withCredentials&&(a=Got,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Iue.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Oot(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===qI)return;this.#r=UI;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{Cue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Cue(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));retu Line truncated
`).join(`
`+o),t.push(s+"m+"+nR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ust()+e+" "+t[0]}i(lst,"formatArgs");function ust(){return fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(ust,"getDate");function dst(...t){return process.stderr.write(rR.format(...t)+`
`)}i(dst,"log");function pst(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(pst,"save");function mst(){return process.env.DEBUG}i(mst,"load");function fst(t){t.inspectOpts={};let e=Object.keys(fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fn.inspectOpts[e[r]]}i(fst,"init");nR.exports=Kq()(fn);var{formatters:tde}=nR.exports;tde.o=function(t){return this.inspectOpts.colors=this.useColors,rR.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};tde.O=function(t){return this.inspectOpts.colors=this.useColors,rR.inspect(t,this.inspectOpts)}});var om=I((fKt,eG)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?eG.exports=Jue():eG.exports=rde()});var ode=I(Bs=>{"use strict";var Ast=Bs&&Bs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hst=Bs&&Bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nde=Bs&&Bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ast(e,t,r);return hst(e,t),e};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.req=Bs.json=Bs.toBuffer=void 0;var gst=nde(require("http")),yst=nde(require("https"));async function sde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(sde,"toBuffer");Bs.toBuffer=sde;async function Est(t){let r=(await sde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Est,"json");Bs.json=Est;function Cst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?yst:gst).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(Cst,"req");Bs.req=Cst});var lde=I(uo=>{"use strict";var ade=uo&&uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ist=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cde=uo&&uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ade(e,t,r);return Ist(e,t),e},wst=uo&&uo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ade(e,t,r)};Object.defineProperty(uo,"__esModule",{value:!0});uo.Agent=void 0;var Sst=cde(require("net")),ide=cde(require("http")),xst=require("https");wst(ode(),uo);var $a=Symbol("AgentBaseInternalState"),tG=class extends ide.Agent{static{i(this,"Agent")}constructor(e){super(e),this[$a]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Sst.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?xst.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof ide.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[$a].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[$a].currentSocket;if(this[$a].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[$a].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[$a]&&(this[$a].defaultPort=e)}get protocol(){return this[$a].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[$a]&&(this[$a].protocol=e)}};uo.Agent=tG});var ude=I(eh=>{"use strict";var bst=eh&&eh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eh,"__esModule",{value:!0});eh.parseProxyResponse=void 0;var Bst=bst(om()),sR=(0,Bst.default)("https-proxy-agent:parse-proxy-response");function Rst(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),sR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),sR("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r
`+o),t.push(s+"m+"+CT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Rht()+e+" "+t[0]}i(Bht,"formatArgs");function Rht(){return Nn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Rht,"getDate");function Nht(...t){return process.stderr.write(ET.format(...t)+`
`)}i(Nht,"log");function Tht(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(Tht,"save");function Pht(){return process.env.DEBUG}i(Pht,"load");function _ht(t){t.inspectOpts={};let e=Object.keys(Nn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Nn.inspectOpts[e[r]]}i(_ht,"init");CT.exports=Dz()(Nn);var{formatters:xAe}=CT.exports;xAe.o=function(t){return this.inspectOpts.colors=this.useColors,ET.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};xAe.O=function(t){return this.inspectOpts.colors=this.useColors,ET.inspect(t,this.inspectOpts)}});var im=S((iur,Lz)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Lz.exports=yAe():Lz.exports=bAe()});var NAe=S(qs=>{"use strict";var vht=qs&&qs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qht=qs&&qs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BAe=qs&&qs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vht(e,t,r);return Qht(e,t),e};Object.defineProperty(qs,"__esModule",{value:!0});qs.req=qs.json=qs.toBuffer=void 0;var Dht=BAe(require("http")),kht=BAe(require("https"));async function RAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(RAe,"toBuffer");qs.toBuffer=RAe;async function Oht(t){let r=(await RAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Oht,"json");qs.json=Oht;function Lht(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?kht:Dht).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(Lht,"req");qs.req=Lht});var vAe=S(Po=>{"use strict";var PAe=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mht=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Ae=Po&&Po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PAe(e,t,r);return Mht(e,t),e},Fht=Po&&Po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PAe(e,t,r)};Object.defineProperty(Po,"__esModule",{value:!0});Po.Agent=void 0;var Uht=_Ae(require("net")),TAe=_Ae(require("http")),qht=require("https");Fht(NAe(),Po);var Ac=Symbol("AgentBaseInternalState"),Mz=class extends TAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ac]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Uht.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?qht.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof TAe.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ac].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Ac].currentSocket;if(this[Ac].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ac].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ac]&&(this[Ac].defaultPort=e)}get protocol(){return this[Ac].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ac]&&(this[Ac].protocol=e)}};Po.Agent=Mz});var QAe=S(mg=>{"use strict";var $ht=mg&&mg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mg,"__esModule",{value:!0});mg.parseProxyResponse=void 0;var Ght=$ht(im()),IT=(0,Ght.default)("https-proxy-agent:parse-proxy-response");function Hht(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),IT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),IT("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r
\r
`);if(m===-1){sR("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],C=h.slice(2).join(" "),w={};for(let x of f){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),_=w[N];typeof _=="string"?w[N]=[_,P]:Array.isArray(_)?_.push(P):w[N]=P}sR("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:E,statusText:C,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Rst,"parseProxyResponse");eh.parseProxyResponse=Rst});var hde=I(Wo=>{"use strict";var Nst=Wo&&Wo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tst=Wo&&Wo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fde=Wo&&Wo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Nst(e,t,r);return Tst(e,t),e},Ade=Wo&&Wo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.HttpsProxyAgent=void 0;var oR=fde(require("net")),dde=fde(require("tls")),vst=Ade(require("assert")),Pst=Ade(om()),_st=lde(),Qst=require("url"),Dst=ude(),kC=(0,Pst.default)("https-proxy-agent"),pde=i(t=>t.servername===void 0&&t.host&&!oR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),iR=class extends _st.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Qst.URL(e):e,this.proxyHeaders=r?.headers??{},kC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?mde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(kC("Creating `tls.Socket`: %o",this.connectOpts),s=dde.connect(pde(this.connectOpts))):(kC("Creating `net.Socket`: %o",this.connectOpts),s=oR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=oR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r
`;let l=(0,Dst.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",kst),r.secureEndpoint?(kC("Upgrading socket connection to TLS"),dde.connect({...mde(pde(r),"host","path","port"),socket:s})):s;s.destroy();let p=new oR.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{kC("Replaying proxy buffer for failed request"),(0,vst.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};iR.protocols=["http","https"];Wo.HttpsProxyAgent=iR;function kst(t){t.resume()}i(kst,"resume");function mde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(mde,"omit")});var Ede=I(Rs=>{"use strict";var Lst=Rs&&Rs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ost=Rs&&Rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gde=Rs&&Rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Lst(e,t,r);return Ost(e,t),e};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.req=Rs.json=Rs.toBuffer=void 0;var Mst=gde(require("http")),Fst=gde(require("https"));async function yde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(yde,"toBuffer");Rs.toBuffer=yde;async function Ust(t){let r=(await yde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Ust,"json");Rs.json=Ust;function qst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Fst:Mst).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(qst,"req");Rs.req=qst});var wde=I(po=>{"use strict";var Ide=po&&po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Gst=po&&po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hst=po&&po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ide(e,t,r);return Gst(e,t),e},$st=po&&po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ide(e,t,r)};Object.defineProperty(po,"__esModule",{value:!0});po.Agent=void 0;var Cde=Hst(require("http"));$st(Ede(),po);var za=Symbol("AgentBaseInternalState"),rG=class extends Cde.Agent{static{i(this,"Agent")}constructor(e){super(e),this[za]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof Cde.Agent)return o.addRequest(e,s);this[za].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[za].currentSocket;if(this[za].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[za].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[za]&&(this[za].defaultPort=e)}get protocol(){return this[za].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[za]&&(this[za].protocol=e)}};po.Agent=rG});var bde=I(Yo=>{"use strict";var zst=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vst=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xde=Yo&&Yo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zst(e,t,r);return Vst(e,t),e},Wst=Yo&&Yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.HttpProxyAgent=void 0;var Yst=xde(require("net")),Jst=xde(require("tls")),jst=Wst(om()),Kst=require("events"),Xst=wde(),Sde=require("url"),th=(0,jst.default)("http-proxy-agent"),aR=class extends Xst.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Sde.URL(e):e,this.proxyHeaders=r?.headers??{},th("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Zst(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new Sde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;th("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(th("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`);if(f===-1){IT("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}IT("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Hht,"parseProxyResponse");mg.parseProxyResponse=Hht});var FAe=S(Ai=>{"use strict";var zht=Ai&&Ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vht=Ai&&Ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LAe=Ai&&Ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zht(e,t,r);return Vht(e,t),e},MAe=Ai&&Ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.HttpsProxyAgent=void 0;var ST=LAe(require("net")),DAe=LAe(require("tls")),Wht=MAe(require("assert")),Jht=MAe(im()),Yht=vAe(),jht=require("url"),Kht=QAe(),PS=(0,Jht.default)("https-proxy-agent"),kAe=i(t=>t.servername===void 0&&t.host&&!ST.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),wT=class extends Yht.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new jht.URL(e):e,this.proxyHeaders=r?.headers??{},PS("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?OAe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(PS("Creating `tls.Socket`: %o",this.connectOpts),s=DAe.connect(kAe(this.connectOpts))):(PS("Creating `net.Socket`: %o",this.connectOpts),s=ST.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ST.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r
`;let l=(0,Kht.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Xht),r.secureEndpoint?(PS("Upgrading socket connection to TLS"),DAe.connect({...OAe(kAe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new ST.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{PS("Replaying proxy buffer for failed request"),(0,Wht.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};wT.protocols=["http","https"];Ai.HttpsProxyAgent=wT;function Xht(t){t.resume()}i(Xht,"resume");function OAe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(OAe,"omit")});var $Ae=S($s=>{"use strict";var Zht=$s&&$s.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eAt=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UAe=$s&&$s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Zht(e,t,r);return eAt(e,t),e};Object.defineProperty($s,"__esModule",{value:!0});$s.req=$s.json=$s.toBuffer=void 0;var tAt=UAe(require("http")),rAt=UAe(require("https"));async function qAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(qAe,"toBuffer");$s.toBuffer=qAe;async function nAt(t){let r=(await qAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(nAt,"json");$s.json=nAt;function sAt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?rAt:tAt).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(sAt,"req");$s.req=sAt});var zAe=S(_o=>{"use strict";var HAe=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oAt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iAt=_o&&_o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&HAe(e,t,r);return oAt(e,t),e},aAt=_o&&_o.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HAe(e,t,r)};Object.defineProperty(_o,"__esModule",{value:!0});_o.Agent=void 0;var GAe=iAt(require("http"));aAt($Ae(),_o);var gc=Symbol("AgentBaseInternalState"),Fz=class extends GAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[gc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof GAe.Agent)return o.addRequest(e,s);this[gc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[gc].currentSocket;if(this[gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[gc]&&(this[gc].defaultPort=e)}get protocol(){return this[gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[gc]&&(this[gc].protocol=e)}};_o.Agent=Fz});var JAe=S(gi=>{"use strict";var cAt=gi&&gi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lAt=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WAe=gi&&gi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&cAt(e,t,r);return lAt(e,t),e},uAt=gi&&gi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.HttpProxyAgent=void 0;var dAt=WAe(require("net")),pAt=WAe(require("tls")),fAt=uAt(im()),mAt=require("events"),hAt=zAe(),VAe=require("url"),hg=(0,fAt.default)("http-proxy-agent"),xT=class extends hAt.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new VAe.URL(e):e,this.proxyHeaders=r?.headers??{},hg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?AAt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new VAe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;hg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hg("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),th("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(th("Creating `tls.Socket`: %o",this.connectOpts),o=Jst.connect(this.connectOpts)):(th("Creating `net.Socket`: %o",this.connectOpts),o=Yst.connect(this.connectOpts)),await(0,Kst.once)(o,"connect"),o}};aR.protocols=["http","https"];Yo.HttpProxyAgent=aR;function Zst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Zst,"omit")});var Wde=I(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.state=void 0;IR.state={instrumenterImplementation:void 0}});var upe=I(BR=>{"use strict";Object.defineProperty(BR,"__esModule",{value:!0});BR.state=void 0;BR.state={operationRequestMap:new WeakMap}});var Gfe=I(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var Eut=require("os"),Cut=require("util");function Iut(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Iut,"_interopDefaultLegacy");var wut=Iut(Cut);function Sut(t,...e){process.stderr.write(`${wut.default.format(t,...e)}${Eut.EOL}`)}i(Sut,"log");var _fe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Dfe,D3=[],k3=[],zN=[];_fe&&L3(_fe);var kfe=Object.assign(t=>Lfe(t),{enable:L3,enabled:O3,disable:xut,log:Sut});function L3(t){Dfe=t,D3=[],k3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?k3.push(new RegExp(`^${n.substr(1)}$`)):D3.push(new RegExp(`^${n}$`));for(let n of zN)n.enabled=O3(n.namespace)}i(L3,"enable");function O3(t){if(t.endsWith("*"))return!0;for(let e of k3)if(e.test(t))return!1;for(let e of D3)if(e.test(t))return!0;return!1}i(O3,"enabled");function xut(){let t=Dfe||"";return L3(""),t}i(xut,"disable");function Lfe(t){let e=Object.assign(r,{enabled:O3(t),destroy:but,log:kfe.log,namespace:t,extend:But});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),zN.push(e),e}i(Lfe,"createDebugger");function but(){let t=zN.indexOf(this);return t>=0?(zN.splice(t,1),!0):!1}i(but,"destroy");function But(t){let e=Lfe(`${this.namespace}:${t}`);return e.log=this.log,e}i(But,"extend");var wI=kfe,Ofe=new Set,HN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,VN,WN=wI("azure");WN.log=(...t)=>{wI.log(...t)};var M3=["verbose","info","warning","error"];HN&&(qfe(HN)?Mfe(HN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${HN}'; logging is not enabled. Acceptable values: ${M3.join(", ")}.`));function Mfe(t){if(t&&!qfe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${M3.join(",")}`);VN=t;let e=[];for(let r of Ofe)Ufe(r)&&e.push(r.namespace);wI.enable(e.join(","))}i(Mfe,"setLogLevel");function Rut(){return VN}i(Rut,"getLogLevel");var Qfe={verbose:400,info:300,warning:200,error:100};function Nut(t){let e=WN.extend(t);return Ffe(WN,e),{error:$N(e,"error"),warning:$N(e,"warning"),info:$N(e,"info"),verbose:$N(e,"verbose")}}i(Nut,"createClientLogger");function Ffe(t,e){e.log=(...r)=>{t.log(...r)}}i(Ffe,"patchLogMethod");function $N(t,e){let r=Object.assign(t.extend(e),{level:e});if(Ffe(t,r),Ufe(r)){let n=wI.disable();wI.enable(n+","+r.namespace)}return Ofe.add(r),r}i($N,"createLogger");function Ufe(t){return!!(VN&&Qfe[t.level]<=Qfe[VN])}i(Ufe,"shouldEnable");function qfe(t){return M3.includes(t)}i(qfe,"isAzureLogLevel");Eh.AzureLogger=WN;Eh.createClientLogger=Nut;Eh.getLogLevel=Rut;Eh.setLogLevel=Mfe});var q3=I(xI=>{"use strict";Object.defineProperty(xI,"__esModule",{value:!0});var Ch=new WeakMap,YN=new WeakMap,SI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Ch.set(this,[]),YN.set(this,!1)}get aborted(){if(!YN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return YN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ch.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ch.get(this).push(r)}removeEventListener(e,r){if(!Ch.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ch.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Hfe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ch.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),YN.set(t,!0)}i(Hfe,"abortSignal");var F3=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},U3=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new SI,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Hfe(this._signal)}static timeout(e){let r=new SI,n=setTimeout(Hfe,e,r);return typeof n.unref=="function"&&n.unref(),r}};xI.AbortController=U3;xI.AbortError=F3;xI.AbortSignal=SI});var Yfe=I(as=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),hg("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(hg("Creating `tls.Socket`: %o",this.connectOpts),o=pAt.connect(this.connectOpts)):(hg("Creating `net.Socket`: %o",this.connectOpts),o=dAt.connect(this.connectOpts)),await(0,mAt.once)(o,"connect"),o}};xT.protocols=["http","https"];gi.HttpProxyAgent=xT;function AAt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(AAt,"omit")});var Age=S(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.state=void 0;MT.state={instrumenterImplementation:void 0}});var Qge=S(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.state=void 0;GT.state={operationRequestMap:new WeakMap}});var dCe=S(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var OIt=require("os"),LIt=require("util");function MIt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(MIt,"_interopDefaultLegacy");var FIt=MIt(LIt);function UIt(t,...e){process.stderr.write(`${FIt.default.format(t,...e)}${OIt.EOL}`)}i(UIt,"log");var tCe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nCe,g8=[],y8=[],c_=[];tCe&&E8(tCe);var sCe=Object.assign(t=>oCe(t),{enable:E8,enabled:C8,disable:qIt,log:UIt});function E8(t){nCe=t,g8=[],y8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?y8.push(new RegExp(`^${n.substr(1)}$`)):g8.push(new RegExp(`^${n}$`));for(let n of c_)n.enabled=C8(n.namespace)}i(E8,"enable");function C8(t){if(t.endsWith("*"))return!0;for(let e of y8)if(e.test(t))return!1;for(let e of g8)if(e.test(t))return!0;return!1}i(C8,"enabled");function qIt(){let t=nCe||"";return E8(""),t}i(qIt,"disable");function oCe(t){let e=Object.assign(r,{enabled:C8(t),destroy:$It,log:sCe.log,namespace:t,extend:GIt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),c_.push(e),e}i(oCe,"createDebugger");function $It(){let t=c_.indexOf(this);return t>=0?(c_.splice(t,1),!0):!1}i($It,"destroy");function GIt(t){let e=oCe(`${this.namespace}:${t}`);return e.log=this.log,e}i(GIt,"extend");var gw=sCe,iCe=new Set,i_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,l_,u_=gw("azure");u_.log=(...t)=>{gw.log(...t)};var I8=["verbose","info","warning","error"];i_&&(uCe(i_)?aCe(i_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${i_}'; logging is not enabled. Acceptable values: ${I8.join(", ")}.`));function aCe(t){if(t&&!uCe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${I8.join(",")}`);l_=t;let e=[];for(let r of iCe)lCe(r)&&e.push(r.namespace);gw.enable(e.join(","))}i(aCe,"setLogLevel");function HIt(){return l_}i(HIt,"getLogLevel");var rCe={verbose:400,info:300,warning:200,error:100};function zIt(t){let e=u_.extend(t);return cCe(u_,e),{error:a_(e,"error"),warning:a_(e,"warning"),info:a_(e,"info"),verbose:a_(e,"verbose")}}i(zIt,"createClientLogger");function cCe(t,e){e.log=(...r)=>{t.log(...r)}}i(cCe,"patchLogMethod");function a_(t,e){let r=Object.assign(t.extend(e),{level:e});if(cCe(t,r),lCe(r)){let n=gw.disable();gw.enable(n+","+r.namespace)}return iCe.add(r),r}i(a_,"createLogger");function lCe(t){return!!(l_&&rCe[t.level]<=rCe[l_])}i(lCe,"shouldEnable");function uCe(t){return I8.includes(t)}i(uCe,"isAzureLogLevel");Qg.AzureLogger=u_;Qg.createClientLogger=zIt;Qg.getLogLevel=HIt;Qg.setLogLevel=aCe});var x8=S(Ew=>{"use strict";Object.defineProperty(Ew,"__esModule",{value:!0});var Dg=new WeakMap,d_=new WeakMap,yw=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Dg.set(this,[]),d_.set(this,!1)}get aborted(){if(!d_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return d_.get(this)}static get none(){return new t}addEventListener(e,r){if(!Dg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Dg.get(this).push(r)}removeEventListener(e,r){if(!Dg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Dg.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function pCe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Dg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),d_.set(t,!0)}i(pCe,"abortSignal");var S8=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},w8=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new yw,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){pCe(this._signal)}static timeout(e){let r=new yw,n=setTimeout(pCe,e,r);return typeof n.unref=="function"&&n.unref(),r}};Ew.AbortController=w8;Ew.AbortError=S8;Ew.AbortSignal=yw});var gCe=S(Es=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${Xfe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(jfe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(zut,"pollOperationHelper");async function rAe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:A,isDone:h,setErrorAsResult:E}=t,{operationLocation:C}=r.config;if(C!==void 0){let{response:w,status:x}=await zut({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:C,getResourceLocation:a,isOperationError:l,options:s});if(eAe({status:x,response:w,state:r,stateProxy:n,isDone:h,processResult:p,getError:m,setErrorAsResult:E}),!Xfe.includes(x)){let b=d?.(w);b&&A(b);let N=c?.(w,r);if(N!==void 0){let P=C!==N;r.config.operationLocation=N,u?.(N,P)}else u?.(C,!1)}f?.(r,w)}}i(rAe,"pollOperation");function nAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(nAe,"getOperationLocationPollingUrl");function sAe(t){return t.headers.location}i(sAe,"getLocationHeader");function oAe(t){return t.headers["operation-location"]}i(oAe,"getOperationLocationHeader");function iAe(t){return t.headers["azure-asyncoperation"]}i(iAe,"getAzureAsyncOperationHeader");function Vut(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(Vut,"findResourceLocation");function aAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=oAe(e),a=iAe(e),c=nAe({operationLocation:o,azureAsyncOperation:a}),l=sAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Vut({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(aAe,"inferLroMode");function cAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return J3(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Sm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(cAe,"transformStatus");function Wut(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return cAe({status:r,statusCode:t.statusCode})}i(Wut,"getStatus");function Yut(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return cAe({status:o,statusCode:t.statusCode})}i(Yut,"getProvisioningState");function J3(t){return t===202?"running":t<300?"succeeded":"failed"}i(J3,"toOperationStatus");function lAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Jut(new Date(e)):r*1e3}}i(lAe,"parseRetryAfter");function uAe(t){let e=t.flatResponse.error;if(!e){Sm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Sm.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(uAe,"getErrorFromResponse");function Jut(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(Jut,"calculatePollingIntervalFromDate");function dAe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return J3(e.rawResponse.statusCode);case"Body":return j3(e,r);default:return"running"}}i(s,"helper");let o=s();return o==="running"&&n===void 0?"succeeded":o}i(dAe,"getStatusFromInitialResponse");async function jut(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:o}=t;return tAe({init:i(async()=>{let a=await s.sendInitialRequest(),c=aAe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:dAe,setErrorAsResult:o})}i(jut,"initHttpOperation");function pAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return nAe({opeLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=o,s=1;break;case 1:r[n++]=a<<2|(o&48)>>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(Qdt,"base64decode");Bh.base64decode=Qdt;function Ddt(t){let e="",r=0,n,s=0;for(let o=0;o<t.length;o++)switch(n=t[o],r){case 0:e+=$l[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=$l[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=$l[s|n>>6],e+=$l[n&63],r=0;break}return r&&(e+=$l[s],e+="=",r==1&&(e+="=")),e}i(Ddt,"base64encode");Bh.base64encode=Ddt});var zAe=I(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.utf8read=void 0;var aV=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function kdt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e<a;)o=t[e++],o<128?n[s++]=o:o>191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(aV(n)),s=0);return r.length?(s&&r.push(aV(n.slice(0,s))),r.join("")):aV(n.slice(0,s))}i(kdt,"utf8read");mT.utf8read=kdt});var _I=I(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.WireType=gc.mergeBinaryOptions=gc.UnknownFieldHandler=void 0;var Ldt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(Ldt=gc.UnknownFieldHandler||(gc.UnknownFieldHandler={}));function Odt(t,e){return Object.assign(Object.assign({},t),e)}i(Odt,"mergeBinaryOptions");gc.mergeBinaryOptions=Odt;var Mdt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Mdt=gc.WireType||(gc.WireType={}))});var AT=I(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.varint32read=Ds.varint32write=Ds.int64toString=Ds.int64fromString=Ds.varint64write=Ds.varint64read=void 0;function Fdt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(Fdt,"varint64read");Ds.varint64read=Fdt;function Udt(t,e,r){for(let o=0;o<28;o=o+7){let a=t>>>o,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(Udt,"varint64write");Ds.varint64write=Udt;var fT=65536*65536;function qdt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=fT&&(s=s+(n/fT|0),n=n%fT)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(qdt,"int64fromString");Ds.int64fromString=qdt;function Gdt(t,e){if(e>>>0<=2097151)return""+(fT*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let m=d?String(d):"";return p?"0000000".slice(m.length)+m:m}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(Gdt,"int64toString");Ds.int64toString=Gdt;function Hdt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(Hdt,"varint32write");Ds.varint32write=Hdt;function $dt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}i($dt,"varint32read");Ds.varint32read=$dt});var cd=I(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.PbLong=ad.PbULong=ad.detectBi=void 0;var QI=AT(),wt;function VAe(){let t=new DataView(new ArrayBuffer(8));wt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};GT.RpcError=DV});var LV=I($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.mergeRpcOptions=void 0;var xhe=wr();function pmt(t,e){if(!e)return t;let r={};HT(t,r),HT(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=xhe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=xhe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},HT(t.meta,r.meta),HT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(pmt,"mergeRpcOptions");$T.mergeRpcOptions=pmt;function HT(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(HT,"copy")});var MV=I(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.Deferred=Nm.DeferredState=void 0;var Cc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Cc=Nm.DeferredState||(Nm.DeferredState={}));var OV=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Cc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Cc.PENDING)throw new Error(`cannot resolve ${Cc[this.state].toLowerCase()}`);this._resolve(e),this._state=Cc.RESOLVED}reject(e){if(this.state!==Cc.PENDING)throw new Error(`cannot reject ${Cc[this.state].toLowerCase()}`);this._reject(e),this._state=Cc.REJECTED}resolvePending(e){this._state===Cc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Cc.PENDING&&this.reject(e)}};Nm.Deferred=OV});var UV=I(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});zT.RpcOutputStreamController=void 0;var bhe=MV(),Tm=wr(),FV=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Tm.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Tm.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Tm.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Tm.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{let e=this._itState;Tm.assert(e,"bad state"),Tm.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new bhe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Tm.assert(n.state==bhe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};zT.RpcOutputStreamController=FV});var GV=I(Qh=>{"use strict";var mmt=Qh&&Qh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Qh,"__esModule",{value:!0});Qh.UnaryCall=void 0;var qV=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return mmt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Qh.UnaryCall=qV});var $V=I(Dh=>{"use strict";var fmt=Dh&&Dh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function Line truncated
Polling status: ${ICe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(ECe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(cSt,"pollOperationHelper");async function bCe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:f,updateState:m,setDelay:h,isDone:A,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:x}=await cSt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(wCe({status:x,response:I,state:r,stateProxy:n,isDone:A,processResult:p,getError:f,setErrorAsResult:y}),!ICe.includes(x)){let b=d?.(I);b&&h(b);let N=c?.(I,r);if(N!==void 0){let _=E!==N;r.config.operationLocation=N,u?.(N,_)}else u?.(E,!1)}m?.(r,I)}}i(bCe,"pollOperation");function BCe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(BCe,"getOperationLocationPollingUrl");function RCe(t){return t.headers.location}i(RCe,"getLocationHeader");function NCe(t){return t.headers["operation-location"]}i(NCe,"getOperationLocationHeader");function TCe(t){return t.headers["azure-asyncoperation"]}i(TCe,"getAzureAsyncOperationHeader");function lSt(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(lSt,"findResourceLocation");function PCe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=NCe(e),a=TCe(e),c=BCe({operationLocation:o,azureAsyncOperation:a}),l=RCe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:lSt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(PCe,"inferLroMode");function _Ce(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return v8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return xm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(_Ce,"transformStatus");function uSt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return _Ce({status:r,statusCode:t.statusCode})}i(uSt,"getStatus");function dSt(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return _Ce({status:o,statusCode:t.statusCode})}i(dSt,"getProvisioningState");function v8(t){return t===202?"running":t<300?"succeeded":"failed"}i(v8,"toOperationStatus");function vCe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?pSt(new Date(e)):r*1e3}}i(vCe,"parseRetryAfter");function QCe(t){let e=t.flatResponse.error;if(!e){xm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xm.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(QCe,"getErrorFromResponse");function pSt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(pSt,"calculatePollingIntervalFromDate");function DCe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return v8(e.rawResponse.statusCode);case"Body":return Q8(e,r);default:return"running"}}i(s,"helper");let o=s();return o==="running"&&n===void 0?"succeeded":o}i(DCe,"getStatusFromInitialResponse");async function fSt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:o}=t;return xCe({init:i(async()=>{let a=await s.sendInitialRequest(),c=PCe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:DCe,setErrorAsResult:o})}i(fSt,"initHttpOperation");function kCe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return BCe({opeLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=o,s=1;break;case 1:r[n++]=a<<2|(o&48)>>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(jSt,"base64decode");Ug.base64decode=jSt;function KSt(t){let e="",r=0,n,s=0;for(let o=0;o<t.length;o++)switch(n=t[o],r){case 0:e+=bu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=bu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=bu[s|n>>6],e+=bu[n&63],r=0;break}return r&&(e+=bu[s],e+="=",r==1&&(e+="=")),e}i(KSt,"base64encode");Ug.base64encode=KSt});var mIe=S(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.utf8read=void 0;var H8=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function XSt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e<a;)o=t[e++],o<128?n[s++]=o:o>191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(H8(n)),s=0);return r.length?(s&&r.push(H8(n.slice(0,s))),r.join("")):H8(n.slice(0,s))}i(XSt,"utf8read");P_.utf8read=XSt});var Rw=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.WireType=Gc.mergeBinaryOptions=Gc.UnknownFieldHandler=void 0;var ZSt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(ZSt=Gc.UnknownFieldHandler||(Gc.UnknownFieldHandler={}));function ewt(t,e){return Object.assign(Object.assign({},t),e)}i(ewt,"mergeBinaryOptions");Gc.mergeBinaryOptions=ewt;var twt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(twt=Gc.WireType||(Gc.WireType={}))});var v_=S(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.varint32read=Ys.varint32write=Ys.int64toString=Ys.int64fromString=Ys.varint64write=Ys.varint64read=void 0;function rwt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(rwt,"varint64read");Ys.varint64read=rwt;function nwt(t,e,r){for(let o=0;o<28;o=o+7){let a=t>>>o,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(nwt,"varint64write");Ys.varint64write=nwt;var __=65536*65536;function swt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=__&&(s=s+(n/__|0),n=n%__)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(swt,"int64fromString");Ys.int64fromString=swt;function owt(t,e){if(e>>>0<=2097151)return""+(__*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let f=d?String(d):"";return p?"0000000".slice(f.length)+f:f}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(owt,"int64toString");Ys.int64toString=owt;function iwt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(iwt,"varint32write");Ys.varint32write=iwt;function awt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}i(awt,"varint32read");Ys.varint32read=awt});var Gd=S($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.PbLong=$d.PbULong=$d.detectBi=void 0;var Nw=v_(),Rt;function hIe(){let t=new DataView(new ArrayBuffer(8));Rt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};ov.RpcError=gJ});var EJ=S(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});av.mergeRpcOptions=void 0;var WIe=_r();function Txt(t,e){if(!e)return t;let r={};iv(t,r),iv(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=WIe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=WIe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iv(t.meta,r.meta),iv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(Txt,"mergeRpcOptions");av.mergeRpcOptions=Txt;function iv(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(iv,"copy")});var IJ=S(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.Deferred=Tm.DeferredState=void 0;var Vc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vc=Tm.DeferredState||(Tm.DeferredState={}));var CJ=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Vc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vc.PENDING)throw new Error(`cannot resolve ${Vc[this.state].toLowerCase()}`);this._resolve(e),this._state=Vc.RESOLVED}reject(e){if(this.state!==Vc.PENDING)throw new Error(`cannot reject ${Vc[this.state].toLowerCase()}`);this._reject(e),this._state=Vc.REJECTED}resolvePending(e){this._state===Vc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vc.PENDING&&this.reject(e)}};Tm.Deferred=CJ});var wJ=S(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.RpcOutputStreamController=void 0;var JIe=IJ(),Pm=_r(),SJ=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Pm.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Pm.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Pm.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Pm.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{let e=this._itState;Pm.assert(e,"bad state"),Pm.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new JIe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Pm.assert(n.state==JIe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};cv.RpcOutputStreamController=SJ});var bJ=S(Wg=>{"use strict";var Pxt=Wg&&Wg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Wg,"__esModule",{value:!0});Wg.UnaryCall=void 0;var xJ=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Pxt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Wg.UnaryCall=xJ});var RJ=S(Jg=>{"use strict";var _xt=Jg&&Jg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function Line truncated
`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],QBt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:PBt,MAX_SAFE_BUILD_LENGTH:_Bt,MAX_SAFE_INTEGER:TBt,WHITESPACE_CHARACTERS:vBt,RELEASE_TYPES:QBt,SEMVER_SPEC_VERSION:NBt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var zw=S((E_r,uwe)=>{"use strict";var DBt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};uwe.exports=DBt});var dy=S((Yc,dwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:NY,MAX_SAFE_BUILD_LENGTH:kBt,MAX_LENGTH:OBt}=Lm(),LBt=zw();Yc=dwe.exports={};var MBt=Yc.re=[],FBt=Yc.safeRe=[],W=Yc.src=[],UBt=Yc.safeSrc=[],J=Yc.t={},qBt=0,TY="[a-zA-Z0-9-]",$Bt=[["\\s",1],["\\d",OBt],[TY,kBt]],GBt=i(t=>{for(let[e,r]of $Bt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ue=i((t,e,r)=>{let n=GBt(e),s=qBt++;LBt(t,s,e),J[t]=s,W[s]=e,UBt[s]=n,MBt[s]=new RegExp(e,r?"g":void 0),FBt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ue("NUMERICIDENTIFIER","0|[1-9]\\d*");Ue("NUMERICIDENTIFIERLOOSE","\\d+");Ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${TY}*`);Ue("MAINVERSION",`(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})`);Ue("MAINVERSIONLOOSE",`(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASEIDENTIFIER",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIER]})`);Ue("PRERELEASEIDENTIFIERLOOSE",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASE",`(?:-(${W[J.PRERELEASEIDENTIFIER]}(?:\\.${W[J.PRERELEASEIDENTIFIER]})*))`);Ue("PRERELEASELOOSE",`(?:-?(${W[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[J.PRERELEASEIDENTIFIERLOOSE]})*))`);Ue("BUILDIDENTIFIER",`${TY}+`);Ue("BUILD",`(?:\\+(${W[J.BUILDIDENTIFIER]}(?:\\.${W[J.BUILDIDENTIFIER]})*))`);Ue("FULLPLAIN",`v?${W[J.MAINVERSION]}${W[J.PRERELEASE]}?${W[J.BUILD]}?`);Ue("FULL",`^${W[J.FULLPLAIN]}$`);Ue("LOOSEPLAIN",`[v=\\s]*${W[J.MAINVERSIONLOOSE]}${W[J.PRERELEASELOOSE]}?${W[J.BUILD]}?`);Ue("LOOSE",`^${W[J.LOOSEPLAIN]}$`);Ue("GTLT","((?:<|>)?=?)");Ue("XRANGEIDENTIFIERLOOSE",`${W[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ue("XRANGEIDENTIFIER",`${W[J.NUMERICIDENTIFIER]}|x|X|\\*`);Ue("XRANGEPLAIN",`[v=\\s]*(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:${W[J.PRERELEASE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGEPLAINLOOSE",`[v=\\s]*(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:${W[J.PRERELEASELOOSE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAIN]}$`);Ue("XRANGELOOSE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAINLOOSE]}$`);Ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${NY}})(?:\\.(\\d{1,${NY}}))?(?:\\.(\\d{1,${NY}}))?`);Ue("COERCE",`${W[J.COERCEPLAIN]}(?:$|[^\\d])`);Ue("COERCEFULL",W[J.COERCEPLAIN]+`(?:${W[J.PRERELEASE]})?(?:${W[J.BUILD]})?(?:$|[^\\d])`);Ue("COERCERTL",W[J.COERCE],!0);Ue("COERCERTLFULL",W[J.COERCEFULL],!0);Ue("LONETILDE","(?:~>?)");Ue("TILDETRIM",`(\\s*)${W[J.LONETILDE]}\\s+`,!0);Yc.tildeTrimReplace="$1~";Ue("TILDE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAIN]}$`);Ue("TILDELOOSE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("LONECARET","(?:\\^)");Ue("CARETTRIM",`(\\s*)${W[J.LONECARET]}\\s+`,!0);Yc.caretTrimReplace="$1^";Ue("CARET",`^${W[J.LONECARET]}${W[J.XRANGEPLAIN]}$`);Ue("CARETLOOSE",`^${W[J.LONECARET]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("COMPARATORLOOSE",`^${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]})$|^$`);Ue("COMPARATOR",`^${W[J.GTLT]}\\s*(${W[J.FULLPLAIN]})$|^$`);Ue("COMPARATORTRIM",`(\\s*)${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]}|${W[J.XRANGEPLAIN]})`,!0);Yc.comparatorTrimReplace="$1$2$3";Ue("HYPHENRANGE",`^\\s*(${W[J.XRANGEPLAIN]})\\s+-\\s+(${W[J.XRANGEPLAIN]})\\s*$`);Ue("HYPHENRANGELOOSE",`^\\s*(${W[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[J.XRANGEPLAINLOOSE]})\\s*$`);Ue("STAR","(<|>)?=?\\s*\\*");Ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bv=S((I_r,pwe)=>{"use strict";var HBt=Object.freeze({loose:!0}),zBt=Object.freeze({}),VBt=i(t=>t?typeof t!="object"?HBt:t:zBt,"parseOptions");pwe.exports=VBt});var PY=S((w_r,hwe)=>{"use strict";var fwe=/^[0-9]+$/,mwe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=fwe.test(t),n=fwe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),WBt=i((t,e)=>mwe(e,t),"rcompareIdentifiers");hwe.exports={compareIdentifiers:mwe,rcompareIdentifiers:WBt}});var Pn=S((b_r,gwe)=>{"use strict";var Rv=zw(),{MAX_LENGTH:Awe,MAX_SAFE_INTEGER:Nv}=Lm(),{safeRe:Tv,t:Pv}=dy(),JBt=Bv(),{compareIdentifiers:_Y}=PY(),YBt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(_Y(t[n],r[n])!== Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(DCt,"logUnexpecedPropertyAccessOnce");function kCt(){Object.keys(Ov).forEach(function(t){delete Ov[t]})}i(kCt,"resetLoggedProperties")});var Fv=I(xc=>{"use strict";xc.__esModule=!0;xc.HandlebarsEnvironment=TW;function CCe(t){return t&&t.__esModule?t:{default:t}}i(CCe,"_interopRequireDefault");var Om=Ln(),LCt=ii(),RW=CCe(LCt),OCt=SW(),MCt=hCe(),FCt=bW(),Mv=CCe(FCt),UCt=BW(),qCt="4.7.10";xc.VERSION=qCt;var GCt=8;xc.COMPILER_REVISION=GCt;var HCt=7;xc.LAST_COMPATIBLE_COMPILER_REVISION=HCt;var $Ct={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};xc.REVISION_CHANGES=$Ct;var NW="[object Object]";function TW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},OCt.registerDefaultHelpers(this),MCt.registerDefaultDecorators(this)}i(TW,"HandlebarsEnvironment");TW.prototype={constructor:TW,logger:Mv.default,log:Mv.default.log,registerHelper:i(function(e,r){if(Om.toString.call(e)===NW){if(r)throw new RW.default("Arg not supported with multiple helpers");Om.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Om.toString.call(e)===NW)Om.extend(this.partials,e);else{if(typeof r>"u")throw new RW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Om.toString.call(e)===NW){if(r)throw new RW.default("Arg not supported with multiple decorators");Om.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){UCt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var zCt=Mv.default.log;xc.log=zCt;xc.createFrame=Om.createFrame;xc.logger=Mv.default});var wCe=I((Uv,ICe)=>{"use strict";Uv.__esModule=!0;function vW(t){this.string=t}i(vW,"SafeString");vW.prototype.toString=vW.prototype.toHTML=function(){return""+this.string};Uv.default=vW;ICe.exports=Uv.default});var SCe=I(PW=>{"use strict";PW.__esModule=!0;PW.wrapHelper=VCt;function VCt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(VCt,"wrapHelper")});var NCe=I(md=>{"use strict";md.__esModule=!0;md.checkRevision=XCt;md.template=ZCt;md.wrapProgram=qv;md.resolvePartial=eIt;md.invokePartial=tIt;md.noop=BCe;function WCt(t){return t&&t.__esModule?t:{default:t}}i(WCt,"_interopRequireDefault");function YCt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(YCt,"_interopRequireWildcard");var JCt=Ln(),Mm=YCt(JCt),jCt=ii(),Ji=WCt(jCt),Jl=Fv(),xCe=SW(),KCt=SCe(),_W=BW();function XCt(t){var e=t&&t[0]||1,r=Jl.COMPILER_REVISION;if(!(e>=Jl.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Jl.COMPILER_REVISION))if(e<Jl.LAST_COMPATIBLE_COMPILER_REVISION){var n=Jl.REVISION_CHANGES[r],s=Jl.REVISION_CHANGES[e];throw new Ji.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ji.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(XCt,"checkRevision");function ZCt(t,e){if(!e)throw new Ji.default("No environment passed to template");if(!t||!t.main)throw new Ji.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Mm.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&Mm.isFunction(a))throw new Ji.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Ji.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
`),p=0,m=d.length;p<m&&!(!d[p]&&p+1===m);p++)d[p]=l.indent+d[p];u=d.join(`
`)}return u}else throw new Ji.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var s={strict:i(function(c,l,u){if(!c||!(l in c))throw new Ji.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:i(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!_W.isPrototypeConstructor(c,l,u)||_W.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:i(function(c,l){for(var u=c.length,d=0;d<u;d++){var p=c[d]&&s.lookupProperty(c[d],l);if(p!=null)return p}},"lookup"),lambda:i(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Mm.escapeExpression,invokePartial:n,fn:i(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:i(function(c,l,u,d,p){var m=this.programs[c],f=this.fn(c);return l||p||d||u?m=qv(this,c,f,l,u,d,p):m||(m=this.programs[c]=qv(this,c,f)),m},"program"),data:i(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Mm.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;o._setup(c),!c.partial&&t.useData&&(l=rIt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function p(m){return""+t.main(s,m,s.helpers,s.partials,l,d,u)}return i(p,"main"),p=RCe(t.main,p,s,c.depths||[],l,d),p(a,c)}return i(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};bCe(c,e.helpers,s),bCe(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=Mm.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=_W.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;xCe.moveHelperToHooks(s,"helperMissing",l),xCe.moveHelperToHooks(s,"blockHelperMissing",l)}},o._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ji.default("must pass block params");if(t.useDepths&&!u)throw new Ji.default("must pass parent depths");return qv(s,a,t[a],c,0,l,u)},o}i(ZCt,"template");function qv(t,e,r,n,s,o,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,o&&[u.blockParams].concat(o),d)}return i(c,"prog"),c=RCe(r,c,t,a,n,o),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}i(qv,"wrapProgram");function eIt(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=Gv(r.partials,t)):r.name==="@partial-block"?t=Gv(r.data,"partial-block"):t=Gv(r.partials,r.name),t}i(eIt,"resolvePartial");function tIt(t,e,r){var n=Gv(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==BCe&&(function(){r.data=Jl.createFrame(r.data);var o=r.fn;s=r.data["partial-block"]=i(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Jl.createFrame(l.data),l.data["partial-block"]=n,o(c,l)},"partialBlockWrapper"),o.partials&&(r.partials=Mm.extend({},r.partials,o.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ji.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(tIt,"invokePartial");function BCe(){return""}i(BCe,"noop");function Gv(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(Gv,"lookupOwnProperty");function rIt(t,e){return(!e||!("root"in e))&&(e=e?Jl.createFrame(e):{},e.root=t),e}i(rIt,"initData");function RCe(t,e,r,n,s,o){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,o,n),Mm.extend(e,a)}return e}i(RCe,"executeDecorators");function bCe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=nIt(s,r)})}i(bCe,"addHelpers");function nIt(t,e){var r=e.lookupProperty;return KCt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(nIt,"passLookupPropertyOption")});var QW=I((Hv,TCe)=>{"use strict";Hv.__esModule=!0;Hv.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};TCe.exports=Hv.default});var DCe=I(($v,QCe)=>{"use strict";$v.__esModule=!0;function kW(t){return t&&t.__esModule?t:{default:t}}i(kW,"_interopRequireDefault");function LW(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(LW,"_interopRequireWildcard");var sIt=Fv(),vCe=LW(sIt),oIt=wCe(),iIt=kW(oIt),aI Line truncated
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(a_t,"logUnexpecedPropertyAccessOnce");function c_t(){Object.keys(Zv).forEach(function(t){delete Zv[t]})}i(c_t,"resetLoggedProperties")});var tQ=S(Kc=>{"use strict";Kc.__esModule=!0;Kc.HandlebarsEnvironment=Aj;function d0e(t){return t&&t.__esModule?t:{default:t}}i(d0e,"_interopRequireDefault");var Um=Yn(),l_t=Pi(),mj=d0e(l_t),u_t=uj(),d_t=a0e(),p_t=pj(),eQ=d0e(p_t),f_t=fj(),m_t="4.7.10";Kc.VERSION=m_t;var h_t=8;Kc.COMPILER_REVISION=h_t;var A_t=7;Kc.LAST_COMPATIBLE_COMPILER_REVISION=A_t;var g_t={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Kc.REVISION_CHANGES=g_t;var hj="[object Object]";function Aj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},u_t.registerDefaultHelpers(this),d_t.registerDefaultDecorators(this)}i(Aj,"HandlebarsEnvironment");Aj.prototype={constructor:Aj,logger:eQ.default,log:eQ.default.log,registerHelper:i(function(e,r){if(Um.toString.call(e)===hj){if(r)throw new mj.default("Arg not supported with multiple helpers");Um.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Um.toString.call(e)===hj)Um.extend(this.partials,e);else{if(typeof r>"u")throw new mj.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Um.toString.call(e)===hj){if(r)throw new mj.default("Arg not supported with multiple decorators");Um.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){f_t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var y_t=eQ.default.log;Kc.log=y_t;Kc.createFrame=Um.createFrame;Kc.logger=eQ.default});var f0e=S((rQ,p0e)=>{"use strict";rQ.__esModule=!0;function gj(t){this.string=t}i(gj,"SafeString");gj.prototype.toString=gj.prototype.toHTML=function(){return""+this.string};rQ.default=gj;p0e.exports=rQ.default});var m0e=S(yj=>{"use strict";yj.__esModule=!0;yj.wrapHelper=E_t;function E_t(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(E_t,"wrapHelper")});var E0e=S(Jd=>{"use strict";Jd.__esModule=!0;Jd.checkRevision=b_t;Jd.template=B_t;Jd.wrapProgram=nQ;Jd.resolvePartial=R_t;Jd.invokePartial=N_t;Jd.noop=g0e;function C_t(t){return t&&t.__esModule?t:{default:t}}i(C_t,"_interopRequireDefault");function I_t(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(I_t,"_interopRequireWildcard");var S_t=Yn(),qm=I_t(S_t),w_t=Pi(),Ia=C_t(w_t),Tu=tQ(),h0e=uj(),x_t=m0e(),Ej=fj();function b_t(t){var e=t&&t[0]||1,r=Tu.COMPILER_REVISION;if(!(e>=Tu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Tu.COMPILER_REVISION))if(e<Tu.LAST_COMPATIBLE_COMPILER_REVISION){var n=Tu.REVISION_CHANGES[r],s=Tu.REVISION_CHANGES[e];throw new Ia.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ia.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(b_t,"checkRevision");function B_t(t,e){if(!e)throw new Ia.default("No environment passed to template");if(!t||!t.main)throw new Ia.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=qm.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&qm.isFunction(a))throw new Ia.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new Ia.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
`),p=0,f=d.length;p<f&&!(!d[p]&&p+1===f);p++)d[p]=l.indent+d[p];u=d.join(`
`)}return u}else throw new Ia.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var s={strict:i(function(c,l,u){if(!c||!(l in c))throw new Ia.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:i(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!Ej.isPrototypeConstructor(c,l,u)||Ej.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:i(function(c,l){for(var u=c.length,d=0;d<u;d++){var p=c[d]&&s.lookupProperty(c[d],l);if(p!=null)return p}},"lookup"),lambda:i(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:qm.escapeExpression,invokePartial:n,fn:i(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:i(function(c,l,u,d,p){var f=this.programs[c],m=this.fn(c);return l||p||d||u?f=nQ(this,c,m,l,u,d,p):f||(f=this.programs[c]=nQ(this,c,m)),f},"program"),data:i(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=qm.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;o._setup(c),!c.partial&&t.useData&&(l=T_t(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function p(f){return""+t.main(s,f,s.helpers,s.partials,l,d,u)}return i(p,"main"),p=y0e(t.main,p,s,c.depths||[],l,d),p(a,c)}return i(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};A0e(c,e.helpers,s),A0e(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=qm.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=Ej.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;h0e.moveHelperToHooks(s,"helperMissing",l),h0e.moveHelperToHooks(s,"blockHelperMissing",l)}},o._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ia.default("must pass block params");if(t.useDepths&&!u)throw new Ia.default("must pass parent depths");return nQ(s,a,t[a],c,0,l,u)},o}i(B_t,"template");function nQ(t,e,r,n,s,o,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,o&&[u.blockParams].concat(o),d)}return i(c,"prog"),c=y0e(r,c,t,a,n,o),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}i(nQ,"wrapProgram");function R_t(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=sQ(r.partials,t)):r.name==="@partial-block"?t=sQ(r.data,"partial-block"):t=sQ(r.partials,r.name),t}i(R_t,"resolvePartial");function N_t(t,e,r){var n=sQ(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==g0e&&(function(){r.data=Tu.createFrame(r.data);var o=r.fn;s=r.data["partial-block"]=i(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Tu.createFrame(l.data),l.data["partial-block"]=n,o(c,l)},"partialBlockWrapper"),o.partials&&(r.partials=qm.extend({},r.partials,o.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ia.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(N_t,"invokePartial");function g0e(){return""}i(g0e,"noop");function sQ(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(sQ,"lookupOwnProperty");function T_t(t,e){return(!e||!("root"in e))&&(e=e?Tu.createFrame(e):{},e.root=t),e}i(T_t,"initData");function y0e(t,e,r,n,s,o){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,o,n),qm.extend(e,a)}return e}i(y0e,"executeDecorators");function A0e(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=P_t(s,r)})}i(A0e,"addHelpers");function P_t(t,e){var r=e.lookupProperty;return x_t.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(P_t,"passLookupPropertyOption")});var Cj=S((oQ,C0e)=>{"use strict";oQ.__esModule=!0;oQ.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};C0e.exports=oQ.default});var b0e=S((iQ,x0e)=>{"use strict";iQ.__esModule=!0;function Sj(t){return t&&t.__esModule?t:{default:t}}i(Sj,"_interopRequireDefault");function wj(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(wj,"_interopRequireWildcard");var __t=tQ(),I0e=wj(__t),v_t=f0e(),Q_t=Sj(v_t),D_ Line truncated
`+this.lexer.showPosition()+`
Expecting `+U.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ut="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(ut,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:E,expected:U})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(_[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[1]),b=null,N?(b=N,N=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(ne=this.productions_[_[1]][1],ae.$=c[c.length-ne],ae._$={first_line:l[l.length-(ne||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ne||1)].first_column,last_column:l[l.length-1].last_column},C&&(ae._$.range=[l[l.length-(ne||1)].range[0],l[l.length-1].range[1]]),Ce=this.performAction.call(ae,d,m,p,this.yy,_[1],c,l),typeof Ce<"u")return Ce;ne&&(a=a.slice(0,-1*ne*2),c=c.slice(0,-1*ne),l=l.slice(0,-1*ne)),a.push(this.productions_[_[1]][0]),c.push(ae.$),l.push(ae._$),Z=u[a[a.length-2]][a[a.length-1]],a.push(Z);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;m<p.length&&(c=this._input.match(this.rules[p[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,m){return a.yytext=a.yytext.substring(p,a.yyleng-m+p)}i(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();Vv.default=mIt;OCe.exports=Vv.default});var FW=I(MW=>{"use strict";MW.__esModule=!0;var fIt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];MW.NODE_TYPES=fIt});var jv=I((Jv,GCe)=>{"use strict";Jv.__esModule=!0;function AIt(t){return t&&t.__esModule?t:{default:t}}i(AIt,"_interopRequireDefault");var hIt=ii(),UW=AIt(hIt),gIt=Ln(),yIt=FW();function Yv(){this.parents=[]}i(Yv,"Visitor");function FCe(t,e){return gIt.indexOf(yIt.NODE_TYPES,e)!==-1||!(e in Yv.prototype)&&typeof t[e]=="function"}i(FCe,"isDispatchable");Yv.prototype={constructor:Yv,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!FCe(this,n.type))throw new UW.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new UW.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!FCe(this,e.type)||!this[e.type])throw new UW.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.tLine truncated
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Gm(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Gm?e:(e=cY(e,this,r),new Gm(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return e=e+"",fwt.test(e)?bIe(e):'"'+e+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=cY(e[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(cY(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};oP.default=BIe});var DIe=I((iP,QIe)=>{"use strict";iP.__esModule=!0;function vIe(t){return t&&t.__esModule?t:{default:t}}i(vIe,"_interopRequireDefault");var NIe=Fv(),ywt=ii(),uY=vIe(ywt),Ewt=Ln(),PIe=RIe(),TIe=vIe(PIe);function ug(t){this.value=t}i(ug,"Literal");function dg(){}i(dg,"JavaScriptCompiler");dg.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=NIe.COMPILER_REVISION,r=NIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Ewt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l<u;l++)a=o[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new uY.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
Expecting `+Be.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:Be})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(v[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(ce=this.productions_[v[1]][1],ke.$=c[c.length-ce],ke._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(ke._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),Qe=this.performAction.call(ke,d,f,p,this.yy,v[1],c,l),typeof Qe<"u")return Qe;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),l=l.slice(0,-1*ce)),a.push(this.productions_[v[1]][0]),c.push(ke.$),l.push(ke._$),Tt=u[a[a.length-2]][a[a.length-1]],a.push(Tt);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),f=0;f<p.length&&(c=this._input.match(this.rules[p[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,f){return a.yytext=a.yytext.substring(p,a.yyleng-f+p)}i(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();cQ.default=U_t;N0e.exports=cQ.default});var Bj=S(bj=>{"use strict";bj.__esModule=!0;var q_t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];bj.NODE_TYPES=q_t});var pQ=S((dQ,Q0e)=>{"use strict";dQ.__esModule=!0;function $_t(t){return t&&t.__esModule?t:{default:t}}i($_t,"_interopRequireDefault");var G_t=Pi(),Rj=$_t(G_t),H_t=Yn(),z_t=Bj();function uQ(){this.parents=[]}i(uQ,"Visitor");function P0e(t,e){return H_t.indexOf(z_t.NODE_TYPES,e)!==-1||!(e in uQ.prototype)&&typeof t[e]=="function"}i(P0e,"isDispatchable");uQ.prototype={constructor:uQ,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!P0e(this,n.type))throw new Rj.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new Rj.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!P0e(this,e.type)||!this[e.type])throw new Rj.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.tLine truncated
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new zm(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof zm?e:(e=Yj(e,this,r),new zm(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return e=e+"",qvt.test(e)?ABe(e):'"'+e+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=Yj(e[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(Yj(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};IQ.default=gBe});var bBe=S((SQ,xBe)=>{"use strict";SQ.__esModule=!0;function IBe(t){return t&&t.__esModule?t:{default:t}}i(IBe,"_interopRequireDefault");var EBe=tQ(),zvt=Pi(),Kj=IBe(zvt),Vvt=Yn(),SBe=yBe(),CBe=IBe(SBe);function wy(t){this.value=t}i(wy,"Literal");function xy(){}i(xy,"JavaScriptCompiler");xy.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=EBe.COMPILER_REVISION,r=EBe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Vvt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l<u;l++)a=o[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Kj.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var p={compiler:this.compilerInfo(),main:d};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var m=this.context,f=m.programs,A=m.decorators;for(l=0,u=f.length;l<u;l++)p[l]=f[l],A[l]&&(p[l+"_d"]=A[l],p.useDecorators=!0);return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),s?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:i(function(){this.lastContext=0,this.source=new TIe.default(this.options.srcName),this.decorators=new TIe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var p={compiler:this.compilerInfo(),main:d};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var f=this.context,m=f.programs,h=f.decorators;for(l=0,u=m.length;l<u;l++)p[l]=m[l],h[l]&&(p[l+"_d"]=h[l],p.useDecorators=!0);return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),s?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:i(function(){this.lastContext=0,this.source=new CBe.default(this.options.srcName),this.decorators=new CBe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(o?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -84,57 +84,60 @@ Expecting `+U.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ut="Parse error o
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,s,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Cwt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var m=a.nameLookup(p,r[d],e);return s?[" && ",m]:[" != null ? ",m," : ",p]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var s=this.popStack(),o=this.setupHelper(e,r),a=[];n&&a.push(o.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",o.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),o=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};ur.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var o="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)o+=" "+t.blockParams[n];o+=" ]",e+=this.pad(o)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};ur.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ur.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ur.prototype.BlockStatement=ur.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};ur.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};ur.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};ur.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ur.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ur.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s<o;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};ur.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ur.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ur.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ur.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ur.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ur.prototype.NullLiteral=function(){return"NULL"};ur.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};ur.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var GIe=I((IIr,qIe)=>{var lP=OIe().default,UIe=MIe();lP.PrintVisitor=UIe.PrintVisitor;lP.print=UIe.print;qIe.exports=lP;function FIe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=lP.compile(n)}i(FIe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=FIe,require.extensions[".hbs"]=FIe)});var ewe=I(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});fP.getProxyUrl=Fwt;fP.checkBypass=ZIe;function Fwt(t){let e=t.protocol==="https:";if(ZIe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new mP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new mP(`http://${r}`)}else return}i(Fwt,"getProxyUrl");function ZIe(t){if(!t.hostname)return!1;let e=t.hostname;if(Uwt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(ZIe,"checkBypass");function Uwt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Uwt,"isLoopbackAddress");var mP=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var rwe=I($t=>{"use strict";var qwt=$t&&$t.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Gwt=$t&&$t.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yP=$t&&$t.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&qwt(r,e,n[s]);return Gwt(r,e), Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,s,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Wvt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var f=a.nameLookup(p,r[d],e);return s?[" && ",f]:[" != null ? ",f," : ",p]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var s=this.popStack(),o=this.setupHelper(e,r),a=[];n&&a.push(o.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",o.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),o=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var o="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)o+=" "+t.blockParams[n];o+=" ]",e+=this.pad(o)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};gr.prototype.BlockStatement=gr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};gr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};gr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s<o;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};gr.prototype.NullLiteral=function(){return"NULL"};gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var QBe=S((CDr,vBe)=>{var bQ=NBe().default,_Be=TBe();bQ.PrintVisitor=_Be.PrintVisitor;bQ.print=_Be.print;vBe.exports=bQ;function PBe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=bQ.compile(n)}i(PBe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=PBe,require.extensions[".hbs"]=PBe)});var WBe=S(PQ=>{"use strict";Object.defineProperty(PQ,"__esModule",{value:!0});PQ.getProxyUrl=pQt;PQ.checkBypass=VBe;function pQt(t){let e=t.protocol==="https:";if(VBe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new TQ(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new TQ(`http://${r}`)}else return}i(pQt,"getProxyUrl");function VBe(t){if(!t.hostname)return!1;let e=t.hostname;if(fQt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(VBe,"checkBypass");function fQt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(fQt,"isLoopbackAddress");var TQ=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var YBe=S(jt=>{"use strict";var mQt=jt&&jt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hQt=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DQ=jt&&jt.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&mQt(r,e,n[s]);return hQt(r,e), Line truncated
versions published after the first week of January 2027
will require node >=${r}. You are running node ${t}.
To continue receiving updates to AWS services, bug fixes,
and security updates please upgrade to node >=${r}.
More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var ZSt,ext,eSe,tSe=g(()=>{ZSt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),ext={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},eSe=i(t=>({applyToStack:i(e=>{e.add(ZSt(),ext)},"applyToStack")}),"getLongPollPlugin")});function Ed(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var rSe=g(()=>{i(Ed,"setCredentialFeature")});var nSe,LY,sSe=g(()=>{nSe=require("node:stream"),LY=i(t=>t?.body instanceof nSe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Ym,Cd,Id,oSe,iSe,BP=g(()=>{Ym=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Cd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Id=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>oSe[f.step]-oSe[m.step]||iSe[f.priority||"normal"]-iSe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(A=>{let h=Ym(A.name,A.aliases);if(h.includes(p)){m=!0;for(let E of h)n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(A=>{if(A.middleware===p){m=!0;for(let h of Ym(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],A={};return t.forEach(E=>{let C={...E,before:[],after:[]};for(let w of Ym(C.name,C.aliases))A[w]=C;m.push(C)}),e.forEach(E=>{let C={...E,before:[],after:[]};for(let w of Ym(C.name,C.aliases))A[w]=C;f.push(C)}),f.forEach(E=>{if(E.toMiddleware){let C=A[E.toMiddleware];if(C===void 0){if(p)return;throw new Error(`${E.toMiddleware} is not found when adding ${Cd(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&C.after.push(E),E.relation==="before"&&C.before.push(E)}}),s(m).map(l).reduce((E,C)=>(E.push(...C),E),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:A,aliases:h}=m,E={step:"initialize",priority:"normal",middleware:p,...m},C=Ym(f,h);if(C.length>0){if(C.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Cd(f,h)}'`);for(let w of C){let x=t.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=t[x];if(b.step!==E.step||E.priority!==b.priority)throw new Error(`"${Cd(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${Cd(f,h)}" middleware with ${E.priority} priority in ${E.step} step.`);t.splice(x,1)}}for(let w of C)n.add(w)}t.push(E)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:A,aliases:h}=m,E={middleware:p,...m},C=Ym(f,h);if(C.length>0){if(C.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Cd(f,h)}'`);for(let w of C){let x=e.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==E.toMiddleware||b.relation!==E.relation)throw new Error(`"${Cd(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${Cd(f,h)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);e.splice(x,1)}}for(let w of C)n.add(w)}e.push(E)},"addRelativeTo"),clone:i(()=>c(Id()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(A=>{let{tags:h,name:E,aliases:C}=A;if(h&&h.includes(p)){let w=Ym(E,C);for(let x of w)n.delete(x);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Id());return m.use(p),m.identifyOnResolve(r||m.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),m},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let m=p.step??p.relation+" "+p.toMiddleware;return Cd(p.name,p.aliases)+" - "+m}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,m)=>{for(let f of u().map(A=>A.middleware).reverse())p=f(p,m);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),oSe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},iSe={high:3,normal:2,low:1}});var Rc=I(Ki=>{var OY;(function(t){t.HEADER="header",t.QUERY="query"})(OY||(OY={}));var MY;(function(t){t.HEADER="header",t.QUERY="query"})(MY||(MY={}));var FY;(function(t){t.HTTP="http",t.HTTPS="https"})(FY||(FY={}));var gw;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(gw||(gw={}));var txt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i( Line truncated
`+m}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(m):r.logger?.warn?.(m)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(nn.isInstance(s)){let{headers:f={},statusCode:A}=s,h=Object.entries(f);p.$metadata={httpStatusCode:A,requestId:YY(/^x-[\w-]+-request-?id$/,h),extendedRequestId:YY(/^x-[\w-]+-id-2$/,h),cfId:YY(/^x-[\w-]+-cf-id$/,h)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),YY=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var PSe,_Se=g(()=>{St();TP();PSe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=Rt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>xo(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Ig(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function Nc(t){return{applyToStack:i(e=>{e.add(PSe(t),jY),e.add(TSe(t),JY),t.protocol.setSerdeContext(t)},"applyToStack")}}var JY,jY,QSe=g(()=>{vSe();_Se();JY={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},jY={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Nc,"getSchemaSerdePlugin")});var dr,wd=g(()=>{dr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Cw,DSe,kSe=g(()=>{wd();Cw=class t extends dr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},DSe=i((t,e,r,n)=>dr.assign(new Cw,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var Iw,LSe,OSe=g(()=>{wd();Iw=class t extends dr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},LSe=i((t,e,r,n,s)=>dr.assign(new Iw,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var ww,MSe,FSe=g(()=>{wd();ww=class t extends dr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},MSe=i((t,e,r,n,s)=>dr.assign(new ww,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var Jm,USe,KY=g(()=>{wd();Jm=class t extends dr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},USe=i((t,e,r,n,s)=>dr.assign(new Jm,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Sw,qSe,GSe=g(()=>{wd();KY();Sw=class t extends Jm{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},qSe=i((t,e,r,n,s,o)=>dr.assign(new Sw,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function Zi(t){if(typeof t=="object")return t;if(t=t|0,xw[t])return xw[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return xw[t]=e}var xw,XY=g(()=>{xw=[];i(Zi,"translateTraits")});function Bw(t,e){if(t instanceof X)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=X;return new r(t,e)}var bw,Rw,Nw,X,ZY,e8,HSe=g(()=>{WY();XY();bw={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Rw=[],Nw={},X=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;ZY(s);)n.push(s[1]),s=s[0],o=di(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,Zi(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=di(o),e8(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Rw[e])return Rw[e]}else if(typeof e=="string"){if(Nw[e])return Nw[e]}else if(r&&e[bw.ns])return e[bw.ns];let n=di(e);if(n instanceof t)return n;if(ZY(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Zi(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[bw.ns]=s:typeof n=="string"?Nw[n]=s:typeof n=="number"?Rw[n]=s:s}g Line truncated
More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var RDt,NDt,jRe,KRe=g(()=>{RDt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),NDt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},jRe=i(t=>({applyToStack:i(e=>{e.add(RDt(),NDt)},"applyToStack")}),"getLongPollPlugin")});function ep(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var XRe=g(()=>{i(ep,"setCredentialFeature")});var ZRe,w5,eNe=g(()=>{ZRe=require("node:stream"),w5=i(t=>t?.body instanceof ZRe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Km,tp,rp,tNe,rNe,GQ=g(()=>{Km=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),tp=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),rp=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>tNe[m.step]-tNe[f.step]||rNe[m.priority||"normal"]-rNe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let A=Km(h.name,h.aliases);if(A.includes(p)){f=!0;for(let y of A)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(h=>{if(h.middleware===p){f=!0;for(let A of Km(h.name,h.aliases))n.delete(A);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByReference"),c=i(p=>(t.forEach(f=>{p.add(f.middleware,{...f})}),e.forEach(f=>{p.addRelativeTo(f.middleware,{...f})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let f=[];return p.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(p),p.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let f=[],m=[],h={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Km(E.name,E.aliases))h[I]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Km(E.name,E.aliases))h[I]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=h[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${tp(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&E.after.push(y),y.relation==="before"&&E.before.push(y)}}),s(f).map(l).reduce((y,E)=>(y.push(...E),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:h,aliases:A}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=Km(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${tp(m,A)}'`);for(let I of E){let x=t.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${tp(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${tp(m,A)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let I of E)n.add(I)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:A}=f,y={middleware:p,...f},E=Km(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${tp(m,A)}'`);for(let I of E){let x=e.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${tp(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${tp(m,A)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of E)n.add(I)}e.push(y)},"addRelativeTo"),clone:i(()=>c(rp()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let f=!1,m=i(h=>{let{tags:A,name:y,aliases:E}=h;if(A&&A.includes(p)){let I=Km(y,E);for(let x of I)n.delete(x);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(rp());return f.use(p),f.identifyOnResolve(r||f.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),f},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let f=p.step??p.relation+" "+p.toMiddleware;return tp(p.name,p.aliases)+" - "+f}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,f)=>{for(let m of u().map(h=>h.middleware).reverse())p=m(p,f);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),tNe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},rNe={high:3,normal:2,low:1}});var Kn=S(wa=>{var x5;(function(t){t.HEADER="header",t.QUERY="query"})(x5||(x5={}));var b5;(function(t){t.HEADER="header",t.QUERY="query"})(b5||(b5={}));var B5;(function(t){t.HTTP="http",t.HTTPS="https"})(B5||(B5={}));var mx;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(mx||(mx={}));var TDt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i( Line truncated
`+f}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(f):r.logger?.warn?.(f)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(fn.isInstance(s)){let{headers:m={},statusCode:h}=s,A=Object.entries(m);p.$metadata={httpStatusCode:h,requestId:O5(/^x-[\w-]+-request-?id$/,A),extendedRequestId:O5(/^x-[\w-]+-id-2$/,A),cfId:O5(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),O5=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var RNe,NNe=g(()=>{_e();VQ();RNe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=vt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>$o(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Dy(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function el(t){return{applyToStack:i(e=>{e.add(RNe(t),M5),e.add(bNe(t),L5),t.protocol.setSerdeContext(t)},"applyToStack")}}var L5,M5,TNe=g(()=>{BNe();NNe();L5={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},M5={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(el,"getSchemaSerdePlugin")});var yr,np=g(()=>{yr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var gx,PNe,_Ne=g(()=>{np();gx=class t extends yr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},PNe=i((t,e,r,n)=>yr.assign(new gx,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var yx,vNe,QNe=g(()=>{np();yx=class t extends yr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},vNe=i((t,e,r,n,s)=>yr.assign(new yx,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var Ex,DNe,kNe=g(()=>{np();Ex=class t extends yr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},DNe=i((t,e,r,n,s)=>yr.assign(new Ex,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var Xm,ONe,F5=g(()=>{np();Xm=class t extends yr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},ONe=i((t,e,r,n,s)=>yr.assign(new Xm,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Cx,LNe,MNe=g(()=>{np();F5();Cx=class t extends Xm{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},LNe=i((t,e,r,n,s,o)=>yr.assign(new Cx,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function ba(t){if(typeof t=="object")return t;if(t=t|0,Ix[t])return Ix[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Ix[t]=e}var Ix,U5=g(()=>{Ix=[];i(ba,"translateTraits")});function wx(t,e){if(t instanceof O)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=O;return new r(t,e)}var Sx,xx,bx,O,q5,$5,FNe=g(()=>{k5();U5();Sx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},xx=[],bx={},O=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;q5(s);)n.push(s[1]),s=s[0],o=ki(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,ba(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=ki(o),$5(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(xx[e])return xx[e]}else if(typeof e=="string"){if(bx[e])return bx[e]}else if(r&&e[Sx.ns])return e[Sx.ns];let n=ki(e);if(n instanceof t)return n;if(q5(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),ba(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[Sx.ns]=s:typeof n=="string"?bx[n]=s:typeof n=="number"?xx[n]=s:s}getSchema(){let e=this.schema;return Array.isArra Line truncated
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),Ng={warn:console.warn}});function ra(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${Cxt[n]}, ${l} ${y8[r]} ${e} ${u}:${d}:${p} GMT`}var Cxt,y8,Ixt,Hxe,wxt,VP,Sxt,xxt,bxt,Pg,WP,Pw,Bxt,Rxt,Nxt,g8,Txt,vxt,Pxt,Dc,_xt,Qxt,vg,$xe=g(()=>{h8();Cxt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],y8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(ra,"dateToUtcString");Ixt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Hxe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Ixt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=bd(vg(n)),p=Dc(s,"month",1,12),m=Dc(o,"day",1,31);return Pw(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),wxt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),VP=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=wxt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=bd(vg(n)),m=Dc(s,"month",1,12),f=Dc(o,"day",1,31),A=Pw(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&A.setTime(A.getTime()-Qxt(d)),A},"parseRfc3339DateTimeWithOffset"),Sxt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xxt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),bxt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Pg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Sxt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Pw(bd(vg(o)),g8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=xxt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Nxt(Pw(Bxt(o),g8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=bxt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Pw(bd(vg(u)),g8(n),Dc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),WP=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=vw(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),Pw=i((t,e,r,n)=>{let s=e-1;return vxt(t,s,r),new Date(Date.UTC(t,s,r,Dc(n.hours,"hour",0,23),Dc(n.minutes,"minute",0,59),Dc(n.seconds,"seconds",0,60),_xt(n.fractionalMilliseconds)))},"buildDate"),Bxt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+bd(vg(t));return r<e?r+100:r},"parseTwoDigitYear"),Rxt=50*365*24*60*60*1e3,Nxt=i(t=>t.getTime()-new Date().getTime()>Rxt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),g8=i(t=>{let e=y8.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),Txt=[31,28,31,30,31,30,31,31,30,31,30,31],vxt=i((t,e,r)=>{let n=Txt[e];if(e===1&&Pxt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${y8[e]} in ${t}: ${r}`)},"validateDayOfMonth"),Pxt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Dc=i((t,e,r,n)=>{let s=zP(vg(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),_xt=i(t=>t==null?0:HP("0."+t)*1e3,"parseMilliseconds"),Qxt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),vg=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var Un,zxe=g(()=>{Un=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Un.from=t=>t&&typeof t=="object"&&(t instanceof Un||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.p Line truncated
`+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(nn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:b8(/^x-[\w-]+-request-?id$/,u),extendedRequestId:b8(/^x-[\w-]+-id-2$/,u),cfId:b8(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),b8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Bo,Qw=g(()=>{Bo=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Bd,t_=g(()=>{Qw();Bd=class t extends Bo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var r_,rbe=g(()=>{Qw();r_=class t extends Bo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var n_,R8=g(()=>{Qw();n_=i((...t)=>async()=>{if(t.length===0)throw new Bo("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var s_,N8=g(()=>{s_=i(t=>()=>Promise.resolve(t),"fromValue")});var Dg,o_=g(()=>{Dg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var sn,i_=g(()=>{sn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var nbe,sbe=g(()=>{nbe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var kr,a_=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(kr||(kr={}))});var obe,ibe,T8,Fxt,Oc,kg=g(()=>{obe=require("node:os"),ibe=require("node:path"),T8={},Fxt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Oc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${ibe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=Fxt();return T8[s]||(T8[s]=(0,obe.homedir)()),T8[s]},"getHomeDir")});var v8,P8,c_,_8=g(()=>{v8="AWS_PROFILE",P8="default",c_=i(t=>t.profile||process.env[v8]||P8,"getProfileName")});var abe,cbe,l_,Q8=g(()=>{abe=require("node:crypto"),cbe=require("node:path");kg();l_=i(t=>{let r=(0,abe.createHash)("sha1").update(t).digest("hex");return(0,cbe.join)(Oc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var lbe,Dw,ube,D8=g(()=>{lbe=require("node:fs/promises");Q8();Dw={},ube=i(async t=>{if(Dw[t])return Dw[t];let e=l_(t),r=await(0,lbe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Mc,dbe=g(()=>{Mc="."});var k8,pbe,mbe=g(()=>{k8=R(Rc()),pbe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(k8.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===k8.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var fbe,Uxt,u_,L8=g(()=>{fbe=require("node:path");kg();Uxt="AWS_CONFIG_FILE",u_=i(()=>process.env[Uxt]||(0,fbe.join)(Oc(),".aws","config"),"getConfigFilepath")});var Abe,qxt,hbe,gbe=g(()=>{Abe=require("node:path");kg();qxt="AWS_SHARED_CREDENTIALS_FILE",hbe=i(()=>process.env[qxt]||(0,Abe.join)(Oc(),".aws","credentials"),"getCredentialsFilepath")});var ybe,Gxt,Hxt,kw,O8=g(()=>{ybe=R(Rc()),Gxt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Hxt=["__proto__","profile __proto__"],kw=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=Gxt.exec(c);if(l){let[,u,,d]=l;Object.values(ybe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(Hxt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var Ebe,M8,Lw,Zm,Ow=g(()=>{Ebe=require("node:fs/promises"),M8={},Lw={},Zm=i((t,e)=>Lw[t]!==void 0?Lw[t]:((!M8[t]||e?.ignoreCache)&&(M8[t]=(0,Ebe.readFile)(t,"utf8")),M8[t]),"readFile")});var F Line truncated
`),c){let f=r(await l);d.enqueue(`${o}:${f}\r
`),"stackTraceWarning"),Fy={warn:console.warn}});function Ho(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${JDt[n]}, ${l} ${a6[r]} ${e} ${u}:${d}:${p} GMT`}var JDt,a6,YDt,FTe,jDt,$y,KDt,XDt,ZDt,cp,Gy,Nx,ekt,tkt,rkt,i6,nkt,skt,okt,il,ikt,akt,qy,UTe=g(()=>{o6();JDt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Ho,"dateToUtcString");YDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),FTe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=YDt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=ap(qy(n)),p=il(s,"month",1,12),f=il(o,"day",1,31);return Nx(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),jDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),$y=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=jDt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=ap(qy(n)),f=il(s,"month",1,12),m=il(o,"day",1,31),h=Nx(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-akt(d)),h},"parseRfc3339DateTimeWithOffset"),KDt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),XDt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ZDt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),cp=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=KDt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Nx(ap(qy(o)),i6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=XDt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return rkt(Nx(ekt(o),i6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=ZDt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Nx(ap(qy(u)),i6(n),il(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Gy=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Rx(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),Nx=i((t,e,r,n)=>{let s=e-1;return skt(t,s,r),new Date(Date.UTC(t,s,r,il(n.hours,"hour",0,23),il(n.minutes,"minute",0,59),il(n.seconds,"seconds",0,60),ikt(n.fractionalMilliseconds)))},"buildDate"),ekt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+ap(qy(t));return r<e?r+100:r},"parseTwoDigitYear"),tkt=50*365*24*60*60*1e3,rkt=i(t=>t.getTime()-new Date().getTime()>tkt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),i6=i(t=>{let e=a6.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),nkt=[31,28,31,30,31,30,31,31,30,31,30,31],skt=i((t,e,r)=>{let n=nkt[e];if(e===1&&okt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${a6[e]} in ${t}: ${r}`)},"validateDayOfMonth"),okt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),il=i((t,e,r,n)=>{let s=cD(qy(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),ikt=i(t=>t==null?0:iD("0."+t)*1e3,"parseMilliseconds"),akt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),qy=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var Ur,qTe=g(()=>{Ur=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Ur.from=t=>t&&typeof t=="object"&&(t instanceof Ur||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.p Line truncated
`+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(fn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:m6(/^x-[\w-]+-request-?id$/,u),extendedRequestId:m6(/^x-[\w-]+-id-2$/,u),cfId:m6(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),m6=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var zo,Px=g(()=>{zo=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var up,AD=g(()=>{Px();up=class t extends zo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var gD,XTe=g(()=>{Px();gD=class t extends zo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var yD,A6=g(()=>{Px();yD=i((...t)=>async()=>{if(t.length===0)throw new zo("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var ED,g6=g(()=>{ED=i(t=>()=>Promise.resolve(t),"fromValue")});var Vy,CD=g(()=>{Vy=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var mn,ID=g(()=>{mn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var ZTe,ePe=g(()=>{ZTe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var qr,SD=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(qr||(qr={}))});var tPe,rPe,y6,fkt,ll,Wy=g(()=>{tPe=require("node:os"),rPe=require("node:path"),y6={},fkt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),ll=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${rPe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=fkt();return y6[s]||(y6[s]=(0,tPe.homedir)()),y6[s]},"getHomeDir")});var E6,C6,wD,I6=g(()=>{E6="AWS_PROFILE",C6="default",wD=i(t=>t.profile||process.env[E6]||C6,"getProfileName")});var nPe,sPe,xD,S6=g(()=>{nPe=require("node:crypto"),sPe=require("node:path");Wy();xD=i(t=>{let r=(0,nPe.createHash)("sha1").update(t).digest("hex");return(0,sPe.join)(ll(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var oPe,_x,iPe,w6=g(()=>{oPe=require("node:fs/promises");S6();_x={},iPe=i(async t=>{if(_x[t])return _x[t];let e=xD(t),r=await(0,oPe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var ul,aPe=g(()=>{ul="."});var x6,cPe,lPe=g(()=>{x6=R(Kn()),cPe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(x6.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===x6.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var uPe,mkt,bD,b6=g(()=>{uPe=require("node:path");Wy();mkt="AWS_CONFIG_FILE",bD=i(()=>process.env[mkt]||(0,uPe.join)(ll(),".aws","config"),"getConfigFilepath")});var dPe,hkt,pPe,fPe=g(()=>{dPe=require("node:path");Wy();hkt="AWS_SHARED_CREDENTIALS_FILE",pPe=i(()=>process.env[hkt]||(0,dPe.join)(ll(),".aws","credentials"),"getCredentialsFilepath")});var mPe,Akt,gkt,vx,B6=g(()=>{mPe=R(Kn()),Akt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,gkt=["__proto__","profile __proto__"],vx=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=Akt.exec(c);if(l){let[,u,,d]=l;Object.values(mPe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(gkt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var hPe,R6,Qx,rh,Dx=g(()=>{hPe=require("node:fs/promises"),R6={},Qx={},rh=i((t,e)=>Qx[t]!==void 0?Qx[t]:((!R6[t]||e?.ignoreCache)&&(R6[t]=(0,hPe.readFile)(t,"utf8")),R6[t]),"readFile")});var N Line truncated
`),c){let m=r(await l);d.enqueue(`${o}:${m}\r
`),d.enqueue(`\r
`)}d.close()}else d.enqueue(`${(n(p)||0).toString(16)}\r
${p}\r
`)}})},"getAwsChunkedEncodingStream")});function VBe(t,e){let r=t,n=t;if(Wr(n))return HBe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0,p=new zBe.Readable({read:i(()=>{},"read")});return r.on("data",m=>{let f=o(m)||0;f!==0&&(p.push(`${f.toString(16)}\r
`),p.push(m),p.push(`\r
`))}),r.on("end",async()=>{if(p.push(`0\r
`),u){let m=s(await d);p.push(`${c}:${m}\r
`)}})},"getAwsChunkedEncodingStream")});function $ve(t,e){let r=t,n=t;if(en(n))return Fve(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0;Promise.resolve(d).catch(()=>{});let p=new qve.Readable({read(){r.resume()}});return r.on("data",f=>{let m=o(f)||0;m!==0&&(p.push(`${m.toString(16)}\r
`),p.push(f),p.push(`\r
`)||r.pause())}),r.on("error",f=>{p.destroy(f)}),r.pause(),r.on("end",async()=>{try{if(p.push(`0\r
`),u){let f=s(await d);p.push(`${c}:${f}\r
`),p.push(`\r
`)}p.push(null)}),p}var zBe,WBe=g(()=>{zBe=require("node:stream");$Be();na();i(VBe,"getAwsChunkedEncodingStream")});async function YBe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var JBe=g(()=>{i(YBe,"headStream")});var jBe,KBe,PJ,XBe=g(()=>{jBe=require("node:stream");_w();JBe();na();KBe=i((t,e)=>Wr(t)?YBe(t,e):new Promise((r,n)=>{let s=new PJ;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Lc(this.buffers);r(o)})}),"headStream"),PJ=class extends jBe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var ZBe,eRe=g(()=>{ZBe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});async function _J(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function QJ(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return Lc(e,n)}var tRe,DJ=g(()=>{_w();na();tRe=i(async t=>Rd(t)?_J(t):QJ(t),"streamCollector");i(_J,"collectBlob");i(QJ,"collectReadableStream")});var rRe,sRe,nRe,oRe=g(()=>{RJ();S8();eRe();DJ();na();rRe="The stream has already been transformed.",sRe=i(t=>{if(!nRe(t)&&!Wr(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(rRe);return e=!0,await tRe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return L_(o);if(s==="hex")return mi(o);if(s===void 0||s==="utf8"||s==="utf-8")return ZBe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(rRe);if(e=!0,nRe(t))return n(t);if(Wr(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),nRe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var iRe,M_,kJ,LJ=g(()=>{iRe=require("node:stream");_w();DJ();na();M_=i(t=>Rd(t)?_J(t):Wr(t)?QJ(t):new Promise((e,r)=>{let n=new kJ,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Lc(this.bufferedBytes);e(o)})}),"streamCollector"),kJ=class extends iRe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var F_,aRe,U_,cRe=g(()=>{F_=require("node:stream");xd();oRe();LJ();aRe="The stream has already been transformed.",U_=i(t=>{if(!(t instanceof F_.Readable))try{return sRe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(aRe);return e=!0,await M_(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?ta(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(aRe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof F_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,F_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function lRe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var uRe=g(()=>{i(lRe,"splitStream")});async function dRe(t){if(Wr(t)||Rd(t))return lRe(t);let e=new OJ.PassThrough,r=new OJ.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var OJ,pRe=g(()=>{OJ=require("node:stream");uRe();na();i(dRe,"splitStream")});var Hg={};Or(Hg,{ChecksumStream:()=>qg,Hash:()=>Q_,LazyJsonString:()=>Un,NumericValue:()=>xt,Uint8ArrayBlobAdapter:()=>rf,_parseEpochTimestamp:()=>Xm,_parseRfc3339DateTimeWithOffset:()=>JP,_parseRfc7231DateTime:()=>jP,calculateBodyLength:()=>kc,concatBytes:()=>Lc,copyDocumentWithTransform:()=>Txe,createBufferedReadable:()=>qBe,createChecksumStream:()=>LBe,dateToUtcString:()=>ra,deserializerMiddleware:()=>e_,deserializerMiddlewareOption:()=>SJ,expectBoolean:()=>_xe,expectByte:()=>UP,expectFloat32:()=>Tw,expectInt:()=>Qxe,expectInt32:()=>MP,expectLong:()=>Rg,expectNonNull:()=>Dxe,expectNumber:()=>Bg,expectObject:()=>f8,expectShort:()=>FP,expectString:()=>kxe,expectUnion:()=>GP,fromArrayBuffer:()=>ta,fromBase64:()=>br,fromHex:()=>ZP,fromString:()=>Sd,fromUtf8:()=>Vr,generateIdempotencyToken:()=>sa,getAwsChunkedEncodingStream:()=>VBe,getSerdePlugin:()=>wBe,handleFloat:()=>Oxe,headStream:()=>KBe,isArrayBuffer:()=>kP,isBlob:()=>Rd,isReadableStream:()=>Wr,limitedParseDouble:()=>$P,limitedParseFloat:()=>Mxe,limitedParseFloat32:()=>Fxe,logger:()=>Ng,nv:()=>XP,parseBoolean:()=>Pxe,parseEpochTimestamp:()=>WP,parseRfc3339DateTime:()=>Hxe,parseRfc3339DateTimeWithOffset:()=>VP,parseRfc7231DateTime:()=>Pg,quoteHeader:()=>YP,sdkStreamMixin:()=>U_,serializerMiddleware:()=>__,serializerMiddlewareOption:()=>xJ,splitEvery:()=>KP,splitHeader:()=>_g,splitStream:()=>dRe,streamCollector:()=>M_,strictParseByte:()=>zP,strictParseDouble:()=>vw,strictParseFloat:()=>Lxe,strictParseFloat32:()=>HP,strictParseInt:()=>qxe,strictParseInt32:()=>Gxe,strictParseLong:()=>A8,strictParseShort:()=>bd,toBase64:()=>Kt,toHex:()=>mi,toUint8Array:()=>ms,toUtf8:()=>Br,v4:()=>Gg});var mRe,rf,lbt,Gg,sa,_e=g(()=>{mRe=require("node:crypto");Sxe();p8();bxe();LP();Bxe();Nxe();vxe();$xe();zxe();h8();Vxe();Jxe();jxe();Kxe();Zxe();S8();tbe();x8();_w();xd();d8();B8();SBe();wJ();bBe();bJ();OBe();GBe();WBe();XBe();cRe();pRe();na();LJ();rf=class extends xxe(Br,Vr,Kt,br){static{i(this,"Uint8ArrayBlobAdapter")}},lbt=mRe.getRandomValues,Gg=Rxe(lbt),sa=Gg});var In,q_=g(()=>{_e();In=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return rf.mutate(t);if(!t)return rf.mutate(new Uint8Array);let r=e.streamCollector(t);return rf.mutate(await r)},"collectBody")});function oa(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var G_=g(()=>{i(oa,"extendedEncodeURIComponent" Line truncated
`));return r(s)},"httpAuthSchemeMiddleware")});var wQ,la,MNe=g(()=>{IQ();wQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},la=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(cf(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),wQ)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var SQ,U5,FNe=g(()=>{IQ();SQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},U5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(cf(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),SQ)},"applyToStack")}),"getHttpAuthSchemePlugin")});var UNe=g(()=>{IQ();MNe();FNe()});var Wbt,Ybt,eS,q5=g(()=>{xe();St();Wbt=i(t=>e=>{throw e},"defaultErrorHandler"),Ybt=i((t,e)=>{},"defaultSuccessHandler"),eS=i(t=>(e,r)=>async n=>{if(!$e.isInstance(n.request))return e(n);let o=Rt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||Wbt)(a));return(l.successHandler||Ybt)(u.response,a),u},"httpSigningMiddleware")});var xQ,ua,qNe=g(()=>{q5();xQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ua=i(t=>({applyToStack:i(e=>{e.addRelativeTo(eS(t),xQ)},"applyToStack")}),"getHttpSigningPlugin")});var GNe=g(()=>{q5();qNe()});var yi,HNe=g(()=>{yi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function $Ne(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)m=await Jbt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield m;let f=d;d=jbt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}return void 0},"paginateOperation")}var Jbt,jbt,zNe=g(()=>{Jbt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i($Ne,"createPaginator");jbt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function VNe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var WNe=g(()=>{i(VNe,"setFeature")});var _o,YNe=g(()=>{_o=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var G5,ay,JNe=g(()=>{xe();G5=R(Rc()),ay=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=$e.clone(e);if(n.in===G5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===G5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var cy,jNe=g(()=>{xe();cy=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=$e.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var Gn,KNe=g(()=>{Gn=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var XNe=g(()=>{JNe();jNe();KNe()});var bQ,BQ,tS,ly,rS,ZNe=g(()=>{bQ=i(t=>i(function(r){return ly(r)&&r.expiration.getTime()-Date.now()<t},"isIdentityExpired"),"createIsIdentityExpiredFunction"),BQ=3e5,tS=bQ(BQ),ly=i(t=>t.expiration!==void 0,"doesIdentityRequireRefresh"),rS=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var eTe=g(()=>{YNe();XNe();ZNe()});var H5={};Or(H5,{DefaultIdenti Line truncated
`)}p.push(null)}catch(f){p.destroy(f)}}),p}var qve,Gve=g(()=>{qve=require("node:stream");Uve();Na();i($ve,"getAwsChunkedEncodingStream")});async function Hve(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var zve=g(()=>{i(Hve,"headStream")});var Vve,Wve,C9,Jve=g(()=>{Vve=require("node:stream");Tx();zve();Na();Wve=i((t,e)=>en(t)?Hve(t,e):new Promise((r,n)=>{let s=new C9;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=cl(this.buffers);r(o)})}),"headStream"),C9=class extends Vve.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var Yve,jve=g(()=>{Yve=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});async function I9(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function S9(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return cl(e,n)}var Kve,w9=g(()=>{Tx();Na();Kve=i(async t=>dp(t)?I9(t):S9(t),"streamCollector");i(I9,"collectBlob");i(S9,"collectReadableStream")});var Xve,eQe,Zve,tQe=g(()=>{A9();p6();jve();w9();Na();Xve="The stream has already been transformed.",eQe=i(t=>{if(!Zve(t)&&!en(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(Xve);return e=!0,await Kve(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return KD(o);if(s==="hex")return Li(o);if(s===void 0||s==="utf8"||s==="utf-8")return Yve(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(Xve);if(e=!0,Zve(t))return n(t);if(en(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),Zve=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var rQe,ZD,x9,b9=g(()=>{rQe=require("node:stream");Tx();w9();Na();ZD=i(t=>dp(t)?I9(t):en(t)?S9(t):new Promise((e,r)=>{let n=new x9,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=cl(this.bufferedBytes);e(o)})}),"streamCollector"),x9=class extends rQe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var ek,nQe,tk,sQe=g(()=>{ek=require("node:stream");ip();tQe();b9();nQe="The stream has already been transformed.",tk=i(t=>{if(!(t instanceof ek.Readable))try{return eQe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(nQe);return e=!0,await ZD(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?Ra(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(nQe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof ek.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,ek.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function oQe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var iQe=g(()=>{i(oQe,"splitStream")});async function aQe(t){if(en(t)||dp(t))return oQe(t);let e=new B9.PassThrough,r=new B9.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var B9,cQe=g(()=>{B9=require("node:stream");iQe();Na();i(aQe,"splitStream")});function qi(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var lQe=g(()=>{i(qi,"writeKey")});var ih={};cr(ih,{ChecksumStream:()=>Zy,Hash:()=>JD,LazyJsonString:()=>Ur,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>oh,_parseEpochTimestamp:()=>lp,_parseRfc3339DateTimeWithOffset:()=>uD,_parseRfc7231DateTime:()=>dD,calculateBodyLength:()=>al,concatBytes:()=>cl,copyDocumentWithTransform:()=>bTe,createBufferedReadable:()=>Lve,createChecksumStream:()=>vve,dateToUtcString:()=>Ho,deserializerMiddleware:()=>hD,deserializerMiddlewareOption:()=>p9,expectBoolean:()=>NTe,expectByte:()=>nD,expectFloat32:()=>Bx,expectInt:()=>TTe,expectInt32:()=>tD,expectLong:()=>My,expectNonNull:()=>PTe,expectNumber:()=>Ly,expectObject:()=>n6,expectShort:()=>rD,expectString:()=>_Te,expectUnion:()=>oD,fromArrayBuffer:()=>Ra,fromBase64:()=>Er,fromHex:()=>mD,fromString:()=>op,fromUtf8:()=>Zr,generateIdempotencyToken:()=>Yo,getAwsChunkedEncodingStream:()=>$ve,getSerdePlugin:()=>yve,handleFloat:()=>QTe,hasOwn:()=>X,headStream:()=>Wve,isArrayBuffer:()=>XQ,isBlob:()=>dp,isReadableStream:()=>en,limitedParseDouble:()=>aD,limitedParseFloat:()=>DTe,limitedParseFloat32:()=>kTe,logger:()=>Fy,nv:()=>fD,parseBoolean:()=>RTe,parseEpochTimestamp:()=>Gy,parseRfc3339DateTime:()=>FTe,parseRfc3339DateTimeWithOffset:()=>$y,parseRfc7231DateTime:()=>cp,quoteHeader:()=>lD,sdkStreamMixin:()=>tk,serializerMiddleware:()=>WD,serializerMiddlewareOption:()=>f9,splitEvery:()=>pD,splitHeader:()=>Hy,splitStream:()=>aQe,streamCollector:()=>ZD,strictParseByte:()=>cD,strictParseDouble:()=>Rx,strictParseFloat:()=>vTe,strictParseFloat32:()=>iD,strictParseInt:()=>LTe,strictParseInt32:()=>MTe,strictParseLong:()=>s6,strictParseShort:()=>ap,toBase64:()=>Qt,toHex:()=>Li,toUint8Array:()=>xs,toUtf8:()=>qt,v4:()=>eE,writeKey:()=>qi});var uQe,oh,Lkt,eE,Yo,xe=g(()=>{uQe=require("node:crypto");ETe();t6();ITe();ZQ();STe();xTe();BTe();UTe();qTe();o6();$Te();zTe();VTe();WTe();YTe();p6();KTe();f6();Tx();ip();e6();h6();Eve();d9();Ive();m9();Qve();Mve();Gve();Jve();sQe();cQe();Na();b9();_e();lQe();oh=class extends CTe(qt,Zr,Qt,Er){static{i(this,"Uint8ArrayBlobAdapter")}},Lkt=uQe.getRandomValues,eE=wTe(Lkt),Yo=eE});var tn,tE=g(()=>{xe();tn=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return oh.mutate(t);if(!t)return oh.mutate(new Uint8Array);let r=e.streamCollector(t);return oh.mutate(await r)},"collectBod Line truncated
`));return r(s)},"httpAuthSchemeMiddleware")});var Vk,Qa,YDe=g(()=>{zk();Vk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Qa=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(fh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Vk)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var Wk,$K,jDe=g(()=>{zk();Wk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},$K=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(fh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Wk)},"applyToStack")}),"getHttpAuthSchemePlugin")});var KDe=g(()=>{zk();YDe();jDe()});var TOt,POt,Zx,GK=g(()=>{Re();_e();TOt=i(t=>e=>{throw e},"defaultErrorHandler"),POt=i((t,e)=>{},"defaultSuccessHandler"),Zx=i(t=>(e,r)=>async n=>{if(!Ye.isInstance(n.request))return e(n);let o=vt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||TOt)(a));return(l.successHandler||POt)(u.response,a),u},"httpSigningMiddleware")});var Jk,Da,XDe=g(()=>{GK();Jk={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Da=i(t=>({applyToStack:i(e=>{e.addRelativeTo(Zx(t),Jk)},"applyToStack")}),"getHttpSigningPlugin")});var ZDe=g(()=>{GK();XDe()});var zi,eke=g(()=>{zi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function tke(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,f;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)f=await _Ot(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=vOt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var _Ot,vOt,rke=g(()=>{_Ot=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(tke,"createPaginator");vOt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function nke(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var ske=g(()=>{i(nke,"setFeature")});var Ko,oke=g(()=>{_e();Ko=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!X(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var HK,NE,ike=g(()=>{Re();HK=R(Kn()),NE=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=Ye.clone(e);if(n.in===HK.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===HK.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var TE,ake=g(()=>{Re();TE=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ye.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var es,cke=g(()=>{es=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var lke=g(()=>{ike();ake();cke()});var Yk,jk,eb,PE,tb,uke=g(()=>{Yk=i(t=>i(function(r){return PE(r)&&r.expiration.getTime()-Date.now()<t},"isIdentityExpired"),"createIsIdentityExpiredFunction"),jk=3e5,eb=Yk(jk),PE=i(t=>t.expiration!==void 0,"doesIdentityRequireRefresh"),tb=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var dke=g(()=>{oke();lke();uke()});var z Line truncated
${this.getCanonicalPath(e)}
${uve(e)}
${wOe(e)}
${s.map(o=>`${o}:${r[o]}`).join(`
`)}
${s.join(";")}
${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(dS(n));let a=await o.digest();return`${s}
${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(ub(n));let a=await o.digest();return`${s}
${e}
${r}
${lf(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return UQ(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=a0t(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},dy={},GQ=[],HQ=i((t,e,r)=>`${t}/${e}/${r}/${wj}`,"createScope"),dve=i(async(t,e,r,n,s)=>{let o=await WTe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${lf(o)}:${e.sessionToken}`;if(a in dy)return dy[a];for(GQ.push(a);GQ.length>cve;)delete dy[GQ.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,wj])c=await WTe(t,c,l);return dy[a]=c},"getSigningKey"),l0t=i(()=>{GQ.length=0,Object.keys(dy).forEach(t=>{delete dy[t]})},"clearCredentialCache"),WTe=i((t,e,r)=>{let n=new t(e);return n.update(dS(r)),n.digest()},"hmac"),fj=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in nve||e?.has(o)||sve.test(o)||ove.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},"getCanonicalHeaders"),$Q=i(async({headers:t,body:e},r)=>{for(let n of Object.keys(t))if(n.toLowerCase()===zQ)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||t0t(e)){let n=new r;return n.update(dS(e)),lf(await n.digest())}return ave},"getPayloadHash"),pve=i((t,e)=>{t=t.toLowerCase();for(let r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},"hasHeader"),mve=i((t,e={})=>{let{headers:r,query:n={}}=YTe.clone(t);for(let s of Object.keys(r)){let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),Aj=i(t=>{t=YTe.clone(t);for(let e of Object.keys(t.headers))eve.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),hj=class extends VQ{static{i(this,"SignatureV4")}headerFormatter=new pj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let m=u??await this.regionProvider(),{longDate:f,shortDate:A}=this.formatDate(n);if(s>lve)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let h=HQ(A,m,d??this.service),E=mve(Aj(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(E.query[Ej]=p.sessionToken),E.query[JTe]=qQ,E.query[jTe]=`${p.accessKeyId}/${h}`,E.query[gj]=f,E.query[XTe]=s.toString(10);let C=fj(E,o,c);return E.query[KTe]=this.getCanonicalHeaderList(C),E.query[yj]=await this.getSignature(f,h,this.getSigningKey(p,m,A,d),this.createCanonicalRequest(E,C,await $Q(e,this.sha256))),E}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=HQ(u,l,a??this.service),m=await $Q({headers:{},body:r},this.sha256),f=new this.sha256;f.update(e);let A=lf(await f.digest()),h=[ive,d,p,s,A,m].join(`
`);return this.signString(h,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(dS(e)),lf(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=Aj(e),{longDate:d,shortDate:p}=this.formatDate(r),m=HQ(p,l,a??this.service);u.headers[Ij]=d,c.sessionToken&&(u.headers[rve]=c.sessionToken);let f=await $Q(u,this.sha256);!pve(zQ,u.headers)&&this.applyChecksum&&(u.headers[zQ]=f);let A=fj(u,s,n),h=await this.getSignature(d,m,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,A,f));return u.headers[Cj]=`${qQ} Credential=${c.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${h}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,qQ),a=new this.sha256(await n);return a.update(dS(o)),lf(await a.digest())}getSigningKey(e,r,n,s){return dve(this.sha256,e,n,r,s||this.service)}},u0t={SignatureV4a:null};Ge.ALGORITHM_IDENTIFIER=qQ;Ge.ALGORITHM_IDENTIFIER_V4A=i0t;Ge.ALGORITHM_QUERY_PARAM=JTe;Ge.ALWAYS_UNSIGNABLE_HEADERS=nve;Ge.AMZ_DATE_HEADER=Ij;Ge.AMZ_DATE_QUERY_PARAM=gj;Ge.AUTH_HEADER=Cj;Ge.CREDENTIAL_QUERY_PARAM=jTe;Ge.DATE_HEADER=ZTe;Ge.EVENT_ALGORITHM_IDENTIFIER=ive;Ge.EXPIRES_QUERY_PARAM=XTe;Ge.GENERATED_HEADERS=eve;Ge.HOST_HEADER=s0t;Ge.KEY_TYPE_IDENTIFIER=wj;Ge.MAX_CACHE_SIZE=cve;Ge.MAX_PRESIGNED_TTL=lve;Ge.PROXY_HEADER_PATTERN=sve;Ge.REGION_SET_PARAM=n0t;Ge.SEC_HEADER_PATTERN=ove;Ge.SHA256_HEADER=zQ;Ge.SIGNATURE_HEADER=tve;Ge.SIGNATURE_QUERY_PARAM=yj;Ge.SIGNED_HEADERS_QUERY_PARAM=KTe;Ge.SignatureV4=hj;Ge.SignatureV4Base=VQ;Ge.TOKEN_HEADER=rve;Ge.TOKEN_QUERY_PARAM=Ej;Ge.UNSIGNABLE_PATTERNS=o0t;Ge.UNSIGNED_PAYLOAD=ave;Ge.clearCredentialCache=l0t;Ge.createScope=HQ;Ge.getCanonicalHeaders=fj;Ge.getCanonicalQuery=uve;Ge.getPayloadHash=$Q;Ge.getSigningKey=dve;Ge.hasHeader=pve;Ge.moveHeadersToQuery=mve;Ge.prepareRequest=Aj;Ge.signatureV4aContainer=u0t});function d0t(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=rS(e,tS,ly):r?n=yi(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function p0t(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var xj,bj,fve=g(()=>{ht();As();xj=R(Sj()),bj=i(t=>e=>{let r=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;let p=d0t(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),m=p0t(e,p);if(n&&!m.attributed){let f=typeof r=="object"&&r!==null;s=i(async A=>{let E=await m(A);return f&&(!E.$source||Object.keys(E.$source).length===0)?Ed(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),s.memoized=m.memoized,s.configBound=m.configBound,s.attributed=!0}else s=m},get(){return s},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;return e.signer?l=yi(e.signer):e.regionInfoProvider?l=i(()=>yi(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,p])=>{let{signingRegion:m,signingService:f}=d;e.signingRegion=e.signingRegion||m||p,e.signingName=e.signingName||f||e.serviceId;let A={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},h=e.signerConstructor||xj.SignatureV4;return new h(A)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await yi(e.region)(),properties:{}},d);let p=d.signingRegion,m=d.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||m||e.serviceId;let f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||xj.SignatureV4;return new A(f)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:yi(e.disableClockSkewCorrection? Line truncated
For more information, please visit: `+O0t);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),M0t=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()<Date.now()&&(s=bve(s,r))}catch(o){if(n)r.warn("Credential renew failed: ",o),s=bve(n,r);else throw o}return n=s,s}},"staticStabilityProvider"),Qve="/latest/meta-data/iam/security-credentials/",F0t="/latest/api/token",Tj="AWS_EC2_METADATA_V1_DISABLED",Bve="ec2_metadata_v1_disabled",Rve="x-aws-ec2-metadata-token",U0t=i((t={})=>M0t(q0t(t),{logger:t.logger}),"fromInstanceMetadata"),q0t=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=Dj(t),a=i(async(c,l)=>{if(e||l.headers?.[Rve]==null){let p=!1,m=!1,f=await Qj({environmentVariableSelector:i(A=>{let h=A[Tj];if(m=!!h&&h!=="false",h===void 0)throw new $d(`${Tj} not set in env, checking config file next.`,{logger:t.logger});return m},"environmentVariableSelector"),configFileSelector:i(A=>{let h=A[Bve];return p=!!h&&h!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||f){let A=[];throw t.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&A.push(`config file profile (${Bve})`),m&&A.push(`process environment variable (${Tj})`),new _j(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let d=(await vj(async()=>{let p;try{p=await H0t(l)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)).trim();return vj(async()=>{let p;try{p=await $0t(d,l,t)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)},"getCredentials");return async()=>{let c=await _ve();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await G0t({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[Rve]:l},timeout:s})}}},"getInstanceMetadataProvider"),G0t=i(async t=>fS({...t,path:F0t,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),H0t=i(async t=>(await fS({...t,path:Qve})).toString(),"getProfile"),$0t=i(async(t,e,r)=>{let n=JSON.parse((await fS({...e,path:Qve+t})).toString());if(!Nve(n))throw new $d("Invalid response received from instance metadata service.",{logger:r.logger});return Tve(n)},"getCredentialsFromProfile");Ci.DEFAULT_MAX_RETRIES=Pve;Ci.DEFAULT_TIMEOUT=vve;Ci.ENV_CMDS_AUTH_TOKEN=Pj;Ci.ENV_CMDS_FULL_URI=pS;Ci.ENV_CMDS_RELATIVE_URI=YQ;Ci.Endpoint=mS;Ci.fromContainerMetadata=I0t;Ci.fromInstanceMetadata=U0t;Ci.getInstanceMetadataEndpoint=_ve;Ci.httpRequest=fS;Ci.providerConfigFromInit=Dj});var lu=I(hS=>{var{buildQueryString:Fve,HttpResponse:Uve}=(xe(),re(Od)),jQ=require("node:https"),{Readable:z0t}=require("node:stream"),kj=require("node:http2"),{streamCollector:V0t}=(_e(),re(Hg));hS.streamCollector=V0t;function XQ(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(XQ,"buildAbortError");var W0t=["ECONNRESET","EPIPE","ETIMEDOUT"],qve=i(t=>{let e={};for(let r in t){let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Sn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},Dve=1e3,Y0t=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Sn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Sn.clearTimeout(o)}):Sn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Sn.setTimeout(n.bind(null,Dve),Dve)},"setConnectionTimeout"),J0t=i((t,e,r=0,n,s)=>r?Sn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),j0t=3e3,K0t=i((t,{keepAlive:e,keepAliveMsecs:r},n=j0t)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Sn.setTimeout(s,n)},"setSocketKeepA Line truncated
${mh(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return uO(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=zOt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},vE={},pO=[],fO=i((t,e,r)=>`${t}/${e}/${r}/${xX}`,"createScope"),xOe=i(async(t,e,r,n,s)=>{let o=await iOe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${mh(o)}:${e.sessionToken}`;if(a in vE)return vE[a];for(pO.push(a);pO.length>IOe;)delete vE[pO.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,xX])c=await iOe(t,c,l);return vE[a]=c},"getSigningKey"),WOt=i(()=>{pO.length=0,Object.keys(vE).forEach(t=>{delete vE[t]})},"clearCredentialCache"),iOe=i((t,e,r)=>{let n=new t(e);return n.update(ub(r)),n.digest()},"hmac"),AX=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(hh(AOe,o)||e?.has(o)||gOe.test(o)||yOe.test(o))&&(!r||r&&!r.has(o))||(o==="__proto__"&&MOt(n),n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),mO=i(async({headers:t,body:e},r)=>{for(let n in t)if(hh(t,n)&&n.toLowerCase()===hO)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||FOt(e)){let n=new r;return n.update(ub(e)),mh(await n.digest())}return COe},"getPayloadHash"),bOe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(hh(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),BOe=i((t,e={})=>{let{headers:r,query:n={}}=aOe.clone(t);for(let s in r){if(!hh(r,s))continue;let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),gX=i(t=>{t=aOe.clone(t);for(let e in t.headers)hh(t.headers,e)&&fOe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),yX=class extends AO{static{i(this,"SignatureV4")}headerFormatter=new mX;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let f=u??await this.regionProvider(),{longDate:m,shortDate:h}=this.formatDate(n);if(s>SOe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=fO(h,f,d??this.service),y=BOe(gX(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[IX]=p.sessionToken),y.query[cOe]=dO,y.query[lOe]=`${p.accessKeyId}/${A}`,y.query[EX]=m,y.query[dOe]=s.toString(10);let E=AX(y,o,c);return y.query[uOe]=this.getCanonicalHeaderList(E),y.query[CX]=await this.getSignature(m,A,this.getSigningKey(p,f,h,d),this.createCanonicalRequest(y,E,await mO(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=fO(u,l,a??this.service),f=await mO({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let h=mh(await m.digest()),A=[EOe,d,p,s,h,f].join(`
`);return this.signString(A,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(ub(e)),mh(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=gX(e),{longDate:d,shortDate:p}=this.formatDate(r),f=fO(p,l,a??this.service);u.headers[wX]=d,c.sessionToken&&(u.headers[hOe]=c.sessionToken);let m=await mO(u,this.sha256);!bOe(hO,u.headers)&&this.applyChecksum&&(u.headers[hO]=m);let h=AX(u,s,n),A=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,h,m));return u.headers[SX]=`${dO} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${A}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,dO),a=new this.sha256(await n);return a.update(ub(o)),mh(await a.digest())}getSigningKey(e,r,n,s){return xOe(this.sha256,e,n,r,s||this.service)}},JOt={SignatureV4a:null};ze.ALGORITHM_IDENTIFIER=dO;ze.ALGORITHM_IDENTIFIER_V4A=HOt;ze.ALGORITHM_QUERY_PARAM=cOe;ze.ALWAYS_UNSIGNABLE_HEADERS=AOe;ze.AMZ_DATE_HEADER=wX;ze.AMZ_DATE_QUERY_PARAM=EX;ze.AUTH_HEADER=SX;ze.CREDENTIAL_QUERY_PARAM=lOe;ze.DATE_HEADER=pOe;ze.EVENT_ALGORITHM_IDENTIFIER=EOe;ze.EXPIRES_QUERY_PARAM=dOe;ze.GENERATED_HEADERS=fOe;ze.HOST_HEADER=$Ot;ze.KEY_TYPE_IDENTIFIER=xX;ze.MAX_CACHE_SIZE=IOe;ze.MAX_PRESIGNED_TTL=SOe;ze.PROXY_HEADER_PATTERN=gOe;ze.REGION_SET_PARAM=qOt;ze.SEC_HEADER_PATTERN=yOe;ze.SHA256_HEADER=hO;ze.SIGNATURE_HEADER=mOe;ze.SIGNATURE_QUERY_PARAM=CX;ze.SIGNED_HEADERS_QUERY_PARAM=uOe;ze.SignatureV4=yX;ze.SignatureV4Base=AO;ze.TOKEN_HEADER=hOe;ze.TOKEN_QUERY_PARAM=IX;ze.UNSIGNABLE_PATTERNS=GOt;ze.UNSIGNED_PAYLOAD=COe;ze.clearCredentialCache=WOt;ze.createScope=fO;ze.getCanonicalHeaders=AX;ze.getCanonicalQuery=wOe;ze.getPayloadHash=mO;ze.getSigningKey=xOe;ze.hasHeader=bOe;ze.moveHeadersToQuery=BOe;ze.prepareRequest=gX;ze.signatureV4aContainer=JOt});function YOt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=tb(e,eb,PE):r?n=zi(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function jOt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var BX,RX,ROe=g(()=>{Et();Bs();BX=R(bX()),RX=i(t=>e=>{let r=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;let p=YOt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=jOt(e,p);if(n&&!f.attributed){let m=typeof r=="object"&&r!==null;s=i(async h=>{let y=await f(h);return m&&(!y.$source||Object.keys(y.$source).length===0)?ep(y,"CREDENTIALS_CODE","e"):y},"resolvedCredentials"),s.memoized=f.memoized,s.configBound=f.configBound,s.attributed=!0}else s=f},get(){return s},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;return e.signer?l=zi(e.signer):e.regionInfoProvider?l=i(()=>zi(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,p])=>{let{signingRegion:f,signingService:m}=d;e.signingRegion=e.signingRegion||f||p,e.signingName=e.signingName||m||e.serviceId;let h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||BX.SignatureV4;return new A(h)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await zi(e.region)(),properties:{}},d);let p=d.signingRegion,f=d.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||f||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},h=e.signerConstructor||BX.SignatureV4;return new h(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:zi(e.disableClockSkewCorrection? Line truncated
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),xLt={warn:console.warn}});function Eh(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${bLt[n]}, ${l} ${d7[r]} ${e} ${u}:${d}:${p} GMT`}var bLt,d7,Bsn,BLt,wb,RLt,NLt,TLt,xb,bb,VO,PLt,_Lt,vLt,u7,QLt,DLt,kLt,Lp,OLt,LLt,Sb,UMe=g(()=>{FMe();bLt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],d7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Eh,"dateToUtcString");Bsn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),BLt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),wb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=BLt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Ib(Sb(n)),f=Lp(s,"month",1,12),m=Lp(o,"day",1,31),h=VO(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-LLt(d)),h},"parseRfc3339DateTimeWithOffset"),RLt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),NLt=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),TLt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),xb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=RLt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return VO(Ib(Sb(o)),u7(s),Lp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=NLt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return vLt(VO(PLt(o),u7(s),Lp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=TLt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return VO(Ib(Sb(u)),u7(n),Lp(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),bb=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=OMe(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),VO=i((t,e,r,n)=>{let s=e-1;return DLt(t,s,r),new Date(Date.UTC(t,s,r,Lp(n.hours,"hour",0,23),Lp(n.minutes,"minute",0,59),Lp(n.seconds,"seconds",0,60),OLt(n.fractionalMilliseconds)))},"buildDate"),PLt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Ib(Sb(t));return r<e?r+100:r},"parseTwoDigitYear"),_Lt=50*365*24*60*60*1e3,vLt=i(t=>t.getTime()-new Date().getTime()>_Lt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),u7=i(t=>{let e=d7.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),QLt=[31,28,31,30,31,30,31,31,30,31,30,31],DLt=i((t,e,r)=>{let n=QLt[e];if(e===1&&kLt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${d7[e]} in ${t}: ${r}`)},"validateDayOfMonth"),kLt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Lp=i((t,e,r,n)=>{let s=MMe(Sb(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),OLt=i(t=>t==null?0:LMe("0."+t)*1e3,"parseMilliseconds"),LLt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),Sb=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var rn,qMe=g(()=>{rn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");rn.from=t=>t&&typeof t=="object"&&(t instanceof rn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?rn(String(t)):rn(JSON.stringify(t));rn.fromObject=rn.from});function p7(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var $Me=g(()=>{i(p7,"quoteHeader")});function zu(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var f7,m7,h7,GMe,HMe,MLt,FLt,ULt,qLt,$Lt,A7,g7,y7,zMe=g(()=>{f7="(?:Mon|Line truncated
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return nFe(o);if(s==="hex")return Ua(o);if(s===void 0||s==="utf8"||s==="utf-8")return oFe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(cFe);if(e=!0,lFe(t))return n(t);if(Rb(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),lFe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var pFe,fFe,N7,mFe=g(()=>{pFe=require("node:stream");w7();R7();YO();fFe=i(t=>JO(t)?b7(t):Rb(t)?B7(t):new Promise((e,r)=>{let n=new N7,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=WO(this.bufferedBytes);e(o)})}),"streamCollector"),N7=class extends pFe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var KO,hFe,T7,AFe=g(()=>{KO=require("node:stream");LE();dFe();mFe();hFe="The stream has already been transformed.",T7=i(t=>{if(!(t instanceof KO.Readable))try{return uFe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(hFe);return e=!0,await fFe(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?OE(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(hFe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof KO.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,KO.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});var gFe,ME,GLt,HLt,FE,En=g(()=>{gFe=require("node:crypto");bMe();BMe();NMe();c7();TMe();_Me();UMe();qMe();$Me();zMe();VMe();WMe();YMe();S7();AFe();ME=class extends RMe(Wi,Op,Fa,Hu){static{i(this,"Uint8ArrayBlobAdapter")}},GLt=gFe.getRandomValues,HLt=PMe(GLt),FE=HLt});var oo,UE=g(()=>{En();oo=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return ME.mutate(t);if(!t)return ME.mutate(new Uint8Array);let r=e.streamCollector(t);return ME.mutate(await r)},"collectBody")});function Mp(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var XO=g(()=>{i(Mp,"extendedEncodeURIComponent")});var Ji,qE=g(()=>{Ji=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var yFe,P7,ZO,EFe=g(()=>{yFe=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;yFe[t]=e>>>0}P7=4294967295,ZO=class{static{i(this,"Crc32Js")}digestLength=4;checksum=P7;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^yFe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^P7)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=P7}}});function zLt(t){return class{static{i(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var _7,CFe,$E,IFe=g(()=>{_7=R(require("node:zlib"));EFe();CFe=typeof _7.crc32=="function"?_7.crc32:void 0,$E=CFe?zLt(CFe):ZO;i(zLt,"buildNativeClass")});var v7=g(()=>{IFe()});function SFe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Fp,Q7=g(()=>{En();Fp=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&SFe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&SFe(e),parseInt(Ua(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(SFe,"negate")});var GE,wFe,xFe,VLt,WLt,JLt,YLt,jLt,KLt,XLt,ZLt,eMt,D7=g(()=>{nr();En();Q7();GE=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o in e){if(!ut(e,o))continue;let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))} Line truncated
For more information, please visit: `+PMt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),_Mt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()<Date.now()&&(s=x1e(s,r))}catch(o){if(n)r.warn("Credential renew failed: ",o),s=x1e(n,r);else throw o}return n=s,s}},"staticStabilityProvider"),v1e="/latest/meta-data/iam/security-credentials/",vMt="/latest/api/token",aZ="AWS_EC2_METADATA_V1_DISABLED",b1e="ec2_metadata_v1_disabled",B1e="x-aws-ec2-metadata-token",QMt=i((t={})=>_Mt(DMt(t),{logger:t.logger}),"fromInstanceMetadata"),DMt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=pZ(t),a=i(async(c,l)=>{if(e||l.headers?.[B1e]==null){let p=!1,f=!1,m=await dZ({environmentVariableSelector:i(h=>{let A=h[aZ];if(f=!!A&&A!=="false",A===void 0)throw new Hp(`${aZ} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(h=>{let A=h[b1e];return p=!!A&&A!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let h=[];throw t.ec2MetadataV1Disabled&&h.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&h.push(`config file profile (${b1e})`),f&&h.push(`process environment variable (${aZ})`),new uZ(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${h.join(", ")}].`)}}let d=(await cZ(async()=>{let p;try{p=await OMt(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return cZ(async()=>{let p;try{p=await LMt(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await _1e();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await kMt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[B1e]:l},timeout:s})}}},"getInstanceMetadataProvider"),kMt=i(async t=>kb({...t,path:vMt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),OMt=i(async t=>(await kb({...t,path:v1e})).toString(),"getProfile"),LMt=i(async(t,e,r)=>{let n=JSON.parse((await kb({...e,path:v1e+t})).toString());if(!R1e(n))throw new Hp("Invalid response received from instance metadata service.",{logger:r.logger});return N1e(n)},"getCredentialsFromProfile");Yi.DEFAULT_MAX_RETRIES=P1e;Yi.DEFAULT_TIMEOUT=T1e;Yi.ENV_CMDS_AUTH_TOKEN=lZ;Yi.ENV_CMDS_FULL_URI=Qb;Yi.ENV_CMDS_RELATIVE_URI=wL;Yi.Endpoint=Db;Yi.fromContainerMetadata=mMt;Yi.fromInstanceMetadata=QMt;Yi.getInstanceMetadataEndpoint=_1e;Yi.httpRequest=kb;Yi.providerConfigFromInit=pZ});var Vu=S(Mb=>{var{hasOwn:F1e}=(xe(),Z(ih)),{streamCollector:MMt}=(xe(),Z(ih));Mb.streamCollector=MMt;var{buildQueryString:U1e,HttpResponse:q1e}=(Re(),Z(dh)),bL=require("node:https"),{Readable:FMt}=require("node:stream"),fZ=require("node:http2");function RL(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(RL,"buildAbortError");var UMt=["ECONNRESET","EPIPE","ETIMEDOUT"],$1e=i(t=>{let e={};for(let r in t){if(!F1e(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Cn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},Q1e=1e3,qMt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Cn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Cn.clearTimeout(o)}):Cn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Cn.setTimeout(n.bind(null,Q1e),Q1e)},"setConnectionTimeout"),$Mt=i((t,e,r=0,n,s)=>r?Cn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),GMt=3e3,HMt=i((t,{keepAlive:e,keepAliveMsecs:r},n=GMt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return Line truncated
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=e.protocol==="https:";return!o&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let l,u=-1,d=-1,p=-1,m=-1,f=-1,A=i(()=>{Sn.clearTimeout(u),Sn.clearTimeout(d),Sn.clearTimeout(p),Sn.clearTimeout(m),Sn.clearTimeout(f)},"clearTimeouts"),h=i(async Z=>{await l,A(),a(Z)},"resolve"),E=i(async Z=>{await l,A(),c(Z)},"reject");if(r?.aborted){let Z=XQ(r);E(Z);return}let C=e.headers,w=C?(C.Expect??C.expect)==="100-continue":!1,x=o?s.httpsAgent:s.httpAgent;w&&!this.externalAgent&&(x=new(o?jQ.Agent:KQ)({keepAlive:!1,maxSockets:1/0})),u=Sn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(x,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let b=e.query?Fve(e.query):"",N;if(e.username!=null||e.password!=null){let Z=e.username??"",U=e.password??"";N=`${Z}:${U}`}let P=e.path;b&&(P+=`?${b}`),e.fragment&&(P+=`#${e.fragment}`);let _=e.hostname??"";_[0]==="["&&_.endsWith("]")?_=e.hostname.slice(1,-1):_=e.hostname;let J={headers:e.headers,host:_,method:e.method,path:P,port:e.port,agent:x,auth:N},ae=(o?jQ.request:Ove)(J,Z=>{let U=new Uve({statusCode:Z.statusCode||-1,reason:Z.statusMessage,headers:qve(Z.headers),body:Z});h({response:U})});if(ae.on("error",Z=>{W0t.includes(Z.code)?E(Object.assign(Z,{name:"TimeoutError"})):E(Z)}),r){let Z=i(()=>{ae.destroy();let U=XQ(r);E(U)},"onAbort");if(typeof r.addEventListener=="function"){let U=r;U.addEventListener("abort",Z,{once:!0}),ae.once("close",()=>U.removeEventListener("abort",Z))}else r.onabort=Z}let qe=n??s.requestTimeout;d=Y0t(ae,E,s.connectionTimeout),p=J0t(ae,E,qe,s.throwOnRequestTimeout,s.logger??console),m=X0t(ae,E,s.socketTimeout);let ne=J.agent;typeof ne=="object"&&"keepAlive"in ne&&(f=K0t(ae,{keepAlive:ne.keepAlive,keepAliveMsecs:ne.keepAliveMsecs})),l=Gve(ae,e,qe,this.externalAgent).catch(Z=>(A(),c(Z)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let m=require("node:http"),{Agent:f,request:A}=m.default??m;return Ove=A,KQ=f,a instanceof KQ||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new KQ({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof jQ.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new jQ.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},tBt=new Uint16Array(1),AS=class{static{i(this,"ClientHttp2SessionRef")}id=tBt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},Oj=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new AS(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},Mj=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o= Line truncated
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=s.logger,a=e.protocol==="https:";return!a&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((c,l)=>{let u,d=-1,p=-1,f=-1,m=-1,h=-1,A=i(()=>{Cn.clearTimeout(d),Cn.clearTimeout(p),Cn.clearTimeout(f),Cn.clearTimeout(m),Cn.clearTimeout(h)},"clearTimeouts"),y=i(async oe=>{await u,A(),c(oe)},"resolve"),E=i(async oe=>{await u,A(),l(oe)},"reject");if(r?.aborted){let oe=RL(r);E(oe);return}let I=e.headers,x=I?(I.Expect??I.expect)==="100-continue":!1,b=a?s.httpsAgent:s.httpAgent;x&&!this.externalAgent&&(b=new(a?bL.Agent:BL)({keepAlive:!1,maxSockets:1/0})),d=Cn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?U1e(e.query):"",_;if(e.username!=null||e.password!=null){let oe=e.username??"",Q=e.password??"";_=`${oe}:${Q}`}let v=e.path;N&&(v+=`?${N}`),e.fragment&&(v+=`#${e.fragment}`);let Y=e.hostname??"";Y[0]==="["&&Y.endsWith("]")?Y=e.hostname.slice(1,-1):Y=e.hostname;let Qe={headers:e.headers,host:Y,method:e.method,path:v,port:e.port,agent:b,auth:_},De=(a?bL.request:L1e)(Qe,oe=>{let Q=new q1e({statusCode:oe.statusCode||-1,reason:oe.statusMessage,headers:$1e(oe.headers),body:oe});y({response:Q})});if(De.on("error",oe=>{UMt.includes(oe.code)?E(Object.assign(oe,{name:"TimeoutError"})):E(oe)}),r){let oe=i(()=>{De.destroy();let Q=RL(r);E(Q)},"onAbort");if(typeof r.addEventListener=="function"){let Q=r;Q.addEventListener("abort",oe,{once:!0}),De.once("close",()=>Q.removeEventListener("abort",oe))}else r.onabort=oe}let ce=n??s.requestTimeout;p=qMt(De,E,s.connectionTimeout),f=$Mt(De,E,ce,s.throwOnRequestTimeout,o??console);let Tt=s.socketTimeout===void 0?Ob(s):void 0;Tt?m=k1e(De,E,Tt,!0):m=k1e(De,E,s.socketTimeout);let Be=Qe.agent;typeof Be=="object"&&"keepAlive"in Be&&(h=HMt(De,{keepAlive:Be.keepAlive,keepAliveMsecs:Be.keepAliveMsecs})),u=G1e(De,e,ce,this.externalAgent).catch(oe=>(A(),l(oe)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>{switch(e){case Symbol.for("logger"):e="logger",r=n.logger??r;break;case Symbol.for("@smithy/defaultSocketTimeout"):e="defaultSocketTimeout",r=Ob(n)??r;break}return{...n,[e]:r}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50,f;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,defaultSocketTimeout:Ob(e),socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(()=>f??=(async()=>{let m=require("node:http"),{Agent:h,request:A}=m.default??m;return L1e=A,BL=h,a instanceof BL||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new BL({keepAlive:d,maxSockets:p,...a})})(),"httpAgentProvider"),httpsAgent:c instanceof bL.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new bL.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},WMt=new Uint16Array(1),Lb=class{static{i(this,"ClientHttp2SessionRef")}id=WMt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},hZ=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Lb(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},AZ=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPool Line truncated
- loopback CIDR 127.0.0.0/8 or [::1/128]
- ECS container host 169.254.170.2
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");function pBt(t){return new oBt({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(pBt,"createGetRequest");async function mBt(t,e){let n=await iBt(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new uf("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:aBt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new uf(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new uf(`Server responded with status: ${t.statusCode}`,{logger:e})}i(mBt,"getCredentials");var fBt=i((t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()},"retryWrapper"),ABt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",hBt="http://169.254.170.2",gBt="AWS_CONTAINER_CREDENTIALS_FULL_URI",yBt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",EBt="AWS_CONTAINER_AUTHORIZATION_TOKEN",CBt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[ABt],n=t.awsContainerCredentialsFullUri??process.env[gBt],s=t.awsContainerAuthorizationToken??process.env[EBt],o=t.awsContainerAuthorizationTokenFile??process.env[yBt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${hBt}${r}`;else if(n)e=n;else throw new uf(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);dBt(c,t.logger);let l=nBt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=fBt(async()=>{let p=pBt(c);o?p.headers.Authorization=Hve((await sBt.readFile(o)).toString()):s&&(p.headers.Authorization=Hve(s));try{let m=await l.handle(p,{requestTimeout:u});return mBt(m.response).then(f=>rBt(f,"CREDENTIALS_HTTP","z"))}catch(m){throw new uf(String(m),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),Hve=i(t=>{if(t.includes(`\r
`))throw new uf("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");$ve.fromHttp=CBt});function IBt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function wBt(t){return{schemeId:"smithy.api#noAuth"}}var zve,Vve,Wve,qj=g(()=>{Hn();Se();zve=i(async(t,e,r)=>({operation:Rt(e).operation,region:await Ct(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(IBt,"createAwsAuthSigv4HttpAuthOption");i(wBt,"createSmithyApiNoAuthHttpAuthOption");Vve=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(wBt(t)):e.push(IBt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),Wve=i(t=>{let e=il(t);return Object.assign(e,{authSchemePreference:Ct(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Yve,Jve,Gj=g(()=>{Yve=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),Jve={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var zd,gS=g(()=>{zd={name:"@aws-sdk/nested-clients",version:"3.997.35",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.977.0","@aws-sdk/signature-v4-multi-region":"^3.996.42","@aws-sdk/types":"^3.974.2","@smithy/core":"^3.29.8","@smithy/fetch-http-handler":"^5.6.10","@smithy/node-http-handler":"^4.9.10","@smithy/types":"^4.16.1",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{no Line truncated
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");function sFt(t){return new KMt({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(sFt,"createGetRequest");async function oFt(t,e){let n=await XMt(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new xh("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:ZMt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new xh(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new xh(`Server responded with status: ${t.statusCode}`,{logger:e})}i(oFt,"getCredentials");var iFt=i((t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()},"retryWrapper"),aFt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",cFt="http://169.254.170.2",lFt="AWS_CONTAINER_CREDENTIALS_FULL_URI",uFt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",dFt="AWS_CONTAINER_AUTHORIZATION_TOKEN",pFt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[aFt],n=t.awsContainerCredentialsFullUri??process.env[lFt],s=t.awsContainerAuthorizationToken??process.env[dFt],o=t.awsContainerAuthorizationTokenFile??process.env[uFt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${cFt}${r}`;else if(n)e=n;else throw new xh(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);nFt(c,t.logger);let l=YMt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=iFt(async()=>{let p=sFt(c);o?p.headers.Authorization=H1e((await jMt.readFile(o)).toString()):s&&(p.headers.Authorization=H1e(s));try{let f=await l.handle(p,{requestTimeout:u});return oFt(f.response).then(m=>JMt(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new xh(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),H1e=i(t=>{if(t.includes(`\r
`))throw new xh("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");z1e.fromHttp=pFt});function fFt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function mFt(t){return{schemeId:"smithy.api#noAuth"}}var V1e,W1e,J1e,EZ=g(()=>{ts();we();V1e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(fFt,"createAwsAuthSigv4HttpAuthOption");i(mFt,"createSmithyApiNoAuthHttpAuthOption");W1e=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(mFt(t)):e.push(fFt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),J1e=i(t=>{let e=Ql(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Y1e,j1e,CZ=g(()=>{Y1e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),j1e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var zp,Fb=g(()=>{zp={name:"@aws-sdk/nested-clients",version:"3.997.54",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.979.1","@aws-sdk/signature-v4-multi-region":"^3.996.51","@aws-sdk/types":"^3.975.0","@smithy/core":"^3.38.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.14.0","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{nod Line truncated
`),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdk XML parse error: expected "${e}" not found.`);let s=r.x.slice(r.i,n);return r.i=n+e.length,s}trim(){let e=this;for(;e.i<e.z&&` \r
`.includes(e.x[e.i]);)++e.i}readAttrValue(){let e=this,r=e.x[e.i];++e.i;let n="";for(;e.i<e.z&&e.x[e.i]!==r;)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let r="";for(;e.i<e.z&&!` \r
>/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,s={};for(;e.i<e.z&&(e.trim(),!">/".includes(e.x[e.i]));){let d="";for(;e.i<e.z&&!`= \r
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&f6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let o=[],a=[],c=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,o.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i<e.z&&e.x[e.i]!=="<";)d+=e.x[e.i++];o.push(e.decodeEntities(d))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${l}>.`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(`
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&FZ(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let o=[],a=[],c=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,o.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i<e.z&&e.x[e.i]!=="<";)d+=e.x[e.i++];o.push(e.decodeEntities(d))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${l}>.`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(`
`)?{tag:r,value:""}:{tag:r,value:d}}let u={};for(let d of o)d.trim()===""&&d.includes(`
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&f6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&f6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};ID.XmlNode=A6;ID.XmlText=CD;ID.parseXML=JBt});var RPe,Kd,SD=g(()=>{RPe=R(wD());Se();xe();tt();_e();Yd();i6();fD();Kd=class extends $n{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Qd(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=X.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Br)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=X.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let m of p)l.push(this.readSchema(c,m));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let m of u){let f=m[d],A=m[p];f==="__proto__"&&pu(a),a[f]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new gy(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,RPe.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Km(o)}return{}}}});var Cy,g6=g(()=>{xe();tt();_e();_e();Yd();Cy=class extends $n{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=X.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Kt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(sa()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof xt?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Us(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(ra(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),m=this.getKey("key",p.xmlName,p.ec2QueryName),f=c?`${n}${l}.${m}`:`${n}entry.${l}.${m}`,A=a.getMergedTraits(),h=this.getKey("value",A.xmlName,A.ec2Que Line truncated
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),HNt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=FNt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await UNt(t))[l];if(!d)throw new Ca(`Profile ${l} was not found.`,{logger:t.logger});if(!EQe(d))throw new Ca(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let C=(await qNt(t))[d.sso_session],w=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==C.sso_region)throw new Ca("Conflicting SSO region"+w,{tryNextLink:!1,logger:t.logger});if(r&&r!==C.sso_start_url)throw new Ca("Conflicting SSO start_url"+w,{tryNextLink:!1,logger:t.logger});d.sso_region=C.sso_region,d.sso_start_url=C.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:A,sso_session:h}=CQe(d,t.logger);return yQe({ssoStartUrl:p,ssoSession:h,ssoAccountId:m,ssoRegion:f,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Ca('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return yQe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");HD.fromSSO=HNt;HD.isSsoProfile=EQe;HD.validateSsoProfile=CQe});var W6=I(zD=>{var{SignatureV4:$Nt,signatureV4aContainer:IQe}=Sj(),tx={CrtSignerV4:null},z6="X-Amz-S3session-Token",wQe=z6.toLowerCase(),$D=class extends $Nt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=SQe(r);e.headers[wQe]=r.sessionToken;let o=this;return xQe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=SQe(r);return delete e.headers[wQe],e.headers[z6]=r.sessionToken,e.query=e.query??{},e.query[z6]=r.sessionToken,xQe(this,s),this.presign(e,n)}};function SQe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(SQe,"getCredentialsWithoutSessionToken");function xQe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(xQe,"setSingleOverride");var V6=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tx.CrtSignerV4=="function"?"crt":typeof IQe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new $D(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=tx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=tx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=tx.CrtSignerV4,r=IQe.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sd Line truncated
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&FZ(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&FZ(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};JL.XmlNode=UZ;JL.XmlText=WL;JL.parseXML=FFt});var $l,zb=g(()=>{$l=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var jL,IUe=g(()=>{jL=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function SUe(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var wUe=g(()=>{i(SUe,"writeKey")});var xUe,Jp,KL=g(()=>{xUe=R(YL());we();Re();He();xe();zb();IUe();wUe();Jp=class extends $l{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ep(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=O.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??qt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=O.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let f of p)l.push(this.readSchema(c,f));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let f of u){let m=f[d],h=f[p];m==="__proto__"&&SUe(a),a[m]=this.readSchema(l,h)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new jL(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),f=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(f),r[f]!=null&&(a[u]=this.readSchema(d,r[f]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,xUe.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),th(o)}return{}}}});var mC,$Z=g(()=>{Re();He();xe();xe();zb();mC=class extends $l{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=O.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Qt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Yo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof je?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),An(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Ho(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLi Line truncated
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),QUt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=TUt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await PUt(t))[l];if(!d)throw new Va(`Profile ${l} was not found.`,{logger:t.logger});if(!xqe(d))throw new Va(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await _Ut(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Va("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Va("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=E.sso_region,d.sso_start_url=E.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:h,sso_session:A}=bqe(d,t.logger);return wqe({ssoStartUrl:p,ssoSession:A,ssoAccountId:f,ssoRegion:m,ssoRoleName:h,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Va('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return wqe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");yM.fromSSO=QUt;yM.isSsoProfile=xqe;yM.validateSsoProfile=bqe});var yee=S(CM=>{var{SignatureV4:DUt,signatureV4aContainer:Bqe}=bX(),A0={CrtSignerV4:null},Aee="X-Amz-S3session-Token",Rqe=Aee.toLowerCase(),EM=class extends DUt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=Nqe(r);e.headers[Rqe]=r.sessionToken;let o=this;return Tqe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=Nqe(r);return delete e.headers[Rqe],e.headers[Aee]=r.sessionToken,e.query=e.query??{},e.query[Aee]=r.sessionToken,Tqe(this,s),this.presign(e,n)}};function Nqe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(Nqe,"getCredentialsWithoutSessionToken");function Tqe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(Tqe,"setSingleOverride");var gee=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof A0.CrtSignerV4=="function"?"crt":typeof Bqe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new EM(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=A0.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=A0.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=A0.CrtSignerV4,r=Bqe.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @ Line truncated
Multiple credential sources detected:
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
This SDK will proceed with the AWS_PROFILE value.
@@ -142,88 +145,89 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
However, a future version may change this behavior to prefer the ENV static credentials.
Please ensure that your environment only sets either the AWS_PROFILE or the
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
`),tLe=!0)),new dk("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),gPt(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new dk("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=$6();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=Zke();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Q9();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=k9();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await CPt(t))()),async()=>{throw new dk("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],rLe),"defaultProvider"),xPt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),rLe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");pk.credentialsTreatedAsExpired=rLe;pk.credentialsWillNeedRefresh=xPt;pk.defaultProvider=SPt});var X1e=I(y=>{var{awsEndpointFunctions:bPt,emitWarningIfUnsupportedVersion:BPt,createDefaultUserAgentProvider:RPt,NODE_APP_ID_CONFIG_OPTIONS:NPt,getAwsRegionExtensionConfiguration:TPt,resolveAwsRegionExtensionConfiguration:vPt,resolveUserAgentConfig:PPt,resolveHostHeaderConfig:_Pt,getUserAgentPlugin:QPt,getHostHeaderPlugin:DPt,getLoggerPlugin:kPt,getRecursionDetectionPlugin:LPt}=(ht(),re(ma)),{getHttpAuthSchemeEndpointRuleSetPlugin:OPt,DefaultIdentityProviderConfig:MPt,getHttpSigningPlugin:FPt,createPaginator:Tf}=(As(),re(H5)),{normalizeProvider:cLe,getSmithyContext:UPt,ServiceException:qPt,NoOpLogger:GPt,emitWarningIfUnsupportedVersion:HPt,loadConfigsForDefaultMode:$Pt,getDefaultExtensionConfiguration:zPt,resolveDefaultRuntimeConfig:VPt,Client:lLe,makeBuilder:WPt,createWaiter:iO,checkExceptions:uLe,WaiterState:Ty,createAggregatedClient:YPt}=(Se(),re(bg)),{Command:JPt}=(Se(),re(bg));y.$Command=JPt;y.__Client=lLe;var{resolveDefaultsModeConfig:jPt,loadConfig:Bf,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:KPt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:XPt,NODE_REGION_CONFIG_OPTIONS:ZPt,NODE_REGION_CONFIG_FILE_OPTIONS:e_t,resolveRegionConfig:t_t}=(At(),re(No)),{BinaryDecisionDiagram:r_t,EndpointCache:n_t,decideEndpoint:s_t,customEndpointFunctions:o_t,resolveEndpointConfig:i_t,getEndpointPlugin:a_t}=(Tt(),re(IJ)),{parseUrl:c_t,getHttpHandlerExtensionConfiguration:l_t,resolveHttpHandlerRuntimeConfig:u_t,getContentLengthPlugin:d_t}=(xe(),re(Od)),{DEFAULT_RETRY_MODE:p_t,NODE_RETRY_MODE_CONFIG_OPTIONS:m_t,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:f_t,resolveRetryConfig:A_t,getRetryPlugin:h_t}=(Po(),re(R5)),{TypeRegistry:dLe,getSchemaSerdePlugin:g_t}=(tt(),re(t8)),{resolveAwsSdkSigV4Config:y_t,AwsSdkSigV4Signer:E_t,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:C_t}=(Hn(),re(WQ)),{defaultProvider:I_t}=O9(),{toUtf8:w_t,fromUtf8:S_t,toBase64:x_t,fromBase64:b_t,calculateBodyLength:B_t}=(_e(),re(Hg)),{streamCollector:R_t,NodeHttpHandler:N_t}=lu(),{AwsJson1_1Protocol:T_t}=(ff(),re(S6)),{Sha256:v_t}=(iu(),re(VJ)),P_t=i(async(t,e,r)=>({operation:UPt(e).operation,region:await cLe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function __t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(__t,"createAwsAuthSigv4HttpAuthOption");var Q_t=i(t=>{let e=[];switch(t.operation){default:e.push(__t(t))}return e},"defaultECRHttpAuthSchemeProvider"),D_t=i(t=>{let e=y_t(t);return Object.assign(e,{authSchemePreference:cLe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),k_t=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),L_t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},O_t="3.1094.0",M_t={version:O_t},vy="ref",Rf=-1,mk=!0,nLe="isSet",F9="PartitionResult",ip="stringEquals",fk="booleanEquals",M9="getAttr",sLe={[vy]:"Endpoint"},ap={fn:M9,argv:[{[vy]:F9},"name"]},oLe={[vy]:F9},Nf={},iLe=[{[vy]:"Region"}],aLe={conditions:[[nLe,[sLe]],[nLe,iLe],["aws.partition",iLe,F9],[ip,[ap,"aws-eusc"]],[ip,[ap,"aws-iso-f"]],[ip,[ap,"aws-iso-e"]],[ip,[ap,"aws-iso-b"]],[ip,[ap,"aws-iso"]],[ip,[ap,"aws-cn"]],[ip,[ap,"aws-us-gov"]],[ip,[ap,"aws"]],[fk,[{[vy]:" Line truncated
`),lHe=!0)),new UM("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),i$t(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new UM("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=hee();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=aHe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=ste();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=ite();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await l$t(t))()),async()=>{throw new UM("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],uHe),"defaultProvider"),f$t=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),uHe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");qM.credentialsTreatedAsExpired=uHe;qM.credentialsWillNeedRefresh=f$t;qM.defaultProvider=p$t});var B8e=S(C=>{var{awsEndpointFunctions:m$t,emitWarningIfUnsupportedVersion:h$t,createDefaultUserAgentProvider:A$t,NODE_APP_ID_CONFIG_OPTIONS:g$t,getAwsRegionExtensionConfiguration:y$t,resolveAwsRegionExtensionConfiguration:E$t,resolveUserAgentConfig:C$t,resolveHostHeaderConfig:I$t,getUserAgentPlugin:S$t,getHostHeaderPlugin:w$t,getLoggerPlugin:x$t,getRecursionDetectionPlugin:b$t}=(Et(),Z(La)),{getHttpAuthSchemeEndpointRuleSetPlugin:B$t,DefaultIdentityProviderConfig:R$t,getHttpSigningPlugin:N$t,createPaginator:ju}=(Bs(),Z(zK)),{normalizeProvider:AHe,getSmithyContext:T$t,ServiceException:P$t,NoOpLogger:_$t,emitWarningIfUnsupportedVersion:v$t,loadConfigsForDefaultMode:Q$t,getDefaultExtensionConfiguration:D$t,resolveDefaultRuntimeConfig:k$t,Client:gHe,makeBuilder:O$t,createWaiter:U1,checkExceptions:yHe,WaiterState:wC,createAggregatedClient:L$t}=(we(),Z(Oy)),{Command:M$t}=(we(),Z(Oy));C.$Command=M$t;C.__Client=gHe;var{resolveDefaultsModeConfig:F$t,loadConfig:Uh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:U$t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:q$t,NODE_REGION_CONFIG_OPTIONS:$$t,NODE_REGION_CONFIG_FILE_OPTIONS:G$t,resolveRegionConfig:H$t}=(bt(),Z(Mi)),{BinaryDecisionDiagram:z$t,EndpointCache:V$t,decideEndpoint:W$t,customEndpointFunctions:J$t,resolveEndpointConfig:Y$t,getEndpointPlugin:j$t}=(Dt(),Z(u9)),{parseUrl:K$t,getHttpHandlerExtensionConfiguration:X$t,resolveHttpHandlerRuntimeConfig:Z$t,getContentLengthPlugin:eGt}=(Re(),Z(dh)),{DEFAULT_RETRY_MODE:tGt,NODE_RETRY_MODE_CONFIG_OPTIONS:rGt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:nGt,resolveRetryConfig:sGt,getRetryPlugin:oGt}=(jo(),Z(TK)),{TypeRegistry:EHe,getSchemaSerdePlugin:iGt}=(He(),Z(G5)),{resolveAwsSdkSigV4Config:aGt,AwsSdkSigV4Signer:cGt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:lGt}=(ts(),Z(gO)),{defaultProvider:uGt}=cte(),{toUtf8:dGt,fromUtf8:pGt,toBase64:fGt,fromBase64:mGt,calculateBodyLength:hGt}=(xe(),Z(ih)),{streamCollector:AGt,NodeHttpHandler:gGt}=Vu(),{AwsJson1_1Protocol:yGt}=(Nh(),Z(JZ)),{Sha256:EGt}=(Uu(),Z(k9)),CGt=i(async(t,e,r)=>({operation:T$t(e).operation,region:await AHe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function IGt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(IGt,"createAwsAuthSigv4HttpAuthOption");var SGt=i(t=>{let e=[];switch(t.operation){default:e.push(IGt(t))}return e},"defaultECRHttpAuthSchemeProvider"),wGt=i(t=>{let e=aGt(t);return Object.assign(e,{authSchemePreference:AHe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),xGt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),bGt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},BGt="3.1160.0",RGt={version:BGt},xC="ref",qh=-1,$M=!0,dHe="isSet",ute="PartitionResult",nf="stringEquals",GM="booleanEquals",lte="getAttr",pHe={[xC]:"Endpoint"},sf={fn:lte,argv:[{[xC]:ute},"name"]},fHe={[xC]:ute},$h={},mHe=[{[xC]:"Region"}],hHe={conditions:[[dHe,[pHe]],[dHe,mHe],["aws.partition",mHe,ute],[nf,[sf,"aws-eusc"]],[nf,[sf,"aws-iso-f"]],[nf,[sf,"aws-iso-e"]],[nf,[sf,"aws-iso-b"]],[nf,[sf,"aws-iso"]],[nf,[sf,"aws-cn"]],[nf,[sf,"aws-us-gov"]],[nf,[sf,"aws"]],[GM,[{[xC]:"Use Line truncated
Error Code : ${a.statusCode}
Error Message: ${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return ioe(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`ID token url is ${r}`);let n=yield t.getCall(r);return vn(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var coe=require("os"),KE=require("fs");var u2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:X9e,appendFile:Z9e,writeFile:eKe}=KE.promises,aoe="GITHUB_STEP_SUMMARY";var d2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return u2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[aoe];if(!e)throw new Error(`Unable to find environment variable for $${aoe}. Check if your runtime environment supports job summaries.`);try{yield X9e(e,KE.constants.R_OK|KE.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return u2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?eKe:Z9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return u2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(coe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},L4t=new d2;var I2=R(require("os"),1);var C2=require("string_decoder");var ZE=R(require("os"),1),E2=R(require("events"),1),Ioe=R(require("child_process"),1),woe=R(require("path"),1);var hoe=require("assert"),so=R(require("path"),1);var XE=R(require("fs"),1),Mu=R(require("path"),1);var p2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:m2,copyFile:uoe,lstat:V0,mkdir:doe,open:q4t,readdir:f2,rename:tKe,rm:poe,rmdir:G4t,stat:Hp,symlink:moe,unlink:A2}=XE.promises,La=process.platform==="win32";function foe(t){return p2(this,void 0,void 0,function*(){let e=yield XE.promises.readlink(t);return La&&!e.endsWith("\\")?`${e}\\`:e})}i(foe,"readlink");var H4t=XE.constants.O_RDONLY;function kA(t){return p2(this,void 0,void 0,function*(){try{yield Hp(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(kA,"exists");function W0(t){if(t=rKe(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return La?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(W0,"isRooted");function h2(t,e){return p2(this,void 0,void 0,function*(){let r;try{r=yield Hp(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(La){let s=Mu.extname(t).toUpperCase();if(e.some(o=>o.toULine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(Noe,"getBooleanInput");function Toe(t){process.exitCode=w2.Failure,OA(t)}i(Toe,"setFailed");function Vp(){return process.env.RUNNER_DEBUG==="1"}i(Vp,"isDebug");function T(t){mp("debug",{},t)}i(T,"debug");function OA(t,e={}){mp("error",TM(e),t instanceof Error?t.toString():t)}i(OA,"error");function gr(t,e={}){mp("warning",TM(e),t instanceof Error?t.toString():t)}i(gr,"warning");function ye(t){process.stdout.write(t+Roe.EOL)}i(ye,"info");function aKe(t){PM("group",t)}i(aKe,"startGroup");function cKe(){PM("endgroup")}i(cKe,"endGroup");function rC(t,e){return Boe(this,void 0,void 0,function*(){aKe(t);let r;try{r=yield e()}finally{cKe()}return r})}i(rC,"group");function Wp(t,e){if(process.env.GITHUB_STATE||"")return NK("STATE",TK(t,e));mp("save-state",{name:t},yu(e))}i(Wp,"saveState");function voe(t){return process.env[`STATE_${t}`]||""}i(voe,"getState");function Poe(t){return Boe(this,void 0,void 0,function*(){return yield z0.getIDToken(t)})}i(Poe,"getIDToken");var tv=R(require("fs"),1),b4=R(require("os"),1),B4=R(require("path"),1);var Qoe=R(require("os"),1);function nC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(nC,"toCommandValue");function Doe(t,e,r){let n=new S2(t,e,r);process.stdout.write(n.toString()+Qoe.EOL)}i(Doe,"issueCommand");var _oe="::",S2=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=_oe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${uKe(s)}`)}}return e+=`${_oe}${lKe(this.message)}`,e}};function lKe(t){return nC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(lKe,"escapeData");function uKe(t){return nC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(uKe,"escapeProperty");var j0=R(Ff(),1),pKe=R(Gp(),1);var Oa;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Oa||(Oa={}));var koe;(function(t){t.Accept="accept",t.ContentType="content-type"})(koe||(koe={}));var Loe;(function(t){t.ApplicationJson="application/json"})(Loe||(Loe={}));var IWt=[Oa.MovedPermanently,Oa.ResourceMoved,Oa.SeeOther,Oa.TemporaryRedirect,Oa.PermanentRedirect],wWt=[Oa.BadGateway,Oa.ServiceUnavailable,Oa.GatewayTimeout];var Moe=require("os"),sC=require("fs");var x2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:AKe,appendFile:hKe,writeFile:gKe}=sC.promises,Ooe="GITHUB_STEP_SUMMARY";var b2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return x2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Ooe];if(!e)throw new Error(`Unable to find environment variable for $${Ooe}. Check if your runtime environment supports job summaries.`);try{yield AKe(e,sC.constants.R_OK|sC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return x2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?gKe:hKe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return x2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return thisLine truncated
Error Message: ${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return vue(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`ID token url is ${r}`);let n=yield t.getCall(r);return qn(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var Due=require("os"),zI=require("fs");var zG=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:Nit,appendFile:Tit,writeFile:Pit}=zI.promises,Que="GITHUB_STEP_SUMMARY";var VG=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return zG(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Que];if(!e)throw new Error(`Unable to find environment variable for $${Que}. Check if your runtime environment supports job summaries.`);try{yield Nit(e,zI.constants.R_OK|zI.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return zG(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Pit:Tit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return zG(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Due.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},ntr=new VG;var tH=R(require("os"),1);var eH=require("string_decoder");var JI=R(require("os"),1),ZG=R(require("events"),1),Wue=R(require("child_process"),1),Jue=R(require("path"),1);var $ue=require("assert"),bo=R(require("path"),1);var VI=R(require("fs"),1),yd=R(require("path"),1);var WG=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:JG,copyFile:Oue,lstat:uN,mkdir:Lue,open:ctr,readdir:YG,rename:_it,rm:Mue,rmdir:ltr,stat:Gf,symlink:Fue,unlink:jG}=VI.promises,cc=process.platform==="win32";function Uue(t){return WG(this,void 0,void 0,function*(){let e=yield VI.promises.readlink(t);return cc&&!e.endsWith("\\")?`${e}\\`:e})}i(Uue,"readlink");var utr=VI.constants.O_RDONLY;function YA(t){return WG(this,void 0,void 0,function*(){try{yield Gf(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(YA,"exists");function dN(t){if(t=vit(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return cc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(dN,"isRooted");function KG(t,e){return WG(this,void 0,void 0,function*(){let r;try{r=yield Gf(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(cc){let s=yd.extname(t).toUpperCase();if(e.some(o=>o.toULine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(ede,"getBooleanInput");function tde(t){process.exitCode=rH.Failure,KA(t)}i(tde,"setFailed");function Vf(){return process.env.RUNNER_DEBUG==="1"}i(Vf,"isDebug");function T(t){ff("debug",{},t)}i(T,"debug");function KA(t,e={}){ff("error",u2(e),t instanceof Error?t.toString():t)}i(KA,"error");function ur(t,e={}){ff("warning",u2(e),t instanceof Error?t.toString():t)}i(ur,"warning");function ae(t){process.stdout.write(t+Zue.EOL)}i(ae,"info");function Lit(t){p2("group",t)}i(Lit,"startGroup");function Mit(){p2("endgroup")}i(Mit,"endGroup");function KI(t,e){return Xue(this,void 0,void 0,function*(){Lit(t);let r;try{r=yield e()}finally{Mit()}return r})}i(KI,"group");function Wf(t,e){if(process.env.GITHUB_STATE||"")return ere("STATE",tre(t,e));ff("save-state",{name:t},Xu(e))}i(Wf,"saveState");function rde(t){return process.env[`STATE_${t}`]||""}i(rde,"getState");function nde(t){return Xue(this,void 0,void 0,function*(){return yield lN.getIDToken(t)})}i(nde,"getIDToken");var Gw=R(require("fs"),1),aY=R(require("os"),1),cY=R(require("path"),1);var ode=R(require("os"),1);function XI(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(XI,"toCommandValue");function ide(t,e,r){let n=new nH(t,e,r);process.stdout.write(n.toString()+ode.EOL)}i(ide,"issueCommand");var sde="::",nH=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=sde+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Uit(s)}`)}}return e+=`${sde}${Fit(this.message)}`,e}};function Fit(t){return XI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Fit,"escapeData");function Uit(t){return XI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Uit,"escapeProperty");var mN=R(Zh(),1),$it=R($f(),1);var lc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(lc||(lc={}));var ade;(function(t){t.Accept="accept",t.ContentType="content-type"})(ade||(ade={}));var cde;(function(t){t.ApplicationJson="application/json"})(cde||(cde={}));var $tr=[lc.MovedPermanently,lc.ResourceMoved,lc.SeeOther,lc.TemporaryRedirect,lc.PermanentRedirect],Gtr=[lc.BadGateway,lc.ServiceUnavailable,lc.GatewayTimeout];var ude=require("os"),ZI=require("fs");var sH=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:zit,appendFile:Vit,writeFile:Wit}=ZI.promises,lde="GITHUB_STEP_SUMMARY";var oH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return sH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[lde];if(!e)throw new Error(`Unable to find environment variable for $${lde}. Check if your runtime environment supports job summaries.`);try{yield zit(e,ZI.constants.R_OK|ZI.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return sH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Wit:Vit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return sH(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return thLine truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new yC(o));return n.searchPaths.push(...tq(n.patterns)),n})}static stat(e,r,n){return iq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield GA.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Go(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield GA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield GA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){Go(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var net=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function mce(t,e){return net(this,void 0,void 0,function*(){return yield AB.create(t,e)})}i(mce,"create");var _B=R(require("crypto"),1),VA=R(require("fs"),1),Xp=R(require("path"),1),iue=R(sue(),1),aue=R(require("util"),1);var bC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(bC||(bC={}));var rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(rs||(rs={}));var io;(function(t){t.GNU="gnu",t.BSD="bsd"})(io||(io={}));var TB=2,vB=5e3,Rq=5e3,Nq=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,oue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,BC="cache.tar",Tq="manifest.txt",r6t=10*Math.pow(1024,3),PB="cache read denied:";var zA=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},pnt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},mnt="1.0";function RC(){return zA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Xp.join(n,"actions","temp")}let r=Xp.join(e,_B.randomUUID());return yield zp(r),r})}i(RC,"createTempDirectory");function qa(t){return VA.statSync(t).size}i(qa,"getArchiveFileSizeInBytes");function vq(t){return zA(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield mce(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=pnt(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let f=Xp.relative(c,s).replace(new RegExp(`\\${Xp.sep}`,"g"),"/");T(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(m){r={error:m}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(vq,"resolvePaths");function NC(t){return zA(this,void 0,void 0,function*(){return aue.promisify(VA.unlink)(t)})}i(NC,"unlinkFile");function cue(t){return zA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Fu(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}i(cue,"getVersion");function TC(){return zA(this,void 0,void 0,function*(){let t=yield cue("zstd",["--quiet"]),e=iue.clean(t);return T(`zstd version: ${e}`),t===""?rs.Gzip:rs.ZstdWithoutLong})}i(TC,"getCompressionMethod");function Wu(t){return t===rs.Gzip?bC.Gzip:bC.Zstd}i(Wu,"getCacheFileName");function lue(){return zA(this,void 0,void 0,function*(){return VA.existsSync(Nq)?Nq:(yield cue("tar")).toLowerCase().includes("gnu tar")?Ss("tar"):""})}i(lue,"getGnuTarPathOnWindows");function Pq(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(Pq,"assertDefined");function WA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(mnt),_B.createHash("sha256").update(n.join("|")).digest("hex")}i(WA,"getCacheVersion");function uue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(uue,"getRuntimeToken");var PC=R(require("http"),1),Dq=R(require("https"),1);function _q(t){let e=t.protocol==="https:";if(fnt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new DB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DB(`http://${r}`)}else return}i(_q,"getProxyUrl");function fnt(t){if(!t.hostname)return!1;let e=t.hostname;if(Ant(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(fnt,"checkBypass");function Ant(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Ant,"isLoopbackAddress");var DB=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Yu=R(Ff(),1),due=R(Gp(),1);var yr=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},mt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(mt||(mt={}));var ns;(function(t){t.Accept="accept",t.ContentType="content-type"})(ns||(ns={}));var vl;(function(t){t.ApplicationJson="application/json"})(vl||(vl={}));var gnt=[mt.MovedPermanently,mt.ResourceMoved,mt.SeeOther,mt.TemporaryRedirect,mt.PermanentRedirect],ynt=[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout],Ent=["OPTIONS","GET","DELETE","HEAD"],Cnt=10,Int=5,Ga=class t extends Error{static{i(this,"HttpClientError")}const Line truncated
${vnt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function UB(t){return t instanceof ss?!0:em(t)&&t.name==="RestError"}i(UB,"isRestError");function bs(t,e){return Buffer.from(t,e)}i(bs,"stringToUint8Array");var qB=R(require("node:http"),1),GB=R(require("node:https"),1),$q=R(require("node:zlib"),1),vue=require("node:stream");var zo=_C("ts-http-runtime");var Pnt={};function QC(t){return t&&typeof t.pipe=="function"}i(QC,"isReadableStream");function Tue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(Tue,"isStreamComplete");function Pue(t){return t&&typeof t.byteLength=="number"}i(Pue,"isArrayBuffer");var HB=class extends vue.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},zq=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ha("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Mi;zo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=knt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,h=new HB(A);h.on("error",E=>{zo.error("Error in upload progress",E)}),QC(c)?c.pipe(h):h.end(c),c=h}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=_nt(u),m={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),m;l=a?Qnt(u,d):u;let f=e.onDownloadProgress;if(f){let A=new HB(f);A.on("error",h=>{zo.error("Error in download progress",h)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await Dnt(l),m}finally{if(e.abortSignal&&n){let u=Promise.resolve();QC(c)&&(u=Tue(c));let d=Promise.resolve();QC(l)&&(d=Tue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{zo.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?qB.default.request(c,l):GB.default.request(c,l);d.once("error",p=>{u(new ss(p.message,{code:p.code??ss.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new Ha("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&QC(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Pue(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(zo.error("Unrecognized body type",n),u(new ss("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?qB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new qB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return GB.default.globalAgent;let s=e.tlsSettings??Pnt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(zo.info("No cached TLS Agent exist, creating a new Agent"),o=new GB.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function _nt(t){let e=co();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(_nt,"getResponseHeaders");function Qnt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=$q.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=$q.default.createInflate();return t.pipe(n),n}return t}i(Qnt,"getDecodedResponseStream");function Dnt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new ss(`Error reading response as text: ${s.message}`,{code:ss.PARSE_ERROR}))})})}i(Dnt,"streamToText");function knt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}i(dot,"encodeHeaders");function pot(t){return t instanceof Uint8Array?t.byteLength:pR(t)?t.size===-1?void 0:t.size:void 0}i(pot,"getLength");function mot(t){let e=0;for(let r of t){let n=pot(r);if(n===void 0)return;e+=n}return e}i(mot,"getTotalLength");async function fot(t,e,r){let n=[bs(`--${r}`,"utf-8"),...e.flatMap(o=>[bs(`\r
`,"utf-8"),bs(dot(o.headers),"utf-8"),bs(`\r
`,"utf-8"),o.body,bs(`\r
--${r}`,"utf-8")]),bs(`--\r
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new mS(o));return n.searchPaths.push(...DH(n.patterns)),n})}static stat(e,r,n){return GH(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield rg.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ui(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield rg.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield rg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){ui(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var Cdt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ofe(t,e){return Cdt(this,void 0,void 0,function*(){return yield vN.create(t,e)})}i(Ofe,"create");var YN=R(require("crypto"),1),ig=R(require("fs"),1),Xf=R(require("path"),1),The=R(Rhe(),1),Phe=R(require("util"),1);var IS;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(IS||(IS={}));var ms;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ms||(ms={}));var Bo;(function(t){t.GNU="gnu",t.BSD="bsd"})(Bo||(Bo={}));var VN=2,WN=5e3,uz=5e3,dz=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Nhe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,SS="cache.tar",pz="manifest.txt",Jar=10*Math.pow(1024,3),JN="cache read denied:";var og=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Tmt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},Pmt="1.0";function Zf(){return og(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Xf.join(n,"actions","temp")}let r=Xf.join(e,YN.randomUUID());return yield zf(r),r})}i(Zf,"createTempDirectory");function fc(t){return ig.statSync(t).size}i(fc,"getArchiveFileSizeInBytes");function fz(t){return og(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield Ofe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=Tmt(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=Xf.relative(c,s).replace(new RegExp(`\\${Xf.sep}`,"g"),"/");T(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(f){r={error:f}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(fz,"resolvePaths");function wS(t){return og(this,void 0,void 0,function*(){return Phe.promisify(ig.unlink)(t)})}i(wS,"unlinkFile");function _he(t){return og(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Ed(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}i(_he,"getVersion");function xS(){return og(this,void 0,void 0,function*(){let t=yield _he("zstd",["--quiet"]),e=The.clean(t);return T(`zstd version: ${e}`),t===""?ms.Gzip:ms.ZstdWithoutLong})}i(xS,"getCompressionMethod");function Nd(t){return t===ms.Gzip?IS.Gzip:IS.Zstd}i(Nd,"getCacheFileName");function vhe(){return og(this,void 0,void 0,function*(){return ig.existsSync(dz)?dz:(yield _he("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}i(vhe,"getGnuTarPathOnWindows");function mz(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(mz,"assertDefined");function ag(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Pmt),YN.createHash("sha256").update(n.join("|")).digest("hex")}i(ag,"getCacheVersion");function Qhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(Qhe,"getRuntimeToken");var BS=R(require("http"),1),gz=R(require("https"),1);function hz(t){let e=t.protocol==="https:";if(_mt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new KN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new KN(`http://${r}`)}else return}i(hz,"getProxyUrl");function _mt(t){if(!t.hostname)return!1;let e=t.hostname;if(vmt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(_mt,"checkBypass");function vmt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(vmt,"isLoopbackAddress");var KN=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Td=R(Zh(),1),Dhe=R($f(),1);var Rr=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},At;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(At||(At={}));var hs;(function(t){t.Accept="accept",t.ContentType="content-type"})(hs||(hs={}));var du;(function(t){t.ApplicationJson="application/json"})(du||(du={}));var Dmt=[At.MovedPermanently,At.ResourceMoved,At.SeeOther,At.TemporaryRedirect,At.PermanentRedirect],kmt=[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout],Omt=["OPTIONS","GET","DELETE","HEAD"],Lmt=10,Mmt=5,mc=class t extends Error{static{i(this,"HttpClientError")}const Line truncated
${Wmt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function nT(t){return t instanceof As?!0:tm(t)&&t.name==="RestError"}i(nT,"isRestError");function Us(t,e){return Buffer.from(t,e)}i(Us,"stringToUint8Array");var sT=R(require("node:http"),1),oT=R(require("node:https"),1),Rz=R(require("node:zlib"),1),Zhe=require("node:stream");var mi=RS("ts-http-runtime");var Jmt={};function NS(t){return t&&typeof t.pipe=="function"}i(NS,"isReadableStream");function Xhe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(Xhe,"isStreamComplete");function eAe(t){return t&&typeof t.byteLength=="number"}i(eAe,"isArrayBuffer");var iT=class extends Zhe.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Nz=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new hc("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new ua;mi.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Xmt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,A=new iT(h);A.on("error",y=>{mi.error("Error in upload progress",y)}),NS(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Ymt(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?jmt(u,d):u;let m=e.onDownloadProgress;if(m){let h=new iT(m);h.on("error",A=>{mi.error("Error in download progress",A)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await Kmt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();NS(c)&&(u=Xhe(c));let d=Promise.resolve();NS(l)&&(d=Xhe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{mi.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?sT.default.request(c,l):oT.default.request(c,l);d.once("error",p=>{u(new As(p.message,{code:p.code??As.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new hc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&NS(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):eAe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(mi.error("Unrecognized body type",n),u(new As("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?sT.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new sT.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oT.default.globalAgent;let s=e.tlsSettings??Jmt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(mi.info("No cached TLS Agent exist, creating a new Agent"),o=new oT.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Ymt(t){let e=No();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(Ymt,"getResponseHeaders");function jmt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Rz.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Rz.default.createInflate();return t.pipe(n),n}return t}i(jmt,"getDecodedResponseStream");function Kmt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new As(`Error reading response as text: ${s.message}`,{code:As.PARSE_ERROR}))})})}i(Kmt,"streamToText");function Xmt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}i(NAt,"encodeHeaders");function TAt(t){return t instanceof Uint8Array?t.byteLength:TT(t)?t.size===-1?void 0:t.size:void 0}i(TAt,"getLength");function PAt(t){let e=0;for(let r of t){let n=TAt(r);if(n===void 0)return;e+=n}return e}i(PAt,"getTotalLength");async function _At(t,e,r){let n=[Us(`--${r}`,"utf-8"),...e.flatMap(o=>[Us(`\r
`,"utf-8"),Us(NAt(o.headers),"utf-8"),Us(`\r
`,"utf-8"),o.body,Us(`\r
--${r}`,"utf-8")]),Us(`--\r
\r
`,"utf-8")],s=mot(n);s&&t.headers.set("Content-Length",s),t.body=await kde(n)}i(fot,"buildRequestBody");var LC="multipartPolicy",Aot=70,hot=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function got(t){if(t.length>Aot)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!hot.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(got,"assertValidBoundary");function fR(){return{name:LC,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?got(r):r=uot(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await fot(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(fR,"multipartPolicy");function AR(){return FB()}i(AR,"createEmptyPipeline");var Lde=LB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Z7t=Lde.logger;function Va(t){return Lde.createClientLogger(t)}i(Va,"createClientLogger");var Wa=Va("core-rest-pipeline");function lG(t={}){return zB({logger:Wa.info,...t})}i(lG,"logPolicy");var uG=VB;function dG(t={}){return WB(t)}i(dG,"redirectPolicy");var hR=R(require("node:os"),1),gR=R(require("node:process"),1);function Ode(){return"User-Agent"}i(Ode,"getHeaderName");async function Mde(t){if(gR.default&&gR.default.versions){let e=`${hR.default.type()} ${hR.default.release()}; ${hR.default.arch()}`,r=gR.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(Mde,"setPlatformSpecificData");var yR="1.22.2";function bot(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(bot,"getUserAgentString");function Fde(){return Ode()}i(Fde,"getUserAgentHeaderName");async function ER(t){let e=new Map;e.set("core-rest-pipeline",yR),await Mde(e);let r=bot(e);return t?`${t} ${r}`:r}i(ER,"getUserAgentValue");var Ude=Fde(),qde="userAgentPolicy";function pG(t={}){let e=ER(t.userAgentPrefix);return{name:qde,async sendRequest(r,n){return r.headers.has(Ude)||r.headers.set(Ude,await e),n(r)}}}i(pG,"userAgentPolicy");var mo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function mG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new mo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(mG,"createAbortablePromise");var vot="The delay was aborted.";function OC(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return mG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??vot})}i(OC,"delay");function ju(t){if(em(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(ju,"getErrorMessage");function Gde(t){return em(t)}i(Gde,"isError");function rh(){return Zp()}i(rh,"randomUUID");var at=nm;var Hde=Symbol("rawContent");function AG(t){return typeof t[Hde]=="function"}i(AG,"hasRawContent");function $de(t){return AG(t)?t[Hde]():t}i($de,"getRawContent");var CR=LC;function hG(){let t=fR();return{name:CR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)AG(n.body)&&(n.body=$de(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(hG,"multipartPolicy");var gG=YB;function yG(){return JB()}i(yG,"decompressResponsePolicy");function EG(t={}){return XB(t)}i(EG,"defaultRetryPolicy");function CG(){return ZB()}i(CG,"formDataPolicy");function Ku(t){return sG(t)}i(Ku,"getDefaultProxySettings");function IG(t,e){return lR(t,e)}i(IG,"proxyPolicy");var zde="setClientRequestIdPolicy";function wG(t="x-ms-client-request-id"){return{name:zde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(wG,"setClientRequestIdPolicy");function SG(t){return uR(t)}i(SG,"agentPolicy");function xG(t){return dR(t)}i(xG,"tlsPolicy");var nh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Vde(t={}){let e=new bG(t.parentContext);return t.span&&(e=e.setValue(nh.span,t.span)),t.namespace&&(e=e.setValue(nh.namespace,t.namespace)),e}i(Vde,"createTracingContext");var bG=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!eat(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Er("InvalidTag",p,os(t,o))}let u=Jit(t,o);if(u===!1)return Er("InvalidAttr","Attributes for '"+l+"' have open quote.",os(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=Tpe(d,e);if(m===!0)n=!0;else return Er(m.err.code,m.err.msg,os(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Er("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",os(t,a));if(r.length===0)return Er("InvalidTag","Closing tag '"+l+"' has not been opened.",os(t,a));{let p=r.pop();if(l!==p.tagName){let m=os(t,p.tagStartPos);return Er("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",os(t,a))}r.length==0&&(s=!0)}}else return Er("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",os(t,o));else{let p=Tpe(d,e);if(p!==!0)return Er(p.err.code,p.err.msg,os(t,o-d.length+p.err.line));if(s===!0)return Er("InvalidXml","Multiple possible root nodes found.",os(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=Npe(t,o);continue}else if(t[o+1]==="?"){if(o=Rpe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=Xit(t,o);if(p==-1)return Er("InvalidChar","char '&' is not expected.",os(t,o));o=p}else if(s===!0&&!Bpe(t[o]))return Er("InvalidXml","Extra text at the end",os(t,o));t[o]==="<"&&o--}}else{if(Bpe(t[o]))continue;return Er("InvalidChar","char '"+t[o]+"' is not expected.",os(t,o))}if(n){if(r.length==1)return Er("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",os(t,r[0].tagStartPos));if(r.length>0)return Er("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Er("InvalidXml","Start tag expected.",1);return!0}i(QR,"validate");function Bpe(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Bpe,"isWhiteSpace");function Rpe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Er("InvalidXml","XML declaration allowed only at the start of the document.",os(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Rpe,"readPI");function Npe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}i(Npe,"readCommentAndCDATA");var Wit='"',Yit="'";function Jit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Wit||t[e]===Yit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(Jit,"readAttributeStr");var jit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Tpe(t,e){let r=PR(t,jit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Er("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",JC(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Er("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",JC(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Er("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",JC(r[s]));let o=r[s][2];if(!Zit(o))return Er("InvalidAttr","Attribute '"+o+"' is an invalid name.",JC(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Er("InvalidAttr","Attribute '"+o+"' is repeated.",JC(r[s]))}return!0}i(Tpe,"validateAttributeString");function Kit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}i(Kit,"validateNumberAmpersand");function Xit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Kit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}i(Xit,"validateAmpersand");function Er(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Er,"getErrorObject");function Zit(t){return HG(t)}i(Zit,"validateAttrName");function eat(t){return HG(t)}i(eat,"validateTagName");function os(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(os,"getLineNumberForPosition");function JC(t){return t.startIndex+t[1].length}i(JC,"getPositionFromMatch");var vpe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Ppe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},_pe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new Ts("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new XC(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=ch(t,">",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=KG(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=XG(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new Ts(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=ch(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=ch(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=XG(t,c,s.removeNSPrefix);if(!d){let P=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${P}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:f}=KG(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let C=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(C=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),A=p!==f);let w=null,x={},b;b=Sat(m),p!==e.tagname&&this.matcher.push(p,{},b),p!==f&&A&&(w=this.buildAttributesMap(f,this.matcher,p),w&&(x=wat(w,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let P="";if(C)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let J=this.readStopNodeData(t,m,h+1);if(!J)throw new Error(`Unexpected end of ${m}`);c=J.i,P=J.tagContent}let _=new Ts(p);w&&(_[":@"]=w),_.add(s.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,N)}else{if(C){({tagName:p,tagExp:f}=KG(s.transformTagName,p,f,s));let P=new Ts(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let P=new Ts(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let P=new Ts(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),r=P}n="",c=h}}}else n+=t[c];return e.child},"parseXml");function Tat(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(Tat,"addChild");function vat(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(vat,"replaceEntitiesValue");function Pat(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(Pat,"saveTextToParentTag");function _at(){return this.stopNodeExpressionsSet.Line truncated
`;function qat(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(sH(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(qat,"detectXmlVersionFromArray");function Xpe(t,e,r,n,s){return!r.sanitizeName||lm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Xpe,"resolveTagName");function nH(t,e){let r="";e.format&&(r=Uat);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new ho(c)):c instanceof ho&&n.push(c)}let s=qat(t,e),o=new ja;return Zpe(t,e,r,o,n,s)}i(nH,"toXml");function Zpe(t,e,r,n,s,o){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=rH(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=sH(u);if(d===void 0)continue;let m=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:Xpe(d,!1,e,n,o),f=Gat(u[":@"],e);n.push(m,f);let A=$at(n,s);if(m===e.textNodeName){let x=u[d];A||(x=e.tagValueProcessor(m,x),x=rH(x,e)),c&&(a+=r),a+=x,c=!1,n.pop();continue}else if(m===e.cdataPropName){c&&(a+=r);let x=u[d][0][e.textNodeName],b=MR(x);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(m===e.commentPropName){let x=u[d][0][e.textNodeName],b=OR(x);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(m[0]==="?"){let x=Kpe(u[":@"],e,A,n,o);a+=(m==="?xml"?"":r)+`<${m}${x}?>`,c=!0,n.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let E=Kpe(u[":@"],e,A,n,o),C=r+`<${m}${E}`,w;A?w=eme(u[d],e):w=Zpe(u[d],e,h,n,s,o),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=C+">":a+=C+"/>":(!w||w.length===0)&&e.suppressEmptyNode?a+=C+"/>":w&&w.endsWith(">")?a+=C+`>${w}${r}</${m}>`:(a+=C+">",w&&r!==""&&(w.includes("/>")||w.includes("</"))?a+=r+e.indentBy+w+r:a+=w,a+=`</${m}>`),c=!0,n.pop()}return a}i(Zpe,"arrToStr");function Gat(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=ed(t[s]),n=!0}return n?r:null}i(Gat,"extractAttributeValues");function eme(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],o=sH(s);if(o===e.textNodeName)r+=s[o];else if(o===e.cdataPropName)r+=s[o][0][e.textNodeName];else if(o===e.commentPropName)r+=s[o][0][e.textNodeName];else{if(o&&o[0]==="?")continue;if(o){let a=Hat(s[":@"],e),c=eme(s[o],e);!c||c.length===0?r+=`<${o}${a}/>`:r+=`<${o}${a}>${c}</${o}>`}}}return r}i(eme,"getRawContent");function Hat(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${ed(s)}"`}return r}i(Hat,"attr_to_str_raw");function sH(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(sH,"propName");function Kpe(t,e,r,n,s){let o="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:Xpe(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=rH(u,e)),u===!0&&e.suppressBooleanAttributes?o+=` ${l}`:o+=` ${l}="${ed(u)}"`}return o}i(Kpe,"attr_to_str");function $at(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}i($at,"checkStopNode");function rH(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(rH,"replaceEntitiesValue");function oH(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(oH,"getIgnoreAttributesFn");var zat={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ps(t){if(this.options=Object.assign({},zat,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,"utf-8")],s=PAt(n);s&&t.headers.set("Content-Length",s),t.body=await sge(n)}i(_At,"buildRequestBody");var _S="multipartPolicy",vAt=70,QAt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DAt(t){if(t.length>vAt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!QAt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(DAt,"assertValidBoundary");function _T(){return{name:_S,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?DAt(r):r=RAt(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await _At(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(_T,"multipartPolicy");function vT(){return rT()}i(vT,"createEmptyPipeline");var oge=ZN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),zpr=oge.logger;function yc(t){return oge.createClientLogger(t)}i(yc,"createClientLogger");var Ec=yc("core-rest-pipeline");function Vz(t={}){return cT({logger:Ec.info,...t})}i(Vz,"logPolicy");var Wz=lT;function Jz(t={}){return uT(t)}i(Jz,"redirectPolicy");var QT=R(require("node:os"),1),DT=R(require("node:process"),1);function ige(){return"User-Agent"}i(ige,"getHeaderName");async function age(t){if(DT.default&&DT.default.versions){let e=`${QT.default.type()} ${QT.default.release()}; ${QT.default.arch()}`,r=DT.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(age,"setPlatformSpecificData");var kT="1.22.2";function $At(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i($At,"getUserAgentString");function cge(){return ige()}i(cge,"getUserAgentHeaderName");async function OT(t){let e=new Map;e.set("core-rest-pipeline",kT),await age(e);let r=$At(e);return t?`${t} ${r}`:r}i(OT,"getUserAgentValue");var lge=cge(),uge="userAgentPolicy";function Yz(t={}){let e=OT(t.userAgentPrefix);return{name:uge,async sendRequest(r,n){return r.headers.has(lge)||r.headers.set(lge,await e),n(r)}}}i(Yz,"userAgentPolicy");var vo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function jz(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new vo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(jz,"createAbortablePromise");var WAt="The delay was aborted.";function vS(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return jz(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??WAt})}i(vS,"delay");function _d(t){if(tm(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(_d,"getErrorMessage");function dge(t){return tm(t)}i(dge,"isError");function Ag(){return em()}i(Ag,"randomUUID");var pt=sm;var pge=Symbol("rawContent");function Xz(t){return typeof t[pge]=="function"}i(Xz,"hasRawContent");function fge(t){return Xz(t)?t[pge]():t}i(fge,"getRawContent");var LT=_S;function Zz(){let t=_T();return{name:LT,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Xz(n.body)&&(n.body=fge(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(Zz,"multipartPolicy");var e3=dT;function t3(){return pT()}i(t3,"decompressResponsePolicy");function r3(t={}){return hT(t)}i(r3,"defaultRetryPolicy");function n3(){return AT()}i(n3,"formDataPolicy");function vd(t){return qz(t)}i(vd,"getDefaultProxySettings");function s3(t,e){return BT(t,e)}i(s3,"proxyPolicy");var mge="setClientRequestIdPolicy";function o3(t="x-ms-client-request-id"){return{name:mge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(o3,"setClientRequestIdPolicy");function i3(t){return RT(t)}i(i3,"agentPolicy");function a3(t){return NT(t)}i(a3,"tlsPolicy");var gg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hge(t={}){let e=new c3(t.parentContext);return t.span&&(e=e.setValue(gg.span,t.span)),t.namespace&&(e=e.setValue(gg.namespace,t.namespace)),e}i(hge,"createTracingContext");var c3=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!gyt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Nr("InvalidTag",p,gs(t,o))}let u=pyt(t,o);if(u===!1)return Nr("InvalidAttr","Attributes for '"+l+"' have open quote.",gs(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let f=Xge(d,e);if(f===!0)n=!0;else return Nr(f.err.code,f.err.msg,gs(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Nr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",gs(t,a));if(r.length===0)return Nr("InvalidTag","Closing tag '"+l+"' has not been opened.",gs(t,a));{let p=r.pop();if(l!==p.tagName){let f=gs(t,p.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",gs(t,a))}r.length==0&&(s=!0)}}else return Nr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",gs(t,o));else{let p=Xge(d,e);if(p!==!0)return Nr(p.err.code,p.err.msg,gs(t,o-d.length+p.err.line));if(s===!0)return Nr("InvalidXml","Multiple possible root nodes found.",gs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=Kge(t,o);continue}else if(t[o+1]==="?"){if(o=jge(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=hyt(t,o);if(p==-1)return Nr("InvalidChar","char '&' is not expected.",gs(t,o));o=p}else if(s===!0&&!Yge(t[o]))return Nr("InvalidXml","Extra text at the end",gs(t,o));t[o]==="<"&&o--}}else{if(Yge(t[o]))continue;return Nr("InvalidChar","char '"+t[o]+"' is not expected.",gs(t,o))}if(n){if(r.length==1)return Nr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",gs(t,r[0].tagStartPos));if(r.length>0)return Nr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Nr("InvalidXml","Start tag expected.",1);return!0}i(jT,"validate");function Yge(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Yge,"isWhiteSpace");function jge(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Nr("InvalidXml","XML declaration allowed only at the start of the document.",gs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(jge,"readPI");function Kge(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}i(Kge,"readCommentAndCDATA");var uyt='"',dyt="'";function pyt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===uyt||t[e]===dyt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(pyt,"readAttributeStr");var fyt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Xge(t,e){let r=JT(t,fyt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",HS(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",HS(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Nr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",HS(r[s]));let o=r[s][2];if(!Ayt(o))return Nr("InvalidAttr","Attribute '"+o+"' is an invalid name.",HS(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Nr("InvalidAttr","Attribute '"+o+"' is repeated.",HS(r[s]))}return!0}i(Xge,"validateAttributeString");function myt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}i(myt,"validateNumberAmpersand");function hyt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,myt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}i(hyt,"validateAmpersand");function Nr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Nr,"getErrorObject");function Ayt(t){return B3(t)}i(Ayt,"validateAttrName");function gyt(t){return B3(t)}i(gyt,"validateTagName");function gs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(gs,"getLineNumberForPosition");function HS(t){return t.startIndex+t[1].length}i(HS,"getPositionFromMatch");var Zge={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},eye={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},tye={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new Hs("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new WS(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=Sg(t,">",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=D3(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);f&&s.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=k3(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new Hs(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Sg(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Sg(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=k3(t,c,s.removeNSPrefix);if(!d){let _=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${_}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,h=d.attrExpPresent,A=d.closeIndex;if({tagName:p,tagExp:m}=D3(s.transformTagName,p,m,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),h=p!==m);let I=null,x={},b;b=Uyt(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&h&&(I=this.buildAttributesMap(m,this.matcher,p),I&&(x=Fyt(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let _="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let Y=this.readStopNodeData(t,f,A+1);if(!Y)throw new Error(`Unexpected end of ${f}`);c=Y.i,_=Y.tagContent}let v=new Hs(p);I&&(v[":@"]=I),v.add(s.textNodeName,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=D3(s.transformTagName,p,m,s));let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let _=new Hs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),r=_}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function Vyt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(Vyt,"addChild");function Wyt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(Wyt,"replaceEntitiesValue");function Jyt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(Jyt,"saveTextToParentTag");function Yyt(){return this.stopNodeExpressionsSet.Line truncated
`;function sEt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(q3(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(sEt,"detectXmlVersionFromArray");function Iye(t,e,r,n,s){return!r.sanitizeName||um(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Iye,"resolveTagName");function U3(t,e){let r="";e.format&&(r=nEt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new ko(c)):c instanceof ko&&n.push(c)}let s=sEt(t,e),o=new Sc;return Sye(t,e,r,o,n,s)}i(U3,"toXml");function Sye(t,e,r,n,s,o){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=F3(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=q3(u);if(d===void 0)continue;let f=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:Iye(d,!1,e,n,o),m=oEt(u[":@"],e);n.push(f,m);let h=aEt(n,s);if(f===e.textNodeName){let x=u[d];h||(x=e.tagValueProcessor(f,x),x=F3(x,e)),c&&(a+=r),a+=x,c=!1,n.pop();continue}else if(f===e.cdataPropName){c&&(a+=r);let x=u[d][0][e.textNodeName],b=tP(x);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(f===e.commentPropName){let x=u[d][0][e.textNodeName],b=eP(x);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(f[0]==="?"){let x=Cye(u[":@"],e,h,n,o);a+=(f==="?xml"?"":r)+`<${f}${x}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=Cye(u[":@"],e,h,n,o),E=r+`<${f}${y}`,I;h?I=wye(u[d],e):I=Sye(u[d],e,A,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}</${f}>`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?a+=r+e.indentBy+I+r:a+=I,a+=`</${f}>`),c=!0,n.pop()}return a}i(Sye,"arrToStr");function oEt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=kd(t[s]),n=!0}return n?r:null}i(oEt,"extractAttributeValues");function wye(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],o=q3(s);if(o===e.textNodeName)r+=s[o];else if(o===e.cdataPropName)r+=s[o][0][e.textNodeName];else if(o===e.commentPropName)r+=s[o][0][e.textNodeName];else{if(o&&o[0]==="?")continue;if(o){let a=iEt(s[":@"],e),c=wye(s[o],e);!c||c.length===0?r+=`<${o}${a}/>`:r+=`<${o}${a}>${c}</${o}>`}}}return r}i(wye,"getRawContent");function iEt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${kd(s)}"`}return r}i(iEt,"attr_to_str_raw");function q3(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(q3,"propName");function Cye(t,e,r,n,s){let o="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:Iye(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=F3(u,e)),u===!0&&e.suppressBooleanAttributes?o+=` ${l}`:o+=` ${l}="${kd(u)}"`}return o}i(Cye,"attr_to_str");function aEt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}i(aEt,"checkStopNode");function F3(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(F3,"replaceEntitiesValue");function $3(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i($3,"getIgnoreAttributesFn");var cEt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Vs(t){if(this.options=Object.assign({},cEt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ps,"Builder");function Vat(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(Vat,"detectXmlVersionFromObj");function iH(t,e,r,n,s){return!r.sanitizeName||lm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(iH,"resolveTagName");Ps.prototype.build=function(t){if(this.options.preserveOrder)return nH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ja,r=Vat(t,this.options);return this.j2x(t,0,e,r).val}};Ps.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:iH(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let m=iH(p,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(m)}else{r.push(d);let m=this.checkStopNode(r);if(r.pop(),m){let f=""+t[l];f===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else o+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let p=t[l].length,m="",f="";for(let A=0;A<p;A++){let h=t[l][A];if(!(typeof h>"u"))if(h===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(h,e+1,r,n);r.pop(),m+=E.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else m+=this.processTextOrObjNode(h,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,h);E=this.replaceEntitiesValue(E),m+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let C=""+h;C===""?m+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:m+=this.indentate(e)+"<"+d+">"+C+"</"+d+this.tagEndChar}else m+=this.buildTextValNode(h,d,"",e,r)}}this.options.oneListGroup&&(m=this.buildObjectNode(m,d,f,e)),o+=m}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let p=Object.keys(t[l]),m=p.length;for(let f=0;f<m;f++){let A=iH(p[f],!0,this.options,r,n);s+=this.buildAttrPairStr(A,""+t[l][p[f]],c)}}else o+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:o}};Ps.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ed(e)+'"'};function Wat(t,e,r,n,s){let o=this.extractAttributes(t);if(n.push(e,o),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(Wat,"processTextOrObjNode");Ps.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let o=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[o]=ed(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=ed(t[n]),r=!0)}return r?e:null};Ps.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Vs,"Builder");function lEt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(lEt,"detectXmlVersionFromObj");function G3(t,e,r,n,s){return!r.sanitizeName||um(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(G3,"resolveTagName");Vs.prototype.build=function(t){if(this.options.preserveOrder)return U3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sc,r=lEt(t,this.options);return this.j2x(t,0,e,r).val}};Vs.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:G3(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let f=G3(p,!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(f)}else{r.push(d);let f=this.checkStopNode(r);if(r.pop(),f){let m=""+t[l];m===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+m+"</"+d+this.tagEndChar}else o+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let p=t[l].length,f="",m="";for(let h=0;h<p;h++){let A=t[l][h];if(!(typeof A>"u"))if(A===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(A,e+1,r,n);r.pop(),f+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else f+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,A);y=this.replaceEntitiesValue(y),f+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+A;E===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else f+=this.buildTextValNode(A,d,"",e,r)}}this.options.oneListGroup&&(f=this.buildObjectNode(f,d,m,e)),o+=f}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let p=Object.keys(t[l]),f=p.length;for(let m=0;m<f;m++){let h=G3(p[m],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][p[m]],c)}}else o+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:o}};Vs.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+kd(e)+'"'};function uEt(t,e,r,n,s){let o=this.extractAttributes(t);if(n.push(e,o),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(uEt,"processTextOrObjNode");Vs.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let o=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[o]=kd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=kd(t[n]),r=!0)}return r?e:null};Vs.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Re.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE));r.sort((s,o)=>JR(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=VR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=WR(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(o[c])}`}return n}};var sr=class extends pm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nI(e,r,this)}computeHMACSHA256(e){return(0,cme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Fr=Va("storage-common");var Jo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Jo||(Jo={}));var rd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rct=new mo("The operation was aborted."),sI=class extends Ka{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:rd.maxRetryDelayInMs):rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:rd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=zR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=td(s.url,Dl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Fr.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(Fr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Fr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Fr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Fr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Fr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Fr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Jo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Jo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Fr.info(`RetryPolicy: Delay for ${s}ms`),YR(s,n,rct)}};var oI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sI(e,r,this.retryOptions)}};var nct="storageBrowserPolicy";function lme(){return{name:nct,async sendRequest(t,e){return at||((t.method==="GET"||t.method==="HEAD")&&(t.url=td(t.url,Dl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(lme,"storageBrowserPolicy");var sct="StorageCorrectContentLengthPolicy";function ume(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:sct,async sendRequest(e,r){return t(e),r(e)}}}i(ume,"storageCorrectContentLengthPolicy");var oct="storageRetryPolicy",uh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ict=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],act=new mo("The operation was aborted.");function dme(t={}){let e=t.retryPolicyType??uh.retryPolicyType,r=t.maxTries??uh.maxTries,n=t.retryDelayInMs??uh.retryDelayInMs,s=t.maxRetryDelayInMs??uh.maxRetryDelayInMs,o=t.secondaryHost??uh.secondaryHost,a=t.tryTimeoutInMs??uh.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:m}){if(d>=r)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Pe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));r.sort((s,o)=>pP(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=lP(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=uP(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(o[c])}`}return n}};var dr=class extends fm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new XS(e,r,this)}computeHMACSHA256(e){return(0,_ye.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Vr=yc("storage-common");var yi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(yi||(yi={}));var Ld={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},EEt=new vo("The operation was aborted."),ZS=class extends wc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ld){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ld.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ld.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ld.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs):Ld.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ld.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ld.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=cP(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Od(s.url,hu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Vr.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(Vr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Vr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Vr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Vr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Pe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Vr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case yi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case yi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${s}ms`),dP(s,n,EEt)}};var ew=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ZS(e,r,this.retryOptions)}};var CEt="storageBrowserPolicy";function vye(){return{name:CEt,async sendRequest(t,e){return pt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Od(t.url,hu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Pe.COOKIE),t.headers.delete(Pe.CONTENT_LENGTH)),e(t)}}}i(vye,"storageBrowserPolicy");var IEt="StorageCorrectContentLengthPolicy";function Qye(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:IEt,async sendRequest(e,r){return t(e),r(e)}}}i(Qye,"storageCorrectContentLengthPolicy");var SEt="storageRetryPolicy",xg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wEt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],xEt=new vo("The operation was aborted.");function Dye(t={}){let e=t.retryPolicyType??xg.retryPolicyType,r=t.maxTries??xg.maxTries,n=t.retryDelayInMs??xg.retryDelayInMs,s=t.maxRetryDelayInMs??xg.maxRetryDelayInMs,o=t.secondaryHost??xg.secondaryHost,a=t.tryTimeoutInMs??xg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return Line truncated
`)+`
`+n(o)+s(o),c=(0,pme.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Re.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>JR(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=VR(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=WR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=`
${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:cct,async sendRequest(o,a){return e(o),a(o)}}}i(dH,"storageSharedKeyCredentialPolicy");var lct="storageRequestFailureDetailsParserPolicy";function mme(){return{name:lct,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}i(mme,"storageRequestFailureDetailsParserPolicy");var fme=require("node:crypto");var jR=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,fme.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var KR="12.31.0",XR="2026-02-06";var ZR="https://storage.azure.com/.default",kl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fi="",pH="*",uct=1*1024*1024;var dct=4*uct;var Ame="AES256",hme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",gme=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],yme=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Eme="BlobUsesCustomerSpecifiedEncryption",Cme="BlobDoesNotUseCustomerSpecifiedEncryption",Ime=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ll(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Ll,"isPipelineLike");var iI=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Cr(t,e={}){t||(t=new qt);let r=new iI([],e);return r._credential=t,r}i(Cr,"newPipeline");function pct(t){let e=[mct,wme,fct,Act,hct,gct,Ect];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>yct(s));return{wrappedPolicies:qG(r),afterRetry:n}}}}i(pct,"processDownlevelPipeline");function mH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?GG(e):uH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${KR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=GC({...r,loggingOptions:{additionalAllowedHeaderNames:gme,additionalAllowedQueryParameters:yme,logger:UR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:FR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:cH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:gG}),s.addPolicy(ume()),s.addPolicy(dme(r.retryOptions),{phase:"R Line truncated
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new $i(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(put,"generateBlobSASQueryParameters20150405");function mut(t,e){if(t=Im(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(mut,"generateBlobSASQueryParameters20181109");function fut(t,e){if(t=Im(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(fut,"generateBlobSASQueryParameters20201206");function Aut(t,e){if(t=Im(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ct(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ct(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(Aut,"generateBlobSASQueryParametersUDK20181109");function hut(t,e){if(t=Im(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ct(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ct(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(hut,"generateBlobSASQueryParametersUDK20200210");function gut(t,e){if(t=Im(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ct(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ct(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(gut,"generateBlobSASQueryParametersUDK20201206");function yut(t,e){if(t=Im(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=fc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ct(t.startsOn,!1):"",t.expiresOn?ct(t.expiresOn,!1):"",Cm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ct(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ct(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Hi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new $i(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(yut,"generateBlobSASQueryParametersUDK20250705");function Cm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Cm,"getCanonicalName");function Im(t){let e=t.version?t.version:XR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(Im,"SASSignatureValuesSanityCheckAndAutofill");var yI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=rh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return te.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return te.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return te.withSpan("BlobLeaseClient-releaseLease",e,async r=>de(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};wh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var bm=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};bm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Adt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},eV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ye(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function bAe(t,e,r){return Adt(this,void 0,void 0,function*(){var n;let s=new Hl(t),o=s.getBlockBlobClient(),a=new eV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new nT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw gr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(bAe,"uploadCacheArchiveSDK");var RAe=R(require("buffer"),1),hc=R(require("fs"),1),NAe=R(require("stream"),1),TAe=R(require("util"),1);var sT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function oT(t){return t?t>=200&&t<300:!1}i(oT,"isSuccessStatusCode");function hdt(t){return t?t>=500:!0}i(hdt,"isServerErrorStatusCode");function gdt(t){return t?[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout].includes(t):!1}i(gdt,"isRetryableStatusCode");function ydt(t){return sT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(ydt,"sleep");function BAe(t,e,r){return sT(this,arguments,void 0,function*(n,s,o,a=TB,c=vB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(A){l&&(p=l(A)),f=!0,u=A.message}if(p&&(m=o(p),!hdt(m)))return p;if(m&&(f=gdt(m),u=`Cache service responded with ${m}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){T(`${n} - Error is not retryable`);break}yield ydt(c),d++}throw Error(`${n} failed: ${u}`)})}i(BAe,"retry");function TI(t,e){return sT(this,arguments,void 0,function*(r,n,s=TB,o=vB){return yield BAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Ga)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(TI,"retryTypedResponse");function Sh(t,e){return sT(this,arguments,void 0,function*(r,n,s=TB,o=vB){return yield BAe(r,n,a=>a.message.statusCode,s,o)})}i(Sh,"retryHttpClientResponse");var ei=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Edt(t,e){return ei(this,void 0,void 0,function*(){yield TAe.promisify(NAe.pipeline)(t.message,e)})}i(Edt,"pipeResponseToStream");var iT=class{static{i(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){t Line truncated
Other caches with similar key:`);for(let c of o?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(Bdt,"printCachesListForDiagnostics");function oV(t,e,r){return Qs(this,void 0,void 0,function*(){let n=new GAe.URL(t),s=QAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield PAe(t,e,s):s.concurrentBlobDownloads?yield vAe(t,e,s):yield aT(t,e):yield aT(t,e)})}i(oV,"downloadCache");function $Ae(t,e,r){return Qs(this,void 0,void 0,function*(){let n=sV(),s=WA(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield TI("reserveCache",()=>Qs(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i($Ae,"reserveCache");function qAe(t,e){return`bytes ${t}-${e}/*`}i(qAe,"getContentRange");function Rdt(t,e,r,n,s){return Qs(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${qAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":qAe(n,s)},a=yield Sh(`uploadChunk (start: ${n}, end: ${s})`,()=>Qs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!oT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Rdt,"uploadChunk");function Ndt(t,e,r,n){return Qs(this,void 0,void 0,function*(){let s=qa(r),o=PI(`caches/${e.toString()}`),a=xh.openSync(r,"r"),c=tV(n),l=Pq("uploadConcurrency",c.uploadConcurrency),u=Pq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Qs(this,void 0,void 0,function*(){for(;p<s;){let m=Math.min(s-p,u),f=p,A=p+m-1;p+=u,yield Rdt(t,o,()=>xh.createReadStream(r,{fd:a,start:f,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),f,A)}})))}finally{xh.closeSync(a)}})}i(Ndt,"uploadFile");function Tdt(t,e,r){return Qs(this,void 0,void 0,function*(){let n={size:r};return yield TI("commitCache",()=>Qs(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(Tdt,"commitCache");function iV(t,e,r,n){return Qs(this,void 0,void 0,function*(){if(tV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield bAe(r,e,n)}else{let o=sV();T("Upload cache"),yield Ndt(o,t,e,n),T("Commiting cache");let a=qa(e);ye(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Tdt(o,t,a);if(!oT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ye("Cache saved successfully")}})}i(iV,"saveCache");var Mhe=R(Phe(),1),Sr=R(wr(),1),Eo=R(wr(),1),vm=R(wr(),1),Pm=R(wr(),1),_m=R(wr(),1);var e4=R(wr(),1),t4=R(wr(),1),khe=R(wr(),1),Lhe=R(wr(),1),Ohe=R(wr(),1);var KV=R(wr(),1),XV=R(wr(),1),_he=R(wr(),1),Qhe=R(wr(),1),Dhe=R(wr(),1);var ZV=class extends Dhe.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Qhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_he.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?XV.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KV.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KV.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XV.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},YT=new ZV;var r4=class extends Ohe.MessageType{static{i(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:i(()=>YT,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Lhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,khe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.repositoryId=e.int64().toString();break;case 2:o.scope.push(YT.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?t4.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.repositoryId! Line truncated
`));let n=yield g4(r,"create");yield y4(n,t)})}i(C4,"createTar");var Uh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Wi=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Qm=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},I4="cache write denied:",XT=class t extends Qm{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Ghe=PB,ZT=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},ev=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Hhe(t){if(!t||t.length===0)throw new Wi("Path Validation Error: At least one directory or file path is required")}i(Hhe,"checkPaths");function w4(t){if(t.length>512)throw new Wi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Wi(`Key Validation Error: ${t} cannot contain commas.`)}i(w4,"checkKey");function S4(){return vI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(S4,"isFeatureAvailable");function $he(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=vI();T(`Cache service version: ${u}`),Hhe(s);let d=nV();if(!kAe(d)){ye(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield $mt(s,o,a,c,l):yield Hmt(s,o,a,c,l)})}i($he,"restoreCache");function Hmt(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Wi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)w4(f);let p=yield TC(),m="";try{let f;try{f=yield HAe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let E=(u=h?.message)!==null&&u!==void 0?u:"";throw E.includes(Ghe)?new ZT(E):h}if(!f?.archiveLocation)return;if(c?.lookupOnly)return ye("Lookup only - skipping download"),f.cacheKey;m=WI.join(yield RC(),Wu(p)),T(`Archive Path: ${m}`),yield oV(f.archiveLocation,m,c),Vp()&&(yield VI(m,p));let A=qa(m);return ye(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield E4(m,p),ye("Cache restored successfully"),f.cacheKey}catch(f){let A=f;if(A.name===Wi.name)throw f;A instanceof Ga&&typeof A.statusCode=="number"&&A.statusCode>=500?OA(`Failed to restore: ${f.message}`):gr(`Failed to restore: ${f.message}`)}finally{try{yield NC(m)}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(Hmt,"restoreCacheV1");function $mt(t,e,r,n){return Uh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Wi("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)w4(m);let p="";try{let m=h4(),f=yield TC(),A={key:o,restoreKeys:a,version:WA(s,f,l)},h;try{h=yield m.GetCacheEntryDownloadURL(A)}catch(w){let x=(u=w?.message)!==null&&u!==void 0?u:"";throw x.includes(Ghe)?new ZT(x):w}if(!h.ok){T(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==h.matchedKey?ye(`Cache hit for restore-key: ${h.matchedKey}`):ye(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return ye("Lookup only - skipping download"),h.matchedKey;p=WI.join(yield RC(),Wu(f)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield oV(h.signedDownloadUrl,p,c);let C=qa(p);return ye(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),Vp()&&(yield VI(p,f)),yield E4(p,f),ye("Cache restored successfully"),h.matchedKey}catch(m){let f=m;if(f.name===Wi.name)throw m;f instanceof Ga&&typeof f.statusCode=="number"&&f.statusCode>=500?OA(`Failed to restore: ${m.message}`):gr(`Failed to restore: ${m.message}`)}finally{try{p&&(yield NC(p))}catch(m){T(`Failed to delete archive: ${m}`)}}})}i($mt,"restoreCacheV2");function x4(t,e,r){return Uh(this,arguments,void 0,function*(n,s,o,a=!1){let c=vI();T(`Cache service version: ${c}`),Hhe(n),w4(s);let l=nV();return LAe(l)?c==="v2"?yield Vmt(n,s,o,a):yield zmt(n,s,o,a):(ye(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),T(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}i(x4,"saveCache");function zmt(t,e,r){return Uh(this,argu Line truncated
${l}`}let p=R4(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${N4((t.line+1).toString(),u)} | ${p.str}
`+n(o)+s(o),c=(0,kye.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Pe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Pe.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>pP(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=lP(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=uP(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let f=p.toLowerCase();u[f]=l[p],d.push(f)}d.sort();for(let p of d)c+=`
${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:bEt,async sendRequest(o,a){return e(o),a(o)}}}i(J3,"storageSharedKeyCredentialPolicy");var BEt="storageRequestFailureDetailsParserPolicy";function Oye(){return{name:BEt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}i(Oye,"storageRequestFailureDetailsParserPolicy");var Lye=require("node:crypto");var fP=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Lye.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var mP="12.31.0",hP="2026-02-06";var AP="https://storage.azure.com/.default",Au={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var da="",Y3="*",REt=1*1024*1024;var NEt=4*REt;var Mye="AES256",Fye="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Uye=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],qye=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],$ye="BlobUsesCustomerSpecifiedEncryption",Gye="BlobDoesNotUseCustomerSpecifiedEncryption",Hye=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function gu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(gu,"isPipelineLike");var tw=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Tr(t,e={}){t||(t=new Wt);let r=new tw([],e);return r._credential=t,r}i(Tr,"newPipeline");function TEt(t){let e=[PEt,zye,_Et,vEt,QEt,DEt,OEt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>kEt(s));return{wrappedPolicies:x3(r),afterRetry:n}}}}i(TEt,"processDownlevelPipeline");function j3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?b3(e):W3(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${mP}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=LS({...r,loggingOptions:{additionalAllowedHeaderNames:Uye,additionalAllowedQueryParameters:qye,logger:nP.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:rP,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:z3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:e3}),s.addPolicy(Qye()),s.addPolicy(Dye(r.retryOptions),{phase:"R Line truncated
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Aa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(TIt,"generateBlobSASQueryParameters20150405");function PIt(t,e){if(t=Sm(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(PIt,"generateBlobSASQueryParameters20181109");function _It(t,e){if(t=Sm(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(_It,"generateBlobSASQueryParameters20201206");function vIt(t,e){if(t=Sm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(vIt,"generateBlobSASQueryParametersUDK20181109");function QIt(t,e){if(t=Sm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(QIt,"generateBlobSASQueryParametersUDK20200210");function DIt(t,e){if(t=Sm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(DIt,"generateBlobSASQueryParametersUDK20201206");function kIt(t,e){if(t=Sm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ha(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Aa(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(kIt,"generateBlobSASQueryParametersUDK20250705");function Im(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Im,"getCanonicalName");function Sm(t){let e=t.version?t.version:hP;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(Sm,"SASSignatureValuesSanityCheckAndAutofill");var fw=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Ag()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>de(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Og.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bm=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ww=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var vSt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},L8=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ae(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function JCe(t,e,r){return vSt(this,void 0,void 0,function*(){var n;let s=new xu(t),o=s.getBlockBlobClient(),a=new L8((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new C_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ur(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(JCe,"uploadCacheArchiveSDK");var jCe=R(require("buffer"),1),$c=R(require("fs"),1),KCe=R(require("stream"),1),XCe=R(require("util"),1);var I_=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function S_(t){return t?t>=200&&t<300:!1}i(S_,"isSuccessStatusCode");function QSt(t){return t?t>=500:!0}i(QSt,"isServerErrorStatusCode");function DSt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(DSt,"isRetryableStatusCode");function kSt(t){return I_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(kSt,"sleep");function YCe(t,e,r){return I_(this,arguments,void 0,function*(n,s,o,a=VN,c=WN,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(h){l&&(p=l(h)),m=!0,u=h.message}if(p&&(f=o(p),!QSt(f)))return p;if(f&&(m=DSt(f),u=`Cache service responded with ${f}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!m){T(`${n} - Error is not retryable`);break}yield kSt(c),d++}throw Error(`${n} failed: ${u}`)})}i(YCe,"retry");function xw(t,e){return I_(this,arguments,void 0,function*(r,n,s=VN,o=WN){return yield YCe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof mc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(xw,"retryTypedResponse");function Lg(t,e){return I_(this,arguments,void 0,function*(r,n,s=VN,o=WN){return yield YCe(r,n,a=>a.message.statusCode,s,o)})}i(Lg,"retryHttpClientResponse");var wi=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function OSt(t,e){return wi(this,void 0,void 0,function*(){yield XCe.promisify(KCe.pipeline)(t.message,e)})}i(OSt,"pipeResponseToStream");var w_=class{static{i(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){t Line truncated
Other caches with similar key:`);for(let c of o?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(GSt,"printCachesListForDiagnostics");function $8(t,e,r){return Js(this,void 0,void 0,function*(){let n=new dIe.URL(t),s=rIe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield eIe(t,e,s):s.concurrentBlobDownloads?yield ZCe(t,e,s):yield x_(t,e):yield x_(t,e)})}i($8,"downloadCache");function fIe(t,e,r){return Js(this,void 0,void 0,function*(){let n=q8(),s=ag(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield xw("reserveCache",()=>Js(this,void 0,void 0,function*(){return n.postJson(Bw("caches"),o)}))})}i(fIe,"reserveCache");function uIe(t,e){return`bytes ${t}-${e}/*`}i(uIe,"getContentRange");function HSt(t,e,r,n,s){return Js(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${uIe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":uIe(n,s)},a=yield Lg(`uploadChunk (start: ${n}, end: ${s})`,()=>Js(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!S_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(HSt,"uploadChunk");function zSt(t,e,r,n){return Js(this,void 0,void 0,function*(){let s=fc(r),o=Bw(`caches/${e.toString()}`),a=Mg.openSync(r,"r"),c=M8(n),l=mz("uploadConcurrency",c.uploadConcurrency),u=mz("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Js(this,void 0,void 0,function*(){for(;p<s;){let f=Math.min(s-p,u),m=p,h=p+f-1;p+=u,yield HSt(t,o,()=>Mg.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),m,h)}})))}finally{Mg.closeSync(a)}})}i(zSt,"uploadFile");function VSt(t,e,r){return Js(this,void 0,void 0,function*(){let n={size:r};return yield xw("commitCache",()=>Js(this,void 0,void 0,function*(){return t.postJson(Bw(`caches/${e.toString()}`),n)}))})}i(VSt,"commitCache");function G8(t,e,r,n){return Js(this,void 0,void 0,function*(){if(M8(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield JCe(r,e,n)}else{let o=q8();T("Upload cache"),yield zSt(o,t,e,n),T("Commiting cache");let a=fc(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield VSt(o,t,a);if(!S_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(G8,"saveCache");var aSe=R(eSe(),1),vr=R(_r(),1),Mo=R(_r(),1),_m=R(_r(),1),vm=R(_r(),1),Qm=R(_r(),1);var LJ=R(_r(),1),MJ=R(_r(),1),sSe=R(_r(),1),oSe=R(_r(),1),iSe=R(_r(),1);var DJ=R(_r(),1),kJ=R(_r(),1),tSe=R(_r(),1),rSe=R(_r(),1),nSe=R(_r(),1);var OJ=class extends nSe.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,rSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?kJ.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,DJ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,DJ.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?kJ.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},dv=new OJ;var FJ=class extends iSe.MessageType{static{i(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:i(()=>dv,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,oSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,sSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.repositoryId=e.int64().toString();break;case 2:o.scope.push(dv.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?MJ.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.repositoryId! Line truncated
`));let{commands:n}=yield uSe(r,"create");yield pSe(n,t)})}i(rY,"createTar");var ey=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ea=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Dm=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nY="cache write denied:",hv=class t extends Dm{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},mSe=JN,Av=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},gv=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function hSe(t){if(!t||t.length===0)throw new Ea("Path Validation Error: At least one directory or file path is required")}i(hSe,"checkPaths");function sY(t){if(t.length>512)throw new Ea(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ea(`Key Validation Error: ${t} cannot contain commas.`)}i(sY,"checkKey");function oY(){return bw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(oY,"isFeatureAvailable");function ASe(t,e,r,n){return ey(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=bw();T(`Cache service version: ${u}`),hSe(s);let d=U8();if(!sIe(d)){ae(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield abt(s,o,a,c,l):yield ibt(s,o,a,c,l)})}i(ASe,"restoreCache");function ibt(t,e,r,n){return ey(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)sY(m);let p=yield xS(),f="";try{let m;try{m=yield pIe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(A){let y=(u=A?.message)!==null&&u!==void 0?u:"";throw y.includes(mSe)?new Av(y):A}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=$w.join(yield Zf(),Nd(p)),T(`Archive Path: ${f}`),yield $8(m.archiveLocation,f,c),Vf()&&(yield qw(f,p));let h=fc(f);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield tY(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Ea.name)throw m;h instanceof mc&&typeof h.statusCode=="number"&&h.statusCode>=500?KA(`Failed to restore: ${m.message}`):ur(`Failed to restore: ${m.message}`)}finally{try{yield wS(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(ibt,"restoreCacheV1");function abt(t,e,r,n){return ey(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)sY(f);let p="";try{let f=ZJ(),m=yield xS(),h={key:o,restoreKeys:a,version:ag(s,m,l)},A;try{A=yield f.GetCacheEntryDownloadURL(h)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(mSe)?new Av(x):I}if(!A.ok){T(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==A.matchedKey?ae(`Cache hit for restore-key: ${A.matchedKey}`):ae(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),A.matchedKey;p=$w.join(yield Zf(),Nd(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield $8(A.signedDownloadUrl,p,c);let E=fc(p);return ae(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Vf()&&(yield qw(p,m)),yield tY(p,m),ae("Cache restored successfully"),A.matchedKey}catch(f){let m=f;if(m.name===Ea.name)throw f;m instanceof mc&&typeof m.statusCode=="number"&&m.statusCode>=500?KA(`Failed to restore: ${f.message}`):ur(`Failed to restore: ${f.message}`)}finally{try{p&&(yield wS(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(abt,"restoreCacheV2");function iY(t,e,r){return ey(this,arguments,void 0,function*(n,s,o,a=!1){let c=bw();T(`Cache service version: ${c}`),hSe(n),sY(s);let l=U8();return oIe(l)?c==="v2"?yield lbt(n,s,o,a):yield cbt(n,s,o,a):(ae(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),T(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}i(iY,"saveCache");function cbt(t,e,r){return Line truncated
${l}`}let p=lY(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${uY((t.line+1).toString(),u)} | ${p.str}
`,l+=`${"-".repeat(r.indent+u+3+p.pos)}^
`;for(let m=1;m<=r.linesAfter&&!(c+m>=o.length);m++){let f=R4(t.buffer,s[c+m],o[c+m],t.position-(s[c]-s[c+m]),d);l+=`${" ".repeat(r.indent)}${N4((t.line+m+1).toString(),u)} | ${f.str}
`}return l.replace(/\n$/,"")}i(rAt,"makeSnippet");function Khe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
`;for(let f=1;f<=r.linesAfter&&!(c+f>=o.length);f++){let m=lY(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${uY((t.line+f+1).toString(),u)} | ${m.str}
`}return l.replace(/\n$/,"")}i(E0t,"makeSnippet");function wSe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i(Khe,"formatError");var Dm=class dge extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Khe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Khe(this,e)}`}static throwAt(e,r,n,s=""){let o=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(o++,a=l+1):u===13&&(o++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:o,column:r-a};throw c.snippet=rAt(c),new dge(n,c)}},jt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},We={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},dd={BLOCK:1,FLOW:2},Io={CLIP:1,STRIP:2,KEEP:3},nAt=-1;function Xhe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(Xhe,"simpleEscapeSequence");var pge=new Array(256),mge=new Array(256);for(let t=0;t<256;t++)pge[t]=Xhe(t)?1:0,mge[t]=Xhe(t);function sAt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(sAt,"charFromCodepoint");function oAt(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(oAt,"fromHexCode$1");function iAt(t){return t===120?2:t===117?4:8}i(iAt,"escapedHexLen$1");function rv(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}i(rv,"skipFoldedBreaks");function q4(t){return t===1?" ":`
`.repeat(t-1)}i(q4,"foldedBreaks");function aAt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(o,a);let l=rv(t,s,r);n+=q4(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,a)}i(aAt,"getPlainValue");function cAt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(o,s)+"'",s+=2,o=a=s;else if(c===10||c===13){n+=t.slice(o,a);let l=rv(t,s,r);n+=q4(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(cAt,"getSingleQuotedValue");function lAt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(o,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=rv(t,s,r).position;else if(l<256&&pge[l])n+=mge[l],s++;else{let u=iAt(l),d=0;for(;u>0;u--){s++;let p=oAt(t.charCodeAt(s));d=(d<<4)+p}n+=sAt(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=rv(t,s,r);n+=q4(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(lAt,"getDoubleQuotedValue");function Zhe(t,e,r,n,s,o){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i(wSe,"formatError");var km=class LSe extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=wSe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${wSe(this,e)}`}static throwAt(e,r,n,s=""){let o=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(o++,a=l+1):u===13&&(o++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:o,column:r-a};throw c.snippet=E0t(c),new LSe(n,c)}},rr={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Ze={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},Vd={BLOCK:1,FLOW:2},Fo={CLIP:1,STRIP:2,KEEP:3},C0t=-1;function xSe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(xSe,"simpleEscapeSequence");var MSe=new Array(256),FSe=new Array(256);for(let t=0;t<256;t++)MSe[t]=xSe(t)?1:0,FSe[t]=xSe(t);function I0t(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(I0t,"charFromCodepoint");function S0t(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(S0t,"fromHexCode$1");function w0t(t){return t===120?2:t===117?4:8}i(w0t,"escapedHexLen$1");function yv(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}i(yv,"skipFoldedBreaks");function wY(t){return t===1?" ":`
`.repeat(t-1)}i(wY,"foldedBreaks");function x0t(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(o,a);let l=yv(t,s,r);n+=wY(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,a)}i(x0t,"getPlainValue");function b0t(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(o,s)+"'",s+=2,o=a=s;else if(c===10||c===13){n+=t.slice(o,a);let l=yv(t,s,r);n+=wY(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(b0t,"getSingleQuotedValue");function B0t(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(o,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=yv(t,s,r).position;else if(l<256&&MSe[l])n+=FSe[l],s++;else{let u=w0t(l),d=0;for(;u>0;u--){s++;let p=S0t(t.charCodeAt(s));d=(d<<4)+p}n+=I0t(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=yv(t,s,r);n+=wY(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(B0t,"getDoubleQuotedValue");function bSe(t,e,r,n,s,o){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
`),l=c===""?[]:(c.endsWith(`
`)?c.slice(0,-1):c).split(`
`),u="",d=!1,p=0,m=!1;for(let f of l){let A=0;for(;A<a&&f.charCodeAt(A)===32;)A++;if(n<0||A>=f.length){p++;continue}let h=f.slice(a),E=h.charCodeAt(0);o?E===32||E===9?(m=!0,u+=`
`.repeat(d?1+p:p)):m?(m=!1,u+=`
`),u="",d=!1,p=0,f=!1;for(let m of l){let h=0;for(;h<a&&m.charCodeAt(h)===32;)h++;if(n<0||h>=m.length){p++;continue}let A=m.slice(a),y=A.charCodeAt(0);o?y===32||y===9?(f=!0,u+=`
`.repeat(d?1+p:p)):f?(f=!1,u+=`
`.repeat(p+1)):p===0?d&&(u+=" "):u+=`
`.repeat(p):u+=`
`.repeat(d?1+p:p),u+=h,d=!0,p=0}return s===Io.KEEP?u+=`
`.repeat(d?1+p:p):s!==Io.STRIP&&d&&(u+=`
`),u}i(Zhe,"getBlockValue");function uAt(t,e){if(e.valueStart===nAt)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case We.SINGLE_QUOTED:return cAt(t,r,n);case We.DOUBLE_QUOTED:return lAt(t,r,n);case We.LITERAL_BLOCK:return Zhe(t,r,n,e.indent,e.chomping,!1);case We.FOLDED_BLOCK:return Zhe(t,r,n,e.indent,e.chomping,!0);default:return aAt(t,r,n)}}i(uAt,"getScalarValue");var dAt=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),pAt="-#;/?:@&=+$_.~*'()",ryr=pAt+"!,[]";function T4(t){let e="",r=0;for(;r<t.length;){if(t.charCodeAt(r)!==37){e+=t[r++];continue}let n=parseInt(t.slice(r+1,r+3),16);if(r+=3,n>=192){let s=n<224?1:n<240?2:3;for(n&=(1<<6-s)-1;s-- >0;)n=n<<6|parseInt(t.slice(r+1,r+3),16)&63,r+=3}n<65536?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023))}return e}i(T4,"tagPercentDecode");function fge(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return T4(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return T4(e?.[n]??dAt[n]??n)+T4(t.slice(n.length))}i(fge,"tagNameFull");var Gh=-1,mAt="tag:yaml.org,2002:merge",G4={filename:"",schema:Xft,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function fAt(t){return"tagStart"in t&&t.tagStart!==Gh?t.tagStart:"anchorStart"in t&&t.anchorStart!==Gh?t.anchorStart:"valueStart"in t&&t.valueStart!==Gh?t.valueStart:"start"in t?t.start:0}i(fAt,"eventPosition$1");function An(t,e){Dm.throwAt(t.source,t.position,e,t.filename)}i(An,"throwError$1");function Age(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Dm)throw s;Dm.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(Age,"finalizeCollection");function AAt(t,e){let r=uAt(t.source,e),n=e.tagStart===Gh?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=fge(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===st&&An(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(o)??t.schema.lookupSequenceTag(o);if(c){r!==""&&An(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:Age(t,t.position,c,l),tag:c}}An(t,`unknown scalar tag !<${o}>`)}return e.style===We.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(AAt,"constructScalar");function ege(t,e,r){let n=e.tagStart===Gh?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:fge(n,t.tagHandlers)}i(ege,"collectionTagName");function hge(t){return t.nodeKind==="mapping"}i(hge,"isMappingTag");function tge(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&An(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(tge,"chargeMergeWork");function rge(t,e,r,n){tge(t);for(let s of n.keys(r)){if(tge(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&An(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(rge,"mergeKeys");function hAt(t,e,r,n){if(t.position=e.keyPosition,hge(n))rge(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&An(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||An(t,"cannot merge mappings; the provided source object is unacceptable"),rge(t,e,s,o)}}else An(t,"cannot merge mappings; the provided source object is unacceptable")}i(hAt,"mergeSource");function gAt(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){hAt(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&An(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&An(t,o),e.overridable?.delete(r)}i(gAt,"addMappingValue");function v4(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){hge(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&An(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,gAt(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===mAt}i(v4,"addValue");function P4(t,e,r,n,s){if(e.anchorStart!==Gh){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(P4,"storeAnchor");function yAt(t,e){let r={...G4,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=fAt(n),n.type){case jt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case jt.SCALAR:{let{value:s,tag:o}=AAt(r,n);P4(r,n,s,o,!0),v4(r,s,o);break}case jt.SEQUENCE:{let s=ege(r,n,"tag:yaml.org,2002:seq"),o=r.schema.lookupSequenceTag(s);o||An(r,`unknoLine truncated
`)?We.DOUBLE_QUOTED:Rge(t)))}i(WAt,"applyForceQuotesOption");function YAt(t){if(t.style!==We.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!cv(t.allowedStylesMask,We.LITERAL_BLOCK)){r&&(t.style=We.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=We.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),o=0,a=!1;for(;o<=e.length;){let c=e.length,l=e.indexOf(`
`,o);l!==-1&&(c=l);let u=e.slice(o,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=We.FOLDED_BLOCK:r&&(t.style=We.LITERAL_BLOCK)}i(YAt,"tryLongOrMultilineAsBlock");function JAt(t){t.style===We.PLAIN&&!cv(t.allowedStylesMask,We.PLAIN)&&(t.style=Rge(t))}i(JAt,"quoteInvalidPlain");function jAt(t){cv(t.allowedStylesMask,t.style)||(t.style=We.DOUBLE_QUOTED)}i(jAt,"fallbackToDoubleQuoted");var KAt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",XAt="[\\n\\r]",ZAt="\\uFEFF",z4="[ \\t]",Nge=`(?:(?!(?:${XAt}|${ZAt}))${KAt})`,lv=`(?:(?!${z4})${Nge})`,Tge="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",vge="[-?:,\\[\\]{}#&*!|>'\"%@`]",eht="[,\\[\\]{}]",O4=lv,M4=`(?:(?!${eht})${lv})`,tht=`(?:(?:(?!${vge})${lv})|[?:-](?=${O4}))`,rht=`(?:(?:(?!${vge})${lv})|[?:-](?=${M4}))`,Pge=`(?:(?:(?![:#])${O4})|:(?=${O4}))#*`,_ge=`(?:(?:(?![:#])${M4})|:(?=${M4}))#*`,Qge=`(?:${z4}*${Pge})*`,Dge=`(?:${z4}*${_ge})*`,kge=`${tht}#*${Qge}`,Lge=`${rht}#*${Dge}`,nht=kge,sht=Lge,oht=`\\n+${Pge}${Qge}`,iht=`\\n+${_ge}${Dge}`,aht=`${kge}(?:${oht})*`,cht=`${Lge}(?:${iht})*`,nyr=new RegExp(`^(?:${aht})$`,"u"),syr=new RegExp(`^(?:${cht})$`,"u"),oyr=new RegExp(`^(?:${nht})$`,"u"),iyr=new RegExp(`^(?:${sht})$`,"u"),ayr=new RegExp(`^(?:${Tge})*$`,"u"),cyr=new RegExp(`^(?:${Tge}|\\n)*$`,"u"),lyr=new RegExp(`^(?:${Nge}|\\n)*$`,"u");var lht={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(age).map(t=>Reflect.get(age,t)),tagBeforeAnchor:!1};var uyr={...lht,schema:eAt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var dyr=jt.DOCUMENT,pyr=jt.SEQUENCE,myr=jt.MAPPING,fyr=jt.SCALAR,Ayr=jt.ALIAS,hyr=jt.POP,gyr=We.PLAIN,yyr=We.SINGLE_QUOTED,Eyr=We.DOUBLE_QUOTED,Cyr=We.LITERAL_BLOCK,Iyr=We.FOLDED_BLOCK,wyr=dd.BLOCK,Syr=dd.FLOW,xyr=Io.CLIP,byr=Io.STRIP,Byr=Io.KEEP;var ui=R(require("fs"),1),Os=R(require("path"),1);var Ywe=R(REe(),1);var wv=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var hY=R(require("fs"),1),jIe=R(require("os"),1),dw=R(require("path"),1);var gW=R(require("fs"),1),VEe=R(require("os"),1),WEe=R(require("path"),1),YEe=R(zEe(),1);var bv=class t{static{i(this,"Context")}static _tmpDir=gW.default.mkdtempSync(WEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||VEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return gW.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return YEe.tmpNameSync(e)}};var Yl=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),Fu(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),eC(e,r,n)}};var AY=R(require("crypto"),1),YIe=R(require("fs"),1),uw=R(require("path"),1),JIe=R(GIe(),1);var Ye=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var lw=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var uP=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(lw(s)){if(typeof s.name!="string")throw new Ye(" Line truncated
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return m<f},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:p,ltrim:m,max_record_size:f,raw:A,relax_quotes:h,rtrim:E,skip_empty_lines:C,to:w,to_line:x}=this.options,{comment:b,escape:N,quote:P,record_delimiter:_}=this.options,{bomSkipped:J,delimiterDiscovered:Ce,delimiterBufPrevious:ae,rawBuffer:qe,escapeIsQuote:ne}=this.state;if(!Ce&&u){let dt;if(ae===void 0?dt=n:ae!==void 0&&n===void 0?dt=ae:dt=Buffer.concat([ae,n]),n=void 0,s||dt.length>u.size)this.options.delimiter=[Buffer.from(zIe(dt,this.options.delimiter_auto))],this.state.previousBuf=dt,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=dt;return}}let{previousBuf:Z}=this.state,U;if(Z===void 0)if(n===void 0){a();return}else U=n;else Z!==void 0&&n===void 0?U=Z:U=Buffer.concat([Z,n]);if(J===!1)if(c===!1)this.state.bomSkipped=!0;else if(U.length<3){if(s===!1){this.state.previousBuf=U;return}}else{for(let dt in fg)if(fg[dt].compare(U,0,fg[dt].length)===0){let Sa=fg[dt].length;this.state.bufBytesStart+=Sa,U=U.slice(Sa);let gu=mg({...this.original_options,encoding:dt});for(let rr in gu)this.options[rr]=gu[rr];({comment:b,escape:N,quote:P}=this.options);break}this.state.bomSkipped=!0}let ut=U.length,ee;for(ee=0;ee<ut&&!this.__needMoreData(ee,ut,s);ee++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),x!==-1&&this.info.lines>x){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(U,ee)&&(_=this.options.record_delimiter);let dt=U[ee];if(A===!0&&qe.append(dt),(dt===Owt||dt===Mwt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(U,ee,dt)&&ee+N.length<ut)if(ne){if(this.__isQuote(U,ee+N.length)){this.state.escaping=!0,ee+=N.length-1;continue}}else{this.state.escaping=!0,ee+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,ee))if(this.state.quoting===!0){let rr=U[ee+P.length],xa=E&&this.__isCharTrimable(U,ee+P.length),Vs=b!==null&&this.__compareBytes(b,U,ee+P.length,rr),pp=this.__isDelimiter(U,ee+P.length,rr),Hx=_.length===0?this.__autoDiscoverRecordDelimiter(U,ee+P.length):this.__isRecordDelimiter(rr,U,ee+P.length);if(N!==null&&this.__isEscape(U,ee,dt)&&this.__isQuote(U,ee+N.length))ee+=N.length-1;else if(!rr||pp||Hx||Vs||xa){this.state.quoting=!1,this.state.wasQuoting=!0,ee+=P.length-1;continue}else if(h===!1){let SK=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(rr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(SK!==void 0)return SK}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(P),ee+=P.length-1}else if(this.state.field.length!==0){if(h===!1){let rr=this.__infoField(),xa=Object.keys(fg).map(pp=>fg[pp].equals(this.state.field.toString())?pp:!1).filter(Boolean)[0],Vs=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(rr.column)} at line ${rr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,xa?`(${xa} bom)`:void 0],this.options,rr,{field:this.state.field}));if(Vs!==void 0)return Vs}}else{this.state.quoting=!0,ee+=P.length-1;continue}if(this.state.quoting===!1){let rr=this.__isRecordDelimiter(dt,U,ee);if(rr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),ee+=rr-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,ee+=rr-1;continue}this.info.bytes=this.state.bufBytesStart+ee;let pp=this.__onField();if(pp!==void 0)return pp;this.info.bytes=this.state.bufBytesStart+ee+rr;let Hx=this.__onRecord(o);if(Hx!==void 0)return Hx;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,ee+=rr-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,U,ee,dt)!==0){this.state.commenting=!0;continue}let xa=this.__isDelimiter(U,ee,dt);if(xa!==0){this.info.bytes=this.state.bufBytesStart+ee;let Vs=this.__onField();if(Vs!==void 0)return Vs;ee+=xa-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Ye("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Sa=m===!1|| Line truncated
`.repeat(d?1+p:p),u+=A,d=!0,p=0}return s===Fo.KEEP?u+=`
`.repeat(d?1+p:p):s!==Fo.STRIP&&d&&(u+=`
`),u}i(bSe,"getBlockValue");function R0t(t,e){if(e.valueStart===C0t)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Ze.SINGLE_QUOTED:return b0t(t,r,n);case Ze.DOUBLE_QUOTED:return B0t(t,r,n);case Ze.LITERAL_BLOCK:return bSe(t,r,n,e.indent,e.chomping,!1);case Ze.FOLDED_BLOCK:return bSe(t,r,n,e.indent,e.chomping,!0);default:return x0t(t,r,n)}}i(R0t,"getScalarValue");var N0t=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),T0t="-#;/?:@&=+$_.~*'()",VPr=T0t+"!,[]";function dY(t){let e="",r=0;for(;r<t.length;){if(t.charCodeAt(r)!==37){e+=t[r++];continue}let n=parseInt(t.slice(r+1,r+3),16);if(r+=3,n>=192){let s=n<224?1:n<240?2:3;for(n&=(1<<6-s)-1;s-- >0;)n=n<<6|parseInt(t.slice(r+1,r+3),16)&63,r+=3}n<65536?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023))}return e}i(dY,"tagPercentDecode");function USe(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return dY(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return dY(e?.[n]??N0t[n]??n)+dY(t.slice(n.length))}i(USe,"tagNameFull");var ry=-1,P0t="tag:yaml.org,2002:merge",xY={filename:"",schema:h0t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function _0t(t){return"tagStart"in t&&t.tagStart!==ry?t.tagStart:"anchorStart"in t&&t.anchorStart!==ry?t.anchorStart:"valueStart"in t&&t.valueStart!==ry?t.valueStart:"start"in t?t.start:0}i(_0t,"eventPosition$1");function Tn(t,e){km.throwAt(t.source,t.position,e,t.filename)}i(Tn,"throwError$1");function qSe(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof km)throw s;km.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(qSe,"finalizeCollection");function v0t(t,e){let r=R0t(t.source,e),n=e.tagStart===ry?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=USe(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===ct&&Tn(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(o)??t.schema.lookupSequenceTag(o);if(c){r!==""&&Tn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:qSe(t,t.position,c,l),tag:c}}Tn(t,`unknown scalar tag !<${o}>`)}return e.style===Ze.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(v0t,"constructScalar");function BSe(t,e,r){let n=e.tagStart===ry?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:USe(n,t.tagHandlers)}i(BSe,"collectionTagName");function $Se(t){return t.nodeKind==="mapping"}i($Se,"isMappingTag");function RSe(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Tn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(RSe,"chargeMergeWork");function NSe(t,e,r,n){RSe(t);for(let s of n.keys(r)){if(RSe(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Tn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(NSe,"mergeKeys");function Q0t(t,e,r,n){if(t.position=e.keyPosition,$Se(n))NSe(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Tn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||Tn(t,"cannot merge mappings; the provided source object is unacceptable"),NSe(t,e,s,o)}}else Tn(t,"cannot merge mappings; the provided source object is unacceptable")}i(Q0t,"mergeSource");function D0t(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){Q0t(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Tn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Tn(t,o),e.overridable?.delete(r)}i(D0t,"addMappingValue");function pY(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){$Se(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Tn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,D0t(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===P0t}i(pY,"addValue");function fY(t,e,r,n,s){if(e.anchorStart!==ry){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(fY,"storeAnchor");function k0t(t,e){let r={...xY,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=_0t(n),n.type){case rr.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case rr.SCALAR:{let{value:s,tag:o}=v0t(r,n);fY(r,n,s,o,!0),pY(r,s,o);break}case rr.SEQUENCE:{let s=BSe(r,n,"tag:yaml.org,2002:seq"),o=r.schema.lookupSequenceTag(s);o||Tn(r,`unknoLine truncated
`)?Ze.DOUBLE_QUOTED:ZSe(t)))}i(uBt,"applyForceQuotesOption");function dBt(t){if(t.style!==Ze.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!xv(t.allowedStylesMask,Ze.LITERAL_BLOCK)){r&&(t.style=Ze.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Ze.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),o=0,a=!1;for(;o<=e.length;){let c=e.length,l=e.indexOf(`
`,o);l!==-1&&(c=l);let u=e.slice(o,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Ze.FOLDED_BLOCK:r&&(t.style=Ze.LITERAL_BLOCK)}i(dBt,"tryLongOrMultilineAsBlock");function pBt(t){t.style===Ze.PLAIN&&!xv(t.allowedStylesMask,Ze.PLAIN)&&(t.style=ZSe(t))}i(pBt,"quoteInvalidPlain");function fBt(t){xv(t.allowedStylesMask,t.style)||(t.style=Ze.DOUBLE_QUOTED)}i(fBt,"fallbackToDoubleQuoted");var mBt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",hBt="[\\n\\r]",ABt="\\uFEFF",RY="[ \\t]",ewe=`(?:(?!(?:${hBt}|${ABt}))${mBt})`,bv=`(?:(?!${RY})${ewe})`,twe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",rwe="[-?:,\\[\\]{}#&*!|>'\"%@`]",gBt="[,\\[\\]{}]",EY=bv,CY=`(?:(?!${gBt})${bv})`,yBt=`(?:(?:(?!${rwe})${bv})|[?:-](?=${EY}))`,EBt=`(?:(?:(?!${rwe})${bv})|[?:-](?=${CY}))`,nwe=`(?:(?:(?![:#])${EY})|:(?=${EY}))#*`,swe=`(?:(?:(?![:#])${CY})|:(?=${CY}))#*`,owe=`(?:${RY}*${nwe})*`,iwe=`(?:${RY}*${swe})*`,awe=`${yBt}#*${owe}`,cwe=`${EBt}#*${iwe}`,CBt=awe,IBt=cwe,SBt=`\\n+${nwe}${owe}`,wBt=`\\n+${swe}${iwe}`,xBt=`${awe}(?:${SBt})*`,bBt=`${cwe}(?:${wBt})*`,WPr=new RegExp(`^(?:${xBt})$`,"u"),JPr=new RegExp(`^(?:${bBt})$`,"u"),YPr=new RegExp(`^(?:${CBt})$`,"u"),jPr=new RegExp(`^(?:${IBt})$`,"u"),KPr=new RegExp(`^(?:${twe})*$`,"u"),XPr=new RegExp(`^(?:${twe}|\\n)*$`,"u"),ZPr=new RegExp(`^(?:${ewe}|\\n)*$`,"u");var BBt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(QSe).map(t=>Reflect.get(QSe,t)),tagBeforeAnchor:!1};var e_r={...BBt,schema:g0t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var t_r=rr.DOCUMENT,r_r=rr.SEQUENCE,n_r=rr.MAPPING,s_r=rr.SCALAR,o_r=rr.ALIAS,i_r=rr.POP,a_r=Ze.PLAIN,c_r=Ze.SINGLE_QUOTED,l_r=Ze.DOUBLE_QUOTED,u_r=Ze.LITERAL_BLOCK,d_r=Ze.FOLDED_BLOCK,p_r=Vd.BLOCK,f_r=Vd.FLOW,m_r=Fo.CLIP,h_r=Fo.STRIP,A_r=Fo.KEEP;var Di=R(require("fs"),1),eo=R(require("path"),1),GRe=require("util");var HRe=R(dbe(),1);var Mv=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var n5=R(require("fs"),1),qBe=R(require("os"),1),cx=R(require("path"),1),$Be=require("util"),GBe=R(ybe(),1);var sj=R(require("fs"),1),Lbe=R(require("os"),1),Mbe=R(require("path"),1),Fbe=R(Obe(),1);var qv=class t{static{i(this,"Context")}static _tmpDir=sj.default.mkdtempSync(Mbe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||Lbe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return sj.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return Fbe.tmpNameSync(e)}};var Nu=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),Ed(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),YI(e,r,n)}};var r5=R(require("crypto"),1),FBe=R(require("fs"),1),ax=R(require("path"),1),UBe=R(QBe(),1);var et=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var ix=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var BQ=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};e Line truncated
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return f<m},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:p,ltrim:f,max_record_size:m,raw:h,relax_quotes:A,rtrim:y,skip_empty_lines:E,to:I,to_line:x}=this.options,{comment:b,escape:N,quote:_,record_delimiter:v}=this.options,{bomSkipped:Y,delimiterDiscovered:Qe,delimiterBufPrevious:ke,rawBuffer:De,escapeIsQuote:ce}=this.state;if(!Qe&&u){let Ve;if(ke===void 0?Ve=n:ke!==void 0&&n===void 0?Ve=ke:Ve=Buffer.concat([ke,n]),n=void 0,s||Ve.length>u.size)this.options.delimiter=[Buffer.from(OBe(Ve,this.options.delimiter_auto))],this.state.previousBuf=Ve,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ve;return}}let{previousBuf:Tt}=this.state,Be;if(Tt===void 0)if(n===void 0){a();return}else Be=n;else Tt!==void 0&&n===void 0?Be=Tt:Be=Buffer.concat([Tt,n]);if(Y===!1)if(c===!1)this.state.bomSkipped=!0;else if(Be.length<3){if(s===!1){this.state.previousBuf=Be;return}}else{for(let Ve in Ry)if(Ry[Ve].compare(Be,0,Ry[Ve].length)===0){let ja=Ry[Ve].length;this.state.bufBytesStart+=ja,Be=Be.slice(ja);let iB=By({...this.original_options,encoding:Ve});for(let Gr in iB)this.options[Gr]=iB[Gr];({comment:b,escape:N,quote:_}=this.options);break}this.state.bomSkipped=!0}let oe=Be.length,Q;for(Q=0;Q<oe&&!this.__needMoreData(Q,oe,s);Q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),x!==-1&&this.info.lines>x){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(Be,Q)&&(v=this.options.record_delimiter);let Ve=Be[Q];if(h===!0&&De.append(Ve),(Ve===uQt||Ve===dQt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(Be,Q,Ve)&&Q+N.length<oe)if(ce){if(this.__isQuote(Be,Q+N.length)){this.state.escaping=!0,Q+=N.length-1;continue}}else{this.state.escaping=!0,Q+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Be,Q))if(this.state.quoting===!0){let Gr=Be[Q+_.length],df=y&&this.__isCharTrimable(Be,Q+_.length),Jl=b!==null&&this.__compareBytes(b,Be,Q+_.length,Gr),pf=this.__isDelimiter(Be,Q+_.length,Gr),aB=v.length===0?this.__autoDiscoverRecordDelimiter(Be,Q+_.length):this.__isRecordDelimiter(Gr,Be,Q+_.length);if(N!==null&&this.__isEscape(Be,Q,Ve)&&this.__isQuote(Be,Q+N.length))Q+=N.length-1;else if(!Gr||pf||aB||Jl||df){this.state.quoting=!1,this.state.wasQuoting=!0,Q+=_.length-1;continue}else if(A===!1){let Yte=this.__error(new et("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Gr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Yte!==void 0)return Yte}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(_),Q+=_.length-1}else if(this.state.field.length!==0){if(A===!1){let Gr=this.__infoField(),df=Object.keys(Ry).map(pf=>Ry[pf].equals(this.state.field.toString())?pf:!1).filter(Boolean)[0],Jl=this.__error(new et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Gr.column)} at line ${Gr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,df?`(${df} bom)`:void 0],this.options,Gr,{field:this.state.field}));if(Jl!==void 0)return Jl}}else{this.state.quoting=!0,Q+=_.length-1;continue}if(this.state.quoting===!1){let Gr=this.__isRecordDelimiter(Ve,Be,Q);if(Gr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Q+=Gr-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=Gr-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let pf=this.__onField();if(pf!==void 0)return pf;this.info.bytes=this.state.bufBytesStart+Q+Gr;let aB=this.__onRecord(o);if(aB!==void 0)return aB;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,Q+=Gr-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,Be,Q,Ve)!==0){this.state.commenting=!0;continue}let df=this.__isDelimiter(Be,Q,Ve);if(df!==0){this.info.bytes=this.state.bufBytesStart+Q;let Jl=this.__onField();if(Jl!==void 0)return Jl;Q+=df-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new et("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let ja=f===!1||t Line truncated
`,o),Buffer.from(`
`,o),Buffer.from("\r",o)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:s,raw:o,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,o?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:s,encoding:o}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,s=Array.isArray(n),o=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:o,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var WIe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=dP(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var hd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(ki(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=WIe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=ki(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Ss("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=[];if(r)for(let a in r)o.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${o.join(" ")}`]}}static isDirectory(e){try{return YIe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return AY.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return AY.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return JIe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=uw.default.resolve(e);return uw.default.resolve(r).startsWith(n.endsWith(uw.default.sep)?n:`${n}${uw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var gd=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||dw.default.join(jIe.default.homedir(),".docker")}static configFile(){let e=dw.default.join(t.configDir,"config.json");if(hY.default.existsSync(e))return JSON.parse(hY.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ss("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0} Line truncated
`,o),Buffer.from("\r",o)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:s,raw:o,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,o?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:s,encoding:o}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,s=Array.isArray(n),o=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:o,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var MBe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=RQ(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var Kd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(aa(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=MBe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=aa(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Ls("powershell",!0),s=e.replace(/'/g,"''"),o=[];if(r)for(let a in r)o.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${o.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return FBe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return r5.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return r5.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return UBe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=ax.default.resolve(e);return ax.default.resolve(r).startsWith(n.endsWith(ax.default.sep)?n:`${n}${ax.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var Xd=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||cx.default.join(qBe.default.homedir(),".docker")}static configFile(){let e=cx.default.join(t.configDir,"config.json");if(n5.default.existsSync(e))return JSON.parse(n5.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}), Line truncated
${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var qRe=R(require("crypto"),1);var NQ=require("fs"),HBe=require("os");var Ny=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,NQ.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,NQ.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${HBe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var a5=R(YBe(),1),jBe=R($f(),1);var xQt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function KBe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}i(KBe,"getAuthString");function XBe(t){return new a5.HttpClient().getAgent(t)}i(XBe,"getProxyAgent");function bQt(t){return new a5.HttpClient().getAgentDispatcher(t)}i(bQt,"getProxyAgentDispatcher");function ZBe(t){let e=bQt(t);return i((n,s)=>xQt(this,void 0,void 0,function*(){return(0,jBe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(ZBe,"getProxyFetch");function eRe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(eRe,"getApiBaseUrl");function c5(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(c5,"getUserAgentWithOrchestrationId");function Zd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}i(Zd,"getUserAgent");function kQ(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,o)=>kQ.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(kQ,"register");function tRe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(tRe,"addHook");function rRe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(rRe,"removeHook");var nRe=Function.bind,sRe=nRe.bind(nRe);function oRe(t,e,r){let n=sRe(rRe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=sRe(tRe,null).apply(null,o)})}i(oRe,"bindApi");function RQt(){let t=Symbol("Singular"),e={registry:{}},r=kQ.bind(null,e,t);return oRe(r,e,t),r}i(RQt,"Singular");function NQt(){let t={registry:{}},e=kQ.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}i(vSt,"_buildMessageForResponseErrors");var PSt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(vSt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},_St=["method","baseUrl","url","headers","request","query","mediaType","operationName"],QSt=["query","method","url"],Dwe=/\/api\/v3\/?$/;function DSt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(QSt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>_St.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Dwe.test(o)&&(s.url=o.replace(Dwe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new PSt(s,c,a.data)}return a.data.data})}i(DSt,"graphql");function RY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>DSt(r,s,o),"newApi"),{defaults:RY.bind(null,r),endpoint:r.endpoint})}i(RY,"withDefaults");var jwr=RY(Aw,{headers:{"user-agent":`octokit-graphql.js/${TSt} ${yd()}`},method:"POST",url:"/graphql"});function kwe(t){return RY(t,{method:"POST",url:"/graphql"})}i(kwe,"withCustomRequest");var NY="(?:[a-zA-Z0-9_-]+)",Lwe="\\.",Owe=new RegExp(`^${NY}${Lwe}${NY}${Lwe}${NY}$`),kSt=Owe.test.bind(Owe);async function LSt(t){let e=kSt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(LSt,"auth");function OSt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(OSt,"withAuthorizationPrefix");async function MSt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=OSt(t),e(s)}i(MSt,"hook");var Mwe=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(LSt.bind(null,e),{hook:MSt.bind(null,e)})},"createTokenAuth2");var TY="7.0.6";var Fwe=i(()=>{},"noop"),FSt=console.warn.bind(console),USt=console.error.bind(console);function qSt(t={}){return typeof t.debug!="function"&&(t.debug=Fwe),typeof t.info!="function"&&(t.info=Fwe),typeof t.warn!="function"&&(t.warn=FSt),typeof t.error!="function"&&(t.error=USt),t}i(qSt,"createLogger");var Uwe=`octokit-core.js/${TY} ${yd()}`,SP=class{static{i(this,"Octokit")}static VERSION=TY;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new mwe.Collection,n={baseUrl:Aw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Uwe}`:Uwe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Aw.defaults(n),this.graphql=kwe(this.request).defaults(n),this.log=qSt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=Mwe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)Object.assign(this,s.plugins[o](this,e))}request;graphql;log;hook;auth};var vY="17.0.0";var GSt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:m,file:h.path,startLine:f}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function jwe(){return{registry:ki("registry"),username:ki("username"),password:ki("password"),scope:ki("scope"),ecr:ki("ecr"),logout:Noe("logout"),registryAuth:ki("registry-auth")}}i(jwe,"getInputs");function Kwe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=Bge(t.registryAuth).map(r=>{r.password&&vn(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:String(r.ecr??"")||"auto",configDir:bP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:bP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(Kwe,"getAuthList");function bP(t,e){if(XSt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=Wm.default.resolve(xP.configDir,"config"),o=Wm.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!Jwe(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=Wm.default.resolve(o,c);if(!Jwe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(bP,"scopeToConfigDir");function Jwe(t,e){let r=Wm.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${Wm.default.sep}`)&&!Wm.default.isAbsolute(r)}i(Jwe,"isChildPath");function XSt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?hd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(XSt,"scopeDisabled");var VGe=R(X1e(),1),WGe=R(vGe(),1),EK=R(lu(),1);var DGe=R(require("net"),1),kGe=R(require("tls"),1),LGe=R(om(),1),OGe=require("events");var PGe=R(require("net"),1),_Ge=R(require("http"),1),QGe=require("https");var dl=Symbol("AgentBaseInternalState"),SM=class extends _Ge.Agent{static{i(this,"Agent")}constructor(e){super(e),this[dl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new PGe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?QGe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[dl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[dl].currentSocket;if(this[dl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[dl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[dl]&&(this[dl].defaultPort=e)}get protocol(){return this[dl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[dl]&&(this[dl].protocol=e)}};var hK=require("url");function xM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(xM,"createNegotiateAuth");var $y=(0,LGe.default)("http-proxy-agent"),Ux=class extends SM{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new hK.URL(e):e,this.proxyHeaders=r?.headers??{},$y("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=xM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?B$t(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new hK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;$y("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($y("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`)}i(nDt,"_buildMessageForResponseErrors");var sDt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(nDt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},oDt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iDt=["query","method","url"],RRe=/\/api\/v3\/?$/;function aDt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(iDt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>oDt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return RRe.test(o)&&(s.url=o.replace(RRe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new sDt(s,c,a.data)}return a.data.data})}i(aDt,"graphql");function m5(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>aDt(r,s,o),"newApi"),{defaults:m5.bind(null,r),endpoint:r.endpoint})}i(m5,"withDefaults");var Ykr=m5(px,{headers:{"user-agent":`octokit-graphql.js/${rDt} ${Zd()}`},method:"POST",url:"/graphql"});function NRe(t){return m5(t,{method:"POST",url:"/graphql"})}i(NRe,"withCustomRequest");var h5="(?:[a-zA-Z0-9_-]+)",TRe="\\.",PRe=new RegExp(`^${h5}${TRe}${h5}${TRe}${h5}$`),cDt=PRe.test.bind(PRe);async function lDt(t){let e=cDt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(lDt,"auth");function uDt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(uDt,"withAuthorizationPrefix");async function dDt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=uDt(t),e(s)}i(dDt,"hook");var _Re=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(lDt.bind(null,e),{hook:dDt.bind(null,e)})},"createTokenAuth2");var A5="7.0.6";var vRe=i(()=>{},"noop"),pDt=console.warn.bind(console),fDt=console.error.bind(console);function mDt(t={}){return typeof t.debug!="function"&&(t.debug=vRe),typeof t.info!="function"&&(t.info=vRe),typeof t.warn!="function"&&(t.warn=pDt),typeof t.error!="function"&&(t.error=fDt),t}i(mDt,"createLogger");var QRe=`octokit-core.js/${A5} ${Zd()}`,FQ=class{static{i(this,"Octokit")}static VERSION=A5;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new iRe.Collection,n={baseUrl:px.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${QRe}`:QRe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=px.defaults(n),this.graphql=NRe(this.request).defaults(n),this.log=mDt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=_Re(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)Object.assign(this,s.plugins[o](this,e))}request;graphql;log;hook;auth};var g5="17.0.0";var hDt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:p,message:f,file:A.path,startLine:m}),h=!0;break}h||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function VRe(){return{registry:aa("registry"),username:aa("username"),password:aa("password"),scope:aa("scope"),ecr:aa("ecr"),logout:ede("logout"),registryAuth:aa("registry-auth")}}i(VRe,"getInputs");function WRe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=XSe(t.registryAuth).map(r=>{r.password&&qn(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:String(r.ecr??"")||"auto",configDir:$Q(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:$Q(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(WRe,"getAuthList");function $Q(t,e){if(BDt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=jm.default.resolve(qQ.configDir,"config"),o=jm.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!zRe(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=jm.default.resolve(o,c);if(!zRe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i($Q,"scopeToConfigDir");function zRe(t,e){let r=jm.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${jm.default.sep}`)&&!jm.default.isAbsolute(r)}i(zRe,"isChildPath");function BDt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Kd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(BDt,"scopeDisabled");var Cje=R(B8e(),1),Ije=R(sje(),1),zte=R(Vu(),1);var cje=R(require("net"),1),lje=R(require("tls"),1),uje=R(im(),1),dje=require("events");var oje=R(require("net"),1),ije=R(require("http"),1),aje=require("https");var zl=Symbol("AgentBaseInternalState"),s2=class extends ije.Agent{static{i(this,"Agent")}constructor(e){super(e),this[zl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new oje.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?aje.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[zl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[zl].currentSocket;if(this[zl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zl]&&(this[zl].defaultPort=e)}get protocol(){return this[zl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zl]&&(this[zl].protocol=e)}};var $te=require("url");function o2(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(o2,"createNegotiateAuth");var MC=(0,uje.default)("http-proxy-agent"),nB=class extends s2{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $te.URL(e):e,this.proxyHeaders=r?.headers??{},MC("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=o2():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?WKt(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new $te.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;MC("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(MC("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),$y("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?($y("Creating `tls.Socket`: %o",this.connectOpts),o=kGe.connect(this.connectOpts)):($y("Creating `net.Socket`: %o",this.connectOpts),o=DGe.connect(this.connectOpts)),await(0,OGe.once)(o,"connect");let a={socket:o};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),o}};Ux.protocols=["http","https"];function B$t(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(B$t,"omit");var ml=R(require("net"),1),qx=R(require("tls"),1),HGe=R(require("assert"),1),$Ge=R(om(),1);var MGe=R(require("net"),1),FGe=R(require("http"),1),UGe=require("https");var pl=Symbol("AgentBaseInternalState"),bM=class extends FGe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[pl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new MGe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?UGe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[pl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[pl].currentSocket;if(this[pl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[pl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[pl]&&(this[pl].defaultPort=e)}get protocol(){return this[pl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[pl]&&(this[pl].protocol=e)}};var zGe=require("url");var qGe=R(om(),1);var BM=(0,qGe.default)("https-proxy-agent:parse-proxy-response");function gK(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),BM("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),BM("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r
`)+4,e.outputData[0].data=e._header+n.substring(s),MC("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(MC("Creating `tls.Socket`: %o",this.connectOpts),o=lje.connect(this.connectOpts)):(MC("Creating `net.Socket`: %o",this.connectOpts),o=cje.connect(this.connectOpts)),await(0,dje.once)(o,"connect");let a={socket:o};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),o}};nB.protocols=["http","https"];function WKt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(WKt,"omit");var Wl=R(require("net"),1),sB=R(require("tls"),1),gje=R(require("assert"),1),yje=R(im(),1);var pje=R(require("net"),1),fje=R(require("http"),1),mje=require("https");var Vl=Symbol("AgentBaseInternalState"),i2=class extends fje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Vl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new pje.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?mje.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Vl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Vl].currentSocket;if(this[Vl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vl]&&(this[Vl].defaultPort=e)}get protocol(){return this[Vl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vl]&&(this[Vl].protocol=e)}};var Eje=require("url");var hje=R(im(),1);var a2=(0,hje.default)("https-proxy-agent:parse-proxy-response");function Gte(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),a2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),a2("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r
\r
`);if(m===-1){BM("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],C=h.slice(2).join(" "),w={};for(let x of f){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),_=w[N];typeof _=="string"?w[N]=[_,P]:Array.isArray(_)?_.push(P):w[N]=P}BM("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:E,statusText:C,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(gK,"parseProxyResponse");var Of=(0,$Ge.default)("https-proxy-agent"),RM=i(t=>t.servername===void 0&&t.host&&!ml.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Gx=class extends bM{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new zGe.URL(e):e,this.proxyHeaders=r?.headers??{},Of("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=xM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?yK(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Of("Creating `tls.Socket`: %o",this.connectOpts),s=qx.connect(RM(this.connectOpts))):(Of("Creating `net.Socket`: %o",this.connectOpts),s=ml.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ml.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r
`;let l=gK(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:s}),u.statusCode===200)return e.once("socket",GGe),r.secureEndpoint?(Of("Upgrading socket connection to TLS"),qx.connect({...yK(RM(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Of("Got 407 response, invoking onProxyAuth callback"),s.destroy();let m=u.headers["proxy-authenticate"]||"",f=Array.isArray(m)?m[0].split(/\s/)[0]:m.split(/\s/)[0],A=await this.onProxyAuth({response:u,scheme:f});return this._connectWithAuth(e,r,A.headers)}s.destroy();let p=new ml.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{Of("Replaying proxy buffer for failed request"),(0,HGe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:s}=this,o;s.protocol==="https:"?o=qx.connect(RM(this.connectOpts)):o=ml.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=ml.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\r
`);if(f===-1){a2("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}a2("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Gte,"parseProxyResponse");var Kh=(0,yje.default)("https-proxy-agent"),c2=i(t=>t.servername===void 0&&t.host&&!Wl.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),oB=class extends i2{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Eje.URL(e):e,this.proxyHeaders=r?.headers??{},Kh("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=o2():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Hte(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Kh("Creating `tls.Socket`: %o",this.connectOpts),s=sB.connect(c2(this.connectOpts))):(Kh("Creating `net.Socket`: %o",this.connectOpts),s=Wl.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Wl.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r
`;let l=Gte(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:s}),u.statusCode===200)return e.once("socket",Aje),r.secureEndpoint?(Kh("Upgrading socket connection to TLS"),sB.connect({...Hte(c2(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Kh("Got 407 response, invoking onProxyAuth callback"),s.destroy();let f=u.headers["proxy-authenticate"]||"",m=Array.isArray(f)?f[0].split(/\s/)[0]:f.split(/\s/)[0],h=await this.onProxyAuth({response:u,scheme:m});return this._connectWithAuth(e,r,h.headers)}s.destroy();let p=new Wl.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Kh("Replaying proxy buffer for failed request"),(0,gje.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:s}=this,o;s.protocol==="https:"?o=sB.connect(c2(this.connectOpts)):o=Wl.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=Wl.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}Object.assign(a,n),a.Host=`${c}:${r.port}`,a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(a))l+=`${p}: ${a[p]}\r
`;let u=gK(o);o.write(`${l}\r
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",GGe),r.secureEndpoint?(Of("Upgrading socket connection to TLS"),qx.connect({...yK(RM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};Gx.protocols=["http","https"];function GGe(t){setImmediate(()=>{t.resume()})}i(GGe,"resume");function yK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(yK,"omit");var CK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,R$t=/public\.ecr\.aws|ecr-public\.aws\.com/,YGe=i(t=>CK.test(t)||NM(t),"isECR"),NM=i(t=>R$t.test(t),"isPubECR"),N$t=i(t=>{if(NM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(CK);return e?e[4]:""},"getRegion"),T$t=i(t=>{if(NM(t))return[];let e=t.match(CK);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),JGe=i(async(t,e,r)=>{let n=N$t(t),s=T$t(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new Ux(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new Gx(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(NM(t)){ye(`AWS Public ECR detected with ${n} region`);let m=await new WGe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new EK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return vn(A[0]),vn(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{ye(`AWS ECR detected with ${n} region`);let m=await new VGe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new EK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let A of m.authorizationData){let E=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);vn(E[0]),vn(E[1]),f.push({registry:A.proxyEndpoint||"",username:E[0],password:E[1]})}return f}},"getRegistriesData");var jGe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function P$t(t){return typeof t=="string"&&jGe.test(t)}i(P$t,"validate");var IK=P$t;var _$t=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),Q$t=300,KGe=300,XGe=21600,ZGe=5,eHe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&_$t.has(t),"isDockerHubOIDC"),tHe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!IK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=D$t(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ye(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ye("Retrieving GitHub OIDC token for Docker Hub");let a=await Poe(o),c=new ao("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),ye("Exchanging GitHub OIDC token for Docker Hub token");let u=await k$t(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await O$t(u));return vn(d.access_token),ye("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),D$t=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||Q$t.toString(),e=Number(t);if(isNaN(e)||e<KGe||e>XGe)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${KGe} and ${XGe}`);return e},"getExpiresIn"),k$t=i(async(t,e,r)=>{T(`Sending Docker Hub OIDC token request to ${e}`);let n=await t.post(e,r);T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||mt.InternalServerError}`);for(let s=0;(n.message.statusCode||mt.InternalServerError)===mt.TooManyRequests&&s<ZGe;s++){let o=L$t(n.message.headers["retry-after"]);if(o===null){T("Docker Hub OIDC token request rate limited without retry-after he Line truncated
`;let u=Gte(o);o.write(`${l}\r
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",Aje),r.secureEndpoint?(Kh("Upgrading socket connection to TLS"),sB.connect({...Hte(c2(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};oB.protocols=["http","https"];function Aje(t){setImmediate(()=>{t.resume()})}i(Aje,"resume");function Hte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Hte,"omit");var Vte=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,JKt=/public\.ecr\.aws|ecr-public\.aws\.com/,Sje=i(t=>Vte.test(t)||l2(t),"isECR"),l2=i(t=>JKt.test(t),"isPubECR"),YKt=i(t=>{if(l2(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(Vte);return e?e[4]:""},"getRegion"),jKt=i(t=>{if(l2(t))return[];let e=t.match(Vte);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),wje=i(async(t,e,r)=>{let n=YKt(t),s=jKt(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new nB(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new oB(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(l2(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new Ije.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new zte.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!f.authorizationData||!f.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let h=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return qn(h[0]),qn(h[1]),[{registry:"public.ecr.aws",username:h[0],password:h[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new Cje.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new zte.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(f.authorizationData)||!f.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let h of f.authorizationData){let y=Buffer.from(h.authorizationToken||"","base64").toString("utf-8").split(":",2);qn(y[0]),qn(y[1]),m.push({registry:h.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var xje=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function XKt(t){return typeof t=="string"&&xje.test(t)}i(XKt,"validate");var Wte=XKt;var ZKt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),eXt=3600,bje=300,Bje=21600,Rje=5,Nje=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&ZKt.has(t),"isDockerHubOIDC"),Tje=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!Wte(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=tXt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ae(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ae("Retrieving GitHub OIDC token for Docker Hub");let a=await nde(o),c=new Ro("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),ae("Exchanging GitHub OIDC token for Docker Hub token");let u=await rXt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await sXt(u));return qn(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),tXt=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||eXt.toString(),e=Number(t);if(isNaN(e)||e<bje||e>Bje)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${bje} and ${Bje}`);return e},"getExpiresIn"),rXt=i(async(t,e,r)=>{T(`Sending Docker Hub OIDC token request to ${e}`);let n=await t.post(e,r);T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||At.InternalServerError}`);for(let s=0;(n.message.statusCode||At.InternalServerError)===At.TooManyRequests&&s<Rje;s++){let o=nXt(n.message.headers["retry-after"]);if(o===null){T("Docker Hub OIDC token request rate limited without re Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "4tBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "8tBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,IAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+90 -382
View File
@@ -399,7 +399,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.94.0
- @docker/actions-toolkit@0.109.0
This package contains the following license:
@@ -636,9 +636,10 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- b4a@1.9.0
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-fs@4.8.4
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
@@ -1724,13 +1725,8 @@ Apache License
The following npm packages may be included in this product:
- @protobuf-ts/plugin-framework@2.9.4
- @protobuf-ts/plugin@2.9.4
- @protobuf-ts/protoc@2.9.4
- @protobuf-ts/runtime-rpc@2.11.1
- @protobuf-ts/runtime-rpc@2.9.4
- @protobuf-ts/runtime@2.11.1
- @protobuf-ts/runtime@2.9.4
These packages each contain the following license:
@@ -1913,8 +1909,8 @@ Apache License
The following npm packages may be included in this product:
- @aws-sdk/client-ecr-public@3.1095.0
- @aws-sdk/client-ecr@3.1095.0
- @aws-sdk/client-ecr-public@3.1161.0
- @aws-sdk/client-ecr@3.1161.0
These packages each contain the following license:
@@ -2124,9 +2120,10 @@ Apache License
The following npm packages may be included in this product:
- @aws-sdk/signature-v4-multi-region@3.996.42
- @smithy/core@3.30.0
- @smithy/types@4.16.1
- @aws-sdk/signature-v4-multi-region@3.996.51
- @smithy/core@3.36.1
- @smithy/core@3.38.1
- @smithy/types@4.19.0
These packages each contain the following license:
@@ -2396,12 +2393,11 @@ SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- js-yaml@5.2.1
- js-yaml@5.5.0
These packages each contain the following license:
This package contains the following license:
(The MIT License)
@@ -2616,6 +2612,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- content-type@3.1.1
This package contains the following license:
(The MIT License)
Copyright (c) 2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- universal-user-agent@7.0.3
@@ -2700,6 +2727,7 @@ The following npm packages may be included in this product:
- jackspeak@3.4.3
- minimatch@10.2.5
- minimatch@10.2.6
These packages each contain the following license:
@@ -2807,269 +2835,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
- argparse@2.0.1
This package contains the following license:
A. HISTORY OF THE SOFTWARE
==========================
Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC. Guido remains Python's
principal author, although it includes many contributions from others.
In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.
In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
year, the PythonLabs team moved to Digital Creations, which became
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
https://www.python.org/psf/) was formed, a non-profit organization
created specifically to own Python-related Intellectual Property.
Zope Corporation was a sponsoring member of the PSF.
All Python releases are Open Source (see http://www.opensource.org for
the Open Source Definition). Historically, most, but not all, Python
releases have also been GPL-compatible; the table below summarizes
the various releases.
Release Derived Year Owner GPL-
from compatible? (1)
0.9.0 thru 1.2 1991-1995 CWI yes
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
1.6 1.5.2 2000 CNRI no
2.0 1.6 2000 BeOpen.com no
1.6.1 1.6 2001 CNRI yes (2)
2.1 2.0+1.6.1 2001 PSF no
2.0.1 2.0+1.6.1 2001 PSF yes
2.1.1 2.1+2.0.1 2001 PSF yes
2.1.2 2.1.1 2002 PSF yes
2.1.3 2.1.2 2002 PSF yes
2.2 and above 2.1.1 2001-now PSF yes
Footnotes:
(1) GPL-compatible doesn't mean that we're distributing Python under
the GPL. All Python licenses, unlike the GPL, let you distribute
a modified version without making your changes open source. The
GPL-compatible licenses make it possible to combine Python with
other software that is released under the GPL; the others don't.
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
because its license has a choice of law clause. According to
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
is "not incompatible" with the GPL.
Thanks to the many outside volunteers who have worked under Guido's
direction to make these releases possible.
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
===============================================================
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------
1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.
2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation;
All Rights Reserved" are retained in Python alone or in any derivative version
prepared by Licensee.
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.
4. PSF is making Python available to Licensee on an "AS IS"
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee. This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.
8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
-------------------------------------------
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
Individual or Organization ("Licensee") accessing and otherwise using
this software in source or binary form and its associated
documentation ("the Software").
2. Subject to the terms and conditions of this BeOpen Python License
Agreement, BeOpen hereby grants Licensee a non-exclusive,
royalty-free, world-wide license to reproduce, analyze, test, perform
and/or display publicly, prepare derivative works, distribute, and
otherwise use the Software alone or in any derivative version,
provided, however, that the BeOpen Python License is retained in the
Software, alone or in any derivative version prepared by Licensee.
3. BeOpen is making the Software available to Licensee on an "AS IS"
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
5. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
6. This License Agreement shall be governed by and interpreted in all
respects by the law of the State of California, excluding conflict of
law provisions. Nothing in this License Agreement shall be deemed to
create any relationship of agency, partnership, or joint venture
between BeOpen and Licensee. This License Agreement does not grant
permission to use BeOpen trademarks or trade names in a trademark
sense to endorse or promote products or services of Licensee, or any
third party. As an exception, the "BeOpen Python" logos available at
http://www.pythonlabs.com/logos.html may be used according to the
permissions granted on that web page.
7. By copying, installing or otherwise using the software, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
---------------------------------------
1. This LICENSE AGREEMENT is between the Corporation for National
Research Initiatives, having an office at 1895 Preston White Drive,
Reston, VA 20191 ("CNRI"), and the Individual or Organization
("Licensee") accessing and otherwise using Python 1.6.1 software in
source or binary form and its associated documentation.
2. Subject to the terms and conditions of this License Agreement, CNRI
hereby grants Licensee a nonexclusive, royalty-free, world-wide
license to reproduce, analyze, test, perform and/or display publicly,
prepare derivative works, distribute, and otherwise use Python 1.6.1
alone or in any derivative version, provided, however, that CNRI's
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
1995-2001 Corporation for National Research Initiatives; All Rights
Reserved" are retained in Python 1.6.1 alone or in any derivative
version prepared by Licensee. Alternately, in lieu of CNRI's License
Agreement, Licensee may substitute the following text (omitting the
quotes): "Python 1.6.1 is made available subject to the terms and
conditions in CNRI's License Agreement. This Agreement together with
Python 1.6.1 may be located on the Internet using the following
unique, persistent identifier (known as a handle): 1895.22/1013. This
Agreement may also be obtained from a proxy server on the Internet
using the following URL: http://hdl.handle.net/1895.22/1013".
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python 1.6.1 or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python 1.6.1.
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. This License Agreement shall be governed by the federal
intellectual property law of the United States, including without
limitation the federal copyright law, and, to the extent such
U.S. federal law does not apply, by the law of the Commonwealth of
Virginia, excluding Virginia's conflict of law provisions.
Notwithstanding the foregoing, with regard to derivative works based
on Python 1.6.1 that incorporate non-separable material that was
previously distributed under the GNU General Public License (GPL), the
law of the Commonwealth of Virginia shall govern this License
Agreement only as to issues arising under or with respect to
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
License Agreement shall be deemed to create any relationship of
agency, partnership, or joint venture between CNRI and Licensee. This
License Agreement does not grant permission to use CNRI trademarks or
trade name in a trademark sense to endorse or promote products or
services of Licensee, or any third party.
8. By clicking on the "ACCEPT" button where indicated, or by copying,
installing or otherwise using Python 1.6.1, Licensee agrees to be
bound by the terms and conditions of this License Agreement.
ACCEPT
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
--------------------------------------------------
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
The Netherlands. All rights reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- @actions/http-client@3.0.2
@@ -3176,7 +2941,7 @@ software or this license, under any kind of legal claim.***
The following npm package may be included in this product:
- @aws-sdk/core@3.977.1
- @aws-sdk/core@3.979.1
This package contains the following license:
@@ -3386,16 +3151,16 @@ Apache License
The following npm packages may be included in this product:
- @aws-sdk/credential-provider-env@3.972.61
- @aws-sdk/credential-provider-ini@3.973.6
- @aws-sdk/credential-provider-node@3.972.72
- @aws-sdk/token-providers@3.1095.0
- @aws-sdk/types@3.974.2
- @aws-sdk/xml-builder@3.972.37
- @smithy/credential-provider-imds@4.4.14
- @smithy/fetch-http-handler@5.6.11
- @smithy/node-http-handler@4.9.11
- @smithy/signature-v4@5.6.10
- @aws-sdk/credential-provider-env@3.972.80
- @aws-sdk/credential-provider-ini@3.973.25
- @aws-sdk/credential-provider-node@3.972.92
- @aws-sdk/token-providers@3.1161.0
- @aws-sdk/types@3.975.0
- @aws-sdk/xml-builder@3.972.42
- @smithy/credential-provider-imds@4.5.2
- @smithy/fetch-http-handler@5.8.0
- @smithy/node-http-handler@4.14.1
- @smithy/signature-v4@5.7.5
These packages each contain the following license:
@@ -3605,9 +3370,9 @@ Apache License
The following npm packages may be included in this product:
- @aws-sdk/credential-provider-process@3.972.61
- @aws-sdk/credential-provider-sso@3.973.5
- @aws-sdk/credential-provider-web-identity@3.972.67
- @aws-sdk/credential-provider-process@3.972.80
- @aws-sdk/credential-provider-sso@3.973.24
- @aws-sdk/credential-provider-web-identity@3.972.86
These packages each contain the following license:
@@ -3815,76 +3580,12 @@ Apache License
-----------
The following npm package may be included in this product:
- typescript@3.9.10
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-----------
The following npm packages may be included in this product:
- @aws-sdk/credential-provider-http@3.972.63
- @aws-sdk/credential-provider-login@3.972.68
- @aws-sdk/nested-clients@3.997.35
- @sigstore/verify@4.1.0
- @aws-sdk/credential-provider-http@3.972.82
- @aws-sdk/credential-provider-login@3.972.87
- @aws-sdk/nested-clients@3.997.54
- @sigstore/verify@4.1.2
These packages each contain the following license:
@@ -4215,11 +3916,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- @octokit/openapi-types@27.0.0
- @octokit/openapi-types@28.0.0
- @octokit/openapi-types@29.0.1
This package contains the following license:
These packages each contain the following license:
Copyright (c) GitHub 2025 - Licensed as MIT.
@@ -4429,7 +4132,7 @@ The following npm packages may be included in this product:
- emoji-regex@8.0.0
- emoji-regex@9.2.2
- he@1.2.0
- he@2.0.0
These packages each contain the following license:
@@ -4589,12 +4292,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- brace-expansion@1.1.16
- brace-expansion@2.0.3
These packages each contain the following license:
This package contains the following license:
MIT License
@@ -4743,7 +4445,7 @@ SOFTWARE.
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
- @octokit/plugin-retry@8.1.1
This package contains the following license:
@@ -4833,11 +4535,12 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- json-with-bigint@3.5.12
- json-with-bigint@3.5.7
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -5053,11 +4756,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- brace-expansion@5.0.12
- brace-expansion@5.0.6
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -5090,6 +4794,8 @@ The following npm packages may be included in this product:
- @octokit/plugin-paginate-rest@14.0.0
- @octokit/plugin-rest-endpoint-methods@17.0.0
- @octokit/types@16.0.0
- @octokit/types@17.0.0
- @octokit/types@18.0.0
These packages each contain the following license:
@@ -5497,11 +5203,10 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- isexe@2.0.0
- minimatch@3.1.5
- once@1.4.0
- semver@7.7.3
- semver@7.8.1
- semver@7.8.5
- semver@7.8.6
- which@2.0.2
- wrappy@1.0.2
@@ -5556,7 +5261,9 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL
The following npm packages may be included in this product:
- @octokit/endpoint@11.0.3
- @octokit/endpoint@11.0.5
- @octokit/graphql@9.0.3
- @octokit/request@10.0.16
- @octokit/request@10.0.8
These packages each contain the following license:
@@ -5590,6 +5297,7 @@ The following npm packages may be included in this product:
- @octokit/auth-token@6.0.0
- @octokit/core@7.0.6
- @octokit/request-error@7.1.0
- @octokit/request-error@7.1.2
These packages each contain the following license:
@@ -5617,11 +5325,12 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- csv-parse@7.0.3
- csv-stringify@6.9.0
This package contains the following license:
These packages each contain the following license:
The MIT License (MIT)
@@ -5649,7 +5358,7 @@ SOFTWARE.
The following npm package may be included in this product:
- uuid@14.0.1
- uuid@14.0.3
This package contains the following license:
@@ -5763,7 +5472,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
- tar-stream@3.2.2
These packages each contain the following license:
@@ -6036,6 +5745,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.25.0
- streamx@2.28.1
These packages each contain the following license:
@@ -6281,14 +5991,13 @@ THE SOFTWARE.
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.2.0
- @actions/artifact@6.3.1
- @actions/cache@6.3.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/glob@0.7.0
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0
@@ -6384,7 +6093,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm packages may be included in this product:
- concat-map@0.0.1
- minimist@1.2.8
- wordwrap@1.0.0
+4 -4
View File
@@ -25,13 +25,13 @@
"dependencies": {
"@actions/core": "^3.0.1",
"@actions/http-client": "^4.0.1",
"@aws-sdk/client-ecr": "^3.1095.0",
"@aws-sdk/client-ecr-public": "^3.1095.0",
"@docker/actions-toolkit": "^0.94.0",
"@aws-sdk/client-ecr": "^3.1161.0",
"@aws-sdk/client-ecr-public": "^3.1161.0",
"@docker/actions-toolkit": "^0.109.0",
"http-proxy-agent": "^9.1.0",
"https-proxy-agent": "^9.1.0",
"js-yaml": "^5.5.0",
"uuid": "^14.0.1"
"uuid": "^14.0.3"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
+1 -1
View File
@@ -13,7 +13,7 @@ interface OIDCTokenResponse {
}
const registries = new Set(['', 'docker.io', 'registry-1.docker.io', 'registry-1-stage.docker.io', 'dhi.io']);
const defaultExpiresIn = 300;
const defaultExpiresIn = 3600;
const minExpiresIn = 300;
const maxExpiresIn = 21600;
const maxRetries = 5;
+413 -372
View File
File diff suppressed because it is too large. Load diff