Compare commits

..
Author SHA1 Message Date
bot-githubaction f2b4c4668c Bump Gradle Wrapper from 9.7.1 to 9.8.1.
Release notes of Gradle 9.8.1 can be found here:
https://docs.gradle.org/9.8.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-10-08 02:28:47 +00:00
Clay Johnson f9f39a915c Bump references to Develocity Gradle plugin from 4.5.0 to 4.5.1 (#1072)
This PR bumps references to Develocity Gradle plugin from 4.5.0 to
4.5.1.
2026-09-11 06:37:09 -05:00
bot-githubaction a3a36e1bf4 Bump references to Develocity Gradle plugin from 4.5.0 to 4.5.1 2026-09-10 02:20:44 +00:00
Daz DeBoerandClaude Opus 5 3f5f9adaf7 Document the new Gradle signing key for dependency verification (#1071)
Follow-up to #1069, which bumped the
`github-dependency-graph-gradle-plugin` default to `1.5.0`.

`1.5.0` is signed with a **new** Gradle signing subkey, and the key
currently documented in `docs/setup-gradle.md` has been revoked
upstream. Without this docs change, the snippet we publish will fail
dependency verification for Dependency Graph generation.

I verified the published signatures rather than relying on the
changelog:

| Artifact | Issuer key | |
|---|---|---|
| `github-dependency-graph-gradle-plugin:1.5.0` | `D9B2DFBD9F3298BA` |
new |
| `github-dependency-graph-gradle-plugin:1.4.2` | `893A028475557671` |
old |
| `develocity-gradle-plugin:4.5.0` | `893A028475557671` | old |

So the docs now list **both** keys instead of swapping one for the
other. The Develocity Gradle plugin (`com.gradle`) is still signed with
the old key, so replacing it outright would have broken Develocity
injection for builds with dependency verification enabled.

Docs-only change; no source or `dist` impact.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 18:57:35 -06:00
bot-githubaction b031f6d1a9 [bot] Update dist directory 2026-09-08 00:39:22 +00:00
Daz DeBoerandClaude Opus 5 5bc4175609 Bump dependency-graph-gradle-plugin to 1.5.0 (#1069)
Updates the default version of the [GitHub Dependency Graph Gradle
Plugin](https://plugins.gradle.org/plugin/org.gradle.github-dependency-graph-gradle-plugin)
applied by the `dependency-submission` init-script from `1.4.2` to
`1.5.0`.

`1.5.0` is the latest version published to the Gradle Plugin Portal.

Users can still override this via the `dependency-graph-plugin.version`
input parameter (`DEPENDENCY_GRAPH_PLUGIN_VERSION`), so this only
changes the default.

## Notes

The init-script is read at runtime from `sources/src/resources` rather
than being inlined into the bundle, so this single source change is the
whole fix — no `dist` update is needed for the new version to take
effect (CI refreshes `dist` as usual).

## Verification

- `npm run check` (prettier + eslint) passes
- `npm run test`: 489 passed. The 2 failing wrapper-validation suites
are pre-existing network-dependent failures on this machine — confirmed
identical on a clean tree with this change stashed
- Confirmed `1.5.0` is published to the plugin portal (and that a bogus
version 404s, so the check is meaningful)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 18:38:40 -06:00
f3ff59b4e4 Combined automated updates: wrapper checksums, npm dependencies, setup-java (#1070)
Combines three pending automated update PRs into a single pull request
so they can be reviewed and merged together.

Supersedes:

- #1045 — Update known wrapper checksums
- #1066 — Bump the npm-dependencies group in /sources (eslint 10.9.1 →
10.10.0, globals 17.11.0 → 17.12.0)
- #1067 — Bump actions/setup-java from 5.7.0 to 6.0.0 in the
github-actions group

Each original commit is cherry-picked unchanged; there were no
overlapping files or conflicts.

## Verification

- `./build install` (clean install + format + lint + compile) passes.
- `./build test`: 490/491 pass. The single failure is
`wrapper-validation/checksums.test.ts › fetches wrapper jar checksums
for snapshots`, a pre-existing network-dependent failure on this machine
— it fails identically with `main`'s checksums file, so it is unrelated
to these changes.
- `dist/` is intentionally untouched; CI regenerates it.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-07 18:38:22 -06:00
Daz DeBoerandClaude Opus 5 7927085475 Update .tool-versions: node 24.18.0, gradle 9.7.1, java 17 (#1068)
The pins in `.tool-versions` had drifted well behind what CI and the
Gradle wrappers use. One of
them was not just stale but broken.

## node 24.3.0 → 24.18.0

CI runs `node-version: 24`, which resolves to a much newer 24.x. That
gap is not harmless: it
recently masked a real CI failure outright, because jest 30.5.0's
breakage of nock interception
reproduces on 24.18.0 but not on 24.3.0. A local run that passes is
worth something again.

Verified with a clean `./build install` and repeated `./build test` runs
on both versions. Both show
the same stable core of two failures — the network-dependent
wrapper-validation checksum tests —
plus an occasional third flake in the same area that varies between runs
and between node versions.
Nothing attributable to the bump.

## java liberica-11 → liberica-17

This pin was broken. The init-scripts wrapper is on Gradle 9.7.1, which
refuses to run a build on
JVM 11:

```
Gradle requires JVM 17 or later to run.
Your build is currently configured to use JVM 11.
```

So `./build init-scripts` could not have worked with the pinned
toolchain. `./gradlew --version`
*does* start under JVM 11 and reports successfully, which is likely how
the pin survived unnoticed —
only an actual build fails.

17 matches what `ci-init-script-check.yml` provisions, so local runs
mirror CI. Verified with a
clean `./gradlew check` in `sources/test/init-scripts`: BUILD SUCCESSFUL
in 3m57s.

Java 21 was also tried and passes (3m53s), so moving further later is
unblocked. 17 is chosen only
to track CI.

## gradle 8.14.2 → 9.7.1

Follows the wrappers, which the workflow samples and init-scripts tests
are now on. This matches how
the file has been maintained before (e.g. "Use Gradle 8.14 everywhere").
Nothing in `./build`
invokes the asdf gradle — every path goes through `./gradlew` — so this
only keeps ad-hoc CLI use
consistent.

## Notes

`ci-check-and-unit-test.yml` still provisions `gradle-version: '8.14.2'`
for its unit-test job.
That may be equally stale, but it is a CI behaviour change rather than
local tooling, so it is left
alone here.

One flaky run was seen while verifying: two `TestDevelocityInjection`
cases against Gradle 6.0.1
failed once, then passed on re-run and on repeat clean builds. Unrelated
to these version changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 17:59:30 -06:00
bot-githubaction c3897a4e73 [bot] Update dist directory 2026-09-07 22:59:44 +00:00
6b92be1905 Update dependencies (#1065)
Rolls the outstanding dependency updates into a single change, along
with fixes for two breaking
changes they brought with them.

## Gradle Wrapper 9.6.1 → 9.7.1

Updated in all five wrapped projects: `sources/test/init-scripts` and
the `gradle-plugin`,
`groovy-dsl`, `java-toolchain` and `kotlin-dsl` workflow samples.

## GitHub Actions

- `actions/setup-java` v5.7.0 → v6.0.0
- `github/codeql-action/init` and `github/codeql-action/analyze`
re-pinned to a newer v3.29.5 commit

## npm dependencies

- `@typescript-eslint/eslint-plugin` 8.66.0 → 8.69.0
- `esbuild` 0.28.1 → 0.28.2
- `eslint` 10.8.0 → 10.9.1
- `globals` 17.9.0 → 17.11.0

`jest` stays at 30.4.2 and `@jest/globals` at 30.4.1 — see below.

## setup-java v6 needs signature verification disabled for EOL JDKs

v6 enables `verify-signature` by default. Temurin 16 and 20 are EOL and
publish no signatures, so
the toolchain-detection job could no longer install them:

```
Java setup process failed due to: Input 'verify-signature' is enabled,
but no signature URL was found for Temurin version 16.0.2+7.
```

Verification is disabled for those two steps only. The Java 17 and
matrix steps still verify.

## jest is held at 30.4.x because 30.5.0 breaks nock

jest 30.5.0 reworked the ESM module registry (ES modules keyed by full
URL, modules shared across
overlapping CommonJS/ESM graphs). nock ends up patching a different
module instance than the one
`@actions/http-client` reaches undici through, so it no longer
intercepts anything: all five mocked
tests in `short-lived-token.test.ts` silently hit the real network and
resolve `null`. Two further
tests in that file keep passing only vacuously — they assert `null`,
which is also what an
unintercepted request returns.

Bisected on node 24.18.0, changing only the jest version:

| jest | result |
| --- | --- |
| 30.5.0 | 5 failed, 38 passed |
| 30.4.2 | 43 passed |

nock 15.0.0 does not fix it, so this cannot be resolved by moving nock
forward. The node version
matters too: 24.3.0 masks the failure completely, which is why it
reproduced only in CI.

Because `jest` is an exactly-pinned direct devDependency, the pin by
itself holds the entire test
runtime at 30.4.x — `jest-cli`, `jest-runtime`, `jest-environment-node`,
`@jest/core`,
`@jest/transform`, `@jest/types`, `expect` and `jest-util` all resolve
to 30.4.x with no `overrides`
block. Nothing in the tree forces jest forward; only dependabot proposes
it. So the constraint is
expressed in `.github/dependabot.yml`, alongside the existing
`typescript` and `@types/node`
entries, ignoring `jest` and `@jest/globals` `>=30.5.0` with a comment
recording when it can be
lifted.

`pretty-format` is left to float to 30.5.1 via the types-only
`@types/jest`; it renders test output
and has no bearing on nock or module resolution.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 16:58:55 -06:00
bot-githubaction 0d208da058 [bot] Update dist directory 2026-09-07 22:35:18 +00:00
e49d0a36a8 Report EOL and maintenance status for Gradle versions (#1057)
This PR reports the support status of every Gradle version used in a
workflow:

- **End-of-life** — two or more major versions behind the latest
release.
- **Out of date** — one major version behind the latest release, or more
than two minor versions behind on the current major.

The information is surfaced as job annotations and in the Job Summary:
an icon beside the Gradle version in the build results table, and a
message below it.

| version kind | job annotation | version table | below the table |
| ------ | ----- | ---- | --------- |
| EOL | warning | ⚠️ | expandable section, pointing to the Gradle
Security Subscription |
| Out of date | notice | ℹ️ | one-line legend, pointing to the Gradle
release lifecycle docs |
| Current | none | — | — |

A single expandable section covers every end-of-life version, naming
them in its summary line and listing the affected release lines in its
body. The upgrade legend likewise appears once per job, however many
versions carry the info icon.

Notes on what is deliberately *not* reported:

- **Patch releases.** Only the major and minor version are considered,
so being on `9.7.0` when `9.7.1` exists is not flagged.
- **Pre-releases.** Release candidates, milestones and snapshots are
never reported, so testing against a nightly or an RC produces no
annotations.

The latest Gradle release is determined from the wrapper checksum data
already bundled with the action, so no network access is required. That
data is refreshed weekly, and the two-minor grace band absorbs the lag.

Note that the annotations are emitted independently of
`add-job-summary`: setting it to `never` suppresses the Job Summary
itself, but the warning and notice annotations remain.

### Examples

The `demo-job-summary` workflow has a `support-status-eol-and-outdated`
job that builds with three end-of-life versions (`6.9.4`, `7.4`,
`7.6.6`), two out-of-date versions (`8.0.2`, `8.14.5`) and the current
release, so all three statuses appear in one summary:

* **Job Summary**:
https://github.com/gradle/actions/actions/runs/34166688755#summary-101879071306
* **Annotations**:
https://github.com/gradle/actions/actions/runs/34166688755/job/101879071306
(expand annotations)

That workflow is never triggered automatically; run it manually against
a branch to review the rendering.

### Implementation

* Adds `GradleVersion`, parsing and ordering versions the same way
Gradle's own `org.gradle.util.GradleVersion` does. This replaces the
previous `versionIsAtLeast` helper and removes the `semver` dependency.
* Adds `gradle-support-status.ts`, which owns the classification policy
and both of its presentations (annotations and Job Summary section)
behind a three-function API, so `job-summary.ts` only asks for the icon
and the rendered block.

### Testing

* Unit tests for version ordering, classification, the annotations and
the rendered summary.
* `integ-test-gradle-support-status.yml`, which derives its expected
versions from the bundled release data so the assertions cannot drift
from the action's own view, then asserts against the real job log.
* The demo workflow job linked above, for reviewing the rendering by
eye.

Documented under [Build
reporting](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-version-support-status)
in `docs/setup-gradle.md`.

---------

Co-authored-by: Louis Jacomet <louis@gradle.com>
Co-authored-by: Daz DeBoer <daz@gradle.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 16:34:26 -06:00
Christoph Obexer 575435b1ea Use the root-qualified :wrapper task (#1064)
Replaces the unqualified `wrapper` task name with the
root-project-qualified
`:wrapper` in the two places this repo names it:

- `.github/workflows/demo-job-summary.yml` — the kotlin-dsl sample
invocation
- `docs/wrapper-validation.md` — the guidance for regenerating an
unverifiable
  `gradle-wrapper.jar`

An unqualified `wrapper` matches the task in every project of a
multi-project
build. The root-qualified form is unambiguous, matches the gradle/gradle
convention, and is required under Configure on Demand.

Part of the org-wide rollout tracked in gradle/gradle-private#5228;
original
issue gradle/gradle#37761.

Signed-off-by: Christoph Obexer <cobexer@gradle.com>
2026-09-07 14:42:32 -06:00
bot-githubaction a27deee331 [bot] Update dist directory 2026-09-01 21:00:35 +00:00
Daz DeBoerandClaude Opus 5 02d4784b6e Relax Develocity access key format validation (#1061)
Develocity access keys have the format `server=key[;server=key]*`. The
short-lived-token code validated that format with:

```
/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
```

This is too strict about `key`, and an OIDC token value fails it. There
were two independent problems:

1. `\w+` rejects the `.`, `-`, `_` and `=` padding a JWT contains.
2. Even had the regex passed, `parse` split each entry with
`hostKey.split('=')` and took `pair[1]`, so a key containing `=` would
have been **silently truncated** — a worse failure than rejection, since
the mangled key would then be sent to the server.

## Change

Drop `accessKeyRegexp` and the separate `isValid` gate; validate
structurally in `parse` instead, asserting only what is needed to split
the value:

- split on `;`, then split each entry on its **first** `=` only
- hostname: non-empty and free of whitespace (it cannot contain `=` or
`;` by construction)
- key: non-empty and free of whitespace — nothing else is assumed about
its shape

Two small intentional behaviour deltas beyond the fix:

- The whole value is now trimmed, so a trailing newline on a secret no
longer rejects the key. Internal whitespace still rejects.
- Empty entries (`host=key;`, `;host=key`) still reject, as before.

## Testing

Added cases to `short-lived-token.test.ts`: a JWT-shaped key value,
first-separator-only splitting (`host1=a=b==` → key `a=b==`),
surrounding-whitespace tolerance, a `raw()` round-trip preserving `==`
padding, and a table of nine rejection cases. 32 tests pass; prettier,
eslint and `./build` are clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 20:59:47 +00:00
bot-githubaction 346a44564f [bot] Update dist directory 2026-08-25 15:45:34 +00:00
Daz DeBoerandClaude Sonnet 5 910b061d4d Add cache-provider: external to skip Gradle User Home caching (#1059)
Users relying on an external mechanism to save/restore Gradle User Home
(e.g. Develocity Artifact Cache) previously had to set cache-disabled:
true, which is confusing since caching isn't actually disabled — it's
just not managed by this action — and the Job Summary misleadingly
reported caching as "Disabled".

cache-provider: external skips Gradle User Home restore/save (same as
cache-disabled) but reports a distinct "External" status in the Job
Summary, explaining that caching is handled by another provider.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 09:44:41 -06:00
bot-githubaction 4ca152ae04 [bot] Update dist directory 2026-08-25 14:40:34 +00:00
Daz DeBoerandClaude Sonnet 5 eed01f09d3 Add action heading to Gradle job summary (#1058)
Job summaries from setup-gradle/dependency-submission had no top-level
heading, so they read poorly when another action's summary content lands
in the same job. Name the action explicitly so the block is attributable
when summaries are stacked.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 14:39:48 +00:00
dependabot[bot] 889dc537cf Bump the npm-dependencies group in /sources with 3 updates (#1038)
Bumps the npm-dependencies group in /sources with 3 updates:
[@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver),
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
and [globals](https://github.com/sindresorhus/globals).

Updates `@types/semver` from 7.7.1 to 7.8.0
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.65.0 to 8.66.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.66.0</h2>
<h2>8.66.0 (2026-08-03)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>typescript-estree:</strong> handle import.defer() as
ImportExpression (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12609">#12609</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-conversion]
ignore shadowed built-ins (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12590">#12590</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle
shadowed Boolean calls (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12591">#12591</a>)</li>
<li><strong>eslint-plugin:</strong> [no-useless-default-assignment]
don't report defaults used by other overloads (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12607">#12607</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-parameters]
check MappedType key remapping (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12588">#12588</a>)</li>
<li><strong>eslint-plugin:</strong> [class-literal-property-style]
preserve type annotations and don't drop decorators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12617">#12617</a>)</li>
<li><strong>website:</strong> list
<code>onUnsupportedTypeScriptVersion</code> in parser options (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12585">#12585</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>Steffen Schroeder</li>
<li>송재욱</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.66.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.66.0 (2026-08-03)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [class-literal-property-style]
preserve type annotations and don't drop decorators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12617">#12617</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-parameters]
check MappedType key remapping (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12588">#12588</a>)</li>
<li><strong>eslint-plugin:</strong> [no-useless-default-assignment]
don't report defaults used by other overloads (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12607">#12607</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle
shadowed Boolean calls (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12591">#12591</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-conversion]
ignore shadowed built-ins (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12590">#12590</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>송재욱</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.66.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/e51b11ba3ab31837762c675f62f0d4dcb1abc4fb"><code>e51b11b</code></a>
chore(release): publish 8.66.0</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/20cb15e6dbed8f42b7857a75e34f96d231b95449"><code>20cb15e</code></a>
chore(eslint-plugin): split prefer-optional-chain.test.ts in multiple
files (...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/780a8c52d54fcb6420232b2f53974959a9b26dff"><code>780a8c5</code></a>
docs(eslint-plugin): [member-ordering] add lacking commas in default
member t...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/08dd427202e08de304cf172472e3a97de3f382cf"><code>08dd427</code></a>
fix(eslint-plugin): [class-literal-property-style] preserve type
annotations ...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/6be25d3b45f189d0c71018fb4ba7a2c9be4e14de"><code>6be25d3</code></a>
fix(eslint-plugin): [no-unnecessary-type-parameters] check MappedType
key rem...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/8826d0ebf7ff178afb6b0e72bf22d9132e4c83a2"><code>8826d0e</code></a>
fix(eslint-plugin): [no-useless-default-assignment] don't report
defaults use...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/7aecc1c44e60bc4b47402ce63a79587746766d9f"><code>7aecc1c</code></a>
fix(eslint-plugin): [prefer-nullish-coalescing] handle shadowed Boolean
calls...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/5ffa76049a0dd6c73ba9c0a7e8388ab1324f740f"><code>5ffa760</code></a>
fix(eslint-plugin): [no-unnecessary-type-conversion] ignore shadowed
built-in...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/f282f84df6418d405c5fbaa4312bf6c951b34957"><code>f282f84</code></a>
chore(eslint-plugin): fix all
<code>eslint-plugin/require-test-error-positions</code> (#...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/c8cafa4ae9a0b57a64ba23659eba25a01301684a"><code>c8cafa4</code></a>
docs: [unified-signatures] caveats regarding signatures merging (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12581">#12581</a>)</li>
<li>See full diff in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.66.0/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.8.0 to 17.9.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.9.0</h2>
<ul>
<li>Update globals (2026-08-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/348">#348</a>)
5a958ed</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0">https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/8e7b9358b190d26acca88cc2804707fbcd90a229"><code>8e7b935</code></a>
17.9.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/5a958ed06064fb879b64416655109d8eaffd2611"><code>5a958ed</code></a>
Update globals (2026-08-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/348">#348</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-06 19:21:58 -06:00
dependabot[bot] 968aeb62d7 Bump the github-actions group across 3 directories with 6 updates (#1039)
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [gradle/actions/setup-gradle](https://github.com/gradle/actions) |
`6.2.0` | `6.3.0` |
| [github/codeql-action/init](https://github.com/github/codeql-action) |
`4.37.4` | `4.37.5` |
|
[github/codeql-action/analyze](https://github.com/github/codeql-action)
| `4.37.4` | `4.37.5` |
| [actions/setup-java](https://github.com/actions/setup-java) | `5.6.0`
| `5.7.0` |
| [gradle/actions/wrapper-validation](https://github.com/gradle/actions)
| `6.2.0` | `6.3.0` |

Bumps the github-actions group with 1 update in the
/.github/actions/build-dist directory:
[actions/setup-node](https://github.com/actions/setup-node).
Bumps the github-actions group with 1 update in the
/.github/actions/init-integ-test directory:
[actions/setup-java](https://github.com/actions/setup-java).

Updates `gradle/actions/setup-gradle` from 6.2.0 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/setup-gradle's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.0</h2>
<h2>Highlights</h2>
<h3>Enhanced Caching: Windows fixes and a cache-protocol bump</h3>
<p>This release updates <code>gradle-actions-caching</code> to
<strong>v1.0.0</strong> (up from v0.7.0), which fixes two significant
caching defects, both most visible on Windows:</p>
<ul>
<li>
<p><strong>Cache entries failed to store at all on Windows.</strong>.
Every entry failed
with <code>Path Validation Error: Path(s) specified in the action for
caching do(es) not exist</code>, even though the Gradle User Home was
fully intact. Nothing was stored, so
every downstream job ran against an empty Gradle User Home. The cause
was a nested,
unpatched copy of <code>@actions/glob</code> combined with a silently
swallowed <code>require()</code> in
the bundle, which left Windows path separators unnormalized.</p>
</li>
<li>
<p><strong>Cache cleanup deleted instrumented jars that were in
use.</strong> A bug in key
hashing for paths shorter than 64 characters made cleanup judge freshly
created
<code>caches/jars-9</code> entries as unused and remove them, so the
<code>instrumented-jars</code> entry
was never saved and every job re-instrumented its classpaths.</p>
<p>Also included: cache entry names are now consistent between the save
and restore
reports — restore previously fell back to showing the raw glob pattern
(e.g.
<code>/home/runner/.gradle/caches/modules-*/files-*/*/*/*/*/</code>)
instead of <code>dependencies</code>.</p>
</li>
</ul>
<blockquote>
<p>[!IMPORTANT]
<strong>Existing cache entries are invalidated by this release.</strong>
The cache protocol
version was bumped to <code>v2</code>, so the first run after upgrading
will be a cache miss
and will repopulate the cache. No configuration changes are
required.</p>
</blockquote>
<h3>Basic caching warns instead of failing silently</h3>
<p>The basic (open-source) caching provider now emits a warning and
reports
<code>(Entry not saved: save failed)</code> in the Job Summary when a
cache save fails, rather
than reporting success (<a
href="https://redirect.github.com/gradle/actions/issues/1028">#1028</a>).</p>
<h3>Dependency submission works with Isolated Projects</h3>
<p><code>dependency-submission</code> now disables Isolated Projects via
a promoted property, so
dependency graph generation works on builds that enable it (<a
href="https://redirect.github.com/gradle/actions/issues/1025">#1025</a>).
Thanks to <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> for the
contribution.</p>
<h3>Updated defaults</h3>
<ul>
<li>Injected Develocity Gradle plugin: <strong>4.4.2 →
4.5.0</strong></li>
<li>36 new known-good wrapper checksums added for
<code>wrapper-validation</code></li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Render configuration-cache status in the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/989">gradle/actions#989</a></li>
<li>Update gradle-actions-caching library to v0.8.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/993">gradle/actions#993</a></li>
<li>Support experimental project-entry caching (configuration-cache +
build-logic) by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/994">gradle/actions#994</a></li>
<li>Update gradle-actions-caching library to v0.9.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/996">gradle/actions#996</a></li>
<li>Disable Isolated Projects via promoted property in
dependency-submission by <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1025">gradle/actions#1025</a></li>
<li>Add Windows coverage for caching via a new smoke-test suite by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1027">gradle/actions#1027</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/9c971963bec38e04b3d30dcc455b5382be2fdbfb"><code>9c97196</code></a>
Bump the github-actions group across 2 directories with 9 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1024">#1024</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/760e4a476b57fc6216ff816bbd682e14f43f66ee"><code>760e4a4</code></a>
Bump the npm-dependencies group across 1 directory with 2 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1037">#1037</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/73e4c4222be7ce7f3685c9277a9e698ea3a28534"><code>73e4c42</code></a>
Update gradle-actions-caching library to v1.0.0 (<a
href="https://redirect.github.com/gradle/actions/issues/1029">#1029</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a9d14388b4a819d9b607d85c115000e421e46eec"><code>a9d1438</code></a>
Add dependabot ignore rules for TypeScript 7.x and
<code>@​types/node</code> 25.x/26.x</li>
<li><a
href="https://github.com/gradle/actions/commit/68f37005d75fc0fdb3e66cc267d1f007b3de27d1"><code>68f3700</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/5971332a8f9f37459fbe710cc8b2ec8f125cdf54"><code>5971332</code></a>
Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin
to 4.5...</li>
<li><a
href="https://github.com/gradle/actions/commit/b5bc804016a397046a67d7f83089c374ff4af6a7"><code>b5bc804</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/dcbab4e9198b2315584afbb3d582bdaa2a7aee42"><code>dcbab4e</code></a>
Bump npm-dependencies group with TypeScript 6.0.3,
<code>@​types/node</code> 24.x, and secu...</li>
<li><a
href="https://github.com/gradle/actions/commit/ca8d95717f747a46ed048a911f0e8a348829aef1"><code>ca8d957</code></a>
Move non-smoke restore-gradle-home tests back to the integ-test suite
(<a
href="https://redirect.github.com/gradle/actions/issues/1032">#1032</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/4318659b28d9d152a98ad848b621397f3e386420"><code>4318659</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/3f131e8634966bd73d06cc69884922b02e6faf92...9c971963bec38e04b3d30dcc455b5382be2fdbfb">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/init` from 4.37.4 to 4.37.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/init's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.5</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/init's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.37.6 - 04 Aug 2026</h2>
<ul>
<li>Changed the default filepath for the new remote file address format
that was introduced in CodeQL Action 4.37.0 / 3.37.0 to
<code>.github/codeql-config.yml</code> to align it with the suggested
path that is used elsewhere. <a
href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li>
</ul>
<h2>4.37.5 - 03 Aug 2026</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/d1ba80a13dd99fba24a470575428917156a28b43"><code>d1ba80a</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4067">#4067</a>
from github/update-v4.37.5-1cd4d01d5</li>
<li><a
href="https://github.com/github/codeql-action/commit/e74600b0d945db9734eb044f95cd43f34b773451"><code>e74600b</code></a>
Update changelog for v4.37.5</li>
<li><a
href="https://github.com/github/codeql-action/commit/1cd4d01d58f636bbdbffbfd3c121b3446d07e9f3"><code>1cd4d01</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4061">#4061</a>
from github/henrymercer/turbo-system</li>
<li><a
href="https://github.com/github/codeql-action/commit/d2bfc30bc3373a3ec945dc3f93bc8b8f07fa16b9"><code>d2bfc30</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4050">#4050</a>
from github/mbg/status/registries</li>
<li><a
href="https://github.com/github/codeql-action/commit/68028fcb1605f3cdd37e4e1845c3f78af017a3ea"><code>68028fc</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4062">#4062</a>
from github/sam-robson/migrate-enterprise-release-pat</li>
<li><a
href="https://github.com/github/codeql-action/commit/c29563eeaafbc75499c7bb0d74bf77b3506c1cbd"><code>c29563e</code></a>
ci: use federated enterprise release PAT</li>
<li><a
href="https://github.com/github/codeql-action/commit/155e5229973b426bd1ae2f83bb1bf42417fa2a8f"><code>155e522</code></a>
Link the PR from the changelog entry</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d3b351ea6452a9b21346f8d64567e5b833924de"><code>2d3b351</code></a>
Handle network errors when streaming the CodeQL bundle download</li>
<li><a
href="https://github.com/github/codeql-action/commit/5d3eb98e4a780bfe1a53f57fbdc278ea5da1274b"><code>5d3eb98</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4055">#4055</a>
from github/dependabot/npm_and_yarn/npm-minor-203262...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c5f739bd6460e096aaf40962517e46a846b8b6b1"><code>c5f739b</code></a>
Merge branch 'main' into
dependabot/npm_and_yarn/npm-minor-2032624187</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/analyze` from 4.37.4 to 4.37.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/analyze's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.5</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/analyze's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.37.6 - 04 Aug 2026</h2>
<ul>
<li>Changed the default filepath for the new remote file address format
that was introduced in CodeQL Action 4.37.0 / 3.37.0 to
<code>.github/codeql-config.yml</code> to align it with the suggested
path that is used elsewhere. <a
href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li>
</ul>
<h2>4.37.5 - 03 Aug 2026</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/d1ba80a13dd99fba24a470575428917156a28b43"><code>d1ba80a</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4067">#4067</a>
from github/update-v4.37.5-1cd4d01d5</li>
<li><a
href="https://github.com/github/codeql-action/commit/e74600b0d945db9734eb044f95cd43f34b773451"><code>e74600b</code></a>
Update changelog for v4.37.5</li>
<li><a
href="https://github.com/github/codeql-action/commit/1cd4d01d58f636bbdbffbfd3c121b3446d07e9f3"><code>1cd4d01</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4061">#4061</a>
from github/henrymercer/turbo-system</li>
<li><a
href="https://github.com/github/codeql-action/commit/d2bfc30bc3373a3ec945dc3f93bc8b8f07fa16b9"><code>d2bfc30</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4050">#4050</a>
from github/mbg/status/registries</li>
<li><a
href="https://github.com/github/codeql-action/commit/68028fcb1605f3cdd37e4e1845c3f78af017a3ea"><code>68028fc</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4062">#4062</a>
from github/sam-robson/migrate-enterprise-release-pat</li>
<li><a
href="https://github.com/github/codeql-action/commit/c29563eeaafbc75499c7bb0d74bf77b3506c1cbd"><code>c29563e</code></a>
ci: use federated enterprise release PAT</li>
<li><a
href="https://github.com/github/codeql-action/commit/155e5229973b426bd1ae2f83bb1bf42417fa2a8f"><code>155e522</code></a>
Link the PR from the changelog entry</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d3b351ea6452a9b21346f8d64567e5b833924de"><code>2d3b351</code></a>
Handle network errors when streaming the CodeQL bundle download</li>
<li><a
href="https://github.com/github/codeql-action/commit/5d3eb98e4a780bfe1a53f57fbdc278ea5da1274b"><code>5d3eb98</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4055">#4055</a>
from github/dependabot/npm_and_yarn/npm-minor-203262...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c5f739bd6460e096aaf40962517e46a846b8b6b1"><code>c5f739b</code></a>
Merge branch 'main' into
dependabot/npm_and_yarn/npm-minor-2032624187</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.6.0 to 5.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v5.7.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix npm audit failures on releases/v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1154">actions/setup-java#1154</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1153">actions/setup-java#1153</a></li>
<li>Deprecate legacy Adopt distributions in v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1186">actions/setup-java#1186</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0">https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/b6effb05e454b25005698d916606bdc6ffcbf961"><code>b6effb0</code></a>
Deprecate legacy Adopt distributions in v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1186">#1186</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/e498d2a66a953492f322542257b22125c989b422"><code>e498d2a</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions (<a
href="https://redirect.github.com/actions/setup-java/issues/1153">#1153</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/6a3384db745932178632d0e22b2bd28cad1678e6"><code>6a3384d</code></a>
Fix npm audit failures on releases/v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1154">#1154</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95...b6effb05e454b25005698d916606bdc6ffcbf961">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions/wrapper-validation` from 6.2.0 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/wrapper-validation's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.0</h2>
<h2>Highlights</h2>
<h3>Enhanced Caching: Windows fixes and a cache-protocol bump</h3>
<p>This release updates <code>gradle-actions-caching</code> to
<strong>v1.0.0</strong> (up from v0.7.0), which fixes two significant
caching defects, both most visible on Windows:</p>
<ul>
<li>
<p><strong>Cache entries failed to store at all on Windows.</strong>.
Every entry failed
with <code>Path Validation Error: Path(s) specified in the action for
caching do(es) not exist</code>, even though the Gradle User Home was
fully intact. Nothing was stored, so
every downstream job ran against an empty Gradle User Home. The cause
was a nested,
unpatched copy of <code>@actions/glob</code> combined with a silently
swallowed <code>require()</code> in
the bundle, which left Windows path separators unnormalized.</p>
</li>
<li>
<p><strong>Cache cleanup deleted instrumented jars that were in
use.</strong> A bug in key
hashing for paths shorter than 64 characters made cleanup judge freshly
created
<code>caches/jars-9</code> entries as unused and remove them, so the
<code>instrumented-jars</code> entry
was never saved and every job re-instrumented its classpaths.</p>
<p>Also included: cache entry names are now consistent between the save
and restore
reports — restore previously fell back to showing the raw glob pattern
(e.g.
<code>/home/runner/.gradle/caches/modules-*/files-*/*/*/*/*/</code>)
instead of <code>dependencies</code>.</p>
</li>
</ul>
<blockquote>
<p>[!IMPORTANT]
<strong>Existing cache entries are invalidated by this release.</strong>
The cache protocol
version was bumped to <code>v2</code>, so the first run after upgrading
will be a cache miss
and will repopulate the cache. No configuration changes are
required.</p>
</blockquote>
<h3>Basic caching warns instead of failing silently</h3>
<p>The basic (open-source) caching provider now emits a warning and
reports
<code>(Entry not saved: save failed)</code> in the Job Summary when a
cache save fails, rather
than reporting success (<a
href="https://redirect.github.com/gradle/actions/issues/1028">#1028</a>).</p>
<h3>Dependency submission works with Isolated Projects</h3>
<p><code>dependency-submission</code> now disables Isolated Projects via
a promoted property, so
dependency graph generation works on builds that enable it (<a
href="https://redirect.github.com/gradle/actions/issues/1025">#1025</a>).
Thanks to <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> for the
contribution.</p>
<h3>Updated defaults</h3>
<ul>
<li>Injected Develocity Gradle plugin: <strong>4.4.2 →
4.5.0</strong></li>
<li>36 new known-good wrapper checksums added for
<code>wrapper-validation</code></li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Render configuration-cache status in the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/989">gradle/actions#989</a></li>
<li>Update gradle-actions-caching library to v0.8.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/993">gradle/actions#993</a></li>
<li>Support experimental project-entry caching (configuration-cache +
build-logic) by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/994">gradle/actions#994</a></li>
<li>Update gradle-actions-caching library to v0.9.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/996">gradle/actions#996</a></li>
<li>Disable Isolated Projects via promoted property in
dependency-submission by <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1025">gradle/actions#1025</a></li>
<li>Add Windows coverage for caching via a new smoke-test suite by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1027">gradle/actions#1027</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/9c971963bec38e04b3d30dcc455b5382be2fdbfb"><code>9c97196</code></a>
Bump the github-actions group across 2 directories with 9 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1024">#1024</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/760e4a476b57fc6216ff816bbd682e14f43f66ee"><code>760e4a4</code></a>
Bump the npm-dependencies group across 1 directory with 2 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1037">#1037</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/73e4c4222be7ce7f3685c9277a9e698ea3a28534"><code>73e4c42</code></a>
Update gradle-actions-caching library to v1.0.0 (<a
href="https://redirect.github.com/gradle/actions/issues/1029">#1029</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a9d14388b4a819d9b607d85c115000e421e46eec"><code>a9d1438</code></a>
Add dependabot ignore rules for TypeScript 7.x and
<code>@​types/node</code> 25.x/26.x</li>
<li><a
href="https://github.com/gradle/actions/commit/68f37005d75fc0fdb3e66cc267d1f007b3de27d1"><code>68f3700</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/5971332a8f9f37459fbe710cc8b2ec8f125cdf54"><code>5971332</code></a>
Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin
to 4.5...</li>
<li><a
href="https://github.com/gradle/actions/commit/b5bc804016a397046a67d7f83089c374ff4af6a7"><code>b5bc804</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/dcbab4e9198b2315584afbb3d582bdaa2a7aee42"><code>dcbab4e</code></a>
Bump npm-dependencies group with TypeScript 6.0.3,
<code>@​types/node</code> 24.x, and secu...</li>
<li><a
href="https://github.com/gradle/actions/commit/ca8d95717f747a46ed048a911f0e8a348829aef1"><code>ca8d957</code></a>
Move non-smoke restore-gradle-home tests back to the integ-test suite
(<a
href="https://redirect.github.com/gradle/actions/issues/1032">#1032</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/4318659b28d9d152a98ad848b621397f3e386420"><code>4318659</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/3f131e8634966bd73d06cc69884922b02e6faf92...9c971963bec38e04b3d30dcc455b5382be2fdbfb">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.4.0 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<h3>Enhancements:</h3>
<ul>
<li>Add cache-primary-key and cache-matched-key as outputs by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1577">actions/setup-node#1577</a></li>
<li>Migrate to ESM and upgrade dependencies by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1574">actions/setup-node#1574</a></li>
</ul>
<h3>Bug fixes:</h3>
<ul>
<li>Remove dummy NODE_AUTH_TOKEN export by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1558">actions/setup-node#1558</a></li>
<li>Only use <code>mirrorToken</code> in <code>getManifest</code> if
it's provided by <a
href="https://github.com/deiga"><code>@​deiga</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
</ul>
<h3>Documentation updates:</h3>
<ul>
<li>Add documentation for publishing to npm with Trusted Publisher
(OIDC) by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li>docs: Update restore-only cache documentation by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1550">actions/setup-node#1550</a></li>
<li>docs: Update caching recommendations to mitigate cache poisoning
risks by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1567">actions/setup-node#1567</a></li>
</ul>
<h3>Dependency update:</h3>
<ul>
<li>Upgrade <code>@​actions/cache</code> to 5.1.0, log cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li><a href="https://github.com/deiga"><code>@​deiga</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
<li><a href="https://github.com/jasongin"><code>@​jasongin</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v7.0.0">https://github.com/actions/setup-node/compare/v6...v7.0.0</a></p>
<h2>v6.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update <code>@​actions/cache</code> to 5.1.0 and add security
overrides for undici and fast-xml-parser by <a
href="https://github.com/HarithaVattikuti"><code>@​HarithaVattikuti</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1579">actions/setup-node#1579</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0">https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/820762786026740c76f36085b0efc47a31fe5020"><code>8207627</code></a>
Migrate to ESM and upgrade dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1574">#1574</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/04be95cf3511ea51ebf9f224ddfb99cc7ab87cd4"><code>04be95c</code></a>
Add cache-primary-key and cache-matched-key as outputs (<a
href="https://redirect.github.com/actions/setup-node/issues/1577">#1577</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/7c2c68d20d402ed6a201ada70a81341941093140"><code>7c2c68d</code></a>
docs: Update caching recommendations to mitigate cache poisoning risks
(<a
href="https://redirect.github.com/actions/setup-node/issues/1567">#1567</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/6a61c0375d66246de94630495909f12cf8dac84d"><code>6a61c03</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/1569">#1569</a>
from jasongin/update-actions-cache-5.1.0</li>
<li><a
href="https://github.com/actions/setup-node/commit/30eb73b41ded577900c1ebf968ef95cdf8f7434f"><code>30eb73b</code></a>
Resolve high-severity audit issues</li>
<li><a
href="https://github.com/actions/setup-node/commit/4e1a87a501d0302f99e30e2748568adcb388d09f"><code>4e1a87a</code></a>
Update dist</li>
<li><a
href="https://github.com/actions/setup-node/commit/360237f0c01778d0c17291f75c56d6feae4f7574"><code>360237f</code></a>
Strict equality</li>
<li><a
href="https://github.com/actions/setup-node/commit/4f8aac5beb2f0854bc79651567a18c67eb0b9de3"><code>4f8aac5</code></a>
Bump <code>@​actions/cache</code> to 5.1.0, log cache write denied</li>
<li><a
href="https://github.com/actions/setup-node/commit/f4a67bbeca970f103397d3d2b9462cf787cd2980"><code>f4a67bb</code></a>
Only use <code>mirrorToken</code> in <code>getManifest</code> if it's
provided (<a
href="https://redirect.github.com/actions/setup-node/issues/1548">#1548</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/0355742c943ddb13ca8a6b700f824231caa91e75"><code>0355742</code></a>
Remove dummy NODE_AUTH_TOKEN export (<a
href="https://redirect.github.com/actions/setup-node/issues/1558">#1558</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-node/compare/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e...820762786026740c76f36085b0efc47a31fe5020">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.6.0 to 5.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v5.7.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix npm audit failures on releases/v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1154">actions/setup-java#1154</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1153">actions/setup-java#1153</a></li>
<li>Deprecate legacy Adopt distributions in v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1186">actions/setup-java#1186</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0">https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/b6effb05e454b25005698d916606bdc6ffcbf961"><code>b6effb0</code></a>
Deprecate legacy Adopt distributions in v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1186">#1186</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/e498d2a66a953492f322542257b22125c989b422"><code>e498d2a</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions (<a
href="https://redirect.github.com/actions/setup-java/issues/1153">#1153</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/6a3384db745932178632d0e22b2bd28cad1678e6"><code>6a3384d</code></a>
Fix npm audit failures on releases/v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1154">#1154</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95...b6effb05e454b25005698d916606bdc6ffcbf961">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-06 19:21:45 -06:00
Daz DeBoerandClaude Opus 5 b7d46eb472 Document immutable releases in the release process
Release immutability is now enabled for this repository, so a published
release permanently locks its Git tag to a commit, and deleting the
release does not free the tag name for reuse.

Reorder the steps so the signed tag is created and pushed before the
release is drafted, and have the draft select that existing tag. Letting
GitHub create the tag at publish time produces an unsigned, lightweight
tag pointing at whatever main resolves to at that moment - both of which
immutability then makes permanent.

Also record that the v6 major tag must never have a release attached:
immutability locks only tags that have a release of their own, which is
what keeps the conventional major-tag force-push legal.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 13:54:30 -06:00
dependabot[bot] 9c971963be Bump the github-actions group across 2 directories with 9 updates (#1024)
Bumps the github-actions group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.3` |
`7.0.1` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.4.0`
| `7.0.0` |
| [gradle/actions/setup-gradle](https://github.com/gradle/actions) |
`6.1.0` | `6.2.0` |
| [github/codeql-action/init](https://github.com/github/codeql-action) |
`4.36.2` | `4.37.4` |
|
[github/codeql-action/analyze](https://github.com/github/codeql-action)
| `4.36.2` | `4.37.4` |
| [actions/setup-java](https://github.com/actions/setup-java) | `5.2.0`
| `5.6.0` |
| [ossf/scorecard-action](https://github.com/ossf/scorecard-action) |
`2.4.3` | `2.4.4` |
|
[stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action)
| `7.1.0` | `7.2.0` |
| [gradle/actions/wrapper-validation](https://github.com/gradle/actions)
| `6.1.0` | `6.2.0` |

Bumps the github-actions group with 1 update in the
/.github/actions/init-integ-test directory:
[actions/setup-java](https://github.com/actions/setup-java).

Updates `actions/checkout` from 6.0.3 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v7...v7.0.1">https://github.com/actions/checkout/compare/v7...v7.0.1</a></p>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>block checking out fork pr for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the
minor-actions-dependencies group across 1 directory by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li>
<li>Bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li>
<li>Bump js-yaml from 4.1.0 to 4.2.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li>
<li>Bump <code>@​actions/core</code> and
<code>@​actions/tool-cache</code> and Remove uuid by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li>
<li>upgrade module to esm and update dependencies by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li>
<li>Bump the minor-npm-dependencies group across 1 directory with 3
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li>
<li>getting ready for checkout v7 release by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2464">actions/checkout#2464</a></li>
<li>update error wording by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2467">actions/checkout#2467</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v7.0.0">https://github.com/actions/checkout/compare/v6.0.3...v7.0.0</a></p>
<h2>v6.1.0</h2>
<h2>What's Changed</h2>
<ul>
<li><strong>[BREAKING]</strong> backport
<code>allow-unsafe-pr-checkout</code> to v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2500">actions/checkout#2500</a></li>
<li>backport fixes to releases-v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2527">actions/checkout#2527</a></li>
</ul>
<p><a
href="https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/">https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/</a>
for more details about this breaking change</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v6.1.0">https://github.com/actions/checkout/compare/v6.0.3...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v7.0.1</h2>
<ul>
<li>Skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>Trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>Escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v7.0.0</h2>
<ul>
<li>Block checking out fork PR for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v6.0.3</h2>
<ul>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/3d3c42e5aac5ba805825da76410c181273ba90b1"><code>3d3c42e</code></a>
prep v7.0.1 release (<a
href="https://redirect.github.com/actions/checkout/issues/2531">#2531</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/28802689a136bfcdb721715abd713740beecbe07"><code>2880268</code></a>
escape values passed to --unset (<a
href="https://redirect.github.com/actions/checkout/issues/2530">#2530</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/12cd2235efa0937479335606d7c3ac9f6c0973b1"><code>12cd223</code></a>
trim only ascii whitespace for branch (<a
href="https://redirect.github.com/actions/checkout/issues/2521">#2521</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/62661c4e71a304b2823ed026347b8d34c3eac541"><code>62661c4</code></a>
skip running unsafe pr check if input is default (<a
href="https://redirect.github.com/actions/checkout/issues/2518">#2518</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8d4307400f9427dba7cb98e488d6ab85f1cec5f"><code>e8d4307</code></a>
Bump the minor-actions-dependencies group with 2 updates (<a
href="https://redirect.github.com/actions/checkout/issues/2499">#2499</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/631c942040754b6e095e929c1677c07e10ed4f87"><code>631c942</code></a>
eslint 9 (<a
href="https://redirect.github.com/actions/checkout/issues/2474">#2474</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/4f1f4aec02e41874fa0262ea8ff5172d7978ad1e"><code>4f1f4ae</code></a>
Bump actions/upload-artifact from 4 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2476">#2476</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/ba097532fb203f7e88c9c3c0b899b49469908a92"><code>ba09753</code></a>
Bump actions/checkout from 6 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2488">#2488</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/b9e0990d219a03df7633c93f6f005a8fecbcab22"><code>b9e0990</code></a>
Bump docker/login-action from 3.3.0 to 4.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2479">#2479</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8cb398be4a550817e382abf69e4c12c76fce1f2"><code>e8cb398</code></a>
Bump docker/build-push-action from 6.5.0 to 7.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2478">#2478</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/checkout/compare/df4cb1c069e1874edd31b4311f1884172cec0e10...3d3c42e5aac5ba805825da76410c181273ba90b1">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.4.0 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<h3>Enhancements:</h3>
<ul>
<li>Add cache-primary-key and cache-matched-key as outputs by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1577">actions/setup-node#1577</a></li>
<li>Migrate to ESM and upgrade dependencies by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1574">actions/setup-node#1574</a></li>
</ul>
<h3>Bug fixes:</h3>
<ul>
<li>Remove dummy NODE_AUTH_TOKEN export by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1558">actions/setup-node#1558</a></li>
<li>Only use <code>mirrorToken</code> in <code>getManifest</code> if
it's provided by <a
href="https://github.com/deiga"><code>@​deiga</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
</ul>
<h3>Documentation updates:</h3>
<ul>
<li>Add documentation for publishing to npm with Trusted Publisher
(OIDC) by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li>docs: Update restore-only cache documentation by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1550">actions/setup-node#1550</a></li>
<li>docs: Update caching recommendations to mitigate cache poisoning
risks by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1567">actions/setup-node#1567</a></li>
</ul>
<h3>Dependency update:</h3>
<ul>
<li>Upgrade <code>@​actions/cache</code> to 5.1.0, log cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li><a href="https://github.com/deiga"><code>@​deiga</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
<li><a href="https://github.com/jasongin"><code>@​jasongin</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v7.0.0">https://github.com/actions/setup-node/compare/v6...v7.0.0</a></p>
<h2>v6.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update <code>@​actions/cache</code> to 5.1.0 and add security
overrides for undici and fast-xml-parser by <a
href="https://github.com/HarithaVattikuti"><code>@​HarithaVattikuti</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1579">actions/setup-node#1579</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0">https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/820762786026740c76f36085b0efc47a31fe5020"><code>8207627</code></a>
Migrate to ESM and upgrade dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1574">#1574</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/04be95cf3511ea51ebf9f224ddfb99cc7ab87cd4"><code>04be95c</code></a>
Add cache-primary-key and cache-matched-key as outputs (<a
href="https://redirect.github.com/actions/setup-node/issues/1577">#1577</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/7c2c68d20d402ed6a201ada70a81341941093140"><code>7c2c68d</code></a>
docs: Update caching recommendations to mitigate cache poisoning risks
(<a
href="https://redirect.github.com/actions/setup-node/issues/1567">#1567</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/6a61c0375d66246de94630495909f12cf8dac84d"><code>6a61c03</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/1569">#1569</a>
from jasongin/update-actions-cache-5.1.0</li>
<li><a
href="https://github.com/actions/setup-node/commit/30eb73b41ded577900c1ebf968ef95cdf8f7434f"><code>30eb73b</code></a>
Resolve high-severity audit issues</li>
<li><a
href="https://github.com/actions/setup-node/commit/4e1a87a501d0302f99e30e2748568adcb388d09f"><code>4e1a87a</code></a>
Update dist</li>
<li><a
href="https://github.com/actions/setup-node/commit/360237f0c01778d0c17291f75c56d6feae4f7574"><code>360237f</code></a>
Strict equality</li>
<li><a
href="https://github.com/actions/setup-node/commit/4f8aac5beb2f0854bc79651567a18c67eb0b9de3"><code>4f8aac5</code></a>
Bump <code>@​actions/cache</code> to 5.1.0, log cache write denied</li>
<li><a
href="https://github.com/actions/setup-node/commit/f4a67bbeca970f103397d3d2b9462cf787cd2980"><code>f4a67bb</code></a>
Only use <code>mirrorToken</code> in <code>getManifest</code> if it's
provided (<a
href="https://redirect.github.com/actions/setup-node/issues/1548">#1548</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/0355742c943ddb13ca8a6b700f824231caa91e75"><code>0355742</code></a>
Remove dummy NODE_AUTH_TOKEN export (<a
href="https://redirect.github.com/actions/setup-node/issues/1558">#1558</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-node/compare/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e...820762786026740c76f36085b0efc47a31fe5020">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions/setup-gradle` from 6.1.0 to 6.2.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/setup-gradle's
releases</a>.</em></p>
<blockquote>
<h2>v6.2.0</h2>
<h2>Highlights</h2>
<p>This release brings significant behaviour improvements to
<strong>Enhanced caching</strong>, improvements to the generated Job
Summary, and a number of correctness and security fixes.</p>
<ol>
<li><strong>Improved cache-cleanup mechanism.</strong> Cleanup of stale
files from the Gradle User Home is now faster, and no longer depends on
Gradle or a JVM. It works by inspecting the local file state directly,
removing the Gradle invocation from the post-build step.</li>
<li><strong>More granular, more stable caching.</strong> The local build
cache is stored as a separate cache entry, so it can be restored and
invalidated independently of the main Gradle User Home entry. Transient
Gradle housekeeping files are excluded from the cache, reducing its size
and improving stability.</li>
<li><strong>Hide obsolete Job summaries in PR commments</strong>: When a
new Job summary comment is added to a PR, previous outdated Job
summaries are now hidden.</li>
<li><strong>Improved caching report in the job summary.</strong> The
cache report now uses a single, consistent layout across all cache
states and providers. Provider information is integrated directly into
the report, and per-entry details are available in an expandable
section. (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><strong>Correctness and security fixes.</strong> A unique cache key
is now used per run attempt, so re-runs no longer collide; the job
summary shows the cache key string rather than an internal id; and
bundled dependencies have been updated, including a ReDoS fix and a
fast-xml CVE fix.</li>
</ol>
<h2>What's Changed</h2>
<ul>
<li>Remove unnecessary dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/981">gradle/actions#981</a></li>
<li>Scope CI-integ-test concurrency groups per-branch by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/983">gradle/actions#983</a></li>
<li>Improve typings by <a
href="https://github.com/Vampire"><code>@​Vampire</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
<li>Hide obsolete Job summaries by <a
href="https://github.com/SimonMarquis"><code>@​SimonMarquis</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/902">gradle/actions#902</a></li>
<li>CI: add requireable aggregate/no-op checks for branch protection by
<a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/984">gradle/actions#984</a></li>
<li>Redesign the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/985">gradle/actions#985</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Vampire"><code>@​Vampire</code></a> made
their first contribution in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.1...v6.2.0">https://github.com/gradle/actions/compare/v6.1.1...v6.2.0</a></p>
<h2>v6.1.1</h2>
<p>This release updates various dependency versions, resolving several
reported security vulnerabilities.
No functional changes are included</p>
<h2>What's Changed</h2>
<ul>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/sources/test/init-scripts by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/961">gradle/actions#961</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/gradle-plugin by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/962">gradle/actions#962</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/groovy-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/963">gradle/actions#963</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/java-toolchain by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/964">gradle/actions#964</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/kotlin-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/965">gradle/actions#965</a></li>
<li>Update known wrapper checksums by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/937">gradle/actions#937</a></li>
<li>Bump the github-actions group across 2 directories with 8 updates by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/976">gradle/actions#976</a></li>
<li>Bump the npm-dependencies group across 1 directory with 14 updates
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/970">gradle/actions#970</a></li>
<li>Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 by
<a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/973">gradle/actions#973</a></li>
<li>Bump the npm-dependencies group in /sources with 5 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/977">gradle/actions#977</a></li>
<li>Update <code>@​actions/cache</code> and
<code>@​actions/artifact</code>, stop ignoring them in Dependabot by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/978">gradle/actions#978</a></li>
<li>Resolve npm security vulnerabilities via dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/980">gradle/actions#980</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.0...v6.1.1">https://github.com/gradle/actions/compare/v6.1.0...v6.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/3f131e8634966bd73d06cc69884922b02e6faf92"><code>3f131e8</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/97715a29bc75b4c8eeea944dee111d567bb582b5"><code>97715a2</code></a>
Redesign the caching Job Summary (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/8b6cdb5f580ff6b19af985e0fa90cd86daf1d3e1"><code>8b6cdb5</code></a>
CI: add requireable aggregate/no-op checks for branch protection (<a
href="https://redirect.github.com/gradle/actions/issues/984">#984</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/5852e0e5d82ffa89e04ed56eb37c14028a1ce459"><code>5852e0e</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/318eed703815f0482a7498a267b758f78fe7bcb9"><code>318eed7</code></a>
Hide obsolete Job summaries (<a
href="https://redirect.github.com/gradle/actions/issues/902">#902</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a7406612929c8997f724ceab900ed029936e3bf5"><code>a740661</code></a>
Improve typings (<a
href="https://redirect.github.com/gradle/actions/issues/938">#938</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/7ae0d0208cc8604463cd30cf64c54d08ac84d13f"><code>7ae0d02</code></a>
Update gradle-actions-caching library to v0.6.0 (<a
href="https://redirect.github.com/gradle/actions/issues/982">#982</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/e473973a5b07be6339cc6d3cf458bb1b30eb9b08"><code>e473973</code></a>
Scope CI-integ-test concurrency groups per-branch</li>
<li><a
href="https://github.com/gradle/actions/commit/35a4a3f355e0599a8af664843f0d1a683e5b2230"><code>35a4a3f</code></a>
Queue up integ-test runs</li>
<li><a
href="https://github.com/gradle/actions/commit/b6eebf33f1e928997bb7ff32e39933e3c015ccff"><code>b6eebf3</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e...3f131e8634966bd73d06cc69884922b02e6faf92">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/init` from 4.36.2 to 4.37.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/init's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.4</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>v4.37.1</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>v4.37.0</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>v4.36.3</h2>
<p>No user facing changes.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/init's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/analyze` from 4.36.2 to 4.37.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/analyze's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.4</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>v4.37.1</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>v4.37.0</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>v4.36.3</h2>
<p>No user facing changes.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/analyze's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.2.0 to 5.6.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v5.6.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Backport to v5: Add Maven compiler problem matcher for javac
diagnostics by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1087">actions/setup-java#1087</a></li>
<li>feat: expose cache-primary-key output (<a
href="https://redirect.github.com/actions/setup-java/issues/597">#597</a>)
[v5 backport] by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1089">actions/setup-java#1089</a></li>
<li>dist: Cover Tencent Kona JDK 25 (<a
href="https://redirect.github.com/actions/setup-java/issues/1108">#1108</a>)
[v5 backport] by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1110">actions/setup-java#1110</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1111">#1111</a>:
Preserve Maven toolchains across repeated setup-java runs (<a
href="https://redirect.github.com/actions/setup-java/issues/1099">#1099</a>)
by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1113">actions/setup-java#1113</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1097">#1097</a>/<a
href="https://redirect.github.com/actions/setup-java/issues/1098">#1098</a>
to v5: cache Maven and Gradle wrapper distributions separately by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1122">actions/setup-java#1122</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5...v5.6.0">https://github.com/actions/setup-java/compare/v5...v5.6.0</a></p>
<h2>v5.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>chore: enforce pre-PR validation (aggregate scripts, git hooks, PR
checklist) by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1061">actions/setup-java#1061</a></li>
<li>Bump github/codeql-action from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1069">actions/setup-java#1069</a></li>
<li>Bump actions/checkout from 6 to 7 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1068">actions/setup-java#1068</a></li>
<li>Bump actions/setup-python from 5 to 6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1067">actions/setup-java#1067</a></li>
<li>Bump <code>@​typescript-eslint/parser</code> from 8.61.1 to 8.62.0
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1062">actions/setup-java#1062</a></li>
<li>feat: Add verify-signature plumbing and Temurin+Microsoft
verification support by <a
href="https://github.com/johnoliver"><code>@​johnoliver</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1060">actions/setup-java#1060</a></li>
<li>Updated jetbrains test: https.request() now catches errors. This
fixes leaking tests as well by <a
href="https://github.com/jmjaffe37"><code>@​jmjaffe37</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1070">actions/setup-java#1070</a></li>
<li>Fix arm64 e2e workflow tests mislabeled as x64 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1073">actions/setup-java#1073</a></li>
<li>feat: suppress Maven transfer progress via MAVEN_ARGS by default
(add show-download-progress input) by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1053">actions/setup-java#1053</a></li>
<li>feat: Disable interactiveMode in generated Maven settings.xml by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1052">actions/setup-java#1052</a></li>
<li>Bump prettier from 3.6.2 to 3.9.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1066">actions/setup-java#1066</a></li>
<li>chore(deps-dev): bump eslint-plugin-jest from 29.0.1 to 29.15.4 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1074">actions/setup-java#1074</a></li>
<li>fix: Maven Toolchains grows unexpectedly by <a
href="https://github.com/Okeanos"><code>@​Okeanos</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/534">actions/setup-java#534</a></li>
<li>dist: Support Tencent Kona JDK by <a
href="https://github.com/johnshajiang"><code>@​johnshajiang</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/672">actions/setup-java#672</a></li>
<li>feat: Add set-default option by <a
href="https://github.com/gsmet"><code>@​gsmet</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1017">actions/setup-java#1017</a></li>
<li>docs: document problem matcher (and how to disable it), Maven
Wrapper caching, and generated interactiveMode by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1075">actions/setup-java#1075</a></li>
<li>feat: Add distribution detection support to .sdkmanrc file by <a
href="https://github.com/lukaszgyg"><code>@​lukaszgyg</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/975">actions/setup-java#975</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/jmjaffe37"><code>@​jmjaffe37</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/1070">actions/setup-java#1070</a></li>
<li><a href="https://github.com/gsmet"><code>@​gsmet</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/1017">actions/setup-java#1017</a></li>
<li><a href="https://github.com/lukaszgyg"><code>@​lukaszgyg</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/975">actions/setup-java#975</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5...v5.5.0">https://github.com/actions/setup-java/compare/v5...v5.5.0</a></p>
<h2>v5.4.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump <code>@​typescript-eslint/parser</code> from 8.48.0 to 8.61.1
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1021">actions/setup-java#1021</a></li>
<li>Fix codeql workflow permissions by <a
href="https://github.com/jsoref"><code>@​jsoref</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/993">actions/setup-java#993</a></li>
<li>fix CodeQL permissions by <a
href="https://github.com/gdams"><code>@​gdams</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1025">actions/setup-java#1025</a></li>
<li>fix: reject non-semver candidate versions in isVersionSatisfies by
<a href="https://github.com/sproctor"><code>@​sproctor</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1009">actions/setup-java#1009</a></li>
<li>Bump <code>@​actions/cache</code> to 5.1.0, handle cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1026">actions/setup-java#1026</a></li>
<li>Add Maven Wrapper cache feature by <a
href="https://github.com/mahabaleshwars"><code>@​mahabaleshwars</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/1027">actions/setup-java#1027</a></li>
<li>Spelling by <a
href="https://github.com/jsoref"><code>@​jsoref</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/713">actions/setup-java#713</a></li>
<li>add link to advanced configuration for JetBrains by <a
href="https://github.com/robstoll"><code>@​robstoll</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/850">actions/setup-java#850</a></li>
<li>docs(action): fix missing required or default fields by <a
href="https://github.com/kranthipoturaju"><code>@​kranthipoturaju</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/1007">actions/setup-java#1007</a></li>
<li>feat: add microsoft openjdk 17.0.18 by <a
href="https://github.com/al-kau"><code>@​al-kau</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1002">actions/setup-java#1002</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95"><code>03ad4de</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1097">#1097</a>/<a
href="https://redirect.github.com/actions/setup-java/issues/1098">#1098</a>:
cache Maven and Gradle wrapper distributions separately...</li>
<li><a
href="https://github.com/actions/setup-java/commit/d229d2e858d9137cc0b3f118fa5184b9f0a44ac4"><code>d229d2e</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1111">#1111</a>:
Preserve Maven toolchains across repeated setup-java runs (<a
href="https://redirect.github.com/actions/setup-java/issues/1">#1</a>...</li>
<li><a href="https://github.com...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 21:16:33 -06:00
dependabot[bot] 760e4a476b Bump the npm-dependencies group across 1 directory with 2 updates (#1037)
Bumps the npm-dependencies group with 2 updates in the /sources
directory: [eslint](https://github.com/eslint/eslint) and
[globals](https://github.com/sindresorhus/globals).

Updates `eslint` from 10.7.0 to 10.8.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.8.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1"><code>2fee9bb</code></a>
feat: export <code>ConfigObject</code> from <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21082">#21082</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8"><code>6b8d2f7</code></a>
fix: escape reserved characters in rule id in <code>html</code>
formatter (<a
href="https://redirect.github.com/eslint/eslint/issues/21129">#21129</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90910715011211a20d011d807d398a7005127f35"><code>9091071</code></a>
fix: prevent <code>no-unreachable-loop</code> crash when all loop types
are ignored (<a
href="https://redirect.github.com/eslint/eslint/issues/21116">#21116</a>)
(Pixel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e23fafe8d4b15355adef6cdebef414c3a2019454"><code>e23fafe</code></a>
fix: prefer-object-spread add semicolon when adding parenthesis (<a
href="https://redirect.github.com/eslint/eslint/issues/21081">#21081</a>)
(synthex-byte)</li>
<li><a
href="https://github.com/eslint/eslint/commit/20b5ad052360a443786a202e94624a3f81846511"><code>20b5ad0</code></a>
fix: quadratic-time regex in <code>prefer-template</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21096">#21096</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8b6f6c0b33411f34485512456d94f221daf7321f"><code>8b6f6c0</code></a>
fix: apply ignore configs to computed methods in class-methods-use-this
(<a
href="https://redirect.github.com/eslint/eslint/issues/21094">#21094</a>)
(Pixel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b2c608c014a396800a24a89343265d0616bee2d8"><code>b2c608c</code></a>
fix: NewExpression with parenthesized callee in
<code>preserve-caught-error</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21083">#21083</a>)
(Francesco Trotta)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea"><code>6ddf858</code></a>
docs: fix broken Specify Parser Options anchor link (<a
href="https://redirect.github.com/eslint/eslint/issues/21106">#21106</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0"><code>784dfbe</code></a>
docs: Clarify <code>no-eq-null</code> description (<a
href="https://redirect.github.com/eslint/eslint/issues/21120">#21120</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7ec733a3ba5acb053a73ac656030a3879aa48fda"><code>7ec733a</code></a>
docs: Fix typos and grammar in glossary (<a
href="https://redirect.github.com/eslint/eslint/issues/21095">#21095</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/92bb13f13065db72d62454b9830d3ae52db15c76"><code>92bb13f</code></a>
docs: replace quake link (<a
href="https://redirect.github.com/eslint/eslint/issues/21108">#21108</a>)
(Jung Hyeon Jun)</li>
<li><a
href="https://github.com/eslint/eslint/commit/68eb4a57572409dbdcfeb3bc5c92ddbba46bc770"><code>68eb4a5</code></a>
docs: fix broken Specify Globals anchor links in rule pages (<a
href="https://redirect.github.com/eslint/eslint/issues/21103">#21103</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d28f697e0d32d7446c825fd89c362db028450134"><code>d28f697</code></a>
docs: replace Code Climate CLI links with Qlty CLI links (<a
href="https://redirect.github.com/eslint/eslint/issues/21099">#21099</a>)
(Jung Hyeon Jun)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccc68d42564e46bc9020d19ec52d2988f3b7bfa"><code>eccc68d</code></a>
docs: correct --suppressions-location option description (<a
href="https://redirect.github.com/eslint/eslint/issues/21093">#21093</a>)
(Ga eun Lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c5963f74bfa82a5b7ccc0607dcdcc695b8c97a31"><code>c5963f7</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490"><code>4fbf46d</code></a>
test: pin <code>webpack</code> version to 5.108.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/21137">#21137</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320"><code>2d063e2</code></a>
chore: update HTTP URLs to HTTPS in JSDoc and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/21101">#21101</a>)
(Bo Hyun Kim)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74"><code>eccbe7b</code></a>
test: add error locations to <code>no-class-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21123">#21123</a>)
(devoil)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc"><code>e7d1e43</code></a>
ci: bump actions/setup-go from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21118">#21118</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/e9d66d0cde1a7752c29dee53ab7b62632835a87a"><code>e9d66d0</code></a>
ci: bump actions/setup-node from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21119">#21119</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/ee225b60c26f0cc5f4d71641888a5bd2ec5626d6"><code>ee225b6</code></a>
test: Add error location details to <code>no-eq-null</code> rule (<a
href="https://redirect.github.com/eslint/eslint/issues/21117">#21117</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/044a627fa3e28ee1410d515acc5378eb4b49f8ba"><code>044a627</code></a>
chore: update minimatch to ^10.2.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/21107">#21107</a>)
(김채영)</li>
<li><a
href="https://github.com/eslint/eslint/commit/fb09aa8ff09730d3ccf68859e065f99666b52466"><code>fb09aa8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21115">#21115</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/5abd878740fe417fd8a910cac3741f2a0317b365"><code>5abd878</code></a>
test: add error locations to <code>no-proto</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21114">#21114</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9715887ec94a5ff936447d7b680d039fbe2f0541"><code>9715887</code></a>
test: Add error location details to <code>no-div-regex</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21110">#21110</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/a746ec6ea4a2249b1eb3f512264da5f4d5f7c886"><code>a746ec6</code></a>
test: add error locations to <code>no-new-wrappers</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21109">#21109</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8dde64570e240f3ef8af873d59a752db6d8519aa"><code>8dde645</code></a>
test: add error locations to <code>no-ex-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21102">#21102</a>)
(devoil)</li>
<li><a
href="https://github.com/eslint/eslint/commit/13ab0ec447650c079d8a5e5d67222f79e69c741e"><code>13ab0ec</code></a>
test: add error locations to <code>no-label-var</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21098">#21098</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/a99906ffb8342dde03336b5c6372b5658f21d5f2"><code>a99906f</code></a>
test: Add error location details to <code>no-delete-var</code> rule (<a
href="https://redirect.github.com/eslint/eslint/issues/21105">#21105</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c47e8dc9bbfba797430db45ae08cb6f7392cfc9d"><code>c47e8dc</code></a>
chore: add missing backticks to <code>languages/js/index.js</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21104">#21104</a>)
(beeen)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0174428dd7543d118cf67a823b98dd97032fe68c"><code>0174428</code></a>
chore: add missing backticks to <code>translate-cli-options.js</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21097">#21097</a>)
(dongkyu lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3d36589a4917326500f0707bb41745160f387d00"><code>3d36589</code></a>
chore: add missing backticks to <code>serialization.js</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21091">#21091</a>)
(이규환)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dcc9312c1081931de0fe1b555fbb6aa82fe696b9"><code>dcc9312</code></a>
test: add error locations to <code>eqeqeq</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21090">#21090</a>)
(Ga eun Lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2710b182472cd1a95e4aff6186cb2c4fbadb4ee0"><code>2710b18</code></a>
ci: Add explicit permissions to rebuild-docs-sites workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/21089">#21089</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/5d2f8663ee60701e9036b0b0933a12efd9d93269"><code>5d2f866</code></a>
chore: update dependency prettier to v3.9.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/21086">#21086</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/d584e31098f262563b97dc5d5f23a63a187879a0"><code>d584e31</code></a>
chore: fix failing ecosystem test for <code>eslint-plugin-unicorn</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21084">#21084</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/bf3eda049bd690f1e9a5a0c4520a6329b3e4ec85"><code>bf3eda0</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21079">#21079</a>)
(ESLint Bot)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/749dfed106f44d77bf3af2402ebfae20cdbf59ee"><code>749dfed</code></a>
10.8.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/4bd0d75b22ffd44809a92659f113c972c5be0770"><code>4bd0d75</code></a>
Build: changelog update for 10.8.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490"><code>4fbf46d</code></a>
test: pin <code>webpack</code> version to 5.108.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/21137">#21137</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea"><code>6ddf858</code></a>
docs: fix broken Specify Parser Options anchor link (<a
href="https://redirect.github.com/eslint/eslint/issues/21106">#21106</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0"><code>784dfbe</code></a>
docs: Clarify <code>no-eq-null</code> description (<a
href="https://redirect.github.com/eslint/eslint/issues/21120">#21120</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8"><code>6b8d2f7</code></a>
fix: escape reserved characters in rule id in <code>html</code>
formatter (<a
href="https://redirect.github.com/eslint/eslint/issues/21129">#21129</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320"><code>2d063e2</code></a>
chore: update HTTP URLs to HTTPS in JSDoc and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/21101">#21101</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74"><code>eccbe7b</code></a>
test: add error locations to <code>no-class-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21123">#21123</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1"><code>2fee9bb</code></a>
feat: export <code>ConfigObject</code> from <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21082">#21082</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc"><code>e7d1e43</code></a>
ci: bump actions/setup-go from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21118">#21118</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.7.0...v10.8.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.7.0 to 17.8.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.8.0</h2>
<ul>
<li>Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)
7394811</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0">https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/36c76590583fc1f31d755525862eda1793a7d661"><code>36c7659</code></a>
17.8.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/739481186ed54482e29845eff0bc44803c35fde8"><code>7394811</code></a>
Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 21:03:01 -06:00
Bot Githubaction 73e4c4222b Update gradle-actions-caching library to v1.0.0 (#1029)
Updates to the latest gradle-actions-caching library.
2026-08-01 20:57:35 -06:00
Daz DeBoerandClaude Opus 5 a9d14388b4 Add dependabot ignore rules for TypeScript 7.x and @types/node 25.x/26.x
Previously handled via `@dependabot ignore` issue comments, which don't
provide enough control. Declaring the rules in the config makes them
explicit and reviewable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 20:55:01 -06:00
bot-githubaction 68f37005d7 [bot] Update dist directory 2026-08-02 02:30:10 +00:00
5971332a8f Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin to 4.5.0 (#1034)
Consolidates seven open bot PRs into three commits.

## 1. Bump Gradle Wrapper from 9.5.1 to 9.6.1

Combines **#1008, #1009, #1010, #1011, #1012** into a single commit.
Each of those PRs bumped the wrapper in one directory; this covers all
five (15 files):

- `sources/test/init-scripts`
- `.github/workflow-samples/gradle-plugin`
- `.github/workflow-samples/groovy-dsl`
- `.github/workflow-samples/java-toolchain`
- `.github/workflow-samples/kotlin-dsl`

Each location gets the same `distributionUrl` → `gradle-9.6.1-bin.zip`
and `distributionSha256Sum` update, plus the regenerated `gradlew` /
`gradlew.bat` scripts.

## 2. Update known wrapper checksums

**#990**, unchanged, as its own commit. Adds 36 checksum entries to
`sources/src/wrapper-validation/wrapper-checksums.json`, **including the
9.6.1 checksums** — which is what lets the wrapper bump above pass
`CI-validate-wrappers`. These two are worth landing together.

## 3. Bump Develocity Gradle plugin from 4.4.2 to 4.5.0

**#1015**, unchanged, as its own commit. Updates the plugin reference
across workflow samples, init-script tests, docs, and the injected
default in `sources/src/develocity/build-scan.ts`:

```diff
-maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
+maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.5.0')
```

Since this touches `sources/src`, the bundled `dist/` will change when
the update-dist bot runs.

## Verification

All three cherry-picks applied without conflicts. On the combined
branch:

- `./build` — clean
- `npm run check` (prettier + eslint) — clean
- `npm test` — 373 tests, 15 suites, all passing

Original bot authorship is preserved on all three commits.

## Superseded PRs

Once this merges, these can be closed: #1008, #1009, #1010, #1011,
#1012, #990, #1015.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-08-01 20:29:23 -06:00
bot-githubaction b5bc804016 [bot] Update dist directory 2026-08-02 02:28:50 +00:00
dcbab4e919 Bump npm-dependencies group with TypeScript 6.0.3, @types/node 24.x, and security fixes (#1033)
Supersedes #1023.

## 1. Adjust dependabot's TypeScript choices

Dependabot's group bump included two changes that we don't want to take
as-is:

- **typescript**: `5.9.3` → `7.0.2`. Pinned to **6.0.3** instead.
- **@types/node**: `25.9.2` → `26.1.1`. Downgraded to the latest 24.x
(**24.13.3**), matching the Node 24 runtime the actions target.

All other updates from #1023 are kept unchanged (`@actions/cache` 6.2.0,
`semver` 7.8.5, `@typescript-eslint/eslint-plugin` 8.65.0, `esbuild`
0.28.1, `eslint` 10.7.0, `globals` 17.7.0, `prettier` 3.9.6, `ts-jest`
29.4.12), and the branch is rebased onto current `main`.

The prettier 3.9.6 bump reformats two union types in
`sources/src/cache-service.ts`; that reformatting is included so `npm
run check` passes.

## 2. Clear 5 open security advisories

`npm audit` reported 4 high and 1 low severity advisory. All are fixable
with **semver-compatible transitive updates** — `npm audit fix` clears
them without `--force`, and `package.json` is untouched.

**Production** (bundled into `dist/`, so they ship in the actions):

| Package | Before | After | Via |
| --- | --- | --- | --- |
| `undici` | 6.24.1 | 6.28.0 | `@actions/github`, `@actions/http-client`
|
| `undici` | 7.24.5 | 7.29.0 | `cheerio` |
| `brace-expansion` | 5.0.6 | 5.0.9 | `@actions/glob` → `minimatch` |
| `brace-expansion` | 2.0.3 | 2.1.4 | `@actions/artifact` → `archiver` |

**Dev only:** `shell-quote` 1.8.4 → 1.10.0 (`npm-run-all`), `js-yaml`
3.14.2 → 3.15.1 (`ts-jest`), `@babel/core` 7.28.0 → 7.29.x (`ts-jest`,
low severity).

These were outstanding because the lockfile pins transitive resolutions
while `.github/dependabot.yml` only bumps direct dependencies. Because
`undici` and `brace-expansion` are production dependencies, the bundled
`dist/` output will change when the update-dist bot runs.

## 3. Downgrade nock to 14.0.17

**nock 15.0.0 was published by mistake.** The registry marks it
deprecated:

> v15.0.0 was released accidentally and is unstable. Please use v14.x
until v15 is officially ready.

nock's `latest` dist-tag still points at 14.0.17 for exactly this
reason, and 15.x remains a beta line (`beta` = `15.0.0-beta.14`).
Dependabot picked up 15.0.0 in an earlier group bump simply because it
is the highest published version. This moves us to 14.0.17, pulling
`@mswjs/interceptors` 0.39.8 → 0.41.9 and adding `propagate` 2.0.1.

Dependabot will likely re-propose nock 15.0.0 on its next weekly run,
since no ignore rule was added.

## 4. Delete unused `sources/.nvmrc`

The file pinned Node `v16`, contradicting `package.json` engines
(`>=24.0.0`), the esbuild `node24` target, and `.tool-versions` (`nodejs
24.3.0`). Nothing reads it — no workflow uses `node-version-file` and
there are no other references in the repo. Stale since 5e522253.

## 5. Run CI workflows on Node 24

`ci-check-and-unit-test.yml`, `ci-update-dist.yml`, and
`update-checksums-file.yml` pinned `node-version: 20`, so `npm
clean-install` was emitting `EBADENGINE` warnings for the root package
against its own `engines: >=24.0.0`. All three now use Node 24, matching
`.github/actions/build-dist/action.yml`.

Worth noting: `ci-update-dist.yml` built `dist/` on Node 20 in its
inline steps while `build-dist/action.yml` built it on Node 24, so the
committed distribution could previously be produced under either
version.

## Verification

- `./build` — clean
- `npm run check` (prettier + eslint) — clean
- `npm test` — 373 tests, 15 suites, all passing
- `npm audit` — **found 0 vulnerabilities** (was 4 high, 1 low)
- `npx tsc --noEmit` — one pre-existing error in
`@octokit/request-error` types (`Cannot find name 'ErrorOptions'`),
identical on `main` with TypeScript 5.9.3, so not a regression. `tsc` is
not part of the build or CI.

A clean regeneration of `package-lock.json` from `package.json` was also
evaluated. It likewise yields 0 vulnerabilities and 373 passing tests,
but churns 80 transitive packages including the `@azure/core-*` /
`@azure/storage-blob` stack used by `@actions/cache`. Since it offers no
security benefit over the current lockfile, it was not adopted.

### Known-failing checks (pre-existing on `main`)

The three `smoke-tests / restore-gradle-home / … (windows-latest)` jobs
fail with `Build was not cached: unexpected execution of test task`. The
identical three jobs fail on `main` in run
[30723964208](https://github.com/gradle/actions/actions/runs/30723964208),
on the very commit this branch is based on, so they are not caused by
these changes.

## Not included

`npm outdated` also shows `eslint` 10.7.0 → 10.8.0 and `globals` 17.7.0
→ 17.8.0. Both are dev-only and dependabot's weekly npm group run will
propose them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 20:28:09 -06:00
Daz DeBoerandClaude Opus 5 ca8d95717f Move non-smoke restore-gradle-home tests back to the integ-test suite (#1032)
Partial revert of the extraction in #1027. The caching smoke test should
answer one question quickly — does a seeded cache let a later build run
`--offline`? Everything else is integration-level.

Replaces #1031 and #1030, squashed into a single commit.

## Layout

`smoke-test-restore-gradle-home.yml` — two jobs:

| job | purpose |
|---|---|
| `restore-gradle-home-seed-build` | seed the cache |
| `restore-gradle-home-dependencies-cache` | verify the restored cache
allows `--offline` |

`integ-test-restore-gradle-home.yml` — restored, wired back into
`suite-integ-test-caching`:

| job | purpose |
|---|---|
| `restore-gradle-home-seed-build` | seed the cache (duplicated, see
below) |
| `restore-gradle-home-build-cache` | local build-cache restored |
| `restore-gradle-home-no-extracted-cache-entries-restored` | build
works with cache entries skipped |
| `restore-gradle-home-pre-existing-gradle-home` | pre-existing GUH
overwritten by restore |

This file is identical to the pre-#1027 original except for the
`dependencies-cache` job, which the smoke test now owns. All four jobs
keep the `runner-os` matrix.

## Notes

**The seed job is duplicated, with distinct cache keys.** The smoke
suite uses `smoke-test-restore-gradle-home-*`; the integ suite keeps
`restore-gradle-home-*`. This matters: `smoke-tests` and
`caching-integ-tests` run concurrently in `ci-integ-test.yml`, so
sharing a key would have both suites racing to write the same entry.

**Distinct workflow `name:`.** The smoke workflow is `Smoke test restore
Gradle Home`, so the two don't appear identically in the Actions UI.

**One thing to be aware of for the future:**
`restore-gradle-home-pre-existing-gradle-home` cannot pass on Windows.
Pre-creating `~/.gradle` is what stops `setup-gradle` relocating the
Gradle User Home to `D:\a\.gradle`, so the job looks for a cache entry
rooted at a different path than the seed build saved and never matches
it. The caching integ suite runs ubuntu-only, so this is not a problem
today — but adding Windows to that suite would surface it.

## Verification

All workflow YAML parses, and every local `uses:` reference resolves —
no dangling paths after the rename and re-add.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 20:18:37 -06:00
bot-githubaction 4318659b28 [bot] Update dist directory 2026-08-01 23:45:55 +00:00
Daz DeBoerandClaude Opus 5 79b19cd50f Fix basic caching smoke test on Windows, and warn on save failure (#1028)
Follow-up to #1027, which added Windows coverage for the caching smoke
tests. `basic-cache-verify-build` failed on Windows for a reason
unrelated to #1013.

## Root cause

The Windows seed job **never uploaded a cache entry, but reported that
it did**. `gh cache list` showed no `setup-java-Windows-*` entry at all,
despite the job logging `Basic caching saved entry with key:
setup-java-Windows-x64-gradle-594edf…`. The keys were never the problem
— seed and verify requested the identical key.

The seed build leaves a Gradle daemon running, holding the `*.lock`
files in the Gradle User Home. On Windows those locks are mandatory, so
`tar` cannot read them:

```
/usr/bin/tar: ../../.gradle/caches/modules-2/modules-2.lock: Read error at byte 0,
              while reading 38 bytes: Device or resource busy
/usr/bin/tar: Exiting with failure status due to previous errors
```

38 bytes is exactly Gradle's lock-file header — the region the daemon
holds via `FileChannel.lock()`. On Linux the lock is advisory and tar
reads straight through, which is why this only ever failed on Windows.

`cache.saveCache()` catches the tar failure, logs it, and returns `-1`
rather than throwing. `BasicCacheService.save()` ignored the return
value, so the seed job went green and the failure surfaced only later —
as a plugin resolution error in the verify job, pointing nowhere near
caching.

## Changes

**1. Warn when the save fails.** Check the returned `cacheId` and, when
it is `-1`, emit a warning and report `(Entry not saved: save failed)`
in the job summary. Caching failures still do not fail the build.

**2. Run the seed build with `--no-daemon`.** Daemon management for
enhanced caching lives in the `gradle-actions-caching` library; basic
caching leaves it to the workflow, so the smoke test now ensures no
daemon is holding locks when the post-action save runs.

## Not related to #1013

The enhanced provider fails differently on Windows — every entry dies at
path validation, before tar runs (`Path Validation Error: Path(s)
specified in the action for caching do(es) not exist`). Same symptom,
different mechanism; that one is unchanged here and is still expected to
be red.

## Verification

`npm run check` and `npm test` pass locally (373 tests). The real check
is this PR's Windows run: `basic-cache-seed-build` and
`basic-cache-verify-build` should both be green on `windows-latest`,
while the `restore-gradle-home-*` Windows jobs stay red pending the
#1013 fix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 17:45:05 -06:00
Daz DeBoerandClaude Opus 5 9d31058114 Add Windows coverage for caching via a new smoke-test suite (#1027)
## Why

Issue #1013 revealed that caching was **never storing content on
Windows**. Nothing caught it because the integ-tests lost their multi-OS
matrices: these workflows used to default to `'["ubuntu-latest",
"windows-latest", "macos-latest"]'`, narrowed to ubuntu-only in bcd07e66
/ d74ee73e (Aug 2024). The Windows code path has been dark ever since.

## What

Extract the two cheapest caching tests — `restore-gradle-home` and
`basic-cache-provider` — into a new `suite-smoke-test-caching` workflow,
and run that suite on both `ubuntu-latest` and `windows-latest`.

Both tests seed a cache in one job and then verify it in a dependent job
with an `--offline` build, so a cache that stores nothing fails the
verify job rather than passing silently.

- Rename `integ-test-{restore-gradle-home,basic-cache-provider}` →
`smoke-test-*` and drop them from `suite-integ-test-caching`
- Add the new suite to both `CI-integ-test` and `CI-integ-test-full`,
each with its own concurrency group matching the sibling suites
- Include `smoke-tests` in the `integ-test-success` aggregate gate
- Ignore the generated `task-configured.txt` marker in
`workflow-samples`
- Drop a dead `needs.determine-suite` guard on the `build-distribution`
step — `CI-integ-test` has no such job, so it always evaluated to true

The suite runs on Windows in PR CI (not just `CI-integ-test-full`)
specifically so the failure is visible on this PR and the fix can be
verified the same way.

## Expected result

This PR is expected to be **red on Windows**.
`restore-gradle-home-dependencies-cache` and `basic-cache-verify-build`
should fail with dependency-resolution errors under `--offline` — that
is the bug from #1013 being caught. The ubuntu legs should stay green.

Cross-OS cache keys are safe: both providers include `RUNNER_OS` in the
key (`sources/src/cache-service-basic.ts:146`), so the matrix legs don't
collide.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 17:15:42 -06:00
bot-githubaction 0088877924 [bot] Update dist directory 2026-07-31 19:09:45 +00:00
Reinhold Degenfellner ff4dbcd5fa Disable Isolated Projects via promoted property in dependency-submission (#1025)
## Problem

The `dependency-submission` action disables Isolated Projects for the
dependency-resolution build by passing
`-Dorg.gradle.unsafe.isolated-projects=false`.

Recent Gradle versions have promoted the property to
`org.gradle.isolated-projects`. A build that enables IP via the promoted
property (e.g. `gradle/gradle`, see [this failing
run](https://github.com/gradle/gradle/actions/runs/30357651750/job/90269499556?pr=38402))
is no longer disabled by the unsafe spelling, so the build runs with IP
enabled and fails:

```
Error resolving plugin [id: 'gradlebuild.build-environment']
> Project ':build-logic-settings' cannot access 'Project.tasks' functionality on subprojects via 'allprojects'
```

(`ForceDependencyResolutionPlugin` is not IP-compatible.)

## Fix

Pass both spellings of the property. `-D` system properties that Gradle
does not recognize are silently ignored, so this is safe for all
supported Gradle versions — the action already passes the unsafe
spelling to pre-IP Gradle versions without issue.
2026-07-31 13:08:52 -06:00
Daz DeBoer 6550634d3e Use the latest dependency graph plugin 2026-07-04 21:16:38 -06:00
Bot Githubaction b128da9bf0 Update gradle-actions-caching library to v0.9.0 (#996)
## What's Changed

> [!IMPORTANT]
> **Cache invalidation:** The cache protocol version has been bumped to `v2`, invalidating all cache entries written by earlier releases. The first build after upgrading will not find existing caches and will repopulate them from scratch.

### Improvements
* **Consistent cache-entry names in reports** — every extracted cache entry now has a single, unique name reported identically on both restore and save. Previously the restore report could show a raw glob pattern (e.g. `caches/modules-*/files-*/*/*/*/*/`) instead of a friendly name like `dependencies`. Bundled entries are named by artifact type, per-file entries by their Gradle-User-Home-relative path, and per-project entries by `project-<rootProjectName>`.
2026-06-16 19:59:10 +00:00
bot-githubaction ee7ea9a078 [bot] Update dist directory 2026-06-16 18:15:16 +00:00
Daz DeBoerandClaude Opus 4.8 9c445f57df Support experimental project-entry caching (configuration-cache + build-logic) (#994)
Pass develocityAccessToken and develocityServerUrl the
`gradle-actions-caching`: required to support project-entry caching
(build-logic + configuration-cache), which has experimental support in
'gradle-actions-cache@v0.8.0. This support is not yet released and will
be available as a restricted trial.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 18:14:19 +00:00
Bot Githubaction bbaaec0da2 Update gradle-actions-caching library to v0.8.0 (#993)
Updates to the latest gradle-actions-caching library, bringing experimental support for caching of project content.
2026-06-16 18:07:10 +00:00
bot-githubaction 54d3208a40 [bot] Update dist directory 2026-06-13 01:52:50 +00:00
Daz DeBoerandClaude Opus 4.8 e993c93d71 Render configuration-cache status in the caching Job Summary (#989)
Render the configuration-cache restore-state in the caching Job Summary,
driven by the new `CacheReport.configurationCache` field produced by the
`gradle-actions-caching` provider.

## What's here

- `cache-service.ts`: add a `ConfigurationCacheStatus` type
(`not-active` / `restored` / `not-restored` / `restore-incomplete`) and
an optional `configurationCache` field on `CacheReport`.
- `caching-report.ts`: a `CONFIG_CACHE_COPY` map and a prominent status
line in `renderCachingReport`, beside the cleanup line. The `not-active`
case links to the `#cache-encryption-key` docs.

## Cross-repo dependency

The field is populated by gradle/actions-caching PR #75 ("Restore
configuration-cache support for simple builds"). This rendering compiles
independently (it uses this repo's own `CacheReport` type) and renders
nothing until the vendored `gradle-actions-caching` bundle is refreshed
from that branch — so this should land with/after the vendor refresh.

## Verification

`npm run check` clean; full Jest suite (366 tests) passes, including 3
new rendering tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 19:51:57 -06:00
bot-githubaction 3f131e8634 [bot] Update dist directory 2026-06-12 15:22:42 +00:00
97715a29bc Redesign the caching Job Summary (#985)
Redesigns the caching section of the Job Summary into a single,
consistent layout across every cache provider and state, and integrates
the provider message into the report rather than appending it
disconnected at the bottom.

## Motivation

The caching report was produced by three divergent code paths (NoOp /
basic / enhanced), each rendering its own markdown:

- **Explicitly disabled** → a one-line message, no expand, no provider
note.
- **Enhanced** (incl. skipped-due-to-existing-home) → a full `<details>`
block.
- **Basic** → a one-line message with **no** expandable details at all.

The Enhanced/Basic provider note floated at the very bottom,
disconnected from the report.

## What changed

`save()` now returns structured `CacheReport` data instead of
pre-rendered HTML, and a single renderer (`caching-report.ts`) produces
one unified layout for all variants:

- **Section heading**: `#### <icon> Gradle Caching — <Provider>
(<status>)`
- **Status line** explaining what the cache did
- **Integrated provider note** woven in under the heading — now shown
**unconditionally** (no longer gated on license acceptance)
- **Expandable cache-entry details** when there are entries — basic
caching now gets this too

The two disabled variants (explicitly disabled, and skipped due to a
pre-existing Gradle User Home) render as **compact callouts with no
expandable section**.

### Main repo
- `caching-report.ts` (new): central renderer + all framing copy + entry
table/`<pre>` helpers.
- `cache-service.ts`: `CacheReport` / `CacheEntryReport` / status types;
`save()` returns `CacheReport`.
- `cache-service-loader.ts`: `NoOp` returns a report;
`LicenseWarningCacheService` removed; new `getProviderNote()`.
- `cache-service-basic.ts`: builds a `CacheReport`.
- `job-summary.ts` / `setup-gradle.ts`: thread `CacheReport` +
`ProviderNote`.
- `configuration.ts`: remove now-unused `isCacheLicenseAccepted()`.

### Vendored library
The structured contract requires **gradle-actions-caching v0.7.0**
(gradle/actions-caching#74). This PR updates the vendored library to
that release — the official `Update gradle-actions-caching library to
v0.7.0` vendor commit is included here, so merging this PR ships the
redesign together with the library it depends on.

## Testing

- Both repos build; prettier + eslint clean.
- `gradle/actions`: 363/363 Jest tests pass, including new
`caching-report.test.ts` covering every variant.
- `gradle-actions-caching`: 74/74 pass under JDK 17.
- Rendered markdown verified for all five variants (enhanced/basic
enabled & read-only, disabled, skipped).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Bot Githubaction <bot-githubaction@gradle.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 15:21:52 +00:00
Daz DeBoerandClaude Opus 4.8 8b6cdb5f58 CI: add requireable aggregate/no-op checks for branch protection (#984)
Prepares CI so a small, stable set of **required status checks** can be
enabled (which in turn unlocks auto-merge), instead of having to list
every fanned-out matrix job. GitHub required checks match by exact name
— no wildcards — so this reduces the surface to a handful of high-level
checks.

## Changes

- **`ci-integ-test.yml`**: add an aggregate gate job
`integ-test-success` that `needs:` all four top-level jobs (the three
suite jobs each wrap a reusable workflow that fans out into many nested
checks) and fails if any did not succeed. `if: always()` ensures it
reports even when a dependency fails. This collapses dozens of nested
integ-test checks into a single requireable check.

- **`ci-init-script-check.yml`**: remove the workflow-level
`pull_request.paths` filter so the workflow runs on every PR and always
reports a status check (previously it was absent on most PRs, which
would deadlock a required check). Relevant-change detection moves into
the job via `tj-actions/changed-files` (same pinned action already used
by `ci-check-no-dist-update.yml`). On a PR the Java/Gradle/test steps
run only when init-script files changed; otherwise the job is a fast
no-op that still succeeds. Push and `workflow_dispatch` runs execute
fully as before.

## Suggested required-check set (all run on every PR, none can deadlock)

- `CI-check-and-unit-test / check-format-and-unit-test`
- `ci-validate-typings.yml / validate-typings`
- `CI-validate-wrappers / validation`
- `CI-codeql / Analyze (javascript-typescript)`
- `CI-integ-test / integ-test-success`
- `CI-init-script-check / test-init-scripts`

`ci-check-no-dist-update` is intentionally **omitted** — it only runs on
`dist/**` edits and is designed to fail, so it shouldn't be a required
gate.

> Confirm the exact check names from the list GitHub shows after this
branch runs once.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 11:04:23 -06:00
bot-githubaction 5852e0e5d8 [bot] Update dist directory 2026-06-10 16:15:39 +00:00
318eed7038 Hide obsolete Job summaries (#902)
- Injects a `<!-- gradle-job-summary: ${jobCorrelator} -->` marker on
each job summary
- Lists 100 last comments: unfortunately there is no API to specifically
filter for comments, and checking the last 100 comments (the limit) is
usually enough and does not require iterating over pages
- Mutate comments having this expected marker

I tried to add some tests, but I'm not familiar enough to setup a
complete test suite with proper mocking of GitHub/Octokit with jest.

I could potentially extract the `prComment` creation to check for the
marker presence, let me know.

Note: it seems like there is currently an issue on mutating comments as
`OUTDATED` through graphql. Although it does not work as expected
(flagging as OUTDATED) the comments are still minimized, which is what
we want.
- https://github.com/orgs/community/discussions/19865

Implements #176

---------

Co-authored-by: Daz DeBoer <daz@gradle.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 10:14:48 -06:00
Björn Kautler a740661292 Improve typings (#938)
This PR adds a missing enum value, and makes strings that are actually
delimited lists those lists, so that you for example in the generated
Kotlin bindings can simply do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
)
```
instead of needing to do
```kotlin
additionalArguments = listOf(
    "--info",
    "--stacktrace",
    "--show-version"
).joinToString(" ")
```
or writing it all in one line as one string.

This is also how the typings for older versions are in the typing
catalog.

Theoretically, this is a breaking changes as the typings define the API
surface of the action and from the typings bindings are generated. I'll
leave it up to you how you handle it regarding version increase or when
to merge.
2026-06-10 08:54:56 -06:00
Bot Githubaction 7ae0d0208c Update gradle-actions-caching library to v0.6.0 (#982)
Updates to the latest gradle-actions-caching library.
2026-06-10 08:51:32 -06:00
Daz DeBoerandClaude Opus 4.8 e473973a5b Scope CI-integ-test concurrency groups per-branch
The concurrency groups used fixed names spanning all branches, so a push
to main could cancel a pending PR run (and vice versa), leaving PRs not
fully tested.

Append ${{ github.ref }} to each group so runs only supersede pending
runs on the same branch, while different branches run in parallel. Also
drop the `queue: max` key, which is not a valid GitHub Actions
concurrency option and was ignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 07:33:01 -07:00
Daz DeBoer 35a4a3f355 Queue up integ-test runs 2026-06-10 08:24:34 -06:00
bot-githubaction b6eebf33f1 [bot] Update dist directory 2026-06-10 14:15:10 +00:00
Daz DeBoerandClaude Opus 4.8 9901393644 Remove unnecessary dependency overrides (#981)
Removes all `overrides` from `sources/package.json`. Two commits, each
independently verified:

## 1. Remove redundant security overrides

The `shell-quote`, `fast-xml-parser`, `fast-xml-builder` and `eslint >
brace-expansion` overrides added in #980 are **no-ops**: npm's natural
resolution already lands on the exact same patched versions, so they
upgrade nothing. The vulnerabilities were actually resolved by
regenerating the lockfile, not by the overrides.

## 2. Remove obsolete Octokit/Azure overrides

`@azure/logger`, `@octokit/request`, `@octokit/request-error` and
`@octokit/plugin-paginate-rest` were point-in-time pins added to
force-upgrade then-vulnerable transitive deps (5d947f45, #601). The
parent packages (`@actions/github`, `@actions/artifact`) have since
advanced and now resolve **newer, non-vulnerable** versions naturally —
so the overrides only pinned stale versions:

| Package | Pinned (override) | Natural |
|---|---|---|
| `@octokit/request` | 8.4.1 | 10.0.10 |
| `@octokit/request-error` | 5.1.1 | 7.1.0 |
| `@octokit/plugin-paginate-rest` | 9.2.2 | 14.0.0 |
| `@azure/logger` | 1.1.4 | 1.3.0 |

## Verification

- `npm audit` → **0 vulnerabilities**
- `./build` → passes
- `npm test` → **352/352 passing**

### Note on a flaky test
While testing I saw the `wrapper-validation` test *"fetches wrapper jar
checksums for snapshots"* intermittently fail (1–2 failures, then pass
on retry). It is a **pre-existing flaky network test** — it makes ~175
live calls to Gradle services and sits right at its 60s timeout. Its
code path imports neither Octokit nor Azure (`src/wrapper-validation/`
uses only `@actions/http-client`/`nock`/`cheerio`), so it is unrelated
to these overrides; the `nock`/`@mswjs/interceptors`/`undici` versions
are identical before and after.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 08:14:07 -06:00
Daz DeBoer 20ce680c89 Update RELEASING.md 2026-06-09 19:55:28 -06:00
bot-githubaction 5e2ebd065d [bot] Update dist directory 2026-06-10 01:07:29 +00:00
Daz DeBoerandClaude Opus 4.8 9e2c1cc01d Resolve npm security vulnerabilities via dependency overrides (#980)
## What

Adds `overrides` to `sources/package.json` to force patched versions of
transitively-pulled packages flagged by Dependabot, plus one moderate
issue surfaced by `npm audit`:

| Package | Severity | Patched to | Pulled in via |
|---|---|---|---|
| `shell-quote` | Critical | 1.8.4 | `npm-run-all` |
| `fast-xml-builder` | High | 1.2.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` → `fast-xml-parser` |
| `fast-xml-parser` | Medium | 5.8.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` |
| `brace-expansion` | Moderate | 5.0.6 | `eslint` |

## Notes

- All four are **transitive** dependencies, so they're pinned via the
existing `overrides` block rather than direct version bumps.
- The patched versions satisfy the parents' declared ranges (e.g.
`@azure/core-xml` requires `fast-xml-parser ^5.0.7`; `fast-xml-parser`
5.8.0 requires `fast-xml-builder ^1.2.0`), so nothing is
force-downgraded or broken.
- `brace-expansion` is **scoped under `eslint`** rather than a blanket
override — most copies in the tree were already on the patched 5.0.6,
and only `eslint`'s was stuck at the vulnerable 5.0.5. A global override
would have forced unrelated 1.x/2.x copies up a major version.

## Verification

- `npm audit` → **0 vulnerabilities**
- `npm ci` → clean install, 0 vulnerabilities
- `npm test` → **352 passed, 14 suites**

The root `dist/` directory is intentionally left for the CI workflow to
update.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 19:06:38 -06:00
bot-githubaction 657f690528 [bot] Update dist directory 2026-06-10 00:10:45 +00:00
Daz DeBoerandClaude Opus 4.8 9d6bacde37 Update @actions/cache and @actions/artifact, stop ignoring them in Dependabot (#978)
## What

- Bumps `@actions/cache` 6.0.0 → 6.0.1
- Bumps `@actions/artifact` 6.1.0 → 6.2.1
- Removes the Dependabot `ignore` rules for both so they're maintained
automatically going forward

## Why

Both deps were excluded from Dependabot's automatic updates:
`*actions/cache*` was fully ignored, and `*actions/artifact*` had
major/minor bumps ignored. Neither restriction is necessary.

The `cache` ignore existed out of concern for keeping versions aligned
with the vendored `gradle-actions-caching` library. That alignment isn't
required:

- The vendored bundle (`sources/vendor/gradle-actions-caching/index.js`)
**inlines** its own (patched) `@actions/cache` and exposes a type-clean
API (`restore`/`save`) that never leaks `@actions/cache` types across
the boundary.
- This repo's own direct `@actions/cache` usage is a **separate,
unpatched copy** consumed via the stock string-returning API
(`cache-service-basic.ts`, `provision.ts`), with no
`patch-package`/`postinstall` in this repo.

So there's no cross-repo sync requirement — these can be updated like
any other dependency.

## Verification

- `npm install --package-lock-only` regenerated the lockfile (resolves
cache 6.0.1, artifact 6.2.1)
- `./build` passes clean

The root `dist/` directory is intentionally left for the CI workflow to
update.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 18:10:02 -06:00
bot-githubaction 79f6b196a7 [bot] Update dist directory 2026-06-09 18:59:33 +00:00
dependabot[bot] 6781648d2b Bump the npm-dependencies group in /sources with 5 updates (#977)
Bumps the npm-dependencies group in /sources with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [semver](https://github.com/npm/node-semver) | `7.8.1` | `7.8.3` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.9.1` | `25.9.2` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.59.4` | `8.61.0` |
| [eslint](https://github.com/eslint/eslint) | `10.4.0` | `10.4.1` |
| [prettier](https://github.com/prettier/prettier) | `3.8.3` | `3.8.4` |

Updates `semver` from 7.8.1 to 7.8.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.3</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2>v7.8.2</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/6b77aa84a648a4b54ea32a21e6db60ebd54d5040"><code>6b77aa8</code></a>
chore: release 7.8.3 (<a
href="https://redirect.github.com/npm/node-semver/issues/873">#873</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
chore: bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
fix: align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efafcf8d029faa3d1ab74b5ec98d620112af859d"><code>efafcf8</code></a>
chore: release 7.8.2 (<a
href="https://redirect.github.com/npm/node-semver/issues/871">#871</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
fix: increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)</li>
<li>See full diff in <a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.3">compare
view</a></li>
</ul>
</details>
<br />

Updates `@types/node` from 25.9.1 to 25.9.2
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.59.4 to 8.61.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.61.0</h2>
<h2>8.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
<li><strong>ast-spec:</strong> tighten types of
<code>ArrowFunction</code>, <code>YieldExpression</code>,
<code>TSTypePredicate</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12373">#12373</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>rule-schema-to-typescript-types:</strong> respect ECMAScript
line terminators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12374">#12374</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.60.1</h2>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.60.0</h2>
<h2>8.60.0 (2026-05-25)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>rule-tester:</strong> added updates of RuleTester from
upstream (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12291">#12291</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li>playground TS version selector is not working (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12326">#12326</a>,
<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/issues/12325">#12325</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.60.0 (2026-05-25)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/16a5b247affc32af21b695cf96dfd75d7ded50a3"><code>16a5b24</code></a>
chore(release): publish 8.61.0</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ef1fd28c68b10da2e5b56823da8491f10f2c2b97"><code>ef1fd28</code></a>
feat(ast-spec): change type of <code>UnaryExpression.prefix</code> to
always <code>true</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12">#12</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4f84a697aedc436559c3ae09b5b357d98b448d68"><code>4f84a69</code></a>
chore(release): publish 8.60.1</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/598af564db50593277ba46c7fdea3648e4425391"><code>598af56</code></a>
docs(eslint-plugin): clarify no-redeclare type-value collision not
covered by...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1849b530c254fb4f89d7270160f3a998e4acd964"><code>1849b53</code></a>
chore: typecheck using tsgo (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12139">#12139</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/5341d59dd3c21fc4e2bf3bce55cf35d8f84e5216"><code>5341d59</code></a>
chore: fix lint issues (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12369">#12369</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/f525814f01766487ab34a54d56de20ea5c4fb576"><code>f525814</code></a>
fix(eslint-plugin): [no-shadow] correct rule to match ESLint v10
handling (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/1">#1</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2df540cd8bbeb3e2c56d516912f69bf63c1e9450"><code>2df540c</code></a>
chore(eslint-plugin): defer type checks to improve rules performance (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12296">#12296</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1ab4284789b36cf482a4d9924719162a02d54243"><code>1ab4284</code></a>
fix(eslint-plugin): respect ECMAScript line terminators in ts-comment
rules (...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2f49df599b2db5f2937caf975d3c63e5cdeb0ea1"><code>2f49df5</code></a>
docs: update references to <code>@stylistic/eslint-plugin</code> rules
in documentation ...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.61.0/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.4.0 to 10.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.4.1</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)
(Minh Vu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c5bc78b37e08b9054a11f0cc2d81808bb24acb85"><code>c5bc78b</code></a>
fix: false positive for reference in <code>finally</code> block (<a
href="https://redirect.github.com/eslint/eslint/issues/20655">#20655</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/27538c01f5df4e9306f6f4ba867b2dd6307fae59"><code>27538c0</code></a>
fix: add missing CodePath and CodePathSegment types (<a
href="https://redirect.github.com/eslint/eslint/issues/20853">#20853</a>)
(Pixel998)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/305d5b91aeac24d36fde42f75625a8f183d4ce43"><code>305d5b9</code></a>
docs: remove deprecated rules from related rules section (<a
href="https://redirect.github.com/eslint/eslint/issues/20911">#20911</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/49b0202d01918b8061720d586dffd7c68047090c"><code>49b0202</code></a>
docs: fix <code>display: none</code> of ad (<a
href="https://redirect.github.com/eslint/eslint/issues/20901">#20901</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9067f9492ec998afc5b4f057a477ecf6ebd45e44"><code>9067f94</code></a>
docs: switch build to Node.js 24 (<a
href="https://redirect.github.com/eslint/eslint/issues/20893">#20893</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c91b0417e3420c76807ce1fa2aea76e2de87ab86"><code>c91b041</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e349265cb37f3ebc837e178e48a725bb782bd870"><code>e349265</code></a>
docs: clarify semver strings in rule deprecation objects (<a
href="https://redirect.github.com/eslint/eslint/issues/20885">#20885</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20922">#20922</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)
(Arpit Jain)</li>
<li><a
href="https://github.com/eslint/eslint/commit/64bca24e7bed35bc3c864fc625cb2d89eca87d5b"><code>64bca24</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20912">#20912</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6d7c832950d5e92499d88e504080661f888f8f56"><code>6d7c832</code></a>
chore: ignore fflate updates in renovate (<a
href="https://redirect.github.com/eslint/eslint/issues/20908">#20908</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b2c86382164d87c6203b78d52068cd6a2a6ffe30"><code>b2c8638</code></a>
ci: bump pnpm/action-setup from 6.0.7 to 6.0.8 (<a
href="https://redirect.github.com/eslint/eslint/issues/20889">#20889</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a9b8d7f74c50211701cfc49710fa541fd91b2aa5"><code>a9b8d7f</code></a>
chore: increase maxBuffer for ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20881">#20881</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b702ead5e1ed7cb9f28238a454797662efb37396"><code>b702ead</code></a>
chore: update ecosystem update PR settings (<a
href="https://redirect.github.com/eslint/eslint/issues/20884">#20884</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/507f60e9a78c9a902bc8759f066ae17a1ea6cd81"><code>507f60e</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20882">#20882</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/92f5c5bb6bf3a5d167c8ee53a430833410295c6d"><code>92f5c5b</code></a>
test: add unit test for message-count (<a
href="https://redirect.github.com/eslint/eslint/issues/20878">#20878</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/df321080af5758b1fa25e4b9a40e26135642dd6e"><code>df32108</code></a>
chore: add <code>@​eslint/markdown</code> and typescript-eslint
ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20837">#20837</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/327f91d36aa49f2a50ded931d841a16374fd875f"><code>327f91d</code></a>
chore: use includeIgnoreFile internally (<a
href="https://redirect.github.com/eslint/eslint/issues/20876">#20876</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f0dc4bd893fb3a9f44e4ddc3ad7063ffb0beacd3"><code>f0dc4bd</code></a>
chore: pin fflate@0.8.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20877">#20877</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0f4bd257a67a082b756de746d9e0c4842ab764ca"><code>0f4bd25</code></a>
ci: run Discord alert for ecosystem test failures (<a
href="https://redirect.github.com/eslint/eslint/issues/20873">#20873</a>)
(Copilot)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/4a3d15a99c452c4db2fd56b577fa7597e98ab0c2"><code>4a3d15a</code></a>
10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/43e7e2bdc5c6cacc535446b7d23c10f780384ba8"><code>43e7e2b</code></a>
Build: changelog update for 10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20">#20</a>...</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.4.0...v10.4.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `prettier` from 3.8.3 to 3.8.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/releases">prettier's
releases</a>.</em></p>
<blockquote>
<h2>3.8.4</h2>
<ul>
<li>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">prettier/prettier#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</li>
</ul>
<p>🔗 <a
href="https://github.com/prettier/prettier/blob/3.8.4/CHANGELOG.md#384">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's
changelog</a>.</em></p>
<blockquote>
<h1>3.8.4</h1>
<p><a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">diff</a></p>
<h4>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</h4>
<p>Prettier was removing blank lines between list items and their nested
sub-lists, converting loose lists into tight lists and changing their
semantic meaning.</p>
<!-- raw HTML omitted -->
<pre lang="markdown"><code>&lt;!-- Input --&gt;
- a
<ul>
<li>
<p>b</p>
</li>
<li>
<p>c</p>
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.3 --&gt;</p>
<ul>
<li>a
<ul>
<li>b</li>
</ul>
</li>
<li>c
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.4 --&gt;</p>
<ul>
<li>
<p>a</p>
<ul>
<li>b</li>
</ul>
</li>
<li>
<p>c</p>
<ul>
<li>d<br />
</code></pre></li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prettier/prettier/commit/1c6ba5539141552e0e8e22d401ea620d8fdff468"><code>1c6ba55</code></a>
Release 3.8.4</li>
<li><a
href="https://github.com/prettier/prettier/commit/4a673dc9b59ddf7296bbab9822093d2971da84a8"><code>4a673dc</code></a>
Fix blank lines between list items and nested sub-lists being removed in
Mark...</li>
<li><a
href="https://github.com/prettier/prettier/commit/074aaedbb052a288e89d15eb0a4214de37a08866"><code>074aaed</code></a>
Replace <code>main</code> branch in changelog link with tags (<a
href="https://redirect.github.com/prettier/prettier/issues/19054">#19054</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/c22a003ae97917c5043e8685b4fdff0f93e978f9"><code>c22a003</code></a>
Bump Prettier dependency to 3.8.3</li>
<li><a
href="https://github.com/prettier/prettier/commit/07bad1f04536e9799927007baf466e67151576f0"><code>07bad1f</code></a>
Clean changelog_unreleased</li>
<li>See full diff in <a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| @types/node | [>= 22.a, < 23] |
</details>


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 12:58:37 -06:00
bot-githubaction a3b40d2308 [bot] Update dist directory 2026-06-09 18:25:58 +00:00
Bot Githubaction f37016fb25 Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 (#973)
This PR bumps references to Develocity Gradle plugin from 4.4.0 to
4.4.2.
2026-06-09 12:25:09 -06:00
bot-githubaction 2afdab2a02 [bot] Update dist directory 2026-06-09 09:50:27 +00:00
dependabot[bot]andJérôme Prinet 1046ffaf33 Bump the npm-dependencies group across 1 directory with 14 updates (#970)
Bumps the npm-dependencies group with 14 updates in the /sources
directory:

| Package | From | To |
| --- | --- | --- |
|
[@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core)
| `3.0.0` | `3.0.1` |
|
[@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github)
| `9.0.0` | `9.1.1` |
|
[@actions/glob](https://github.com/actions/toolkit/tree/HEAD/packages/glob)
| `0.6.1` | `0.7.0` |
|
[@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client)
| `4.0.0` | `4.0.1` |
| [semver](https://github.com/npm/node-semver) | `7.7.4` | `7.8.1` |
| [which](https://github.com/npm/node-which) | `6.0.1` | `7.0.0` |
|
[@jest/globals](https://github.com/jestjs/jest/tree/HEAD/packages/jest-globals)
| `30.3.0` | `30.4.1` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.5.0` | `25.9.1` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.58.0` | `8.59.4` |
| [eslint](https://github.com/eslint/eslint) | `10.1.0` | `10.4.0` |
| [globals](https://github.com/sindresorhus/globals) | `17.4.0` |
`17.6.0` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) |
`30.3.0` | `30.4.2` |
| [prettier](https://github.com/prettier/prettier) | `3.8.1` | `3.8.3` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` |
`29.4.11` |


Updates `@actions/core` from 3.0.0 to 3.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md">@​actions/core's
changelog</a>.</em></p>
<blockquote>
<h2>3.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.1</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2348">#2348</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/core">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/github` from 9.0.0 to 9.1.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md">@​actions/github's
changelog</a>.</em></p>
<blockquote>
<h3>9.1.1</h3>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2346">#2346</a></li>
</ul>
<h3>9.1.0</h3>
<ul>
<li>Append <code>actions_orchestration_id</code> to user-agent when the
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is set <a
href="https://redirect.github.com/actions/toolkit/pull/2364">#2364</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/github">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/glob` from 0.6.1 to 0.7.0
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/glob/RELEASES.md">@​actions/glob's
changelog</a>.</em></p>
<blockquote>
<h2>0.7.0</h2>
<ul>
<li>Bump <code>minimatch</code> from <code>^3.0.4</code> to
<code>^10.2.5</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2355">#2355</a></li>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2345">#2345</a></li>
<li>Bump <code>brace-expansion</code> in <code>/packages/glob</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2369">#2369</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/glob">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/http-client` from 4.0.0 to 4.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md">@​actions/http-client's
changelog</a>.</em></p>
<blockquote>
<h2>4.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2347">#2347</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/http-client">compare
view</a></li>
</ul>
</details>
<br />

Updates `semver` from 7.7.4 to 7.8.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.1</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2>v7.8.0</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/76416081a8413383cf6e24c82cafa438bd076d41"><code>7641608</code></a>
chore: release 7.8.1 (<a
href="https://redirect.github.com/npm/node-semver/issues/868">#868</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
fix: strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
fix: handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efa4be6096c1f9b77d9d27d6132f6220c43b4e31"><code>efa4be6</code></a>
chore: release 7.8.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/847">#847</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
chore: template-oss-apply@5.0.0</li>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
fix: Warn when defaulting to --inc=patch in CLI</li>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
feat: Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
docs: fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
chore: bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `which` from 6.0.1 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/releases">which's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/blob/main/CHANGELOG.md">which's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/297db11d58eebe01551ae0875a127a89ee63d2cb"><code>297db11</code></a>
chore: release 7.0.0 (<a
href="https://redirect.github.com/npm/node-which/issues/177">#177</a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
feat!: bump to new node engine range</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
feat!: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/482490851357b9c22da31dc4b06736dcac180344"><code>4824908</code></a>
deps &amp; engine update</li>
<li>See full diff in <a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `@jest/globals` from 30.3.0 to 30.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">@​jest/globals's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">@​jest/globals's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-circus]</code> Prevent crash when
<code>asyncError</code> is undefined for non-Error throws (<a
href="https://redirect.github.com/jestjs/jest/pull/16003">#16003</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> Include
<code>Error.cause</code> in JSON <code>failureMessages</code> output (<a
href="https://redirect.github.com/jestjs/jest/pull/15967">#15967</a>)</li>
<li><code>[jest-config]</code> Fix preset path resolution on Windows
when the preset uses subpath <code>exports</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/15961">#15961</a>)</li>
<li><code>[jest-config]</code> Allow <code>collectCoverage</code> and
<code>coverageProvider</code> in project config without a validation
warning (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-config]</code> Project config validator now emits
&quot;is not supported in an individual project configuration&quot;
instead of &quot;probably a typing mistake&quot; for known global-only
options (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-environment-node]</code> Fix
<code>--localstorage-file</code> warning on Node 25+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16086">#16086</a>)</li>
<li><code>[jest-reporters]</code> Apply global coverage threshold to
unmatched pattern files in addition to glob/path thresholds (<a
href="https://redirect.github.com/jestjs/jest/pull/16137">#16137</a>)</li>
<li><code>[jest-reporters, jest-runner, jest-runtime,
jest-transform]</code> Fix coverage report not showing correct code
coverage when using <code>projects</code> config option (<a
href="https://redirect.github.com/jestjs/jest/pull/16140">#16140</a>)</li>
<li><code>[jest-runtime]</code> Resolve <code>expect</code> and
<code>@jest/expect</code> from the internal module registry so test-file
imports share the same <code>JestAssertionError</code> as the global
<code>expect</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16130">#16130</a>)</li>
<li><code>[jest-runtime]</code> Improve CJS-from-ESM interop:
<code>__esModule</code>/Babel default unwrap, broader named-export
coverage, and shared CJS singleton across importers (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Load <code>.js</code> files with ESM
syntax but no <code>&quot;type&quot;:&quot;module&quot;</code> marker as
native ESM (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Extend the
<code>.js</code>-with-ESM-syntax fallback to <code>require()</code> on
Node v24.9+ - falls back to <code>require(esm)</code> when the CJS
parser rejects ESM syntax (<a
href="https://redirect.github.com/jestjs/jest/pull/16078">#16078</a>)</li>
<li><code>[jest-runtime]</code> Fix deadlocks and double-evaluation in
concurrent ESM and wasm imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/jestjs/jest/commit/b3b4a09ed3005369dacc7466d1d2122797283785"><code>b3b4a09</code></a>
v30.4.1</li>
<li><a
href="https://github.com/jestjs/jest/commit/5cbb21e0b3037edb42e503ec1a1ce80efad40c20"><code>5cbb21e</code></a>
v30.4.0</li>
<li>See full diff in <a
href="https://github.com/jestjs/jest/commits/v30.4.1/packages/jest-globals">compare
view</a></li>
</ul>
</details>
<br />

Updates `@types/node` from 25.5.0 to 25.9.1
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.58.0 to 8.59.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.59.4</h2>
<h2>8.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
<li><strong>project-service:</strong> throw error cause in
<code>getParsedConfigFileFromTSServer</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12321">#12321</a>)</li>
<li><strong>typescript-eslint:</strong> export Compatible* types from
typescript-eslint to resolve pnpm TS error (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12340">#12340</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.3</h2>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.2</h2>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>rule-tester:</strong> add TypeScript as a peer dependency
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12288">#12288</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dariusz Czajkowski</li>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>v8.59.1</h2>
<h2>8.59.1 (2026-04-27)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
<h2>8.59.1 (2026-04-27)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unnecessary-condition] treat
void as nullish in no-unnecessary-condition (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12241">#12241</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-arguments]
handle instantiation expressions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12220">#12220</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
avoid false positive in logical assignment assertions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12278">#12278</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve phantom type arguments in generic inference (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12269">#12269</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve index signatures in undefined unions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12257">#12257</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion] fix
crash &quot;TypeError: checker.getTypeArguments is not a function&quot;
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12246">#12246</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ca6ca1431b6d18235297a7e29feb5d98f012dff2"><code>ca6ca14</code></a>
chore(release): publish 8.59.4</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4302433ae6bf93d4ddc35264ad1b951254758566"><code>4302433</code></a>
fix(eslint-plugin): [no-floating-promises] stack overflow when using
recursiv...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/10b79f1ba8e98610a3af85152a1b3b406f91e633"><code>10b79f1</code></a>
chore(deps): update dependency eslint to v10.4.0 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12339">#12339</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2a6765d9628dc776f8127c96f088bb807c0bcab2"><code>2a6765d</code></a>
chore: clenaup <code>getAwaitedType</code> from
<code>typescript.d.ts</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12302">#12302</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/48e13c0261e3cb1bf4f4dfaa462cdb3a56ef7383"><code>48e13c0</code></a>
chore(release): publish 8.59.3</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/e26dc8003ababf078aad4df17765ee4cea30644c"><code>e26dc80</code></a>
docs: update stale links to latest (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12313">#12313</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/44f9625336841a8ee3eb01a9e02e49b1d7b12648"><code>44f9625</code></a>
chore(deps): update vitest monorepo to v4.1.5 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12307">#12307</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2ec35f1760aade4df4c631d76d78c7ed5e136333"><code>2ec35f1</code></a>
chore(release): publish 8.59.2</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ec3ef25390f7daf5a9ff33a60282bdbbb49ab0f3"><code>ec3ef25</code></a>
test: make no-useless-empty-export tests fully static (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12260">#12260</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/60d0a513870d833617374ff8ea256d86ca3cbbbb"><code>60d0a51</code></a>
chore(eslint-plugin): switch auto-generated test cases to hand-written
in no-...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.59.4/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.1.0 to 10.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.4.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/1a45ec596af1dd5f880e6874cb8f24dafb6a7ecf"><code>1a45ec5</code></a>
feat: check sequence expressions in <code>for-direction</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20701">#20701</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/450040bd89b989b3531824c6be45feb5fe3d936b"><code>450040b</code></a>
feat: add <code>includeIgnoreFile()</code> to <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/20735">#20735</a>)
(Kirk Waiblinger)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6799431203f2579632d0870f98ba132067f4040c"><code>6799431</code></a>
fix: update dependency <code>@​eslint/config-helpers</code> to ^0.6.0
(<a
href="https://redirect.github.com/eslint/eslint/issues/20850">#20850</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/f078fef5005dceb14fc162aab7c7200e027688dd"><code>f078fef</code></a>
fix: handle non-array deprecated rule replacements (<a
href="https://redirect.github.com/eslint/eslint/issues/20825">#20825</a>)
(xbinaryx)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)
(Pavel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9cc73875046e3c4b8313644cbb1e99e26b36bd3f"><code>9cc7387</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3d7b5484407403817aa9071a394d336d8ea96eb5"><code>3d7b548</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/191ec3c0a3f94ce0f110df761f0b2b8949011ccb"><code>191ec3c</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)
(lumir)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/24db8cb8e6f07fba667121777a15b1785486be94"><code>24db8cb</code></a>
test: add tests for SuppressionsService.save() (<a
href="https://redirect.github.com/eslint/eslint/issues/20802">#20802</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2ef0549cac4a9537e4c3a26b9f3edd4c99476bf6"><code>2ef0549</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20857">#20857</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a4297918d264d229a06cd96051ef9b91c7b86732"><code>a429791</code></a>
ci: remove <code>eslint-webpack-plugin</code> types integration test (<a
href="https://redirect.github.com/eslint/eslint/issues/20668">#20668</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9e37386aa7f2ce220b2ef74a6afbac5f6b3527c5"><code>9e37386</code></a>
chore: replace <code>recast</code> with range approach in
code-sample-minimizer (<a
href="https://redirect.github.com/eslint/eslint/issues/20682">#20682</a>)
(Copilot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0dd1f9ffc9a07704d46e2a4c8d4ccc0d0908b0c0"><code>0dd1f9f</code></a>
test: disable warning for
<code>vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20845">#20845</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9da3c7bc92d9579f8db19ecb56e718538d09db2b"><code>9da3c7b</code></a>
refactor: remove deprecated <code>meta.language</code> and migrate
<code>meta.dialects</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20716">#20716</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2099ed12a0a74c3d7f0808514362af2499b4fe2b"><code>2099ed1</code></a>
refactor: add <code>meta.defaultOptions</code> to more rules, enable
linting (<a
href="https://redirect.github.com/eslint/eslint/issues/20800">#20800</a>)
(xbinaryx)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f1dfbc9ca57196de7092e1888cc99427bd6fe06e"><code>f1dfbc9</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20836">#20836</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/c75941390c14728806cd4baef4f6072f6de78318"><code>c759413</code></a>
ci: bump pnpm/action-setup from 6.0.3 to 6.0.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/20843">#20843</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/5b817d6fdc9ae2c35b528dc662b2eca8f40f64aa"><code>5b817d6</code></a>
test: add unit tests for lib/shared/ast-utils (<a
href="https://redirect.github.com/eslint/eslint/issues/20838">#20838</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1c13ae3934c198c494e5958fa3a68b33244ff06a"><code>1c13ae3</code></a>
test: add unit tests for lib/shared/severity (<a
href="https://redirect.github.com/eslint/eslint/issues/20835">#20835</a>)
(kuldeep kumar)</li>
</ul>
<h2>v10.3.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/379571a975f2b24d88037b9de2e72ec61d004130"><code>379571a</code></a>
feat: add suggestions for no-unused-private-class-members (<a
href="https://redirect.github.com/eslint/eslint/issues/20773">#20773</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b6ae5cf07b9b51802367539cb24b245b61eaa37c"><code>b6ae5cf</code></a>
fix: handle unavailable require cache (<a
href="https://redirect.github.com/eslint/eslint/issues/20812">#20812</a>)
(Simon Podlipsky)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6fb3685bcbe9a6f72fd7dfb9129686b6fb96b0bd"><code>6fb3685</code></a>
fix: rule suggestions cause continuation in class body (<a
href="https://redirect.github.com/eslint/eslint/issues/20787">#20787</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/32cc7ab4ec653ce89da92deb5c40a9f4fc707fe5"><code>32cc7ab</code></a>
docs: fix typos in docs and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/20809">#20809</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7f479376a2fa463d823ab762db6bb37ce8d2ee8f"><code>7f47937</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/d32235ec19ceea211fa86452afa383ca05f5c2f9"><code>d32235e</code></a>
ci: use pnpm in <code>eslint-flat-config-utils</code> type integration
test (<a
href="https://redirect.github.com/eslint/eslint/issues/20826">#20826</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3ffb14ea517de750ed1181579ef844af342e4096"><code>3ffb14e</code></a>
chore: clean up typos in comments and JSDoc (<a
href="https://redirect.github.com/eslint/eslint/issues/20821">#20821</a>)
(Pixel998)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/452c4010c07dc2e36fe6ec6a8c48298878e86887"><code>452c401</code></a>
10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/b6417e8b55c9525070d6e168b485ce6ff21688ed"><code>b6417e8</code></a>
Build: changelog update for 10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.1.0...v10.4.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.4.0 to 17.6.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.6.0</h2>
<ul>
<li>Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)
00a4dd9</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0">https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0</a></p>
<h2>v17.5.0</h2>
<ul>
<li>Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)
5d84602</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0">https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/6b15870f1c08b60b5b57afe45a703d9ed0be39bc"><code>6b15870</code></a>
17.6.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/00a4dd9821830a9b044798120e86b1bb1a54648d"><code>00a4dd9</code></a>
Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/b8170c8e1d648291b613c5b39a69652c796fa36c"><code>b8170c8</code></a>
17.5.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/5d846029679832931f38ced6381cc95bcb9abd80"><code>5d84602</code></a>
Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/1b727e5f4cc39121b8e77b9f27574a8ca27391fc"><code>1b727e5</code></a>
Fix build script for ES globals (<a
href="https://redirect.github.com/sindresorhus/globals/issues/341">#341</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.6.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `jest` from 30.3.0 to 30.4.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">jest's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.2</h2>
<h1>Fixes</h1>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2">https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2</a></p>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">jest's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
t...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 11:49:38 +02:00
dependabot[bot]andJérôme Prinet 8499b50242 Bump the github-actions group across 2 directories with 8 updates (#976)
Bumps the github-actions group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.2` |
`6.0.3` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.3.0`
| `6.4.0` |
| [gradle/actions](https://github.com/gradle/actions) | `6.0.1` |
`6.1.0` |
|
[tj-actions/changed-files](https://github.com/tj-actions/changed-files)
| `47.0.5` | `47.0.6` |
| [github/codeql-action](https://github.com/github/codeql-action) |
`4.35.1` | `4.36.2` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact)
| `7.0.0` | `7.0.1` |
| [actions/github-script](https://github.com/actions/github-script) |
`8.0.0` | `9.0.0` |
|
[peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request)
| `8.1.0` | `8.1.1` |

Bumps the github-actions group with 2 updates in the
/.github/actions/build-dist directory:
[actions/setup-node](https://github.com/actions/setup-node) and
[actions/upload-artifact](https://github.com/actions/upload-artifact).

Updates `actions/checkout` from 6.0.2 to 6.0.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v6.0.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Update changelog by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2357">actions/checkout#2357</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>Update changelog for v6.0.3 by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2446">actions/checkout#2446</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/yaananth"><code>@​yaananth</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6...v6.0.3">https://github.com/actions/checkout/compare/v6...v6.0.3</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v6.0.3</h2>
<ul>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<h2>v4.2.0</h2>
<ul>
<li>Add Ref and Commit outputs by <a
href="https://github.com/lucacome"><code>@​lucacome</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>- <a
href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>,
<a
href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>v4.1.7</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/df4cb1c069e1874edd31b4311f1884172cec0e10"><code>df4cb1c</code></a>
Update changelog for v6.0.3 (<a
href="https://redirect.github.com/actions/checkout/issues/2446">#2446</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/1cce3390c2bfda521930d01229c073c7ff920824"><code>1cce339</code></a>
Fix checkout init for SHA-256 repositories (<a
href="https://redirect.github.com/actions/checkout/issues/2439">#2439</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/900f2210b1d28bbbd0bd22d17926b9e224e8f231"><code>900f221</code></a>
fix: expand merge commit SHA regex and add SHA-256 test cases (<a
href="https://redirect.github.com/actions/checkout/issues/2414">#2414</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/0c366fd6a839edf440554fa01a7085ccba70ac98"><code>0c366fd</code></a>
Update changelog (<a
href="https://redirect.github.com/actions/checkout/issues/2357">#2357</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions` from 6.0.1 to 6.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions's
releases</a>.</em></p>
<blockquote>
<h2>v6.1.0</h2>
<h2>New: Basic Cache Provider</h2>
<p>A new MIT-licensed <strong>Basic Caching</strong> provider is now
available as an alternative to the proprietary <strong>Enhanced
Caching</strong> provided by <code>gradle-actions-caching</code>. Choose
Basic Caching by setting <code>cache-provider: basic</code> on
<code>setup-gradle</code> or <code>dependency-submission</code>
actions.</p>
<ul>
<li>Built on <code>@actions/cache</code> -- fully open source</li>
<li>Caches <code>~/.gradle/caches</code> and
<code>~/.gradle/wrapper</code> directories</li>
<li>Cache key derived from build files (<code>*.gradle*</code>,
<code>gradle-wrapper.properties</code>, etc.)</li>
<li>Clean cache on build file changes (no restore keys, preventing stale
entry accumulation)</li>
</ul>
<p><strong>Limitations vs Enhanced Caching:</strong> No cache cleanup,
no deduplication of cached content, cached content is fixed unless build
files change.</p>
<h2>Revamped Licensing &amp; Distribution Documentation</h2>
<ul>
<li>New <strong>DISTRIBUTION.md</strong> documents the licensing of each
component (particularly Basic Caching vs Enhanced Caching)</li>
<li>Simplified licensing notices in README, docs, and runtime log
output</li>
<li>Clear usage tiers: Enhanced Caching is free for public repos and in
Free Preview for private repos</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Use a unique cache entry for wrapper-validation test by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/921">gradle/actions#921</a></li>
<li>Update Dependencies by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/922">gradle/actions#922</a></li>
<li>Update dependencies and resolve npm vulnerabilities by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/933">gradle/actions#933</a></li>
<li>Add open-source 'basic' cache provider and revamp licensing
documentation by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/930">gradle/actions#930</a></li>
<li>Restructure caching documentation for basic and enhanced providers
by <a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/934">gradle/actions#934</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.0.1...v6.1.0">https://github.com/gradle/actions/compare/v6.0.1...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e"><code>50e97c2</code></a>
Link to docs for caching providers</li>
<li><a
href="https://github.com/gradle/actions/commit/f2e6298504c4b1f20294637059e1d0d89422409a"><code>f2e6298</code></a>
Restructure caching documentation for basic and enhanced providers (<a
href="https://redirect.github.com/gradle/actions/issues/934">#934</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/b294b1e2dbcf270bfe835590dedbbc7e2024618c"><code>b294b1e</code></a>
Really fix integ-test-full</li>
<li><a
href="https://github.com/gradle/actions/commit/83d3189aae3332f1b2235b42d8804258f2348213"><code>83d3189</code></a>
Revise license details for gradle-actions-caching</li>
<li><a
href="https://github.com/gradle/actions/commit/1d5db06d2662829845876553d61cf3df3cf997d1"><code>1d5db06</code></a>
Update license link for gradle-actions-caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/1c809615505fae9768e2610dc6dbecdc3a796443"><code>1c80961</code></a>
Fix license link for Enhanced Caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/9e99920b14b9dc5a9bf8c72e94ba47ebf5bbaee6"><code>9e99920</code></a>
Fix integ-test-full workflow</li>
<li><a
href="https://github.com/gradle/actions/commit/bb8aaaf9d56f25afd4a90925425facf294f31fcf"><code>bb8aaaf</code></a>
Fix workflow permissions</li>
<li><a
href="https://github.com/gradle/actions/commit/f5dfb43fc8c99c758ebf2324d102118e5faf6cb6"><code>f5dfb43</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/ff9ae24c39252301b448088d2c7d9f0a2d8066dd"><code>ff9ae24</code></a>
Add open-source 'basic' cache provider and revamp licensing
documentation (<a
href="https://redirect.github.com/gradle/actions/issues/930">#930</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f...50e97c2cd7a37755bbfafc9c5b7cafaece252f6e">compare
view</a></li>
</ul>
</details>
<br />

Updates `tj-actions/changed-files` from 47.0.5 to 47.0.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/releases">tj-actions/changed-files's
releases</a>.</em></p>
<blockquote>
<h2>v47.0.6</h2>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v47.0.5 by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2816">tj-actions/changed-files#2816</a></li>
<li>Updated README.md by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2817">tj-actions/changed-files#2817</a></li>
<li>chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2818">tj-actions/changed-files#2818</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.3 to
25.3.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2820">tj-actions/changed-files#2820</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.5 to 4.32.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2819">tj-actions/changed-files#2819</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.5 to
25.5.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2825">tj-actions/changed-files#2825</a></li>
<li>chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2824">tj-actions/changed-files#2824</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.6 to 4.35.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2834">tj-actions/changed-files#2834</a></li>
<li>chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2831">tj-actions/changed-files#2831</a></li>
<li>chore(deps): bump yaml from 2.8.2 to 2.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2830">tj-actions/changed-files#2830</a></li>
<li>chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2829">tj-actions/changed-files#2829</a></li>
<li>chore(deps-dev): bump jest from 30.2.0 to 30.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2822">tj-actions/changed-files#2822</a></li>
<li>chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2849">tj-actions/changed-files#2849</a></li>
<li>chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2848">tj-actions/changed-files#2848</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to
25.6.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2846">tj-actions/changed-files#2846</a></li>
<li>chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2844">tj-actions/changed-files#2844</a></li>
<li>chore(deps): bump peter-evans/create-pull-request from 8.1.0 to
8.1.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2843">tj-actions/changed-files#2843</a></li>
<li>chore(deps): bump lodash from 4.17.23 to 4.18.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2837">tj-actions/changed-files#2837</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">47.0.6</a>
- (2026-04-18)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2817">#2817</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/c23d52ba6ff8c67273c61e097615eafe88cb8650">c23d52b</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">9426d40</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump peter-evans/create-pull-request from
8.1.0 to 8.1.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49">32de080</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/upload-artifact from 7.0.0 to
7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310">2487d12</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.5.0 to 25.6.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda">cef85a3</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c">7b082de</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.35.1 to
4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714">07224ca</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc">2bb1357</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9">cc98117</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db">786e421</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump eslint-plugin-jest from 29.15.0 to
29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7">726b41b</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.6 to
4.35.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2834">#2834</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2c3585e584822ed39e27c6c471225dde37991778">2c3585e</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/download-artifact from 8.0.0 to
8.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2824">#2824</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/3d37a7ff08a7ce64b4cab9669eac39b0709cdac9">3d37a7f</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.5 to 25.5.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2825">#2825</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/445b0eb32849cdd5b22a390bf0568af00ed4ca34">445b0eb</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.5 to
4.32.6 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2819">#2819</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/4f892cd56345d721bac7139000c4b4a22c8f138f">4f892cd</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.3 to 25.3.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2820">#2820</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/611865116d9f223a0ca640071aec29292c81978f">6118651</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/setup-node from 6.2.0 to 6.3.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2818">#2818</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/e517d7a5ca34a5d08bbe5c949e59381bd6d7cce2">e517d7a</a>)
- (dependabot[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v47.0.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2816">#2816</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/4750530ff4e020eafc769c56c2fa8376ca8ad8e9">4750530</a>)
- (github-actions[bot])</p>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.4...v47.0.5">47.0.5</a>
- (2026-03-03)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2805">#2805</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
(<a
href="https://github.com/tj-actions/changed-files/commit/35dace0375d89e25e78db5f0a44127b61f4e5c20">35dace0</a>)
- (github-actions[bot])</p>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2803">#2803</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/9ee99eb5bda5d6a67fedcd50ecd24fb10add2f41">9ee99eb</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96"><code>9426d40</code></a>
chore(deps): bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49"><code>32de080</code></a>
chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310"><code>2487d12</code></a>
chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda"><code>cef85a3</code></a>
chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to 25.6.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c"><code>7b082de</code></a>
chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714"><code>07224ca</code></a>
chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc"><code>2bb1357</code></a>
chore(deps-dev): bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9"><code>cc98117</code></a>
chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db"><code>786e421</code></a>
chore(deps): bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7"><code>726b41b</code></a>
chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/tj-actions/changed-files/compare/22103cc46bda19c2b464ffe86db46df6922fd323...9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action` from 4.35.1 to 4.36.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.36.2</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>v4.36.1</h2>
<p>No user facing changes.</p>
<h2>v4.36.0</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>v4.35.5</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>v4.35.4</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>v4.35.3</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>v4.35.2</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>4.35.5 - 15 May 2026</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>4.35.4 - 07 May 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>4.35.3 - 01 May 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>4.35.2 - 15 Apr 2026</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/8aad20d150bbac5944a9f9d289da16a4b0d87c1e"><code>8aad20d</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3949">#3949</a>
from github/update-v4.36.2-dcb947ce1</li>
<li><a
href="https://github.com/github/codeql-action/commit/f521b08cd8f468ab193ea950a589cb2e9c869c6a"><code>f521b08</code></a>
Add additional changelog notes</li>
<li><a
href="https://github.com/github/codeql-action/commit/8aeff0ffb7b78582ee0d0e6eebb8140684400d08"><code>8aeff0f</code></a>
Update changelog for v4.36.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/dcb947ce15976d40ea82935510b2db4872ec124c"><code>dcb947c</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3948">#3948</a>
from github/update-bundle/codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/c251bcefa178f7780f62f150002acffe3d07fde9"><code>c251bce</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/62953c18b35f59e28351d2f1e806925aef8b1e3c"><code>62953c1</code></a>
Update default bundle to codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/423b570baf1976cd7a3daeba5d6e9f9b76432f37"><code>423b570</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3946">#3946</a>
from github/dependabot/npm_and_yarn/npm-minor-5d507a...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c35d1b164463ee62a100735382aaaa525c5d3496"><code>c35d1b1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3947">#3947</a>
from github/dependabot/github_actions/dot-github/wor...</li>
<li><a
href="https://github.com/github/codeql-action/commit/cb1a588b02755b176e7b9d033ed4b69312f0e1bd"><code>cb1a588</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3937">#3937</a>
from github/robertbrignull/waitForProcessing_backoff</li>
<li><a
href="https://github.com/github/codeql-action/commit/ba47406412c54532b5b4fcfbaf877c9e2382b206"><code>ba47406</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3943">#3943</a>
from github/henrymercer/cache-cli-version-info</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...8aad20d150bbac5944a9f9d289da16a4b0d87c1e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></li>
<li>Include changes in typespec/ts-http-runtime 0.3.5 by <a
href="https://github.com/yacaovsnc"><code>@​yacaovsnc</code></a> in <a
href="https://redirect.github.com/actions/upload-artifact/pull/797">actions/upload-artifact#797</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/upload-artifact/compare/v7...v7.0.1">https://github.com/actions/upload-artifact/compare/v7...v7.0.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/upload-artifact/commit/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"><code>043fb46</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/upload-artifact/issues/797">#797</a>
from actions/yacaovsnc/update-dependency</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/634250c1388765ea7ed0f053e636f1f399000b94"><code>634250c</code></a>
Include changes in typespec/ts-http-runtime 0.3.5</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/e454baaac2be505c9450e11b8f3215c6fc023ce8"><code>e454baa</code></a>
Readme: bump all the example versions to v7 (<a
href="https://redirect.github.com/actions/upload-artifact/issues/796">#796</a>)</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/74fad66b98a6d799dc004d3353ccd0e6f6b2530e"><code>74fad66</code></a>
Update the readme with direct upload details (<a
href="https://redirect.github.com/actions/upload-artifact/issues/795">#795</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/github-script` from 8.0.0 to 9.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/github-script/releases">actions/github-script's
releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<p><strong>New features:</strong></p>
<ul>
<li><strong><code>getOctokit</code> factory function</strong> —
Available directly in the script context. Create additional
authenticated Octokit clients with different tokens for multi-token
workflows, GitHub App tokens, and cross-org access. See <a
href="https://github.com/actions/github-script#creating-additional-clients-with-getoctokit">Creating
additional clients with <code>getOctokit</code></a> for details and
examples.</li>
<li><strong>Orchestration ID in user-agent</strong> — The
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is
automatically appended to the user-agent string for request
tracing.</li>
</ul>
<p><strong>Breaking changes:</strong></p>
<ul>
<li><strong><code>require('@actions/github')</code> no longer works in
scripts.</strong> The upgrade to <code>@actions/github</code> v9
(ESM-only) means <code>require('@actions/github')</code> will fail at
runtime. If you previously used patterns like <code>const { getOctokit }
= require('@actions/github')</code> to create secondary clients, use the
new injected <code>getOctokit</code> function instead — it's available
directly in the script context with no imports needed.</li>
<li><code>getOctokit</code> is now an injected function parameter.
Scripts that declare <code>const getOctokit = ...</code> or <code>let
getOctokit = ...</code> will get a <code>SyntaxError</code> because
JavaScript does not allow <code>const</code>/<code>let</code>
redeclaration of function parameters. Use the injected
<code>getOctokit</code> directly, or use <code>var getOctokit =
...</code> if you need to redeclare it.</li>
<li>If your script accesses other <code>@actions/github</code> internals
beyond the standard <code>github</code>/<code>octokit</code> client, you
may need to update those references for v9 compatibility.</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Add ACTIONS_ORCHESTRATION_ID to user-agent string by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
<li>ci: use deployment: false for integration test environments by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/712">actions/github-script#712</a></li>
<li>feat!: add getOctokit to script context, upgrade
<code>@​actions/github</code> v9, <code>@​octokit/core</code> v7, and
related packages by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/700">actions/github-script#700</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/github-script/compare/v8.0.0...v9.0.0">https://github.com/actions/github-script/compare/v8.0.0...v9.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/github-script/commit/3a2844b7e9c422d3c10d287c895573f7108da1b3"><code>3a2844b</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/700">#700</a>
from actions/salmanmkc/expose-getoctokit + prepare re...</li>
<li><a
href="https://github.com/actions/github-script/commit/ca10bbdd1a7739de09e99a200c7a59f5d73a4079"><code>ca10bbd</code></a>
fix: use <code>@​octokit/core/</code>types import for v7
compatibility</li>
<li><a
href="https://github.com/actions/github-script/commit/86e48e20ac85c970ed1f96e718fd068173948b7b"><code>86e48e2</code></a>
merge: incorporate main branch changes</li>
<li><a
href="https://github.com/actions/github-script/commit/c1084728b5b935ec4ddc1e4cee877b01797b3ff9"><code>c108472</code></a>
chore: rebuild dist for v9 upgrade and getOctokit factory</li>
<li><a
href="https://github.com/actions/github-script/commit/afff112e4f8b57c718168af75b89ce00bc8d091d"><code>afff112</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/712">#712</a>
from actions/salmanmkc/deployment-false + fix user-ag...</li>
<li><a
href="https://github.com/actions/github-script/commit/ff8117e5b78c415f814f39ad6998f424fee7b817"><code>ff8117e</code></a>
ci: fix user-agent test to handle orchestration ID</li>
<li><a
href="https://github.com/actions/github-script/commit/81c6b7876079abe10ff715951c9fc7b3e1ab389d"><code>81c6b78</code></a>
ci: use deployment: false to suppress deployment noise from integration
tests</li>
<li><a
href="https://github.com/actions/github-script/commit/3953caf8858d318f37b6cc53a9f5708859b5a7b7"><code>3953caf</code></a>
docs: update README examples from <a
href="https://github.com/v8"><code>@​v8</code></a> to <a
href="https://github.com/v9"><code>@​v9</code></a>, add getOctokit docs
and v9 brea...</li>
<li><a
href="https://github.com/actions/github-script/commit/c17d55b90dcdb3d554d0027a6c180a7adc2daf78"><code>c17d55b</code></a>
ci: add getOctokit integration test job</li>
<li><a
href="https://github.com/actions/github-script/commit/a047196d9a02fe92098771cafbb98c2f1814e408"><code>a047196</code></a>
test: add getOctokit integration tests via callAsyncFunction</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3">compare
view</a></li>
</ul>
</details>
<br />

Updates `peter-evans/create-pull-request` from 8.1.0 to 8.1.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/peter-evans/create-pull-request/releases">peter-evans/create-pull-request's
releases</a>.</em></p>
<blockquote>
<h2>Create Pull Request v8.1.1</h2>
<h2>What's Changed</h2>
<ul>
<li>build(deps-dev): bump the npm group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4305">peter-evans/create-pull-request#4305</a></li>
<li>build(deps): bump minimatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4311">peter-evans/create-pull-request#4311</a></li>
<li>build(deps): bump the github-actions group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4316">peter-evans/create-pull-request#4316</a></li>
<li>build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4323">peter-evans/create-pull-request#4323</a></li>
<li>build(deps-dev): bump undici from 6.23.0 to 6.24.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4328">peter-evans/create-pull-request#4328</a></li>
<li>build(deps-dev): bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4334">peter-evans/create-pull-request#4334</a></li>
<li>build(deps): bump picomatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4339">peter-evans/create-pull-request#4339</a></li>
<li>build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4344">peter-evans/create-pull-request#4344</a></li>
<li>build(deps-dev): bump the npm group with 3 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4349">peter-evans/create-pull-request#4349</a></li>
<li>fix: retry post-creation API calls on 422 eventual consistency
errors by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4356">peter-evans/create-pull-request#4356</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1">https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/5f6978faf089d4d20b00c7766989d076bb2fc7f1"><code>5f6978f</code></a>
fix: retry post-creation API calls on 422 eventual consistency errors
(<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4356">#4356</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/d32e88dac789dcc7906e7d26f69f24116fa9c97d"><code>d32e88d</code></a>
build(deps-dev): bump the npm group with 3 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4349">#4349</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/8170bccad11c0df62542c04dcaefe36d342dfd39"><code>8170bcc</code></a>
build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4344">#4344</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/00418193b417f888dbf1d993c5c0d31d27fdc7de"><code>0041819</code></a>
build(deps): bump picomatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4339">#4339</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/b993918c8536b6d44706130734d5456879762b27"><code>b993918</code></a>
build(deps-dev): bump flatted from 3.3.1 to 3.4.2 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4334">#4334</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/36d7c8468b48f9c2f8f29e260e82f10d4b90d2bd"><code>36d7c84</code></a>
build(deps-dev): bump undici from 6.23.0 to 6.24.0 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4328">#4328</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/a45d1fb447fcaf601166e405fd4f335cde1a8aa8"><code>a45d1fb</code></a>
build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4323">#4323</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3499eb61835cc0015c0b786e203d74b1e8f55e43"><code>3499eb6</code></a>
build(deps): bump the github-actions group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4316">#4316</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3f3b473b8c148f5a7520efb4d1f9a70eea3d9d1f"><code>3f3b473</code></a>
build(deps): bump minimatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4311">#4311</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/6699836a213cf8b28c4f0408a404a6ac79d4458a"><code>6699836</code></a>
build(deps-dev): bump the npm group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4305">#4305</a>)</li>
<li>See full diff in <a
href="https://github.com/peter-evans/create-pull-request/compare/c0f553fe549906ede9cf27b5156039d195d2ece0...5f6978faf089d4d20b00c7766989d076bb2fc7f1">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 10:49:31 +02:00
bot-githubaction a16ad4ab25 [bot] Update dist directory 2026-06-09 08:41:22 +00:00
github-actions[bot]andbot-githubaction e9965bd762 Update known wrapper checksums (#937)
Automatically generated pull request to update the known wrapper
checksums.

In case of conflicts, manually run the workflow from the [Actions
tab](https://github.com/gradle/actions/actions/workflows/update-checksums-file.yml),
the changes will then be force-pushed onto this pull request branch.
Do not manually update the pull request branch; those changes might get
overwritten.

> [!IMPORTANT]  
> GitHub workflows have not been executed for this pull request yet.
Before merging, close and then directly reopen this pull request to
trigger the workflows.

Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:40 +02:00
Bot Githubaction 6959d5a1db Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/kotlin-dsl (#965)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:09 +02:00
Bot Githubaction 139f652ee4 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/java-toolchain (#964)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:54 +02:00
Bot Githubaction 77818a6789 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/groovy-dsl (#963)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:38 +02:00
Bot Githubaction d0dd67506b Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/gradle-plugin (#962)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:15 +02:00
Bot Githubaction 0f159117b5 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /sources/test/init-scripts (#961)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:38:19 +02:00
Daz DeBoer 11d4d83c63 Update docs for v6 2026-04-03 15:25:10 -06:00
Daz DeBoer 50e97c2cd7 Link to docs for caching providers 2026-04-03 08:42:14 -06:00
Daz DeBoerandClaude Opus 4.6 f2e6298504 Restructure caching documentation for basic and enhanced providers (#934)
## Summary
- Reorganized setup-gradle caching docs into three clear sections:
general (shared options), Enhanced Caching, and Basic Caching
- Added new documentation for `cache-encryption-key`,
`gradle-home-cache-strict-match`, and the full Basic Caching section
(key strategy, stored content, limitations)
- Moved enhanced-only options (`cache-write-only`,
`cache-overwrite-existing`, `cache-cleanup`, includes/excludes, strict
matching) into the Enhanced Caching section
- Preserved all existing anchor links used by source code and other docs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 08:36:37 -06:00
Daz DeBoer b294b1e2db Really fix integ-test-full 2026-04-03 08:14:43 -06:00
Daz DeBoer 83d3189aae Revise license details for gradle-actions-caching
Updated licensing information for vendor component.
2026-04-03 07:48:43 -06:00
Daz DeBoer 1d5db06d26 Update license link for gradle-actions-caching component 2026-04-03 07:47:03 -06:00
Daz DeBoer 1c80961550 Fix license link for Enhanced Caching component
Updated the license link for Enhanced Caching component.
2026-04-03 07:45:43 -06:00
Daz DeBoer 9e99920b14 Fix integ-test-full workflow 2026-04-03 07:29:33 -06:00
Daz DeBoer bb8aaaf9d5 Fix workflow permissions 2026-04-02 22:03:35 -06:00
bot-githubaction f5dfb43fc8 [bot] Update dist directory 2026-04-03 03:36:46 +00:00
Daz DeBoerandClaude Opus 4.6 ff9ae24c39 Add open-source 'basic' cache provider and revamp licensing documentation (#930)
## Summary

- **New `basic` cache provider**: Adds an open-source (MIT-licensed)
caching implementation built on `@actions/cache` as an alternative to
the proprietary Enhanced Caching. Users can opt in with `cache-provider:
basic` on both `setup-gradle` and `dependency-submission` actions.
- **Revamped licensing & distribution docs**: Replaces the verbose
licensing notice block (previously shown in README, docs, and logs) with
a friendlier callout and a new dedicated
[DISTRIBUTION.md](./DISTRIBUTION.md) covering component licensing, usage
tiers, data privacy ("Safe Harbor"), and opt-out instructions.
- **Improved messaging**: Enhanced Caching and Basic Caching each
display concise, informative log messages and job summary notes instead
of the previous wall-of-text license warning.
- **New integration tests**: Adds `integ-test-basic-cache-provider.yml`
workflow that seeds and verifies the basic cache provider across
platforms, plus unit tests for `BasicCacheService` and `getCacheService`
selection logic.
- **CI workflow reorganization**: Dependency-submission integration
tests extracted into their own reusable suite
(`suite-integ-test-dependency-submission.yml`); sample project tests
moved into the caching suite.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 21:36:01 -06:00
bot-githubaction ac396bf1a8 [bot] Update dist directory 2026-04-02 23:47:27 +00:00
Daz DeBoeranddependabot[bot] f333b2d34b Update dependencies and resolve npm vulnerabilities (#933)
This pull request includes dependency updates, a minor bug fix, and a
workflow update. The most significant changes are grouped below:

Dependency Updates:

* Updated several development dependencies in `sources/package.json`,
including `@typescript-eslint/eslint-plugin` to 8.58.0, `esbuild` to
0.28.0, and `ts-jest` to 29.4.9, to keep the project up to date with the
latest features and bug fixes.

Bug Fix:

* Fixed a typo in the import statement for `deprecation-collector` in
`sources/src/configuration.ts`, correcting the import from `de cator` to
`deprecator`.

CI/CD Workflow Update:

* Updated the commit hashes for the `github/codeql-action/init` and
`github/codeql-action/analyze` steps in
`.github/workflows/ci-codeql.yml` to use a newer commit, ensuring the
workflow uses the latest patches for these actions.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-02 17:46:48 -06:00
Daz DeBoer d341a58140 Remove configuration-cache docs 2026-04-02 12:01:48 -06:00
Daz DeBoer f8858e0208 Revert "Update gradle-actions-caching library to v0.5.0 (#923)"
This reverts commit 6ac57d8041.
2026-04-02 08:45:51 -06:00
Daz DeBoer c841461734 Ignore claude directory 2026-04-02 08:45:40 -06:00
Bot Githubaction 6ac57d8041 Update gradle-actions-caching library to v0.5.0 (#923)
Updates to the latest gradle-actions-caching library.
2026-04-01 07:18:25 -06:00
bot-githubaction b93d9dccdc [bot] Update dist directory 2026-04-01 05:01:34 +00:00
Daz DeBoer d63f73fa0d Update Dependencies (#922)
This pull request primarily updates dependencies to ensure compatibility
and benefit from the latest features and fixes. The most significant
changes include upgrading the Develocity Gradle plugin and related
workflow/test matrix versions, as well as updating several
JavaScript/TypeScript development dependencies.

**Gradle and Develocity plugin updates:**

* Updated the `com.gradle.develocity` plugin version from `4.3.2` to
`4.4.0` across all workflow sample Gradle files and documentation. This
ensures the latest features and fixes are used in all example and test
projects.
[[1]](diffhunk://#diff-76298366dd6b8dd6f26592596c333884930a893c9553247c720b151c4e2ca314L2-R2)
[[2]](diffhunk://#diff-d4c2e31d274e47ae44389c511a1ba7fb24275335d155de5d013bcfa1631da3f4L2-R2)
[[3]](diffhunk://#diff-8ccb433ca9eee93c137fed07a97f755e10aae3a5989fbcd9eae427383a8c2243L2-R2)
[[4]](diffhunk://#diff-f71438b1f838b2006cbff9be742ce918a0a53dfa51ab838f480517f63da54e55L2-R2)
[[5]](diffhunk://#diff-f7ae8d202a355a0d67ecbaf0d3b18c5bc0ef3d94a546724ff776b20517d4318cL867-R867)
* Changed the Develocity plugin version in the integration test matrix
and related access key logic from `4.3.2` to `4.4.0` in the GitHub
Actions workflow configuration.
[[1]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L33-R33)
[[2]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L46-R46)
[[3]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L95-R95)
[[4]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L151-R151)
[[5]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L194-R194)

**GitHub Actions workflow updates:**

* Upgraded the `gradle/actions/setup-gradle` and
`gradle/actions/wrapper-validation` actions from v5.0.2 to v6.0.1 in all
relevant workflows, ensuring compatibility with the latest Gradle and
GitHub Actions features.
[[1]](diffhunk://#diff-67e3ccddaa5be01f56241af95a472ecc7b4eea0f6c71adb38e109207ea643af2L29-R29)
[[2]](diffhunk://#diff-20def8dd090267382644676ff63075fd8c64a9c8a9eeae936fc2451b10c063ccL33-R33)
[[3]](diffhunk://#diff-97df74640aaaa8bf2c853ceb34bc83eda56f6a670a91ef5a27e5c9ffcf1c9378L15-R15)
* Updated the `github/codeql-action/init` and
`github/codeql-action/analyze` actions to a new commit SHA, maintaining
up-to-date security scanning.

**JavaScript/TypeScript dependency updates:**

* Upgraded `@typescript-eslint/eslint-plugin` from `8.57.1` to `8.57.2`,
`eslint` from `10.0.3` to `10.1.0`, and `typescript` from `5.9.3` to
`6.0.2` in `sources/package-lock.json`, along with related dependency
tree updates for improved linting and TypeScript support.
[[1]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL34-R44)
[[2]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL1679-R1685)
[[3]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2857-R2867)
[[4]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2880-R2925)
[[5]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2917-R2946)
[[6]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2943-R2988)
[[7]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebR2997-R3015)
2026-03-31 23:00:47 -06:00
dependabot[bot] 8d29df0507 Revert typescript update 2026-03-31 22:46:32 -06:00
dependabot[bot] 5f8d454165 Bump the github-actions group across 1 directory with 2 updates
Bumps the github-actions group with 2 updates in the / directory: [gradle/actions](https://github.com/gradle/actions) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `gradle/actions` from 5.0.2 to 6.0.1
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/0723195856401067f7a2779048b490ace7a47d7c...39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f)

Updates `github/codeql-action` from 4.33.0 to 4.34.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/b1bff81932f5cdfc8695c7752dcee935dcd061c8...38697555549f1db7851b81482ff19f1fa5c4fedc)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.34.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 22:35:40 -06:00
dependabot[bot] 5636af687b Bump the npm-dependencies group in /sources with 3 updates
Bumps the npm-dependencies group in /sources with 3 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [eslint](https://github.com/eslint/eslint) and [typescript](https://github.com/microsoft/TypeScript).


Updates `@typescript-eslint/eslint-plugin` from 8.57.1 to 8.57.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.2/packages/eslint-plugin)

Updates `eslint` from 10.0.3 to 10.1.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.3...v10.1.0)

Updates `typescript` from 5.9.3 to 6.0.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 22:35:18 -06:00
bot-githubaction 00c71e737e Bump references to Develocity Gradle plugin from 4.3.2 to 4.4.0 2026-03-31 22:34:44 -06:00
bot-githubaction 43b3895d27 [bot] Update dist directory 2026-04-01 04:17:46 +00:00
Daz DeBoer 0b8fa27eb1 Use a unique cache entry for wrapper-validation test (#921)
This is necessary to avoid loading a cache entry from a different test,
where the allowed wrapper checksums might have been cached, causing the
wrapper validation to unexpectedly succeed.
2026-03-31 22:16:59 -06:00
Daz DeBoer 263d8fe18e Enhance setup-gradle.md with validation details
Added a point about Gradle Wrapper files validation to the setup documentation.
2026-03-27 12:50:52 -06:00
bot-githubaction 39e147cb9d [bot] Update dist directory 2026-03-24 15:25:09 +00:00
dependabot[bot] 14ac3d6351 Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile from 2.21.1 to 2.21.2 in /sources/test/init-scripts in the gradle group across 1 directory (#907)
Bumps the gradle group with 1 update in the /sources/test/init-scripts
directory:
[com.fasterxml.jackson.dataformat:jackson-dataformat-smile](https://github.com/FasterXML/jackson-dataformats-binary).

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from
2.21.1 to 2.21.2
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/4abc5dc04ab08b8c587029d7bdc86a50cc7ba81a"><code>4abc5dc</code></a>
[maven-release-plugin] prepare release
jackson-dataformats-binary-2.21.2</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/c139eb76ca789b6c1f628c56491e3a801f812d2e"><code>c139eb7</code></a>
Prep for 2.21.2 release</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/4a3327708a24445f4e775d6aa51d4c6a87728baf"><code>4a33277</code></a>
Merge branch '2.20' into 2.21</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/816df57981204df2f0b0b418f179f78df0736fb0"><code>816df57</code></a>
Merge branch '2.19' into 2.20</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/3ae1b3102e795e48edb1dd6481b7856155d52dc6"><code>3ae1b31</code></a>
Update release notes</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/c5f237894b9b92ca54743e474f9af2bcdf8ba8ca"><code>c5f2378</code></a>
Post-release dep version bump</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/182a13afdec0b17889d1447775b28984a3d327c9"><code>182a13a</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.21.1...jackson-dataformats-binary-2.21.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.fasterxml.jackson.dataformat:jackson-dataformat-smile&package-manager=gradle&previous-version=2.21.1&new-version=2.21.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-24 09:24:18 -06:00
Daz DeBoer 81fec7a823 Mention explicit license acceptance in notice (#912) 2026-03-24 09:23:53 -06:00
bot-githubaction 4ac5b012ea [bot] Update dist directory 2026-03-24 14:47:03 +00:00
Daz DeBoer f64284c333 Mute license warning when terms are accepted (#911)
With licensing changes in v6, a license warning was added to the logs
and job summary. Now, accepting the Build Scan Terms of Use or providing
a Develocity Access Key will mute this warning.
2026-03-24 08:46:15 -06:00
Daz DeBoer c2457a7fb2 Update tagging instructions for release 2026-03-23 17:46:33 -06:00
Daz DeBoer 8205114447 Update Gradle version compatibility information 2026-03-23 17:38:52 -06:00
Daz DeBoer 6710000013 Add typing information for use by typesafegithub (#910)
Introduces type descriptor YAML files for GitHub
Actions in the repository, improving type safety and documentation for
action inputs and outputs. It also adds a new GitHub Actions workflow to
validate these typings automatically on pushes and pull requests. The
changes are grouped into the addition of type descriptor files for
various actions and the automation of their validation.

https://github.com/typesafegithub/github-actions-typing

**Type descriptor files for GitHub Actions:**

* Added `action-types.yml` files to `setup-gradle`,
`dependency-submission`, and `wrapper-validation` actions, specifying
input and output types for each action to improve type safety and
documentation.

[[1]](diffhunk://#diff-542de74831b6dc1954ff20a4c329b170053c82087ea7df742bd536156133f25bR1-R171)
[[2]](diffhunk://#diff-44708a3af3d0f3cfed1873f9b77d7e815c6c14e941fa3dd5ed08835a69d67855R1-R146)
[[3]](diffhunk://#diff-3fe1028d7aa5ee815c90fa580d4f62e646f0b9a4b7372f227fc131a56948ace0R1-R17)

**Automation and validation:**

* Introduced a new GitHub Actions workflow
`.github/workflows/ci-validate-typings.yml` to automatically validate
action typings on pushes to `main` and `release/**` branches, as well as
on pull requests. This uses the `github-actions-typing` action for
validation.
2026-03-23 12:14:14 -06:00
Daz DeBoer 3d0e2a88da Pin version for github actions 2026-03-23 12:11:47 -06:00
Daz DeBoer f663ed9f3d Ignore internal action files for type validation 2026-03-23 12:10:10 -06:00
Leonard Brünings 9e6b5adc6e Add typing information for use by typesafegithub (#814)
Introduces type descriptor YAML files for GitHub
Actions in the repository, improving type safety and documentation for
action inputs and outputs. It also adds a new GitHub Actions workflow to
validate these typings automatically on pushes and pull requests. The
changes are grouped into the addition of type descriptor files for
various actions and the automation of their validation.

https://github.com/typesafegithub/github-actions-typing

**Type descriptor files for GitHub Actions:**

* Added `action-types.yml` files to `setup-gradle`,
`dependency-submission`, and `wrapper-validation` actions, specifying
input and output types for each action to improve type safety and
documentation.
[[1]](diffhunk://#diff-542de74831b6dc1954ff20a4c329b170053c82087ea7df742bd536156133f25bR1-R171)
[[2]](diffhunk://#diff-44708a3af3d0f3cfed1873f9b77d7e815c6c14e941fa3dd5ed08835a69d67855R1-R146)
[[3]](diffhunk://#diff-3fe1028d7aa5ee815c90fa580d4f62e646f0b9a4b7372f227fc131a56948ace0R1-R17)

**Automation and validation:**

* Introduced a new GitHub Actions workflow
`.github/workflows/ci-validate-typings.yml` to automatically validate
action typings on pushes to `main` and `release/**` branches, as well as
on pull requests. This uses the `github-actions-typing` action for
validation.
2026-03-23 12:06:12 -06:00
Zongle Wang 310f24cf39 Bump actions used in docs (#792) 2026-03-23 11:53:33 -06:00
bot-githubaction 0f4528296b [bot] Update dist directory 2026-03-23 17:35:12 +00:00
Daz DeBoer 6c6dec06f4 Fix rendering of job-disabled message (#909) 2026-03-23 11:34:26 -06:00
Daz DeBoer dd0829a494 Add cache-disabled example to demo workflow 2026-03-23 11:11:46 -06:00
bot-githubaction fd60153b4a [bot] Update dist directory 2026-03-23 17:02:50 +00:00
Daz DeBoer 9c9963b8af Dependency updates (#905) 2026-03-23 11:02:00 -06:00
bot-githubaction 22c3ef2608 Update known wrapper checksums 2026-03-23 10:26:38 -06:00
bot-githubaction 51a7f13c39 Bump Gradle Wrapper from 9.4.0 to 9.4.1.
Release notes of Gradle 9.4.1 can be found here:
https://docs.gradle.org/9.4.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-23 10:26:16 -06:00
dependabot[bot] 2c1f55600d Bump github/codeql-action in the github-actions group across 1 directory
Bumps the github-actions group with 1 update in the / directory: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.32.6 to 4.33.0
- [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/0d579ffd059c29b07949a3cce3983f0780820c98...b1bff81932f5cdfc8695c7752dcee935dcd061c8)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 10:24:00 -06:00
dependabot[bot] d0745b9c76 Bump @typescript-eslint/eslint-plugin
Bumps the npm-dependencies group in /sources with 1 update: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin).


Updates `@typescript-eslint/eslint-plugin` from 8.57.0 to 8.57.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 10:23:42 -06:00
Daz DeBoer 8bfa39f571 Add instructions for claude 2026-03-23 10:20:32 -06:00
Daz DeBoerandClaude Opus 4.6 db39ac7061 Fix critical and high npm vulnerabilities
Update transitive dependencies to resolve 4 security vulnerabilities:
- fast-xml-parser 5.2.0 → 5.5.8 (critical: DoS, entity expansion, stack overflow)
- flatted 3.3.3 → 3.4.2 (high: recursion DoS, prototype pollution)
- minimatch 3.1.2/5.1.6/9.0.5 → 3.1.5/5.1.9/9.0.9 (high: ReDoS)
- undici 6.23.0/7.21.0 → 6.24.1/7.24.5 (high: WebSocket overflow, HTTP smuggling)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:19:28 -06:00
bot-githubaction 8f7f5a5ed8 [bot] Update dist directory 2026-03-23 15:44:10 +00:00
Daz DeBoer 25454f526a Avoid windows shutdown bug (#900)
* Avoid windows shutdown bug with shutdown delay
* Use a separate concurrency group for integ-test-full
2026-03-23 09:43:17 -06:00
Daz DeBoer 2cab5e3c71 Fix path for running full-integ-test 2026-03-20 10:20:00 -06:00
Bot Githubaction 75dee00288 Update gradle-actions-caching library to v0.3.0 (#899) 2026-03-20 10:17:14 -06:00
Daz DeBoer 56227c19fe Run only one integ-test suite at a time 2026-03-20 10:16:30 -06:00
Daz DeBoer b99ed96fc6 Fix branch name for update PR 2026-03-20 09:14:33 -06:00
Daz DeBoer 9becd650e8 Run integ-test-full for gradle-actions-caching updates 2026-03-20 08:26:42 -06:00
bot-githubaction 73536630a5 [bot] Update dist directory 2026-03-18 20:58:30 +00:00
Daz DeBoer a0ee12f71e Extract caching logic into a separate gradle-actions-caching component (#885)
With this change, the caching functionality of `setup-gradle` and
`dependency-submission` is now provided by `gradle-actions-caching`, a
closed-source library distributed under our [Terms of
Use](https://gradle.com/legal/terms-of-use/). The rest of the action
implementation remains open source.

Using `setup-gradle` or `dependency-submission` with caching enabled
involves loading and using the `gradle-actions-caching` component,
requiring acceptance of the [Terms of
Use](https://gradle.com/legal/terms-of-use/). There are no functional
changes to caching provided by these actions: all workflows will
continue to function as before.

The non-caching aspects of action implementation remain open source. By
running these actions with caching disabled they can be used without
ever loading `gradle-actions-caching` or accepting the license terms.

Supporting the caching infrastructure in this project requires a
substantial engineering investment by Gradle Technologies, which we can
sustain thanks to Develocity, our commercial offering. Caching
technologies are a core part of the Develocity offering, and the caching
in `setup-gradle` fits squarely in that space.

This licensing change lets us continue to build advanced capabilities
that go beyond what we would offer as open source. Proper
production-ready Configuration Cache support will be the first
capability. Improving build performance for self-hosted runners will
follow.

We may introduce functionality restrictions in future updates. However,
caching functionality will remain free for public repositories.
We have a long-standing commitment to open source, as maintainers of
Gradle Build Tool, and by [sponsoring the open source
community](https://gradle.com/oss-sponsored-by-develocity/) with free
Develocity licenses. Public repositories are primarily used by open
source projects, and we remain committed to supporting them.

- Implementation of caching logic to save and restore Gradle User Home
content has been removed, replaced by the `gradle-actions-caching`
component.
- The `@actions/caching` library is still used to cache Gradle
distributions that are downloaded and provisioned by `setup-gradle`.
This PR updates to the latest version of `@actions/caching`, and removes
the patch that is no longer required.
- License notices are now displayed in documentation, logs and the
generated Job Summary.
2026-03-18 14:57:27 -06:00
Daz DeBoer c999154b1f Remove configuration-cache support (#884)
Removes support for configuration-cache extraction and restore from the
caching workflow and related source code. Configuration-cache support
only worked for a limited set of projects (gradle/actions#21), and we
plan to reimplement this properly as part of the
`gradle-actions-caching` project.

The main impact is simplification of the caching logic, focusing only on
common Gradle artifacts. The `ConfigurationCacheEntryExtractor` class
and related logic were deleted from
`sources/src/caching/gradle-home-extry-extractor.ts`.
2026-03-18 14:27:09 -06:00
dependabot[bot]andJérôme Prinet 03ee1e1693 Bump the github-actions group across 3 directories with 5 updates (#880)
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.2.0` | `6.3.0` |
| [tj-actions/changed-files](https://github.com/tj-actions/changed-files) | `47.0.4` | `47.0.5` |
| [github/codeql-action](https://github.com/github/codeql-action) | `4.32.4` | `4.32.6` |
| [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) | `6.3.0` | `7.0.0` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `8.0.0` | `8.0.1` |

Bumps the github-actions group with 1 update in the /.github/actions/build-dist directory: [actions/setup-node](https://github.com/actions/setup-node).
Bumps the github-actions group with 1 update in the /.github/actions/init-integ-test directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/setup-node` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/6044e13b5dc448c55e2357c09f80417699197238...53b83947a5a98c8d113130e565377fae1a50d02f)

Updates `tj-actions/changed-files` from 47.0.4 to 47.0.5
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/7dee1b0c1557f278e5c7dc244927139d78c0e22a...22103cc46bda19c2b464ffe86db46df6922fd323)

Updates `github/codeql-action` from 4.32.4 to 4.32.6
- [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/89a39a4e59826350b863aa6b6252a07ad50cf83e...0d579ffd059c29b07949a3cce3983f0780820c98)

Updates `crazy-max/ghaction-import-gpg` from 6.3.0 to 7.0.0
- [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases)
- [Commits](https://github.com/crazy-max/ghaction-import-gpg/compare/e89d40939c28e39f97cf32126055eeae86ba74ec...2dc316deee8e90f13e1a351ab510b4d5bc0c82cd)

Updates `actions/download-artifact` from 8.0.0 to 8.0.1
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c)

Updates `actions/setup-node` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/6044e13b5dc448c55e2357c09f80417699197238...53b83947a5a98c8d113130e565377fae1a50d02f)

Updates `actions/download-artifact` from 8.0.0 to 8.0.1
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: tj-actions/changed-files
  dependency-version: 47.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.32.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: crazy-max/ghaction-import-gpg
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-03-16 17:07:46 +01:00
bot-githubaction 0ec8ab4e61 [bot] Update dist directory 2026-03-16 15:57:21 +00:00
dependabot[bot] e9f7b35003 Bump the npm-dependencies group in /sources with 6 updates (#879)
Bumps the npm-dependencies group in /sources with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@jest/globals](https://github.com/jestjs/jest/tree/HEAD/packages/jest-globals) | `30.2.0` | `30.3.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.3.5` | `25.5.0` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.56.1` | `8.57.0` |
| [esbuild](https://github.com/evanw/esbuild) | `0.27.3` | `0.27.4` |
| [eslint](https://github.com/eslint/eslint) | `10.0.2` | `10.0.3` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.2.0` | `30.3.0` |


Updates `@jest/globals` from 30.2.0 to 30.3.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.3.0/packages/jest-globals)

Updates `@types/node` from 25.3.5 to 25.5.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 8.56.1 to 8.57.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.0/packages/eslint-plugin)

Updates `esbuild` from 0.27.3 to 0.27.4
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.3...v0.27.4)

Updates `eslint` from 10.0.2 to 10.0.3
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.2...v10.0.3)

Updates `jest` from 30.2.0 to 30.3.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.3.0/packages/jest)

---
updated-dependencies:
- dependency-name: "@jest/globals"
  dependency-version: 30.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-version: 25.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: esbuild
  dependency-version: 0.27.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: jest
  dependency-version: 30.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 16:56:24 +01:00
github-actions[bot]andbot-githubaction 092fa96ff7 Update known wrapper checksums (#881)
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-16 16:55:58 +01:00
dependabot[bot] 39bfbcf1a9 Bump the github-actions group across 3 directories with 3 updates (#867)
Bumps the github-actions group with 3 updates in the / directory: [gradle/actions](https://github.com/gradle/actions), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/build-dist directory: [actions/upload-artifact](https://github.com/actions/upload-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/init-integ-test directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `gradle/actions` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/f29f5a9d7b09a7c6b29859002d29d24e1674c884...0723195856401067f7a2779048b490ace7a47d7c)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-12 13:52:50 -06:00
bot-githubaction 9b2e353921 [bot] Update dist directory 2026-03-12 19:52:05 +00:00
dependabot[bot] 41b9789f1f Bump @types/node (#877)
Bumps the npm-dependencies group with 1 update in the /sources directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 25.3.3 to 25.3.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-12 13:51:13 -06:00
github-actions[bot]andbot-githubaction 5e8b335505 Update known wrapper checksums (#878)
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-12 13:50:30 -06:00
a3dd0763dc Dependency updates (#876)
* Bump Gradle Wrapper from 9.3.1 to 9.4.0.

Release notes of Gradle 9.4.0 can be found here:
https://docs.gradle.org/9.4.0/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>

* Bump the github-actions group across 3 directories with 3 updates

Bumps the github-actions group with 3 updates in the / directory: [gradle/actions](https://github.com/gradle/actions), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/build-dist directory: [actions/upload-artifact](https://github.com/actions/upload-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/init-integ-test directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `gradle/actions` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/f29f5a9d7b09a7c6b29859002d29d24e1674c884...0723195856401067f7a2779048b490ace7a47d7c)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump the npm-dependencies group in /sources with 3 updates

Bumps the npm-dependencies group in /sources with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [dedent](https://github.com/dmnd/dedent) and [globals](https://github.com/sindresorhus/globals).


Updates `@types/node` from 25.3.2 to 25.3.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `dedent` from 1.7.1 to 1.7.2
- [Release notes](https://github.com/dmnd/dedent/releases)
- [Changelog](https://github.com/dmnd/dedent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dmnd/dedent/compare/v1.7.1...v1.7.2)

Updates `globals` from 17.3.0 to 17.4.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v17.3.0...v17.4.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: dedent
  dependency-version: 1.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: globals
  dependency-version: 17.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-06 09:32:11 -07:00
bot-githubaction b8b4104aef [bot] Update dist directory 2026-03-03 22:32:52 +00:00
Iñaki Villar b84bcb3369 Update known wrapper checksums (#868)
Automatically generated pull request to update the known wrapper
checksums.

In case of conflicts, manually run the workflow from the [Actions
tab](https://github.com/gradle/actions/actions/workflows/update-checksums-file.yml),
the changes will then be force-pushed onto this pull request branch.
Do not manually update the pull request branch; those changes might get
overwritten.

> [!IMPORTANT]  
> GitHub workflows have not been executed for this pull request yet.
Before merging, close and then directly reopen this pull request to
trigger the workflows.
2026-03-03 14:32:08 -08:00
Iñaki Villar 342e94ec9a Bump the npm-dependencies group in /sources with 2 updates (#866)
Bumps the npm-dependencies group in /sources with 2 updates:
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
and [eslint](https://github.com/eslint/eslint).

Updates `@types/node` from 25.3.0 to 25.3.2
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.0.1 to 10.0.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.0.2</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2b723616a4daeacd4605f11b4d087d4a7cae5c74"><code>2b72361</code></a>
fix: update <code>ajv</code> to <code>6.14.0</code> to address security
vulnerabilities (<a
href="https://redirect.github.com/eslint/eslint/issues/20537">#20537</a>)
(루밀LuMir)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/13eeedbbd16218b0da1425b78cb284937fd964ca"><code>13eeedb</code></a>
docs: link rule type explanation to CLI option --fix-type (<a
href="https://redirect.github.com/eslint/eslint/issues/20548">#20548</a>)
(Mike McCready)</li>
<li><a
href="https://github.com/eslint/eslint/commit/98cbf6ba53a1fb2028d25078c7049a538d0e392c"><code>98cbf6b</code></a>
docs: update migration guide per Program range change (<a
href="https://redirect.github.com/eslint/eslint/issues/20534">#20534</a>)
(Huáng Jùnliàng)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61a24054411fa56ce74bef554846caa9d8cb01f5"><code>61a2405</code></a>
docs: add missing semicolon in vars-on-top rule example (<a
href="https://redirect.github.com/eslint/eslint/issues/20533">#20533</a>)
(Abilash)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/951223b29669885643f7854d7c824288ba962d7e"><code>951223b</code></a>
chore: update dependency <code>@​eslint/eslintrc</code> to ^3.3.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/20553">#20553</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/6aa1afe6694f3fd7f82116109a5ef2ad18ece074"><code>6aa1afe</code></a>
chore: update dependency eslint-plugin-jsdoc to ^62.7.0 (<a
href="https://redirect.github.com/eslint/eslint/issues/20536">#20536</a>)
(Milos Djermanovic)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/55122d6f971119607c85b0df8e62942171c939f7"><code>55122d6</code></a>
10.0.2</li>
<li><a
href="https://github.com/eslint/eslint/commit/80f1e29ec87c07a1cef789c718d6167da59f35f6"><code>80f1e29</code></a>
Build: changelog update for 10.0.2</li>
<li><a
href="https://github.com/eslint/eslint/commit/951223b29669885643f7854d7c824288ba962d7e"><code>951223b</code></a>
chore: update dependency <code>@​eslint/eslintrc</code> to ^3.3.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/20553">#20553</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/13eeedbbd16218b0da1425b78cb284937fd964ca"><code>13eeedb</code></a>
docs: link rule type explanation to CLI option --fix-type (<a
href="https://redirect.github.com/eslint/eslint/issues/20548">#20548</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6aa1afe6694f3fd7f82116109a5ef2ad18ece074"><code>6aa1afe</code></a>
chore: update dependency eslint-plugin-jsdoc to ^62.7.0 (<a
href="https://redirect.github.com/eslint/eslint/issues/20536">#20536</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2b723616a4daeacd4605f11b4d087d4a7cae5c74"><code>2b72361</code></a>
fix: update <code>ajv</code> to <code>6.14.0</code> to address security
vulnerabilities (<a
href="https://redirect.github.com/eslint/eslint/issues/20537">#20537</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/98cbf6ba53a1fb2028d25078c7049a538d0e392c"><code>98cbf6b</code></a>
docs: update migration guide per Program range change (<a
href="https://redirect.github.com/eslint/eslint/issues/20534">#20534</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61a24054411fa56ce74bef554846caa9d8cb01f5"><code>61a2405</code></a>
docs: add missing semicolon in vars-on-top rule example (<a
href="https://redirect.github.com/eslint/eslint/issues/20533">#20533</a>)</li>
<li>See full diff in <a
href="https://github.com/eslint/eslint/compare/v10.0.1...v10.0.2">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| @types/node | [>= 22.a, < 23] |
</details>


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>
2026-03-02 15:12:11 -08:00
bot-githubaction 9a834d769a Update known wrapper checksums 2026-02-28 05:38:21 +00:00
dependabot[bot] 626cd96bc6 Bump the npm-dependencies group in /sources with 2 updates
Bumps the npm-dependencies group in /sources with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [eslint](https://github.com/eslint/eslint).


Updates `@types/node` from 25.3.0 to 25.3.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 10.0.1 to 10.0.2
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.1...v10.0.2)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.0.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 23:04:42 +00:00
163 changed files with 8386 additions and 7474 deletions

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
@@ -23,7 +23,7 @@ runs:
cp -r sources/dist .
- name: Upload distribution
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/
+2 -2
View File
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
@@ -23,7 +23,7 @@ runs:
# Downloads a 'dist' directory artifact that was uploaded in an earlier 'build-dist' step
- name: Download dist
if: ${{ env.SKIP_DIST != 'true' && !env.ACT }}
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist/
+11 -5
View File
@@ -16,11 +16,17 @@ updates:
patterns:
- "*"
ignore:
# Keep actions/cache and actions/artifact major aligned and force actions/cache version to match patch
- dependency-name: "*actions/cache*"
- dependency-name: "*actions/artifact*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- dependency-name: "typescript"
versions: ["7.x"]
- dependency-name: "@types/node"
versions: ["25.x", "26.x"]
# jest 30.5.0 reworked the ESM module registry, and nock no longer intercepts requests
# made through @actions/http-client (undici): every mocked test silently hits the real
# network instead. nock 15 does not fix it. Drop these two once they interoperate again.
- dependency-name: "jest"
versions: [">=30.5.0"]
- dependency-name: "@jest/globals"
versions: [">=30.5.0"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
+3
View File
@@ -3,3 +3,6 @@
# Ignore Gradle build output directory
build
# Marker file written when the 'test' task is configured
task-configured.txt
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=dce76f55f8e251a3a1f130eb120f30b3d271de2b76c9b0729d316b5a1b6dc01f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -19,12 +19,39 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
goto fail
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,35 +87,26 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
goto fail
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+3 -3
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+12 -23
View File
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.1"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+3 -3
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+12 -23
View File
@@ -19,12 +19,12 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,29 +65,18 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.3.2"
id("com.gradle.develocity") version "4.5.1"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.1"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.1"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.5.1"
}
develocity {
+4 -4
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
dist/**
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
with:
languages: ${{ matrix.language }}
config: |
@@ -43,4 +43,4 @@ jobs:
- sources/src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
+21 -7
View File
@@ -8,10 +8,6 @@ on:
paths-ignore:
- 'dist/**'
pull_request:
paths:
- '.github/workflows/ci-init-script-check.yml'
- 'sources/src/resources/init-scripts/**'
- 'sources/test/init-scripts/**'
workflow_dispatch:
permissions:
@@ -22,17 +18,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# Detect whether anything relevant to the init-script tests changed.
# The workflow always runs (so it always reports a status check, making it safe
# to mark as required), but the heavy steps below are skipped on pull requests
# that don't touch the init-scripts. Pushes and manual runs always execute fully.
- name: Check for relevant changes
id: changes
if: github.event_name == 'pull_request'
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
.github/workflows/ci-init-script-check.yml
sources/src/resources/init-scripts/**
sources/test/init-scripts/**
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
- name: Run integration tests
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
working-directory: sources/test/init-scripts
run: ./gradlew check
+28 -8
View File
@@ -5,35 +5,55 @@ on:
push:
branches:
- 'main'
- 'bot/gradle-actions-caching'
paths:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
- 'sources/vendor/gradle-actions-caching/**'
permissions:
contents: read
jobs:
smoke-tests:
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching
cancel-in-progress: false
with:
skip-dist: true
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-full
group: CI-integ-test-caching
cancel-in-progress: false
with:
runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist: true
secrets: inherit
other-integ-tests:
permissions:
contents: write
actions: read
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
group: CI-integ-test-full
group: CI-integ-test-other
cancel-in-progress: false
with:
skip-dist: true
secrets: inherit
dependency-submission-integ-tests:
permissions:
contents: write
needs: other-integ-tests
uses: ./.github/workflows/suite-integ-test-dependency-submission.yml
concurrency:
group: CI-integ-test-dependency-submission
cancel-in-progress: false
with:
runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist: true
secrets: inherit
+55 -7
View File
@@ -11,10 +11,6 @@ on:
paths-ignore:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
permissions:
contents: read
@@ -23,14 +19,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
smoke-tests:
needs: build-distribution
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
@@ -38,8 +47,47 @@ jobs:
other-integ-tests:
permissions:
contents: write
needs: build-distribution
actions: read
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
group: CI-integ-test-other-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
dependency-submission-integ-tests:
permissions:
contents: write
needs: other-integ-tests
uses: ./.github/workflows/suite-integ-test-dependency-submission.yml
concurrency:
group: CI-integ-test-dependency-submission-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
# Aggregate gate: a single check that succeeds only when all integ-test jobs succeed.
# Require this one check in branch protection instead of every fanned-out matrix job.
integ-test-success:
if: ${{ always() }}
needs:
- build-distribution
- smoke-tests
- caching-integ-tests
- other-integ-tests
- dependency-submission-integ-tests
runs-on: ubuntu-latest
steps:
- name: Fail if any integ-test job failed or was cancelled
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One or more integ-test jobs did not succeed:"
echo " build-distribution: ${{ needs.build-distribution.result }}"
echo " smoke-tests: ${{ needs.smoke-tests.result }}"
echo " caching-integ-tests: ${{ needs.caching-integ-tests.result }}"
echo " other-integ-tests: ${{ needs.other-integ-tests.result }}"
echo " dependency-submission-integ-tests: ${{ needs.dependency-submission-integ-tests.result }}"
exit 1
+3 -9
View File
@@ -21,13 +21,13 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
show-progress: false
- name: 'Run analysis'
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
@@ -44,14 +44,8 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: 'Upload artifact'
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: 'Upload to code-scanning'
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
with:
sarif_file: results.sarif
+5 -5
View File
@@ -23,14 +23,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -61,7 +61,7 @@ jobs:
cp -r sources/dist .
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
@@ -73,7 +73,7 @@ jobs:
# Important: The push event will not trigger any other workflows, see
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: bot-githubaction <bot-githubaction@gradle.com>
commit_user_name: bot-githubaction
+24
View File
@@ -0,0 +1,24 @@
name: ci-validate-typings.yml
on:
push:
branches:
- 'main'
- 'release/**'
paths-ignore:
- 'dist/**'
pull_request:
permissions:
contents: read
jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
.github/actions/build-dist/action.yml
.github/actions/init-integ-test/action.yml
action.yml
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: gradle/actions/wrapper-validation@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+165 -6
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -46,7 +46,7 @@ jobs:
run: |
./gradlew tasks --no-daemon
./gradlew help check
./gradlew wrapper --gradle-version 8.7 --gradle-distribution-sha256-sum 544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
./gradlew :wrapper --gradle-version 8.7 --gradle-distribution-sha256-sum 544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
- name: Fail groovy-dsl project
working-directory: .github/workflow-samples/groovy-dsl
continue-on-error: true
@@ -57,12 +57,85 @@ jobs:
build-root-directory: .github/workflow-samples/groovy-dsl
dependency-graph: generate-and-upload
# Exercises every Gradle version support status in a single Job Summary: end-of-life versions all
# share one expandable section and are each marked with a warning sign, out-of-date versions share
# a single info sign and legend, and the current version is left unmarked.
# Three end-of-life versions and two out-of-date ones exercise the plural wording throughout, and
# the two 7.x versions alongside a 6.x one check that each affected release line is named once,
# as "Gradle 6.x and 7.x releases".
# Versions are picked relative to Gradle 9.x being current; revisit once Gradle 10 is released.
support-status-eol-and-outdated:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Java 11, since Gradle 6.x cannot run on the Java 17 used elsewhere in this workflow.
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
java-version: '11'
- name: Setup Gradle 6.9.4 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '6.9.4'
- name: Build with Gradle 6.9.4
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 7.4 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '7.4'
- name: Build with Gradle 7.4
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 7.6.6 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '7.6.6'
- name: Build with Gradle 7.6.6
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 8.0.2 (out of date)
uses: ./setup-gradle
with:
gradle-version: '8.0.2'
- name: Build with Gradle 8.0.2
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 8.14.5 (out of date)
uses: ./setup-gradle
with:
gradle-version: '8.14.5'
- name: Build with Gradle 8.14.5
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
# Gradle 9 and later require Java 17
- name: Setup Java 17
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle current (no status reported)
uses: ./setup-gradle
with:
gradle-version: current
- name: Build with the current Gradle version
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
successful-builds-with-no-summary:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +176,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -114,3 +187,89 @@ jobs:
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
cache-disabled:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-disabled: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
cache-provider-external:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: external
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
basic-caching:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: basic
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
terms-of-use-accepted:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
build-scan-terms-of-use-url: https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree: yes
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
develocity-access-key-set:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -62,7 +62,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build with 3.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1" build
# Second build will use the cache from the first build, but cleanup should remove unused artifacts
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
cache-read-only: false
cache-cleanup: 'on-success'
- name: Build with 3.1.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1.1" build
# Third build will restore cache entry from second, and verify stale content removed
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -105,7 +105,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -129,7 +129,31 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
# Test that build scans are captured when caching is external
caching-config-cache-provider-external:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: external
- name: Build using Gradle wrapper
id: gradle
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -146,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +194,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -80,7 +80,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -123,7 +123,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -160,7 +160,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -178,7 +178,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Download dependency-graph artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: downloaded-dependency-graphs
pattern: dependency-graph_*dependency-graph-generate-submit-and-upload.json
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -58,7 +58,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -104,7 +104,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -124,7 +124,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -255,7 +255,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -272,7 +272,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -309,7 +309,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -350,7 +350,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -382,7 +382,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -401,7 +401,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,20 +60,24 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java 16
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: 'temurin'
java-version: 16
# Temurin 16 is EOL and publishes no signatures: setup-java v6 enables verify-signature by default
verify-signature: false
- name: Setup Java 20
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: 'temurin'
java-version: 20
# Temurin 20 is EOL and publishes no signatures: setup-java v6 enables verify-signature by default
verify-signature: false
- name: Setup Gradle
uses: ./setup-gradle
- name: List detected toolchains
@@ -0,0 +1,148 @@
name: Test Gradle support status reporting
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: gradle-support-status-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
report-outdated-versions:
runs-on: ubuntu-latest
outputs:
prev-oldest: ${{ steps.versions.outputs.prev-oldest }}
prev-newest: ${{ steps.versions.outputs.prev-newest }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
# Derived from the bundled release data so the expectations cannot drift from the action's own view.
- name: Determine versions for each support status
id: versions
run: |
set -euo pipefail
eval "$(jq -r '
[ .[].version
| select(test("^[0-9]+\\.[0-9]+(\\.[0-9]+)?$"))
| {v: ., k: (((split(".") | map(tonumber)) + [0, 0, 0]) | .[0:3])}
]
| sort_by(.k) as $finals
| ($finals | last) as $latest
| [$finals[] | select(.k[0] == $latest.k[0] - 1)] as $prev
| "KNOWN_LATEST=\($latest.v)",
"PREV_OLDEST=\($prev | first | .v)",
"PREV_NEWEST=\($prev | last | .v)"
' sources/src/wrapper-validation/wrapper-checksums.json)"
echo "Known latest : ${KNOWN_LATEST}"
echo "Previous major, oldest : ${PREV_OLDEST}"
echo "Previous major, newest : ${PREV_NEWEST}"
{
echo "prev-oldest=${PREV_OLDEST}"
echo "prev-newest=${PREV_NEWEST}"
} >> "$GITHUB_OUTPUT"
- name: Setup Gradle with an end-of-life version
uses: ./setup-gradle
with:
cache-read-only: false
gradle-version: '7.6.4'
- name: Build with the end-of-life version
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=7.6.4"
- name: Setup Gradle with the oldest release of the previous major
uses: ./setup-gradle
with:
gradle-version: ${{ steps.versions.outputs.prev-oldest }}
- name: Build with the oldest release of the previous major
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=${{ steps.versions.outputs.prev-oldest }}"
- name: Setup Gradle with the newest release of the previous major
uses: ./setup-gradle
with:
gradle-version: ${{ steps.versions.outputs.prev-newest }}
- name: Build with the newest release of the previous major
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=${{ steps.versions.outputs.prev-newest }}"
verify-report:
needs: report-outdated-versions
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: Check the support-status report was emitted
env:
GH_TOKEN: ${{ github.token }}
PREV_OLDEST: ${{ needs.report-outdated-versions.outputs.prev-oldest }}
PREV_NEWEST: ${{ needs.report-outdated-versions.outputs.prev-newest }}
run: |
set -euo pipefail
job_id=$(gh api \
"/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}/jobs" \
--paginate --jq '.jobs[] | select(.name | endswith("report-outdated-versions")) | .id')
if [ -z "$job_id" ]; then
echo "Could not find the 'report-outdated-versions' Job in this workflow run"
exit 1
fi
gh api --allow-escape-sequences "/repos/${GITHUB_REPOSITORY}/actions/jobs/${job_id}/logs" > job.log
assert_logged() {
if ! grep -qF -- "$1" job.log; then
echo "Expected the Job log to contain: $1"
echo "--- support-status output found instead ---"
grep -E '##\[(warning|notice)\]|<summary>:warning:|consider upgrading' job.log || echo "(none)"
exit 1
fi
}
refute_logged() {
if grep -qF -- "$1" job.log; then
echo "Did not expect the Job log to contain: $1"
exit 1
fi
}
# The runner renders '::warning::'/'::notice::' into the log as '##[warning]'/'##[notice]'.
assert_logged "##[warning]Gradle 7.6.4 is end-of-life"
assert_logged "##[notice]Gradle ${PREV_OLDEST} is out of date: consider updating to the latest Gradle version."
assert_logged "##[notice]Gradle ${PREV_NEWEST} is out of date: consider updating to the latest Gradle version."
# Out-of-date versions get a notice, never a warning.
refute_logged "##[warning]Gradle ${PREV_OLDEST}"
refute_logged "##[warning]Gradle ${PREV_NEWEST}"
# The job summary is echoed to the log, so the rendered report can be checked directly.
assert_logged "<summary>:warning: Gradle 7.6.4 is end-of-life</summary>"
assert_logged "Update to the latest Gradle version."
assert_logged "<a href=\"https://gradle.org/security-subscription/?utm_source=github-action\">Gradle Security Subscription</a>"
# Table signs: a warning for end-of-life, the info sign for everything still supported.
assert_logged "<td align='center'>7.6.4 :warning:</td>"
assert_logged "<td align='center'>${PREV_OLDEST} :information_source:</td>"
assert_logged "<td align='center'>${PREV_NEWEST} :information_source:</td>"
# One legend for the whole job, no matter how many versions carry the info sign.
legends=$(grep -cF -- "consider upgrading" job.log || true)
if [ "$legends" != "1" ]; then
echo "Expected exactly one upgrade legend, found ${legends}"
exit 1
fi
assert_logged "<p>:information_source: Gradle version is out of date — consider upgrading. See <a href=\"https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support\">Gradle release lifecycle</a></p>"
@@ -30,7 +30,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.3.2']
plugin-version: ['3.16.2', '4.5.1']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,7 +43,7 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.3.2'
- plugin-version: '4.5.1'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -72,7 +72,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -92,7 +92,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.3.2']
plugin-version: ['3.16.2', '4.5.1']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -129,7 +129,7 @@ jobs:
run: "[ ${#GRADLE_ENTERPRISE_ACCESS_KEY} -gt 500 ] || (echo 'GRADLE_ENTERPRISE_ACCESS_KEY does not look like a short lived token'; exit 1)"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -148,7 +148,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.3.2' ]
plugin-version: [ '3.16.2', '4.5.1' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -191,7 +191,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.3.2' ]
plugin-version: [ '3.16.2', '4.5.1' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -225,7 +225,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=7.1.1"
# Configure JDK 17 for Gradle 9 and later
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
@@ -77,7 +77,7 @@ jobs:
run: gradle help
- name: Check current version output parameter
if: ${{ !startsWith(steps.gradle-current.outputs.gradle-version , '9.') }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')
@@ -105,12 +105,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
@@ -122,7 +122,7 @@ jobs:
gradle-version: ${{ matrix.gradle }}
- name: Check output parameter
if: ${{ steps.setup-gradle.outputs.gradle-version != matrix.gradle }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.setup-gradle.outputs.gradle-version }}"')
@@ -132,7 +132,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -1,235 +0,0 @@
name: Test restore configuration-cache
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
secrets:
GRADLE_ENCRYPTION_KEY:
required: true
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: restore-configuration-cache-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
restore-cc-seed-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-verify-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false
cache-cleanup: on-success
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Ensure that cache-cleanup doesn't remove all necessary files
restore-cc-verify-no-cache-cleanup-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-verify-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Check that the build can run when no extracted cache entries are restored
restore-cc-gradle-user-home-not-fully-restored:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_x
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with no extracted cache entries restored
uses: ./setup-gradle
env:
GRADLE_BUILD_ACTION_SKIP_RESTORE: "generated-gradle-jars|wrapper-zips|java-toolchains|instrumented-jars|dependencies|kotlin-dsl"
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Check execute Gradle build with configuration cache enabled (but not restored)
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-seed-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'help' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle help --configuration-cache
restore-cc-modify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
# Test restore configuration-cache from the third build invocation
restore-cc-verify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-modify-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' again with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/kotlin-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,7 +43,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,29 +43,6 @@ jobs:
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
restore-gradle-home-dependencies-cache:
needs: restore-gradle-home-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
# Test that the gradle-user-home cache will cache and restore local build-cache
restore-gradle-home-build-cache:
needs: restore-gradle-home-seed-build
@@ -77,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -12,6 +12,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: wrapper-validation- # Avoid loading cache entries from other tests, that may have cached allowed wrapper checksums
permissions:
contents: read
@@ -25,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -48,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -110,7 +111,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
.github
dist
wrapper-validation
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -118,10 +125,8 @@ jobs:
id: action-test
uses: ./wrapper-validation
with:
# to allow the invalid wrapper jar present in test data
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
min-wrapper-count: 11
# Expected to fail; validated below
min-wrapper-count: 7
# There are only 6 wrappers in workflow-samples, so expected to fail
continue-on-error: true
- name: Check outcome
@@ -140,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
@@ -0,0 +1,70 @@
name: Smoke test basic caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-basic-caching-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
basic-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: false # For testing, allow writing cache entries on non-default branches
# Basic caching does no daemon management, so the workflow must ensure no daemon is left
# holding locks on the Gradle User Home when the post-action save runs. Without this, `tar`
# cannot read the Gradle '*.lock' files on Windows and the cache entry is never saved.
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --no-daemon
basic-cache-verify-build:
needs: basic-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --offline
@@ -0,0 +1,67 @@
name: Smoke test enhanced caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-enhanced-caching-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: smoke-test-enhanced-caching
permissions:
contents: read
jobs:
enhanced-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build using Gradle wrapper
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
enhanced-cache-verify-build:
needs: enhanced-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
+12 -8
View File
@@ -26,14 +26,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
restore-configuration-cache:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
with:
skip-dist: ${{ inputs.skip-dist }}
secrets:
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
restore-containerized-gradle-home:
uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
with:
@@ -53,3 +45,15 @@ jobs:
uses: ./.github/workflows/integ-test-restore-java-toolchain.yml
with:
skip-dist: ${{ inputs.skip-dist }}
sample-kotlin-dsl:
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-gradle-plugin:
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -0,0 +1,43 @@
name: suite-integ-test-dependency-submission
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
+8 -39
View File
@@ -20,33 +20,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
develocity-injection:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-inject-develocity.yml
@@ -55,24 +28,20 @@ jobs:
secrets:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
gradle-support-status:
permissions:
contents: read
actions: read
uses: ./.github/workflows/integ-test-gradle-support-status.yml
with:
skip-dist: ${{ inputs.skip-dist }}
provision-gradle-versions:
uses: ./.github/workflows/integ-test-provision-gradle-versions.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-kotlin-dsl:
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-gradle-plugin:
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
toolchain-detection:
uses: ./.github/workflows/integ-test-detect-toolchains.yml
with:
@@ -0,0 +1,27 @@
name: suite-smoke-test-caching
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
enhanced-caching:
uses: ./.github/workflows/smoke-test-enhanced-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-caching:
uses: ./.github/workflows/smoke-test-basic-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
+5 -5
View File
@@ -19,12 +19,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -38,7 +38,7 @@ jobs:
working-directory: sources
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
@@ -48,7 +48,7 @@ jobs:
# If there are no changes, this action will not create a pull request
- name: Create or update pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: bot/wrapper-checksums-update
author: bot-githubaction <bot-githubaction@gradle.com>
+2
View File
@@ -1,2 +1,4 @@
.git
.vscode
.claude
.idea
+3 -3
View File
@@ -1,4 +1,4 @@
# Configuration file for asdf version manager
nodejs 24.3.0
gradle 8.14.2
java liberica-11.0.26+9
nodejs 24.18.0
gradle 9.7.1
java liberica-17.0.14+10
+34
View File
@@ -0,0 +1,34 @@
# Workspace Instructions
## Vendored Library Flow
This repository uses a proprietary caching library: `gradle-actions-caching`.
- The vendored copy lives at `sources/vendor/gradle-actions-caching`
- The source code is at `../actions-caching` and https://github.com/gradle/actions-caching
When a task involves building, updating, validating, or testing the vendored `gradle-actions-caching` library, use this sequence:
1. Run `npm run build` in `actions-caching`.
2. Copy (overwrite) the contents of `actions-caching/dist/` onto `sources/vendor/gradle-actions-caching/`. (No need to rm the existing contents)
3. Then continue with any build, test, or validation steps in this repository.
Do not treat `actions/sources/vendor/gradle-actions-caching` as the source of truth. The source of truth is `actions-caching`, and the vendor directory must be refreshed from its `dist/` output after rebuilding.
## Building
Before running any build or npm commands, initialize the PATH:
```sh
source ~/.zshrc
```
To build this repository, run the `build` script at the root of that repository with no arguments:
```sh
./build
```
## dist directory
Never make direct changes to the 'dist' directory. Building with npm will populate 'sources/dist' which is enough. There is a CI workflow that will update the 'dist' directory when required.
+50
View File
@@ -0,0 +1,50 @@
# Distribution and Licensing of gradle/actions
This document provides a clear breakdown of the components within the `gradle/actions` repository, their respective licenses, and how we handle data and privacy. Our goal is to provide the best possible experience for running Gradle on GitHub Actions while maintaining our commitment to the open-source community.
## 1. Component Map
The `gradle/actions` project consists of three primary components:
| Component | License | Source | Description |
| :--- | :--- | :--- | :--- |
| **Action Runner** | **[MIT](LICENSE)** | Open | The core action logic: configures a local Gradle installation, performs wrapper validation, and reports on Gradle build execution. |
| **[Basic Caching](docs/setup-gradle.md#basic-caching)** | **[MIT](LICENSE)** | Open | Configures basic Gradle User Home caching using 'actions/cache'. |
| **[Enhanced Caching](docs/setup-gradle.md#enhanced-caching)** | **[Proprietary](licenses/gradle-actions-caching-license.txt)** | Closed | Uses the 'gradle-actions-caching' library to provide fine-grained caching of Gradle User Home, intelligent cache cleanup and other advanced features. |
By default, **Enhanced Caching** is enabled to provide the best experience.
## 2. The "Safe Harbor" Clause (Data Privacy)
The proprietary components of this action are governed by the **[Gradle Technologies Terms of Use](https://gradle.com/legal/gradle-technologies-terms-of-use/)**. We have updated these terms to include a specific safe harbor for users of `gradle-actions-caching`.
> **Plain English Summary:** Gradle does not claim ownership of any code, build artifacts, or other content processed by the caching library. These remain your sole property. We only use metadata (like cache keys) to facilitate the caching service.
## 3. Usage Tiers
To support the development of high-performance CI tooling, we offer the following usage model:
* **Public Repositories:**
* Both **Basic** and **Enhanced** caching are free forever. We are committed to supporting the open-source ecosystem at no cost.
* **Private Repositories:**
* **Basic Caching** is free forever under the MIT license.
* **Enhanced Caching** is currently in a **Free Preview** phase. We plan to introduce usage-based pricing for large-scale commercial organizations in the future.
While we haven't finalized specific usage thresholds yet, our intent is to keep Enhanced Caching free for individual developers and small teams. We are currently in a learning phase to ensure that future restrictions are focused on large-scale commercial users of the product. No matter how these limits evolve, the open-source Basic Caching provider will always remain a free, functional alternative for everyone.
## 4. Your Choice: Basic vs. Enhanced
We believe in user autonomy. If you do not wish to use proprietary code or accept the Gradle Technologies Terms of Use, you can opt-out of enhanced caching with a single line of configuration:
```yaml
- uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic # Switches to the MIT-licensed open-source implementation
```
> [!IMPORTANT]
> ## Licensing notice
>
> The software in this repository, except for the bundled `gradle-actions-caching` component, is licensed under the [MIT License](LICENSE).
>
> The caching functionality in this project has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License for this repository.
>
> Use of the `gradle-actions-caching` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The `gradle-actions-caching` component is used only when enhanced caching is enabled and is not loaded or used with basic caching or when caching is disabled.
+12 -1
View File
@@ -1,3 +1,14 @@
Note on Repository Contents:
The software in this repository is primarily licensed under the MIT License (see below).
However, this repository includes a vendor-included component, 'gradle-actions-caching',
which is Proprietary and distributed under a different license:
see licenses/gradle-actions-caching-license.txt.
For a detailed breakdown of which components are Open Source (MIT) and which are
Proprietary, please refer to DISTRIBUTION.md and NOTICE.
-------------------------------------------------------------------------
The MIT License (MIT)
@@ -19,4 +30,4 @@ 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 SOFTWARE.
+11
View File
@@ -0,0 +1,11 @@
NOTICE
The software in this repository, except for the bundled `gradle-actions-caching` component, is licensed under the MIT License.
The caching functionality in this project has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License for this repository.
The `gradle-actions-caching` component is used only when enhanced caching is enabled and is not loaded or used with basic caching or when caching is disabled.
Use the `gradle-actions-caching` component is subject to a separate license, available at license/gradle-actions-caching-license.txt.
For a detailed breakdown of components, licensing tiers, and data privacy terms, see DISTRIBUTION.md.
+17 -10
View File
@@ -1,9 +1,16 @@
# GitHub Actions for Gradle builds
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/gradle/actions/badge)](https://scorecard.dev/viewer/?uri=github.com/gradle/actions)
This repository contains a set of GitHub Actions that are useful for building Gradle projects on GitHub.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](./DISTRIBUTION.md).
## The `setup-gradle` action
The `setup-gradle` action can be used to configure Gradle for optimal execution on any platform supported by GitHub Actions.
@@ -25,14 +32,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
@@ -63,14 +70,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](docs/dependency-submission.md) for more advanced usage scenarios.
@@ -98,8 +105,8 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v5
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v6
```
See the [full action documentation](docs/wrapper-validation.md) for more advanced usage scenarios.
+25 -5
View File
@@ -9,19 +9,39 @@
- If new features have been added, bump the minor version (eg `4.1.1` → `4.2.0`)
- If a new major release is required, bump the major version (eg `4.1.1` → `5.0.0`)
- Note: The gradle actions follow the GitHub Actions convention of including a .0 patch number for the first release of a minor version, unlike the Gradle convention which omits the trailing .0.
- Release immutability is a one-time repository setting (Settings → General → Releases → "Enable release immutability"), and applies to every release published thereafter.
## Release gradle/actions
- Create a tag for the release. The tag should have the format `v5.0.0`
- From CLI: `git tag -s -m "v5.0.0" v5.0.0 && git push --tags`
> [!IMPORTANT]
> Releases in this repository are [immutable](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases).
> Once a release is published, its Git tag is permanently locked to a commit and its assets can no
> longer be changed. Deleting the release does not release the tag name for reuse — a mistake in
> `v6.3.0` means the next release must be `v6.3.1`. Everything below is ordered so that the tag is
> correct *before* anything is published.
>
> Drafts are exempt: a draft release, and its tag, can still be edited or deleted freely.
- Create and push the tag for the release **before** drafting it. The tag should have the format `v6.2.0`
- Your HEAD must point at the commit to be released.
- From CLI: `git tag -s -m "v6.2.0" v6.2.0 && git push --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Do **not** let GitHub create the tag when the release is published. It creates an unsigned,
lightweight tag pointing at whatever `main` resolves to at that moment — so anything merged
while the draft was open is silently included. Immutability makes both permanent.
- Go to https://github.com/gradle/actions/releases and "Draft new release"
- Use the newly created tag and copy the tag name exactly as the release title.
- Select the existing tag — do not use "Create new tag on publish" — and copy the tag name exactly as the release title.
- Craft release notes content based on issues closed, PRs merged and commits
- Include a Full changelog link in the format https://github.com/gradle/actions/compare/v2.12.0...v3.0.0
- Finalize the notes now, while the release is still a draft.
- Publish the release.
- Force push the `v5` tag (or current major version) to point to the new release. It is conventional for users to bind to a major release version using this tag.
- From CLI: `git tag -f -s -a -m "v5.0.0" v5 v5.0.0 && git push -f --tags`
- Confirm immutability took effect: `gh api repos/gradle/actions/releases/tags/v6.2.0 --jq .immutable` should print `true`.
- Force push the `v6` tag (or current major version) to point to the new release. It is conventional for users to bind to a major release version using this tag.
- From CLI: `git tag -f -s -a -m "v6.2.0" v6 && git push -f --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Your HEAD must point at the commit to be tagged.
- Never attach a GitHub release to the `v6` tag. Immutability locks only those tags that have a
release of their own, so the major tag remains movable precisely as long as it has none.
## Post release steps
+3 -3
View File
@@ -22,14 +22,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](../docs/dependency-submission.md) for more advanced usage scenarios.
+158
View File
@@ -0,0 +1,158 @@
# Type descriptors based on https://github.com/typesafegithub/github-actions-typing
inputs:
# Gradle execution configuration
gradle-version:
type: string
build-root-directory:
type: string
dependency-resolution-task:
type: list
separator: ' '
list-item:
type: string
additional-arguments:
type: list
separator: ' '
list-item:
type: string
# Cache configuration
cache-provider:
type: enum
allowed-values:
- basic
- enhanced
cache-disabled:
type: boolean
cache-read-only:
type: boolean
cache-write-only:
type: boolean
cache-overwrite-existing:
type: boolean
cache-encryption-key:
type: string
cache-cleanup:
type: enum
allowed-values:
- never
- on-success
- always
gradle-home-cache-cleanup:
type: boolean
gradle-home-cache-includes:
type: list
separator: '\n'
list-item:
type: string
gradle-home-cache-excludes:
type: list
separator: '\n'
list-item:
type: string
# Job summary configuration
add-job-summary:
type: enum
allowed-values:
- never
- always
- on-failure
add-job-summary-as-pr-comment:
type: enum
allowed-values:
- never
- always
- on-failure
# Dependency Graph configuration
dependency-graph:
type: enum
allowed-values:
- generate-and-submit
- generate-submit-and-upload
- generate-and-upload
- download-and-submit
dependency-graph-report-dir:
type: string
dependency-graph-continue-on-failure:
type: boolean
dependency-graph-exclude-projects:
type: string
dependency-graph-include-projects:
type: string
dependency-graph-exclude-configurations:
type: string
dependency-graph-include-configurations:
type: string
artifact-retention-days:
type: integer
# Build Scan configuration
build-scan-publish:
type: boolean
build-scan-terms-of-use-url:
type: enum
allowed-values:
- https://gradle.com/terms-of-service
- https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- yes
develocity-access-key:
type: string
develocity-token-expiry:
type: integer
# Wrapper validation configuration
validate-wrappers:
type: boolean
allow-snapshot-wrappers:
type: boolean
# Experimental action inputs
gradle-home-cache-strict-match:
type: boolean
# Internal action inputs
workflow-job-context:
type: string
github-token:
type: string
outputs:
build-scan-url:
type: string
dependency-graph-file:
type: string
gradle-version:
type: string
+9
View File
@@ -26,6 +26,15 @@ inputs:
required: false
# Cache configuration
cache-provider:
description: |
Specifies the caching implementation to use.
'enhanced' (default) uses the full-featured commercial caching service (gradle-actions-caching).
'basic' uses a simple open-source caching implementation based on GitHub Actions cache.
'external' disables Gradle User Home caching by this action, for use when Gradle User Home is already saved and restored by another mechanism (e.g. Develocity Artifact Cache).
required: false
default: 'enhanced'
cache-disabled:
description: When 'true', all caching is disabled. No entries will be written to or read from the cache.
required: false
+191 -337
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var wMt=Object.create;var vP=Object.defineProperty;var NMt=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var RMt=Object.getPrototypeOf,DMt=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var xMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)vP(t,r,{get:e[r],enumerable:!0})},hTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of SMt(e))!DMt.call(t,s)&&s!==r&&vP(t,s,{get:()=>e[s],enumerable:!(n=NMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?wMt(RMt(t)):{},hTe(e||!t||!t.__esModule?vP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>hTe(vP({},"__esModule",{value:!0}),t);var ITe=f(eb=>{"use strict";var Uyn=B("net"),LMt=B("tls"),$K=B("http"),mTe=B("https"),UMt=B("events"),Pyn=B("assert"),PMt=B("util");eb.httpOverHttp=_Mt;eb.httpsOverHttp=OMt;eb.httpOverHttps=HMt;eb.httpsOverHttps=qMt;function _Mt(t){var e=new _f(t);return e.request=$K.request,e}function OMt(t){var e=new _f(t);return e.request=$K.request,e.createSocket=ETe,e.defaultPort=443,e}function HMt(t){var e=new _f(t);return e.request=mTe.request,e}function qMt(t){var e=new _f(t);return e.request=mTe.request,e.createSocket=ETe,e.defaultPort=443,e}function _f(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=CTe(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}PMt.inherits(_f,UMt.EventEmitter);_f.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,CTe(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};_f.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Ym("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Ym("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Ym("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Ym("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ym(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};_f.prototype.removeSocket=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)})}};function ETe(t,e){var r=this;_f.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=LMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function CTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Ym;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ym=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)}:Ym=function(){};eb.debug=Ym});var HP=f((Oyn,BTe)=>{BTe.exports=ITe()});var ps=f((Hyn,QTe)=>{QTe.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 tn=f((qyn,VTe)=>{"use strict";var yTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{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[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{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[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{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[NTe]===!0}[NTe]=!0},STe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[STe]===!0}[STe]=!0},RTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function sUt(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(qLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function iUt(){return"allowed"}function oUt(){return"success"}function aUt(){return"success"}function AUt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function cUt(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&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":A_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ub(t,e){return t}function uUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ub(t.domainLookupStartTime,r),domainLookupEndTime:ub(t.domainLookupEndTime,r),connectionStartTime:ub(t.connectionStartTime,r),connectionEndTime:ub(t.connectionEndTime,r),secureConnectionStartTime:ub(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function lUt(t){return ub(WLt.now(),t)}function dUt(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}}function ake(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function hUt(t){return{referrerPolicy:t.referrerPolicy}}function gUt(t){let e=t.referrerPolicy;aB(e);let r=null;if(t.referrer==="client"){let a=tke();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=A_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=PT(t);return A_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return aB(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)}function UT(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"))}}function fUt(t,e){if(a_===void 0)return!0;let r=Ake(e);if(r==="no metadata"||r.length===0)return!0;let n=mUt(r),s=EUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=a_.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),CUt(A,a))return!0}return!1}var pUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ake(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=pUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();nke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mUt(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}function EUt(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}function CUt(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}function IUt(t){}function A_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function BUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QUt(t){return t.controller.state==="aborted"}function yUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bUt(t){return KLt[t.toLowerCase()]??t}function wUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aB(typeof e=="string"),e}var NUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function cke(t,e,r=0,n=1){class s{ Line truncated
`);function rPt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function nPt(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}function sPt(t,e){u_(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&l_(t,ePt,i)||i.position===t.length-4&&l_(t,tPt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=iPt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",rPt(u)||(u=""),h=new ZUt([d],c,{type:u})):h=WUt(Buffer.from(d)),u_(Bke(A)),u_(typeof h=="string"&&Bke(h)||jUt(h)),s.push(KUt(A,h,c))}}function iPt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=db(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!zUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,db(a=>a===32||a===9,t,e),VUt(o)){case"content-disposition":{if(r=n=null,!l_(t,$Ut,e)||(e.position+=17,r=bke(t,e),r===null))return"failure";if(l_(t,yke,e)){let a=e.position+yke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=bke(t,e),n===null))return"failure"}break}case"content-type":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Qke(a);break}case"content-transfer-encoding":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Qke(a);break}default:db(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function bke(t,e){u_(t[e.position-1]===34);let r=db(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)}function db(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function l_(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}wke.exports={multipartFormDataParser:sPt,validateBoundary:nPt}});var fb=f((hbn,Lke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:oPt,isBlobLike:Ske,isReadableStreamLike:aPt,readableStreamClose:APt,createDeferredPromise:cPt,fullyReadBody:uPt,extractMimeType:lPt,utf8DecodeBytes:xke}=Qc(),{FormData:Rke}=OT(),{kState:gb}=Jm(),{webidl:dPt}=Oo(),{Blob:hPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Tke,isDisturbed:gPt}=B("node:stream"),{isArrayBuffer:fPt}=B("node:util/types"),{serializeAMimeType:pPt}=yA(),{multipartFormDataParser:mPt}=Nke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var d_=new TextEncoder;function EPt(){}var kke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Fke;kke&&(Fke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gPt(e)&&!Tke(e)&&e.cancel("Response object has been garbage collected").catch(EPt)}));function Mke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?d_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>APt(A))},start(){},type:"bytes"}),rZ(aPt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(fPt(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(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=d_.encode(c+`; name="${u(l(C))}"\r
var CHe=Object.create;var jU=Object.defineProperty;var IHe=Object.getOwnPropertyDescriptor;var yHe=Object.getOwnPropertyNames;var BHe=Object.getPrototypeOf,bHe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},gc=(t,e)=>{for(var r in e)jU(t,r,{get:e[r],enumerable:!0})},QHe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of yHe(e))!bHe.call(t,s)&&s!==r&&jU(t,s,{get:()=>e[s],enumerable:!(n=IHe(e,s))||n.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?CHe(BHe(t)):{},QHe(e||!t||!t.__esModule?jU(r,"default",{value:t,enumerable:!0}):r,t));var ere=C(A0=>{"use strict";var fjt=Q("net"),DHe=Q("tls"),$U=Q("http"),Xte=Q("https"),RHe=Q("events"),gjt=Q("assert"),kHe=Q("util");A0.httpOverHttp=vHe;A0.httpsOverHttp=FHe;A0.httpOverHttps=MHe;A0.httpsOverHttps=_He;function vHe(t){var e=new el(t);return e.request=$U.request,e}function FHe(t){var e=new el(t);return e.request=$U.request,e.createSocket=Zte,e.defaultPort=443,e}function MHe(t){var e=new el(t);return e.request=Xte.request,e}function _He(t){var e=new el(t);return e.request=Xte.request,e.createSocket=Zte,e.defaultPort=443,e}function el(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$U.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=$te(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}kHe.inherits(el,RHe.EventEmitter);el.prototype.addRequest=function(e,r,n,s){var i=this,o=eP({request:e},i.options,$te(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};el.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eP({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),vd("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){vd("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){vd("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return vd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),vd(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};el.prototype.removeSocket=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)})}};function Zte(t,e){var r=this;el.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eP({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=DHe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function $te(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eP(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var vd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?vd=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)}:vd=function(){};A0.debug=vd});var tP=C((mjt,tre)=>{tre.exports=ere()});var vr=C((Ejt,rre)=>{rre.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 Vt=C((Cjt,Nre)=>{"use strict";var nre=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nre]===!0}[nre]=!0},sre=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),rP=class extends Fr{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[sre]===!0}[sre]=!0},ire=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),nP=class extends Fr{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[ire]===!0}[ire]=!0},ore=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sP=class extends Fr{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[ore]===!0}[ore]=!0},are=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),iP=class extends Fr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[are]===!0}[are]=!0},cre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),oP=class extends Fr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function ZGe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(_Ge.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function $Ge(){return"allowed"}function e9e(){return"success"}function t9e(){return"success"}function r9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n9e(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&&XP(t.origin)&&!XP(rB(t))&&(e=null);break;case"same-origin":XN(t,rB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function C0(t,e){return t}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:C0(t.domainLookupStartTime,r),domainLookupEndTime:C0(t.domainLookupEndTime,r),connectionStartTime:C0(t.connectionStartTime,r),connectionEndTime:C0(t.connectionEndTime,r),secureConnectionStartTime:C0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function i9e(t){return C0(HGe.now(),t)}function o9e(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}}function Hne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function a9e(t){return{referrerPolicy:t.referrerPolicy}}function c9e(t){let e=t.referrerPolicy;Kf(e);let r=null;if(t.referrer==="client"){let a=Mne();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=KP(r),s=KP(r,!0);n.toString().length>4096&&(n=s);let i=XN(t,n),o=tB(n)&&!tB(t.url);switch(e){case"origin":return s??KP(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=rB(t);return XN(n,a)?n:tB(n)&&!tB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function KP(t,e){return Kf(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)}function tB(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"))}}function A9e(t,e){if(KN===void 0)return!0;let r=Gne(e);if(r==="no metadata"||r.length===0)return!0;let n=l9e(r),s=d9e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=KN.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),h9e(c,a))return!0}return!1}var u9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Gne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=u9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Lne.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function l9e(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}function d9e(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}function h9e(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}function f9e(t){}function XN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function g9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function p9e(t){return t.controller.state==="aborted"}function m9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function E9e(t){return YGe[t.toLowerCase()]??t}function C9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Kf(typeof e=="string"),e}var I9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qne(t,e,r=0,n=1){class s{ Line truncated
`);function K9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function X9e(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}function Z9e(t,e){$N(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&eT(t,z9e,i)||i.position===t.length-4&&eT(t,j9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=$9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",K9e(u)||(u=""),h=new J9e([d],A,{type:u})):h=H9e(Buffer.from(d)),$N(tse(c)),$N(typeof h=="string"&&tse(h)||q9e(h)),s.push(Y9e(c,h,A))}}function $9e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=y0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sO(o,!0,!0,a=>a===9||a===32),!G9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,y0(a=>a===32||a===9,t,e),O9e(o)){case"content-disposition":{if(r=n=null,!eT(t,W9e,e)||(e.position+=17,r=sse(t,e),r===null))return"failure";if(eT(t,nse,e)){let a=e.position+nse.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=sse(t,e),n===null))return"failure"}break}case"content-type":{let a=y0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),s=rse(a);break}case"content-transfer-encoding":{let a=y0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),i=rse(a);break}default:y0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function sse(t,e){$N(t[e.position-1]===34);let r=y0(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)}function y0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function sO(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function eT(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}ise.exports={multipartFormDataParser:Z9e,validateBoundary:X9e}});var Q0=C((Yjt,pse)=>{"use strict";var iB=Ct(),{ReadableStreamFrom:eqe,isBlobLike:ase,isReadableStreamLike:tqe,readableStreamClose:rqe,createDeferredPromise:nqe,fullyReadBody:sqe,extractMimeType:iqe,utf8DecodeBytes:use}=ao(),{FormData:cse}=sB(),{kState:b0}=Fd(),{webidl:oqe}=gs(),{Blob:aqe}=Q("node:buffer"),iO=Q("node:assert"),{isErrored:lse,isDisturbed:cqe}=Q("node:stream"),{isArrayBuffer:Aqe}=Q("node:util/types"),{serializeAMimeType:uqe}=Qi(),{multipartFormDataParser:lqe}=ose(),oO;try{let t=Q("node:crypto");oO=e=>t.randomInt(0,e)}catch{oO=t=>Math.floor(Math.random(t))}var tT=new TextEncoder;function dqe(){}var dse=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hse;dse&&(hse=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cqe(e)&&!lse(e)&&e.cancel("Response object has been garbage collected").catch(dqe)}));function fse(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ase(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?tT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>rqe(c))},start(){},type:"bytes"}),iO(tqe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Aqe(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(iB.isFormDataLike(t)){let c=`----formdata-undici-0${`${oO(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=tT.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=d_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=tT.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=d_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Ske(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oPt(t)}if((typeof s=="string"||HT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Tke(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function CPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),Mke(t,e)}function IPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function BPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function QPt(t){return{blob(){return hb(this,r=>{let n=Dke(this);return n===null?n="":n&&(n=pPt(n)),new hPt([r],{type:n})},t)},arrayBuffer(){return hb(this,r=>new Uint8Array(r).buffer,t)},text(){return hb(this,xke,t)},json(){return hb(this,bPt,t)},formData(){return hb(this,r=>{let n=Dke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Rke;return i[gb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Rke;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return hb(this,r=>new Uint8Array(r),t)}}}function yPt(t){Object.assign(t.prototype,QPt(t))}async function hb(t,e,r){if(dPt.brandCheck(t,r),vke(t))throw new TypeError("Body is unusable: Body has already been read");BPt(t[gb]);let n=cPt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[gb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await uPt(t[gb].body,i,s),n.promise)}function vke(t){let e=t[gb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function bPt(t){return JSON.parse(xke(t))}function Dke(t){let e=t[gb].headersList,r=lPt(e);return r==="failure"?null:r}Lke.exports={extractBody:Mke,safelyExtractBody:CPt,cloneBody:IPt,mixinBody:yPt,streamRegistry:Fke,hasFinalizationRegistry:kke,bodyUnusable:vke}});var Wke=f((gbn,Vke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:Uke}=rb(),sZ=_X(),{RequestContentLengthMismatchError:AB,ResponseContentLengthMismatchError:wPt,RequestAbortedError:Gke,HeadersTimeoutError:NPt,HeadersOverflowError:SPt,SocketError:E_,InformationalError:pb,BodyTimeoutError:RPt,HTTPParserError:DPt,ResponseExceededMaxSizeError:xPt}=tn(),{kUrl:Yke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:TPt,kSize:Pke,kWriting:Wm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:kPt,kHostHeader:FPt,kPendingIdx:MPt,kRunningIdx:ku,kError:Fu,kPipelining:p_,kSocket:mb,kKeepAliveTimeoutValue:C_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:vPt,kKeepAliveTimeoutThreshold:LPt,kHeadersTimeout:UPt,kBodyTimeout:PPt,kStrictContentLength:cZ,kMaxRequests:_ke,kCounter:_Pt,kMaxResponseSize:OPt,kOnError:HPt,kResume:Vm,kHTTPContext:Jke}=ps(),Qh=F1e(),qPt=Buffer.alloc(0),h_=Buffer[Symbol.species],g_=Yt.addListener,GPt=Yt.removeAllListeners,oZ;async function YPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(L1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onStatus(new h_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(qi.ptr===r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderField(new h_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderValue(new h_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(qi.ptr===r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onBody(new h_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(qi.ptr===r),qi.onMessageComplete()||0)}})}var aZ=null,uZ=YPt();uZ.catch();var qi=null,yh=null,f_=0,bh=null,JPt=0,GT=1,Eb=2|GT,m_=4|GT,lZ=8|JPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[FPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=tT.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(ase(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:eqe(t)}if((typeof s=="string"||iB.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!lse(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function hqe(t,e=!1){return t instanceof ReadableStream&&(iO(!iB.isDisturbed(t),"The body has already been consumed."),iO(!t.locked,"The stream is locked.")),fse(t,e)}function fqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function gqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function pqe(t){return{blob(){return B0(this,r=>{let n=Ase(this);return n===null?n="":n&&(n=uqe(n)),new aqe([r],{type:n})},t)},arrayBuffer(){return B0(this,r=>new Uint8Array(r).buffer,t)},text(){return B0(this,use,t)},json(){return B0(this,Eqe,t)},formData(){return B0(this,r=>{let n=Ase(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=lqe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new cse;return i[b0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new cse;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return B0(this,r=>new Uint8Array(r),t)}}}function mqe(t){Object.assign(t.prototype,pqe(t))}async function B0(t,e,r){if(oqe.brandCheck(t,r),gse(t))throw new TypeError("Body is unusable: Body has already been read");gqe(t[b0]);let n=nqe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[b0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await sqe(t[b0].body,i,s),n.promise)}function gse(t){let e=t[b0].body;return e!=null&&(e.stream.locked||iB.isDisturbed(e.stream))}function Eqe(t){return JSON.parse(use(t))}function Ase(t){let e=t[b0].headersList,r=iqe(e);return r==="failure"?null:r}pse.exports={extractBody:fse,safelyExtractBody:hqe,cloneBody:fqe,mixinBody:mqe,streamRegistry:hse,hasFinalizationRegistry:dse,bodyUnusable:gse}});var kse=C((Vjt,Rse)=>{"use strict";var Pe=Q("node:assert"),qe=Ct(),{channels:mse}=l0(),aO=GP(),{RequestContentLengthMismatchError:Xf,ResponseContentLengthMismatchError:Ese,RequestAbortedError:Sse,InvalidArgumentError:Cqe,HeadersTimeoutError:Iqe,HeadersOverflowError:yqe,SocketError:w0,InformationalError:S0,BodyTimeoutError:Bqe,HTTPParserError:bqe,ResponseExceededMaxSizeError:Qqe}=Vt(),{kUrl:Nse,kReset:wi,kClient:iT,kParser:Ir,kBlocking:cB,kRunning:In,kPending:Tse,kSize:Cse,kWriting:Md,kQueue:mc,kNoRef:oB,kKeepAliveDefaultTimeout:wqe,kHostHeader:Sqe,kPendingIdx:Nqe,kRunningIdx:aa,kError:Ks,kPipelining:oT,kSocket:Zf,kKeepAliveTimeoutValue:cT,kMaxHeadersSize:cO,kKeepAliveMaxTimeout:Tqe,kKeepAliveTimeoutThreshold:xqe,kHeadersTimeout:Dqe,kBodyTimeout:Rqe,kStrictContentLength:lO,kMaxRequests:Ise,kCounter:kqe,kMaxResponseSize:vqe,kOnError:yse,kResume:ol,kHTTPContext:xse}=vr(),co=hne(),Bse=Buffer.alloc(0),rT=Buffer[Symbol.species],nT=qe.addListener,Fqe=qe.removeAllListeners,$f=Symbol("kIdleSocketValidation"),N0=Symbol("kIdleSocketValidationTimeout"),gO=Symbol("kSocketUsed"),AO;async function Mqe(){let t=process.env.JEST_WORKER_ID?VP():void 0,e;try{e=await WebAssembly.compile(pne())}catch{e=await WebAssembly.compile(t||VP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onStatus(new rT(fA.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(jr.ptr===r),jr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onHeaderField(new rT(fA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onHeaderValue(new rT(fA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(jr.ptr===r),jr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onBody(new rT(fA.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(jr.ptr===r),jr.onMessageComplete()||0)}})}var uO=null,dO=Mqe();dO.catch();var jr=null,fA=null,sT=0,gA=null,_qe=0,aB=1,T0=2|aB,aT=4|aB,hO=8|_qe,fO=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[cO])&&e[cO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[Sqe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[p_]&&!h[bA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Uke.sendHeaders.hasSubscribers&&Uke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Hke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Hke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?qke(g,A.stream(),t,e,h,u,p,l):XPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?KPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?qke(g,A,t,e,h,u,p,l):xt(!1),!0}function KPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Gke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Wm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Hke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vm]()}catch(A){t(A)}}async function XPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new AB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Vm]()}catch(A){t(A)}}async function qke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var I_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new AB;process.emitWarning(new AB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===Eb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[cZ])throw new AB;process.emitWarning(new AB)}e[Js].timeout&&e[Js].timeoutType===Eb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Vm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Vke.exports=VPt});var t2e=f((fbn,e2e)=>{"use strict";var Mu=B("node:assert"),{pipeline:ZPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:zke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:B_,kReset:y_,kClient:Cb,kRunning:b_,kPending:$Pt,kQueue:zm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:e_t,kOnError:pZ,kMaxConcurrentStreams:$ke,kHTTP2Session:ud,kResume:jm,kSize:t_t,kHTTPContext:r_t}=ps(),Jf=Symbol("open streams"),jke,Kke=!1,Q_;try{Q_=B("node:http2")}catch{Q_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n_t,HTTP2_HEADER_METHOD:s_t,HTTP2_HEADER_PATH:i_t,HTTP2_HEADER_SCHEME:o_t,HTTP2_HEADER_CONTENT_LENGTH:a_t,HTTP2_HEADER_EXPECT:A_t,HTTP2_HEADER_STATUS:c_t}}=Q_;function u_t(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}async function l_t(t,e){t[oo]=e,Kke||(Kke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q_.connect(t[B_],{createConnection:()=>e,peerMaxConcurrentStreams:t[$ke]});r[Jf]=0,r[Cb]=t,r[oo]=e,wr.addListener(r,"error",h_t),wr.addListener(r,"frameError",g_t),wr.addListener(r,"end",f_t),wr.addListener(r,"goaway",p_t),wr.addListener(r,"close",function(){let{[Cb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[$Pt]===0);let a=s[zm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Cb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[b_]===0),t.emit("disconnect",t[B_],[t],s),t[jm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return E_t(t,...s)},resume(){d_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function d_t(t){let e=t[oo];e?.destroyed===!1&&(t[t_t]===0&&t[$ke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function h_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Cb][pZ](t)}function g_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Cb][pZ](n)}}function f_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function p_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Cb];if(r[oo]=null,r[r_t]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[zm].length){let n=r[zm][r[cd]];r[zm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[b_]===0),r.emit("disconnect",r[B_],[r],e),r[jm]()}function m_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function E_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[B_];l[n_t]=i||`${h}${g?`:${g}`:""}`,l[s_t]=n;let p=w=>{e.aborted||e.completed||(w=w||new zke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[zm][t[cd]++]=null,t[jm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null}),d.once("close",()=>{r[Jf]-=1,r[Jf]===0&&r.unref()}),!0;l[i_t]=s,l[o_t]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){jke??=fb().extractBody;let[w,H]=jke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),m_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[e_t])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[a_t]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[A_t]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[Y_t]=A??3e5,this[G_t]=s??3e5,this[J_t]=I??!0,this[V_t]=w,this[IZ]=z,this[Xm]=null,this[X_t]=W>-1?W:-1,this[$_t]=oe??100,this[fi]=null,this[dd]=[],this[Wf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[Z_t]=he=>h2e(this,he)}get pipelining(){return this[R_]}set pipelining(e){this[R_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Wf]}get[KT](){return this[dd].length-this[Wf]}get[L_t](){return!!this[fi]&&!this[Bb]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(d2e(this)||1)||this[ZT]>0)}[v_t](e){g2e(this),this.once("connect",e)}[K_t](e,r){let n=e.origin||this[Nh].origin,s=new D_t(n,e,r);return this[dd].push(s),this[uB]||(cB.bodyLength(s.body)==null&&cB.isIterable(s.body)?(this[uB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[uB]&&this[Zm]!==2&&this[CZ]&&(this[Zm]=2),this[Zm]<2}async[z_t](){return new Promise(e=>{this[KT]?this[Xm]=e:e(null)})}async[j_t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];cB.errorRequest(this,o,e)}let s=()=>{this[Xm]&&(this[Xm](),this[Xm]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},rOt=S_();function h2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Vf(t[hd]===t[Wf]);let r=t[dd].splice(t[Wf]);for(let n=0;n<r.length;n++){let s=r[n];cB.errorRequest(t,s,e)}Vf(t[KT]===0)}}async function g2e(t){Vf(!t[Bb]),Vf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Vf(i!==-1);let o=r.substring(1,i);Vf(l2e.isIP(o)),r=o}t[Bb]=!0,Ib.beforeConnect.hasSubscribers&&Ib.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[Km],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){cB.destroy(i.on("error",c2e),new k_t);return}Vf(i);try{t[fi]=i.alpnProtocol==="h2"?await tOt(t,i):await eOt(t,i)}catch(o){throw i.destroy().on("error",c2e),o}t[Bb]=!1,i[W_t]=0,i[IZ]=t[IZ],i[M_t]=t,i[P_t]=null,Ib.connected.hasSubscribers&&Ib.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Bb]=!1,Ib.connectError.hasSubscribers&&Ib.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Vf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[Km];){let o=t[dd][t[hd]++];cB.errorRequest(t,o,i)}else h2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function u2e(t){t[Zm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[uB]!==2&&(t[uB]=2,nOt(t,e),t[uB]=0,t[Wf]>256&&(t[dd].splice(0,t[Wf]),t[hd]-=t[Wf],t[Wf]=0))}function nOt(t,e){for(;;){if(t.destroyed){Vf(t[ZT]===0);return}if(t[Xm]&&!t[KT]){t[Xm](),t[Xm]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Zm]=2;else if(t[Zm]===2){e?(t[Zm]=1,queueMicrotask(()=>u2e(t))):u2e(t);continue}if(t[ZT]===0||t[XT]>=(d2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[Km]!==r.servername){if(t[XT]>0)return;t[Km]=r.servername,t[fi]?.destroy(new T_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Bb])return;if(!t[fi]){g2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}f2e.exports=BZ});var yZ=f((Ibn,p2e)=>{"use strict";var D_=class{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)}};p2e.exports=class{constructor(){this.head=this.tail=new D_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var E2e=f((Bbn,m2e)=>{var{kFree:sOt,kConnected:iOt,kPending:oOt,kQueued:aOt,kRunning:AOt,kSize:cOt}=ps(),lB=Symbol("pool"),bZ=class{constructor(e){this[lB]=e}get connected(){return this[lB][iOt]}get free(){return this[lB][sOt]}get pending(){return this[lB][oOt]}get queued(){return this[lB][aOt]}get running(){return this[lB][AOt]}get size(){return this[lB][cOt]}};m2e.exports=bZ});var xZ=f((Qbn,R2e)=>{"use strict";var uOt=ob(),lOt=yZ(),{kConnected:wZ,kSize:C2e,kRunning:I2e,kPending:B2e,kQueued:$T,kBusy:dOt,kFree:hOt,kUrl:gOt,kClose:fOt,kDestroy:pOt,kDispatch:mOt}=ps(),EOt=E2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),Q2e=Symbol("onConnect"),y2e=Symbol("onDisconnect"),b2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};MMe.exports=x$});var W_=f((Kbn,_Me)=>{"use strict";var LMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Yqt}=tn(),Jqt=bb();PMe()===void 0&&UMe(new Jqt);function UMe(t){if(!t||typeof t.dispatch!="function")throw new Yqt("Argument agent must implement Agent");Object.defineProperty(globalThis,LMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function PMe(){return globalThis[LMe]}_Me.exports={setGlobalDispatcher:UMe,getGlobalDispatcher:PMe}});var z_=f((Zbn,OMe)=>{"use strict";OMe.exports=class{#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 qMe=f(($bn,HMe)=>{"use strict";var Vqt=N_();HMe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Vqt(r,o,s,i);return r(a,A)}}});var YMe=f((ewn,GMe)=>{"use strict";var Wqt=U_();GMe.exports=t=>e=>function(n,s){return e(n,new Wqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var VMe=f((twn,JMe)=>{"use strict";var zqt=mr(),{InvalidArgumentError:jqt,RequestAbortedError:Kqt}=tn(),Xqt=z_(),T$=class extends Xqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new jqt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=zqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Kqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Zqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}JMe.exports=Zqt});var jMe=f((rwn,zMe)=>{"use strict";var{isIP:$qt}=B("node:net"),{lookup:eGt}=B("node:dns"),tGt=z_(),{InvalidArgumentError:Mb,InformationalError:rGt}=tn(),WMe=Math.pow(2,31)-1,k$=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new rGt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){eGt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===WMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===WMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new F$(this,e,r)}},F$=class extends tGt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":RUe(i)&&(r[s]=i);break;case"id":DUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&RUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&DUe(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,event:void 0,id:void 0,retry:void 0}}};xUe.exports={EventSourceStream:Eee}});var _Ue=f((Fwn,PUe)=>{"use strict";var{pipeline:uYt}=B("node:stream"),{fetching:lYt}=h1(),{makeRequest:dYt}=Ub(),{webidl:Zf}=Oo(),{EventSourceStream:hYt}=TUe(),{parseMIMEType:gYt}=yA(),{createFastMessageEvent:fYt}=Gb(),{isNetworkError:kUe}=l1(),{delay:pYt}=pee(),{kEnumerableProperty:NB}=mr(),{environmentSettingsObject:FUe}=Qc(),MUe=!1,vUe=3e3,w1=0,LUe=1,N1=2,mYt="anonymous",EYt="use-credentials",zb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Zf.util.markAsUncloneable(this);let n="EventSource constructor";Zf.argumentLengthCheck(arguments,1,n),MUe||(MUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zf.converters.USVString(e,n,"url"),r=Zf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:vUe};let s=FUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=mYt;r.withCredentials&&(o=EYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=dYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{kUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?gYt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=LUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(fYt(A.type,A.options))}});uYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=lYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await pYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Zf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},UUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(zb,UUe);Object.defineProperties(zb.prototype,UUe);Object.defineProperties(zb.prototype,{close:NB,onerror:NB,onmessage:NB,onopen:NB,readyState:NB,url:NB,withCredentials:NB});Zf.converters.EventSourceInitDict=Zf.dictionaryConverter([{key:"withCredentials",converter:Zf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Zf.converters.any}]);PUe.exports={EventSource:zb,defaultReconnectionTime:vUe}});var GUe=f((Mwn,Mt)=>{"use strict";var CYt=Qb(),OUe=TT(),IYt=yb(),BYt=U2e(),QYt=bb(),yYt=GZ(),bYt=aFe(),wYt=hFe(),HUe=tn(),LO=mr(),{InvalidArgumentError:vO}=HUe,jb=$Fe(),NYt=FT(),SYt=b$(),RYt=vMe(),DYt=S$(),xYt=l$(),TYt=U_(),{getGlobalDispatcher:qUe,setGlobalDispatcher:kYt}=W_(),FYt=z_(),MYt=N_(),vYt=S_();Object.assign(OUe.prototype,jb);Mt.exports.Dispatcher=OUe;Mt.exports.Client=CYt;Mt.exports.Pool=IYt;Mt.exports.BalancedPool=BYt;Mt.exports.Agent=QYt;Mt.exports.ProxyAgent=yYt;Mt.exports.EnvHttpProxyAgent=bYt;Mt.expo Line truncated
\r
`),S6t=/\r\n/g,R6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function ew(t){qPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=HPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=HPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new w6t(N6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}b6t(ew,qPe);ew.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};ew.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};ew.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};ew.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(S6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=R6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};GPe.exports=ew});var ate=f((NNn,VPe)=>{"use strict";var ote=B("node:stream").Writable,D6t=B("node:util").inherits,x6t=ste(),JPe=_Pe(),T6t=YPe(),k6t=45,F6t=Buffer.from("-"),M6t=Buffer.from(`\r
`),v6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new T6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}D6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new JPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(M6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new x6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",v6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===k6t)++o,++this._dashes;else{this._dashes&&(s=F6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new JPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};VPe.exports=Ed});var jO=f((Ate,jPe)=>{"use strict";var WPe=new TextDecoder("utf-8"),zPe=new Map([["utf-8",WPe],["utf8",WPe]]);function L6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),zPe.has(Ate.toString()))try{return zPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function U6t(t,e,r){return t&&L6t(r)(t,e)}jPe.exports=U6t});var ute=f((SNn,e_e)=>{"use strict";var KO=jO(),KPe=/%[a-fA-F0-9][a-fA-F0-9]/g,P6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function U9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function P9t(){return"allowed"}function _9t(){return"success"}function O9t(){return"success"}function H9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function q9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":tH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function G9t(t){return N9t.now()}function Y9t(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}}function J9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V9t(t){return{referrerPolicy:t.referrerPolicy}}function W9t(t){let e=t.referrerPolicy;iw(e);let r=null;if(t.referrer==="client"){let a=w9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=tH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=P1(t);return tH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return iw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(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"))}}function z9t(t,e){if(eH===void 0)return!0;let r=S_e(e);if(r==="no metadata"||r.length===0)return!0;let n=K9t(r),s=X9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=eH.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),Z9t(A,a))return!0}return!1}var j9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function S_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();y_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K9t(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}function X9t(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}function Z9t(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}function $9t(t){}function tH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eJt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function tJt(t){return t.controller.state==="aborted"}function rJt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function nJt(t){return Cte[t.toLowerCase()]??t}function sJt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return iw(typeof e=="string"),e}var iJt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oJt(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,aJt(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,iJt),Object.setPrototypeOf({},s)}function aJt(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&M_e(t[n]);n++);if(r)for(;s>0&&M_e(t[s]);s--);return t.slice(n,s+1)}function v_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function NJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&v_e(t[n]);n++);if(r)for(;s>0&&v_e(t[s]);s--);return t.slice(n,s+1)}__e.exports={dataURLProcessor:QJt,URLSerializer:L_e,collectASequenceOfCodePoints:sH,collectASequenceOfCodePointsFast:ow,stringPercentDecode:U_e,parseMIMEType:Bte,collectAnHTTPQuotedString:P_e,serializeAMimeType:wJt}});var iH=f((_Nn,Y_e)=>{"use strict";var{Blob:q_e,File:O_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:G_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:SJt,serializeAMimeType:RJt}=Cd(),{kEnumerableProperty:H_e}=Gr(),DJt=new TextEncoder,_1=class t extends q_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=SJt(i),i==="failure"){i="";break e}i=RJt(i).toLowerCase()}o=n.lastModified}super(xJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:H_e,lastModified:H_e});fn.converters.Blob=fn.interfaceConverter(q_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(G_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function xJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=TJt(s)),r.push(DJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):G_e(n)&&r.push(n);return r}function TJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function kJt(t){return O_e&&t instanceof O_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}Y_e.exports={File:_1,FileLike:yte,isFileLike:kJt}});var aH=f((ONn,j_e)=>{"use strict";var{isBlobLike:oH,toUSVString:FJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:z_e,FileLike:J_e,isFileLike:MJt}=iH(),{webidl:wn}=Ya(),{Blob:vJt,File:wte}=B("buffer"),V_e=wte??z_e,aw=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=W_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?FJt(n):void 0;let s=W_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};aw.prototype[Symbol.iterator]=aw.prototype.entries;Object.defineProperties(aw.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function W_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(MJt(e)||(e=e instanceof vJt?new V_e([e],"blob",{type:e.type}):new J_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof z_e?new V_e([e],r,n):new J_e(e,r,n)}return{name:t,value:e}}j_e.exports={FormData:aw}});var O1=f((HNn,sOe)=>{"use strict";var LJt=h_e(),Aw=Gr(),{ReadableStreamFrom:UJt,isBlobLike:K_e,isReadableStreamLike:PJt,readableStreamClose:_Jt,createDeferredPromise:OJt,fullyReadBody:HJt}=Hu(),{FormData:X_e}=aH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:eOe,structuredClone:qJt}=gE(),{Blob:GJt,File:YJt}=B("buffer"),{kBodyUsed:JJt}=ts(),Ste=B("assert"),{isErrored:VJt}=Gr(),{isUint8Array:tOe,isArrayBuffer:WJt}=B("util/types"),{File:zJt}=iH(),{parseMIMEType:jJt,serializeAMimeType:KJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,Z_e=YJt??zJt,AH=new TextEncoder,XJt=new TextDecoder;function rOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:K_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?AH.encode(s):s),queueMicrotask(()=>_Jt(A))},start(){},type:void 0}),Ste(PJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(WJt(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(Aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=AH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=AH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=AH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(K_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:UJt(t)}if((typeof s=="string"||Aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):VJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function ZJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!Aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),rOe(t,e)}function $Jt(t){let[e,r]=t.stream.tee(),n=qJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*$_e(t){if(t)if(tOe(t))yield t;else{let e=t.stream;if(Aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[JJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new eOe("The operation was aborted.","AbortError")}function eVt(t){return{blob(){return cH(this,r=>{let n=sVt(this);return n==="failure"?n="":n&&(n=KJt(n)),new GJt([r],{type:n})},t)},arrayBuffer(){return cH(this,r=>new Uint8Array(r).buffer,t)},text(){return cH(this,nOe,t)},json(){return cH(this,nVt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new X_e,i;try{i=new LJt({headers:n,preservePath:!0})}catch(a){throw new eOe(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new Z_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new Z_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of $_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of $_e(this[ip].body)){if(!tOe(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new X_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function tVt(t){Object.assign(t.prototype,eVt(t))}async function cH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),rVt(t[ip].body))throw new TypeError("Body is unusable");let n=OJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await HJt(t[ip].body,i,s),n.promise)}function rVt(t){return t!=null&&(t.stream.locked||Aw.isDisturbed(t.stream))}function nOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),XJt.decode(t))}function nVt(t){return JSON.parse(nOe(t))}function sVt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":jJt(r)}sOe.exports={extractBody:rOe,safelyExtractBody:ZJt,cloneBody:$Jt,mixinBody:tVt}});var AOe=f((qNn,aOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:iVt}=Un(),op=B("assert"),{kHTTP2BuildRequest:oVt,kHTTP2CopyHeaders:aVt,kHTTP1BuildRequest:AVt}=ts(),xA=Gr(),iOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,oOe=/[^\t\x20-\x7e\x80-\xff]/,cVt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),Ti={},xte;try{let t=B("diagnostics_channel");Ti.create=t.channel("undici:request:create"),Ti.bodySent=t.channel("undici:request:bodySent"),Ti.headers=t.channel("undici:request:headers"),Ti.trailers=t.channel("undici:request:trailers"),Ti.error=t.channel("undici:request:error")}catch{Ti.create={hasSubscribers:!1},Ti.bodySent={hasSubscribers:!1},Ti.headers={hasSubscribers:!1},Ti.trailers={hasSubscribers:!1},Ti.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,Ti.create.hasSubscribers&&Ti.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Ti.bodySent.hasSubscribers&&Ti.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),Ti.headers.hasSubscribers&&Ti.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,Ti.trailers.hasSubscribers&&Ti.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Ti.error.hasSubscribers&&Ti.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[AVt](e,r,n){return new t(e,r,n)}static[oVt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[aVt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",oOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(oOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new iVt("expect header not supported");if(iOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}aOe.exports=Tte});var uH=f((GNn,cOe)=>{"use strict";var uVt=B("events"),kte=class extends uVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};cOe.exports=kte});var G1=f((YNn,uOe)=>{"use strict";var lVt=uH(),{ClientDestroyedError:Fte,ClientClosedError:dVt,InvalidArgumentError:cw}=Un(),{kDestroy:hVt,kClose:gVt,kDispatch:Mte,kInterceptors:MB}=ts(),uw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),lw=Symbol("onClosed"),lH=Symbol("Intercepted Dispatch"),vte=class extends lVt{constructor(){super(),this[uw]=!1,this[ap]=null,this[q1]=!1,this[lw]=[]}get destroyed(){return this[uw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new cw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new cw("invalid callback");if(this[uw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[lw]?this[lw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[lw].push(e);let r=()=>{let n=this[lw];this[lw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[gVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new cw("invalid callback");if(this[uw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[uw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[hVt](e).then(()=>{queueMicrotask(n)})}[lH](e,r){if(!this[MB]||this[MB].length===0)return this[lH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[lH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new cw("handler must be an object");try{if(!e||typeof e!="object")throw new cw("opts must be an object.");if(this[uw]||this[ap])throw new Fte;if(this[q1])throw new dVt;return this[lH](e,r)}catch(n){if(typeof r.onError!="function")throw new cw("invalid onError method");return r.onError(n),!1}}};uOe.exports=vte});var Y1=f((WNn,hOe)=>{"use strict";var fVt=B("net"),lOe=B("assert"),dOe=Gr(),{InvalidArgumentError:pVt,ConnectTimeoutError:mVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function EVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new pVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[xOe]=A??3e5,this[DOe]=s??3e5,this[K1]=I??!0,this[zVt]=w,this[X1]=z,this[pE]=null,this[kOe]=W>-1?W:-1,this[Ph]="h1",this[kc]=null,this[CH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[FOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[EE]}set pipelining(e){this[EE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[WVt](){return!!this[Ws]&&!this[hw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[fw])||this[LB]>=(this[EE]||1)||this[UB]>0}[VVt](e){UOe(this),this.once("connect",e)}[XVt](e,r){let n=e.origin||this[qo].origin,s=this[Ph]==="h2"?Yte[$Vt](n,e,r):Yte[tWt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[mE]!==2&&this[Jte]&&(this[mE]=2),this[mE]<2}async[jVt](){return new Promise(e=>{this[LB]?this[pE]=e:e(null)})}async[KVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[pE]&&(this[pE](),this[pE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[CH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function cWt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,yH(this[Uh],t)}function uWt(t,e,r){let n=new Lh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,yH(this[Uh],n))}function lWt(){ft.destroy(this,new gw("other side closed")),ft.destroy(this[Ws],new gw("other side closed"))}function dWt(t){let e=this[Uh],r=new Lh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var Fh=fOe(),hWt=gH(),gWt=Buffer.alloc(0);async function fWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(QOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onStatus(new fH(Mh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderField(new fH(Mh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderValue(new fH(Mh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onBody(new fH(Mh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=fWt();zte.catch();var Gi=null,Mh=null,pH=0,vh=null,pw=1,EH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[mH])&&e[mH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[mH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(pWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===EH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||gWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>pH&&(vh&&n.free(vh),pH=Math.ceil(e.length/4096)*4096,vh=n.malloc(pH)),new Uint8Array(n.memory.buffer,vh,pH).set(e);try{let s;try{Mh=e,Gi=this,s=n.llhttp_execute(this.ptr,vh,e.length)}catch(o){throw o}finally{Gi=null,Mh=null}let i=n.llhttp_get_error_pos(this.ptr)-vh;if(s===Fh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Fh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Fh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[NOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[EE]&&!h[Ja]?g+=`connection: keep-alive\r
`:t[oT]&&!h[wi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return mse.sendHeaders.hasSubscribers&&mse.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Qse(f,null,t,e,h,u,g,l):qe.isBuffer(c)?Qse(f,c,t,e,h,u,g,l):qe.isBlobLike(c)?typeof c.stream=="function"?wse(f,c.stream(),t,e,h,u,g,l):qqe(f,c,t,e,h,u,g,l):qe.isStream(c)?Gqe(f,c,t,e,h,u,g,l):qe.isIterable(c)?wse(f,c,t,e,h,u,g,l):Pe(!1),!0}function Gqe(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"stream body cannot be pipelined");let c=!1,A=new AT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){qe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Sse;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Pe(s.destroyed||s[Md]&&r[In]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?qe.destroy(e,f):qe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Qse(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[wi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?BH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):OOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?_Oe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?BH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function CWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[eWt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[CH];if(l[rWt]=o||t[FOe],l[nWt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[sWt]=i,l[iWt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),POe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[oWt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[aWt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[AWt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Lh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?BH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):OOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?_Oe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?BH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function _Oe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Ph]==="h2"){let p=function(C){n.onBodySent(C)},g=LVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function OOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Ph]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ol]()}catch(c){t(c)}}async function qqe(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Xf;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function BH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[Go]?h(s[Go]):A=d});if(r[Ph]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var QH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[wi]=!0),r[ol]()}catch(c){t(c)}}async function wse(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Pe(c===null),s[Ks]?h(s[Ks]):c=d});s.on("close",A).on("drain",A);let l=new AT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ks])throw s[Ks];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var AT=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Md]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ks])throw r[Ks];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[lO])throw new Xf;process.emitWarning(new Xf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[wi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===pw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ir].timeout&&r[Ir].timeoutType===T0&&r[Ir].timeout.refresh&&r[Ir].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Md]=!1,e[Ks])throw e[Ks];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===pw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}HOe.exports=Wte});var GOe=f((rSn,qOe)=>{"use strict";var bH=class{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)}};qOe.exports=class{constructor(){this.head=this.tail=new bH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JOe=f((nSn,YOe)=>{var{kFree:IWt,kConnected:BWt,kPending:QWt,kQueued:yWt,kRunning:bWt,kSize:wWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][BWt]}get free(){return this[PB][IWt]}get pending(){return this[PB][QWt]}get queued(){return this[PB][yWt]}get running(){return this[PB][bWt]}get size(){return this[PB][wWt]}};YOe.exports=$te});var ire=f((sSn,tHe)=>{"use strict";var NWt=G1(),SWt=GOe(),{kConnected:ere,kSize:VOe,kRunning:WOe,kPending:zOe,kQueued:$1,kBusy:RWt,kFree:DWt,kUrl:xWt,kClose:TWt,kDestroy:kWt,kDispatch:FWt}=ts(),MWt=JOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),jOe=Symbol("onConnect"),KOe=Symbol("onDisconnect"),XOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),$Oe=Symbol("add client"),eHe=Symbol("remove client"),ZOe=Symbol("stats"),sre=class extends NWt{constructor(){super(),this[ek]=new SWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[jOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[KOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[XOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[ZOe]=new MWt(this)}get[RWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[DWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[zOe](){let e=this[$1];for(let{[zOe]:r}of this[TA])e+=r;return e}get[WOe](){let e=0;for(let{[WOe]:r}of this[TA])e+=r;return e}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get stats(){return this[ZOe]}async[TWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[kWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[FWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[$Oe](e){return e.on("drain",this[rre]).on("connect",this[jOe]).on("disconnect",this[KOe]).on("connectionError",this[XOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[xWt],[this,e])}),this}[eHe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};tHe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:$Oe,kRemoveClient:eHe,kGetDispatcher:nre}});var mw=f((iSn,sHe)=>{"use strict";var{PoolBase:vWt,kClients:wH,kNeedDrain:LWt,kAddClient:UWt,kGetDispatcher:PWt}=ire(),_Wt=Z1(),{InvalidArgumentError:ore}=Un(),are=Gr(),{kUrl:rHe,kInterceptors:OWt}=ts(),HWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),nHe=Symbol("factory");function qWt(t,e){return new _Wt(t,e)}var ure=class extends vWt{constructor(e,{connections:r,factory:n=qWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=HWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[OWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[rHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[nHe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[lO])throw new Xf;process.emitWarning(new Xf)}e[Ir].timeout&&e[Ir].timeoutType===T0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[ol]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(Pe(n[In]<=1,"pipeline should only contain this request"),s(e))}};Rse.exports=Lqe});var Ose=C((Jjt,Pse)=>{"use strict";var ca=Q("node:assert"),{pipeline:Yqe}=Q("node:stream"),Nt=Ct(),{RequestContentLengthMismatchError:pO,RequestAbortedError:vse,SocketError:AB,InformationalError:mO}=Vt(),{kUrl:uT,kReset:dT,kClient:x0,kRunning:hT,kPending:Vqe,kQueue:_d,kPendingIdx:EO,kRunningIdx:Ec,kError:Ic,kSocket:zn,kStrictContentLength:Jqe,kOnError:CO,kMaxConcurrentStreams:Use,kHTTP2Session:Cc,kResume:Ld,kSize:Wqe,kHTTPContext:zqe}=vr(),al=Symbol("open streams"),Fse,Mse=!1,lT;try{lT=Q("node:http2")}catch{lT={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jqe,HTTP2_HEADER_METHOD:Kqe,HTTP2_HEADER_PATH:Xqe,HTTP2_HEADER_SCHEME:Zqe,HTTP2_HEADER_CONTENT_LENGTH:$qe,HTTP2_HEADER_EXPECT:eYe,HTTP2_HEADER_STATUS:tYe}}=lT;function rYe(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}async function nYe(t,e){t[zn]=e,Mse||(Mse=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lT.connect(t[uT],{createConnection:()=>e,peerMaxConcurrentStreams:t[Use]});r[al]=0,r[x0]=t,r[zn]=e,Nt.addListener(r,"error",iYe),Nt.addListener(r,"frameError",oYe),Nt.addListener(r,"end",aYe),Nt.addListener(r,"goaway",cYe),Nt.addListener(r,"close",function(){let{[x0]:s}=this,{[zn]:i}=s,o=this[zn][Ic]||this[Ic]||new AB("closed",Nt.getSocketInfo(i));if(s[Cc]=null,s.destroyed){ca(s[Vqe]===0);let a=s[_d].splice(s[Ec]);for(let c=0;c<a.length;c++){let A=a[c];Nt.errorRequest(s,A,o)}}}),r.unref(),t[Cc]=r,e[Cc]=r,Nt.addListener(e,"error",function(s){ca(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ic]=s,this[x0][CO](s)}),Nt.addListener(e,"end",function(){Nt.destroy(this,new AB("other side closed",Nt.getSocketInfo(this)))}),Nt.addListener(e,"close",function(){let s=this[Ic]||new AB("closed",Nt.getSocketInfo(this));t[zn]=null,this[Cc]!=null&&this[Cc].destroy(s),t[EO]=t[Ec],ca(t[hT]===0),t.emit("disconnect",t[uT],[t],s),t[Ld]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uYe(t,...s)},resume(){sYe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function sYe(t){let e=t[zn];e?.destroyed===!1&&(t[Wqe]===0&&t[Use]===0?(e.unref(),t[Cc].unref()):(e.ref(),t[Cc].ref()))}function iYe(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[zn][Ic]=t,this[x0][CO](t)}function oYe(t,e,r){if(r===0){let n=new mO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[zn][Ic]=n,this[x0][CO](n)}}function aYe(){let t=new AB("other side closed",Nt.getSocketInfo(this[zn]));this.destroy(t),Nt.destroy(this[zn],t)}function cYe(t){let e=this[Ic]||new AB(`HTTP/2: "GOAWAY" frame received with code ${t}`,Nt.getSocketInfo(this)),r=this[x0];if(r[zn]=null,r[zqe]=null,this[Cc]!=null&&(this[Cc].destroy(e),this[Cc]=null),Nt.destroy(this[zn],e),r[Ec]<r[_d].length){let n=r[_d][r[Ec]];r[_d][r[Ec]++]=null,Nt.errorRequest(r,n,e),r[EO]=r[Ec]}ca(r[hT]===0),r.emit("disconnect",r[uT],[r],e),r[Ld]()}function AYe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uYe(t,e){let r=t[Cc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Nt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let F=A[B+0],V=A[B+1];if(Array.isArray(V))for(let L=0;L<V.length;L++)l[F]?l[F]+=`,${V[L]}`:l[F]=V[L];else l[F]=V}let d,{hostname:h,port:f}=t[uT];l[jqe]=i||`${h}${f?`:${f}`:""}`,l[Kqe]=n;let g=B=>{e.aborted||e.completed||(B=B||new vse,Nt.errorRequest(t,e,B),d!=null&&Nt.destroy(d,B),Nt.destroy(u,B),t[_d][t[Ec]++]=null,t[Ld]())};try{e.onConnect(g)}catch(B){Nt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[al],t[_d][t[Ec]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[al],t[_d][t[Ec]++]=null}),d.once("close",()=>{r[al]-=1,r[al]===0&&r.unref()}),!0;l[Xqe]=s,l[Zqe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Nt.bodyLength(u);if(Nt.isFormDataLike(u)){Fse??=Q0().extractBody;let[B,F]=Fse(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),AYe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Jqe])return Nt.errorRequest(t,e,new pO),!1;process.emitWarning(new pO)}m!=null&&(ca(u,"no body must not have content length"),l[$qe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[eYe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[_Ye]=c??3e5,this[MYe]=s??3e5,this[LYe]=I??!0,this[UYe]=B,this[bO]=V,this[Pd]=null,this[qYe]=P>-1?P:-1,this[VYe]=Z??100,this[un]=null,this[yc]=[],this[Al]=0,this[Bc]=0,this[hB]=de=>wO(this,de),this[YYe]=de=>Zse(this,de)}get pipelining(){return this[mT]}set pipelining(e){this[mT]=e,this[hB](!0)}get[pB](){return this[yc].length-this[Bc]}get[gB](){return this[Bc]-this[Al]}get[fB](){return this[yc].length-this[Al]}get[TYe](){return!!this[un]&&!this[R0]&&!this[un].destroyed}get[BO](){return!!(this[un]?.busy(null)||this[fB]>=(Xse(this)||1)||this[pB]>0)}[NYe](e){$se(this),this.once("connect",e)}[GYe](e,r){let n=e.origin||this[mA].origin,s=new yYe(n,e,r);return this[yc].push(s),this[tg]||(eg.bodyLength(s.body)==null&&eg.isIterable(s.body)?(this[tg]=1,queueMicrotask(()=>wO(this))):this[hB](!0)),this[tg]&&this[Od]!==2&&this[BO]&&(this[Od]=2),this[Od]<2}async[OYe](){return new Promise(e=>{this[fB]?this[Pd]=e:e(null)})}async[HYe](e){return new Promise(r=>{let n=this[yc].splice(this[Bc]);for(let i=0;i<n.length;i++){let o=n[i];eg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[un]?(this[un].destroy(e,s),this[un]=null):queueMicrotask(s),this[hB]()})}},zYe=pT();function Zse(t,e){if(t[gB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[Bc]===t[Al]);let r=t[yc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];eg.errorRequest(t,s,e)}cl(t[fB]===0)}}async function $se(t){cl(!t[R0]),cl(!t[un]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Kse.isIP(o)),r=o}t[R0]=!0,D0.beforeConnect.hasSubscribers&&D0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB]});try{let i=await new Promise((o,a)=>{t[lB]({host:e,hostname:r,protocol:n,port:s,servername:t[Ud],localAddress:t[dB]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){eg.destroy(i.on("error",zse),new QYe);return}cl(i);try{t[un]=i.alpnProtocol==="h2"?await WYe(t,i):await JYe(t,i)}catch(o){throw i.destroy().on("error",zse),o}t[R0]=!1,i[PYe]=0,i[bO]=t[bO],i[SYe]=t,i[DYe]=null,D0.connected.hasSubscribers&&D0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB],socket:i}),t.emit("connect",t[mA],[t])}catch(i){if(t.destroyed)return;if(t[R0]=!1,D0.connectError.hasSubscribers&&D0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gB]===0);t[pB]>0&&t[yc][t[Bc]].servername===t[Ud];){let o=t[yc][t[Bc]++];eg.errorRequest(t,o,i)}else Zse(t,i);t.emit("connectionError",t[mA],[t],i)}t[hB]()}function jse(t){t[Od]=0,t.emit("drain",t[mA],[t])}function wO(t,e){t[tg]!==2&&(t[tg]=2,jYe(t,e),t[tg]=0,t[Al]>256&&(t[yc].splice(0,t[Al]),t[Bc]-=t[Al],t[Al]=0))}function jYe(t,e){for(;;){if(t.destroyed){cl(t[pB]===0);return}if(t[Pd]&&!t[fB]){t[Pd](),t[Pd]=null;return}if(t[un]&&t[un].resume(),t[BO])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>jse(t))):jse(t);continue}if(t[pB]===0||t[gB]>=(Xse(t)||1))return;let r=t[yc][t[Bc]];if(t[mA].protocol==="https:"&&t[Ud]!==r.servername){if(t[gB]>0)return;t[Ud]=r.servername,t[un]?.destroy(new bYe("servername changed"),()=>{t[un]=null,wO(t)})}if(t[R0])return;if(!t[un]){$se(t);return}if(t[un].destroyed||t[un].busy(r))return;!r.aborted&&t[un].write(r)?t[Bc]++:t[yc].splice(t[Bc],1)}}eie.exports=QO});var SO=C((Xjt,tie)=>{"use strict";var ET=class{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)}};tie.exports=class{constructor(){this.head=this.tail=new ET}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ET),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var nie=C((Zjt,rie)=>{var{kFree:KYe,kConnected:XYe,kPending:ZYe,kQueued:$Ye,kRunning:eVe,kSize:tVe}=vr(),rg=Symbol("pool"),NO=class{constructor(e){this[rg]=e}get connected(){return this[rg][XYe]}get free(){return this[rg][KYe]}get pending(){return this[rg][ZYe]}get queued(){return this[rg][$Ye]}get running(){return this[rg][eVe]}get size(){return this[rg][tVe]}};rie.exports=NO});var vO=C(($jt,hie)=>{"use strict";var rVe=g0(),nVe=SO(),{kConnected:TO,kSize:sie,kRunning:iie,kPending:oie,kQueued:mB,kBusy:sVe,kFree:iVe,kUrl:oVe,kClose:aVe,kDestroy:cVe,kDispatch:AVe}=vr(),uVe=nie(),Si=Symbol("clients"),Xs=Symbol("needDrain"),EB=Symbol("queue"),xO=Symbol("closed resolve"),DO=Symbol("onDrain"),aie=Symbol("onConnect"),cie=Symbol("onDisconnect"),Aie=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Lqe.exports=zre});var Gqe=f((xSn,qqe)=>{"use strict";var{kProxy:Gjt,kClose:Yjt,kDestroy:Jjt,kInterceptors:Vjt}=ts(),{URL:Pqe}=B("url"),_qe=rk(),Wjt=mw(),zjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:jjt}=Un(),Oqe=Y1(),ik=Symbol("proxy agent"),VH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Kjt=Symbol("proxy tls settings"),Hqe=Symbol("connect endpoint function");function Xjt(t){return t==="https:"?443:80}function Zjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function $jt(t,e){return new Wjt(t,e)}var Kre=class extends zjt{constructor(e){if(super(e),this[Gjt]=Zjt(e),this[ik]=new _qe(e),this[Vjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=$jt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Kjt]=e.proxyTls,this[ok]=e.headers||{};let n=new Pqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Oqe({...e.proxyTls});this[Hqe]=Oqe({...e.requestTls}),this[VH]=r(n,{connect:c}),this[ik]=new _qe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Xjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[VH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new jjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[Hqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Pqe(e.origin),s=e7t(e.headers);return t7t(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Yjt](){await this[ik].close(),await this[VH].close()}async[Jjt](){await this[ik].destroy(),await this[VH].destroy()}};function e7t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function t7t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}qqe.exports=Kre});var zqe=f((TSn,Wqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:Yqe}=ts(),{RequestRetryError:WH}=Un(),{isDisturbed:Jqe,parseHeaders:r7t,parseRangeHeader:Vqe}=Gr();function n7t(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Yqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Yqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?n7t(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=r7t(r);if(this.retryCount+=1,e>=300)return this.abort(new WH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Vqe(i["content-range"]);if(!a)return this.abort(new WH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new WH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return n3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,s3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,s3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};qw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var WZt=B("os"),qne=B("fs"),{access:zZt,appendFile:jZt,writeFile:KZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield zZt(e,qne.constants.R_OK|qne.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(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?KZt:jZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(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(WZt.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(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).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:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).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()}},o3e=new Gne;LA.markdownSummary=o3e;LA.summary=o3e});var a3e=f(UA=>{"use strict";var XZt=UA&&UA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Zt=UA&&UA.__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)&&XZt(e,t,r);return ZZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var e$t=$Zt(B("path"));function t$t(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=t$t;function r$t(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=r$t;function n$t(t){return t.replace(/[/\\]/g,e$t.sep)}UA.toPlatformPath=n$t});var Vne=f(Ze=>{"use strict";var s$t=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Yr.platform=w3e.default.platform();Yr.arch=w3e.default.arch();Yr.isWindows=Yr.platform==="win32";Yr.isMacOS=Yr.platform==="darwin";Yr.isLinux=Yr.platform==="linux";function L$t(){return Gq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Yr.isWindows?F$t():Yr.isMacOS?M$t():v$t()),{platform:Yr.platform,arch:Yr.arch,isWindows:Yr.isWindows,isMacOS:Yr.isMacOS,isLinux:Yr.isLinux})})}Yr.getDetails=L$t});var Oc=f(We=>{"use strict";var U$t=We&&We.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),P$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__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)&&U$t(e,t,r);return P$t(e,t),e},S3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=dPe(),ZB=fPe(),Yw=qO(),R3e=Xne(B("os")),_$t=Xne(B("path")),O$t=i3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function H$t(t,e){let r=(0,Yw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=H$t;function q$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=q$t;function G$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${_$t.delimiter}${process.env.PATH}`}We.addPath=G$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function Y$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=Y$t;function J$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=J$t;function V$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(R3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Yw.toCommandValue)(e))}We.setOutput=V$t;function W$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=W$t;function z$t(t){process.exitCode=Kne.Failure,D3e(t)}We.setFailed=z$t;function j$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=j$t;function K$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=K$t;function D3e(t,e={}){(0,zu.issueCommand)("error",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=D3e;function X$t(t,e={}){(0,zu.issueCommand)("warning",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=X$t;function Z$t(t,e={}){(0,zu.issueCommand)("notice",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=Z$t;function $$t(t){process.stdout.write(t+R3e.EOL)}We.info=$$t;function x3e(t){(0,zu.issue)("group",t)}We.startGroup=x3e;function T3e(){(0,zu.issue)("endgroup")}We.endGroup=T3e;function eer(t,e){return S3e(this,void 0,void 0,function*(){x3e(t);let r;try{r=yield e()}finally{T3e()}return r})}We.group=eer;function ter(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Yw.toCommandValue)(e))}We.saveState=ter;function rer(t){return process.env[`STATE_${t}`]||""}We.getState=rer;function ner(t){return S3e(this,void 0,void 0,function*(){return yield O$t.OidcClient.getIDToken(t)})}We.getIDToken=ner;var ser=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return ser.summary}});var ier=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return ier.markdownSummary}});var $ne=a3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(N3e())});var k3e=f(Vh=>{"use strict";var oer=Vh&&Vh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aer=Vh&&Vh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aer=Vh&&Vh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&oer(e,t,r);return aer(e,t),e};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.getOptions=void 0;var ese=Aer(Oc());function cer(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Vh.getOptions=cer});var Jq=f(js=>{"use strict";var uer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ler=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),der=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&uer(e,t,r);return ler(e,t),e},her=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Yq=der(B("path")),$B=her(B("assert")),NE=process.platform==="win32";function ger(t){if(t=rse(t),NE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Yq.dirname(t);return NE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ger;function fer(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(NE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==zq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===zq)return[n,s];if(!s)return Yer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Ger;function Ger(){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?ose:e.dot?ver:Ler,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?Jer(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.prototype.match=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;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(Z3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Yer(t){return t.replace(/\\(.)/g,"$1")}function Jer(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var r4e=f(ju=>{"use strict";var Ver=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t4e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ver(e,t,r);return Wer(e,t),e},zer=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=t4e(B("path")),RE=t4e(Jq()),wk=zer(B("assert")),jer=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=RE.safeTrimTrailingSeparator(e),!RE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=RE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=RE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=RE.normalizeSeparators(e[r]),r===0&&RE.hasRoot(n)?(n=RE.safeTrimTrailingSeparator(n),wk.default(n===RE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||jer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var n4e=f(Ku=>{"use strict";var Ker=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xer=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ker(e,t,r);return Xer(e,t),e},Zer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var $er=dse(B("os")),Nk=dse(B("path")),qA=dse(Jq()),e0=Zer(B("assert")),etr=Ase(),use=Vq(),Kq=r4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Kq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Kq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Kq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new etr.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Kq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new a4e.Pattern(i));return n.searchPaths.push(...Zq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var u4e=f(Vw=>{"use strict";var atr=Vw&&Vw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.create=void 0;var Atr=c4e();function ctr(t,e){return atr(this,void 0,void 0,function*(){return yield Atr.DefaultGlobber.create(t,e)})}Vw.create=ctr});var p4e=f((Ot,f4e)=>{Ot=f4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,$q=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,utr=Dk-6,Ww=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},h4e=0;function Er(t){ie[t]=h4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,utr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Ww[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Ww[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ltr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=jtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=nG.relative(a,d).replace(new RegExp(`\\${nG.sep}`,"g"),"/");kk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=nrr;function srr(t){return Kw(this,void 0,void 0,function*(){return $tr.promisify(bse.unlink)(t)})}Zr.unlinkFile=srr;function Q4e(t,e=[]){return Kw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Ktr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function irr(){return Kw(this,void 0,void 0,function*(){let t=yield Q4e("zstd",["--quiet"]),e=Ztr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=irr;function orr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=orr;function arr(){return Kw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield Q4e("tar")).toLowerCase().includes("gnu tar")?I4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=arr;function Arr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Arr;function crr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(err),B4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=crr;function urr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=urr});var Vn={};xu(Vn,{__addDisposableResource:()=>W4e,__assign:()=>sG,__asyncDelegator:()=>_4e,__asyncGenerator:()=>P4e,__asyncValues:()=>O4e,__await:()=>Zw,__awaiter:()=>k4e,__classPrivateFieldGet:()=>Y4e,__classPrivateFieldIn:()=>V4e,__classPrivateFieldSet:()=>J4e,__createBinding:()=>oG,__decorate:()=>w4e,__disposeResources:()=>z4e,__esDecorate:()=>S4e,__exportStar:()=>M4e,__extends:()=>y4e,__generator:()=>F4e,__importDefault:()=>G4e,__importStar:()=>q4e,__makeTemplateObject:()=>H4e,__metadata:()=>T4e,__param:()=>N4e,__propKey:()=>D4e,__read:()=>Sse,__rest:()=>b4e,__rewriteRelativeImportExtension:()=>j4e,__runInitializers:()=>R4e,__setFunctionName:()=>x4e,__spread:()=>v4e,__spreadArray:()=>U4e,__spreadArrays:()=>L4e,__values:()=>iG,default:()=>hrr});function y4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function b4e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function w4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function N4e(t,e){return function(r,n){e(r,n,t)}}function S4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function R4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function D4e(t){return typeof t=="symbol"?t:"".concat(t)}function x4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function T4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function k4e(t,e,r,n){function s(i){re Line truncated
${Grr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=pG;function Yrr(t){return t instanceof pG?!0:(0,Orr.isError)(t)&&t.name==="RestError"}});var s0=f(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.uint8ArrayToString=Jrr;mG.stringToUint8Array=Vrr;function Jrr(t,e){return Buffer.from(t).toString(e)}function Vrr(t,e){return Buffer.from(t,e)}});var Uk=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.logger=void 0;var Wrr=uG();EG.logger=(0,Wrr.createClientLogger)("ts-http-runtime")});var CYe=f(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.getBodyLength=EYe;IG.createNodeHttpClient=tnr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),gYe=$se.__importDefault(B("node:zlib")),zrr=B("node:stream"),fYe=Fk(),jrr=TE(),_k=$w(),eN=Uk(),Krr=vk(),Xrr={};function Pk(t){return t&&typeof t.pipe=="function"}function pYe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function mYe(t){return t&&typeof t.byteLength=="number"}var CG=class extends zrr.Transform{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}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new fYe.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Krr.Sanitizer;eN.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=EYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new CG(g);p.on("error",C=>{eN.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Zrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?$rr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new CG(h);g.on("error",p=>{eN.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await enr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=pYe(a));let u=Promise.resolve();Pk(A)&&(u=pYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{eN.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new fYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):mYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(eN.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Xrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(eN.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Zrr(t){let e=(0,jrr.createHttpHeaders)();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}function $rr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gYe.default.createInflate Line truncated
`.trim())}};Iae.exports=v3});var _T=C((NKt,wae)=>{"use strict";var Bae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_We}=Vt(),LWe=F0();Qae()===void 0&&bae(new LWe);function bae(t){if(!t||typeof t.dispatch!="function")throw new _We("Argument agent must implement Agent");Object.defineProperty(globalThis,Bae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Qae(){return globalThis[Bae]}wae.exports={setGlobalDispatcher:bae,getGlobalDispatcher:Qae}});var LT=C((xKt,Sae)=>{"use strict";Sae.exports=class{#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 Tae=C((DKt,Nae)=>{"use strict";var UWe=gT();Nae.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new UWe(r,o,s,i);return r(a,c)}}});var Dae=C((RKt,xae)=>{"use strict";var PWe=ST();xae.exports=t=>e=>function(n,s){return e(n,new PWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var kae=C((kKt,Rae)=>{"use strict";var OWe=Ct(),{InvalidArgumentError:HWe,RequestAbortedError:GWe}=Vt(),qWe=LT(),F3=class extends qWe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new HWe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=OWe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new GWe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function YWe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new F3({maxSize:i},s);return e(n,o)}}Rae.exports=YWe});var Mae=C((vKt,Fae)=>{"use strict";var{isIP:VWe}=Q("node:net"),{lookup:JWe}=Q("node:dns"),WWe=LT(),{InvalidArgumentError:q0,InformationalError:zWe}=Vt(),vae=Math.pow(2,31)-1,M3=class{#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.#i}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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new zWe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){JWe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===vae?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===vae?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new _3(this,e,r)}},_3=class extends WWe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(bx(e,s,aXe)){cXe(e,i)&&(r.retry=e.toString("utf8",i));return}if(bx(e,s,oXe)){AXe(e,i)&&(r.id=e.toString("utf8",i));return}if(bx(e,s,iXe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&eXe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&tXe(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===nE[0]||(this.checkBOM=!1),!0):n===void 0?e===nE[0]&&r===nE[1]?!0:(this.checkBOM=!1,!1):(e===nE[0]&&r===nE[1]&&n===nE[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};hue.exports={EventSourceStream:w8}});var Bue=C((uXt,yue)=>{"use strict";var{pipeline:uXe}=Q("node:stream"),{fetching:lXe}=RB(),{makeRequest:dXe}=J0(),{webidl:hl}=gs(),{EventSourceStream:hXe}=fue(),{parseMIMEType:fXe}=Qi(),{createFastMessageEvent:gXe}=Z0(),{isNetworkError:gue}=xB(),{delay:pXe}=b8(),{kEnumerableProperty:Eg}=Ct(),{environmentSettingsObject:pue}=ao(),mue=!1,Eue=3e3,VB=0,Cue=1,JB=2,mXe="anonymous",EXe="use-credentials",sE=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=VB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hl.util.markAsUncloneable(this);let n="EventSource constructor";hl.argumentLengthCheck(arguments,1,n),mue||(mue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hl.converters.USVString(e,n,"url"),r=hl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Eue};let s=pue,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=mXe;r.withCredentials&&(o=EXe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=pue.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=dXe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JB)return;this.#r=VB;let e={request:this.#i,dispatcher:this.#a},r=n=>{gue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(gue(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?fXe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Cue,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hXe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(gXe(c.type,c.options))}});uXe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=lXe(e)}async#A(){this.#r!==JB&&(this.#r=VB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var V=I.type==="*"?g4:I.type==="?"?f4:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),ne=n.slice(k.reEnd-8,k.reEnd),ce=n.slice(k.reEnd);ne+=ce;var de=j.split("(").length-1,ke=ce;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");ce=ke;var ve="";ce===""&&e!==zx&&(ve="$");var rt=j+Z+ce+ve+ne;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===zx)return[n,s];if(!s)return oet(t);var _t=r.nocase?"i":"";try{var Rt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Rt._glob=t,Rt._src=n,Rt}Io.makeRe=function(t,e){return new bn(t,e||{}).makeRe()};bn.prototype.makeRe=iet;function iet(){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?g4:e.dot?X$e:Z$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===bg?r:typeof o=="string"?aet(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Io.match=function(t,e,r){r=r||{};var n=new bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};bn.prototype.match=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;ob.sep!=="/"&&(e=e.split(ob.sep).join("/")),e=e.split(lde),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};bn.prototype.matchOne=function(t,e,r){return e.indexOf(bg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===bg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===bg){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var F=A[B];F===bg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var V=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};bn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};bn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===bg)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function oet(t){return t.replace(/\\(.)/g,"$1")}function aet(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var dE=C((C$t,Ede)=>{"use strict";var pet="2.0.0",met=Number.MAX_SAFE_INTEGER||9007199254740991,Eet=16,Cet=250,Iet=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ede.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Eet,MAX_SAFE_BUILD_LENGTH:Cet,MAX_SAFE_INTEGER:met,RELEASE_TYPES:Iet,SEMVER_SPEC_VERSION:pet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ub=C((I$t,Cde)=>{"use strict";var yet=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Cde.exports=yet});var hE=C((QA,Ide)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m4,MAX_SAFE_BUILD_LENGTH:Bet,MAX_LENGTH:bet}=dE(),Qet=ub();QA=Ide.exports={};var wet=QA.re=[],Net=QA.safeRe=[],ye=QA.src=[],Tet=QA.safeSrc=[],Be=QA.t={},xet=0,E4="[a-zA-Z0-9-]",Det=[["\\s",1],["\\d",bet],[E4,Bet]],Ret=t=>{for(let[e,r]of Det)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+xG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dsr()+e+" "+t[0]}function dsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hsr(...t){return process.stderr.write(DG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function gsr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fsr(){return process.env.DEBUG}function psr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}xG.exports=mie()(lo);var{formatters:qYe}=xG.exports;qYe.o=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qYe.O=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts)}});var TG=f((EDn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=LYe():Iie.exports=GYe()});var VYe=f(YA=>{"use strict";var msr=YA&&YA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Esr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YYe=YA&&YA.__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)&&msr(e,t,r);return Esr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var Csr=YYe(B("http")),Isr=YYe(B("https"));async function JYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=JYe;async function Bsr(t){let r=(await JYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=Bsr;function Qsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Isr:Csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=Qsr});var Qie=f(qc=>{"use strict";var zYe=qc&&qc.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ysr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jYe=qc&&qc.__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)&&zYe(e,t,r);return ysr(e,t),e},bsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var wsr=jYe(B("net")),WYe=jYe(B("http")),Nsr=B("https");bsr(VYe(),qc);var zh=Symbol("AgentBaseInternalState"),Bie=class extends WYe.Agent{constructor(e){super(e),this[zh]={}}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 wsr.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)?Nsr.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof WYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[zh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[zh].currentSocket;if(this[zh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zh]&&(this[zh].defaultPort=e)}get protocol(){return this[zh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zh]&&(this[zh].protocol=e)}};qc.Agent=Bie});var KYe=f(dN=>{"use strict";var Ssr=dN&&dN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dN,"__esModule",{value:!0});dN.parseProxyResponse=void 0;var Rsr=Ssr(TG()),kG=(0,Rsr.default)("https-proxy-agent:parse-proxy-response");function Dsr(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),kG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),kG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+_D.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Est()+e+" "+t[0]}function Est(){return Kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Cst(...t){return process.stderr.write(MD.formatWithOptions(Kn.inspectOpts,...t)+`
`)}function Ist(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function yst(){return process.env.DEBUG}function Bst(t){t.inspectOpts={};let e=Object.keys(Kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Kn.inspectOpts[e[r]]}_D.exports=a6()(Kn);var{formatters:zfe}=_D.exports;zfe.o=function(t){return this.inspectOpts.colors=this.useColors,MD.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zfe.O=function(t){return this.inspectOpts.colors=this.useColors,MD.inspect(t,this.inspectOpts)}});var LD=C((Ktr,u6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u6.exports=Gfe():u6.exports=jfe()});var Zfe=C(vi=>{"use strict";var bst=vi&&vi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qst=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kfe=vi&&vi.__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)&&bst(e,t,r);return Qst(e,t),e};Object.defineProperty(vi,"__esModule",{value:!0});vi.req=vi.json=vi.toBuffer=void 0;var wst=Kfe(Q("http")),Sst=Kfe(Q("https"));async function Xfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}vi.toBuffer=Xfe;async function Nst(t){let r=(await Xfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}vi.json=Nst;function Tst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Sst:wst).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}vi.req=Tst});var d6=C(bo=>{"use strict";var ege=bo&&bo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xst=bo&&bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tge=bo&&bo.__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)&&ege(e,t,r);return xst(e,t),e},Dst=bo&&bo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ege(e,t,r)};Object.defineProperty(bo,"__esModule",{value:!0});bo.Agent=void 0;var Rst=tge(Q("net")),$fe=tge(Q("http")),kst=Q("https");Dst(Zfe(),bo);var NA=Symbol("AgentBaseInternalState"),l6=class extends $fe.Agent{constructor(e){super(e),this[NA]={}}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 Rst.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)?kst.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof $fe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[NA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[NA].currentSocket;if(this[NA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[NA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[NA]&&(this[NA].defaultPort=e)}get protocol(){return this[NA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[NA]&&(this[NA].protocol=e)}};bo.Agent=l6});var rge=C(BE=>{"use strict";var vst=BE&&BE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BE,"__esModule",{value:!0});BE.parseProxyResponse=void 0;var Fst=vst(LD()),UD=(0,Fst.default)("https-proxy-agent:parse-proxy-response");function Mst(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),UD("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),UD("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){kG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}kG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}dN.parseProxyResponse=Dsr});var yie=f($u=>{"use strict";var xsr=$u&&$u.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tsr=$u&&$u.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),e5e=$u&&$u.__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)&&xsr(e,t,r);return Tsr(e,t),e},t5e=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.HttpsProxyAgent=void 0;var FG=e5e(B("net")),XYe=e5e(B("tls")),ksr=t5e(B("assert")),Fsr=t5e(TG()),Msr=Qie(),vsr=B("url"),Lsr=KYe(),qk=(0,Fsr.default)("https-proxy-agent"),ZYe=t=>t.servername===void 0&&t.host&&!FG.isIP(t.host)?{...t,servername:t.host}:t,MG=class extends Msr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vsr.URL(e):e,this.proxyHeaders=r?.headers??{},qk("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?$Ye(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:"?(qk("Creating `tls.Socket`: %o",this.connectOpts),s=XYe.connect(ZYe(this.connectOpts))):(qk("Creating `net.Socket`: %o",this.connectOpts),s=FG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){UD("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let F=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,V]:Array.isArray(L)?L.push(V):I[F]=V}UD("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}BE.parseProxyResponse=Mst});var cge=C(Ea=>{"use strict";var _st=Ea&&Ea.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Lst=Ea&&Ea.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oge=Ea&&Ea.__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)&&_st(e,t,r);return Lst(e,t),e},age=Ea&&Ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.HttpsProxyAgent=void 0;var PD=oge(Q("net")),nge=oge(Q("tls")),Ust=age(Q("assert")),Pst=age(LD()),Ost=d6(),Hst=Q("url"),Gst=rge(),Qb=(0,Pst.default)("https-proxy-agent"),sge=t=>t.servername===void 0&&t.host&&!PD.isIP(t.host)?{...t,servername:t.host}:t,OD=class extends Ost.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Hst.URL(e):e,this.proxyHeaders=r?.headers??{},Qb("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?ige(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:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),s=nge.connect(sge(this.connectOpts))):(Qb("Creating `net.Socket`: %o",this.connectOpts),s=PD.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=PD.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Lsr.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Usr),r.secureEndpoint?(qk("Upgrading socket connection to TLS"),XYe.connect({...$Ye(ZYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{qk("Replaying proxy buffer for failed request"),(0,ksr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};MG.protocols=["http","https"];$u.HttpsProxyAgent=MG;function Usr(t){t.resume()}function $Ye(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var bie=f(el=>{"use strict";var Psr=el&&el.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_sr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n5e=el&&el.__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)&&Psr(e,t,r);return _sr(e,t),e},Osr=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpProxyAgent=void 0;var Hsr=n5e(B("net")),qsr=n5e(B("tls")),Gsr=Osr(TG()),Ysr=B("events"),Jsr=Qie(),r5e=B("url"),hN=(0,Gsr.default)("http-proxy-agent"),vG=class extends Jsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new r5e.URL(e):e,this.proxyHeaders=r?.headers??{},hN("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?Vsr(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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new r5e.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;hN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Gst.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",qst),r.secureEndpoint?(Qb("Upgrading socket connection to TLS"),nge.connect({...ige(sge(r),"host","path","port"),socket:s})):s;s.destroy();let l=new PD.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Qb("Replaying proxy buffer for failed request"),(0,Ust.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};OD.protocols=["http","https"];Ea.HttpsProxyAgent=OD;function qst(t){t.resume()}function ige(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lge=C(Ca=>{"use strict";var Yst=Ca&&Ca.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vst=Ca&&Ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uge=Ca&&Ca.__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)&&Yst(e,t,r);return Vst(e,t),e},Jst=Ca&&Ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.HttpProxyAgent=void 0;var Wst=uge(Q("net")),zst=uge(Q("tls")),jst=Jst(LD()),Kst=Q("events"),Xst=d6(),Age=Q("url"),bE=(0,jst.default)("http-proxy-agent"),HD=class extends Xst.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Age.URL(e):e,this.proxyHeaders=r?.headers??{},bE("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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Age.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;bE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(bE("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),hN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hN("Creating `tls.Socket`: %o",this.connectOpts),i=qsr.connect(this.connectOpts)):(hN("Creating `net.Socket`: %o",this.connectOpts),i=Hsr.connect(this.connectOpts)),await(0,Ysr.once)(i,"connect"),i}};vG.protocols=["http","https"];el.HttpProxyAgent=vG;function Vsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var wie=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.globalNoProxyList=tl.proxyPolicyName=void 0;tl.loadNoProxy=A5e;tl.getDefaultProxySettings=rir;tl.proxyPolicy=sir;var Wsr=yie(),zsr=bie(),jsr=Uk(),Ksr="HTTPS_PROXY",Xsr="HTTP_PROXY",Zsr="ALL_PROXY",$sr="NO_PROXY";tl.proxyPolicyName="proxyPolicy";tl.globalNoProxyList=[];var o5e=!1,eir=new Map;function LG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function a5e(){if(!process)return;let t=LG(Ksr),e=LG(Zsr),r=LG(Xsr);return t||e||r}function tir(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function A5e(){let t=LG($sr);return o5e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function rir(t){if(!t&&(t=a5e(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function nir(){let t=a5e();return t?new URL(t):void 0}function s5e(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function i5e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&jsr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new zsr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Wsr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function sir(t,e){o5e||tl.globalNoProxyList.push(...A5e());let r=t?s5e(t):nir(),n={};return{name:tl.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!tir(s.url,e?.customNoProxyList??tl.globalNoProxyList,e?.customNoProxyList?void 0:eir)?i5e(s,n,r):s.proxySettings&&i5e(s,n,s5e(s.proxySettings)),i(s)}}}});var Nie=f(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.agentPolicyName=void 0;gN.agentPolicy=iir;gN.agentPolicyName="agentPolicy";function iir(t){return{name:gN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var Sie=f(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.tlsPolicyName=void 0;fN.tlsPolicy=oir;fN.tlsPolicyName="tlsPolicy";function oir(t){return{name:fN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Gk=f(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.isNodeReadableStream=c5e;a0.isWebReadableStream=u5e;a0.isBinaryBody=air;a0.isReadableStream=l5e;a0.isBlob=Air;function c5e(t){return!!(t&&typeof t.pipe=="function")}function u5e(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function air(t){return t!==void 0&&(t instanceof Uint8Array||l5e(t)||typeof t=="function"||t instanceof Blob)}function l5e(t){return c5e(t)||u5e(t)}function Air(t){return typeof t.stream=="function"}});var g5e=f(Die=>{"use strict";Object.defineProperty(Die,"__esModule",{value:!0});Die.concat=dir;var Rie=B("stream"),cir=Gk();async function*d5e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function uir(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=d5e.bind(t)),t.values||(t.values=d5e.bind(t))}function h5e(t){return t instanceof ReadableStream?(uir(t),Rie.Readable.fromWeb(t)):t}function lir(t){return t instanceof Uint8Array?Rie.Readable.from(Buffer.from(t)):(0,cir.isBlob)(t)?h5e(t.stream()):h5e(t)}async function dir(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(lir);return Rie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var xie=f(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.multipartPolicyName=void 0;mN.multipartPolicy=bir;var pN=s0(),hir=Gk(),gir=dG(),fir=g5e();function pir(){return`----AzSDKFormBoundary${(0,gir.randomUUID)()}`}function mir(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Eir(t){return t instanceof Uint8Array?t.byteLength:(0,hir.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Cir(t){let e=0;for(let r of t){let n=Eir(r);if(n===void 0)return;e+=n}return e}async function Iir(t,e,r){let n=[(0,pN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,pN.stringToUint8Array)(`\r
`,"utf-8"),(0,pN.stringToUint8Array)(mir(i.headers),"utf-8"),(0,pN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,pN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,pN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Cir(n);s&&t.headers.set("Content-Length",s),t.body=await(0,fir.concat)(n)}mN.multipartPolicyName="multipartPolicy";var Bir=70,Qir=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function yir(t){if(t.length>Bir)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qir.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function bir(){return{name:mN.multipartPolicyName,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?yir(r):r=pir(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Iir(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var m5e=f(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.createPipelineFromOptions=vir;var wir=rie(),Nir=Yse(),Sir=nie(),Rir=oie(),Dir=aie(),xir=fie(),Tir=pie(),f5e=Hk(),kir=wie(),Fir=Nie(),Mir=Sie(),p5e=xie();function vir(t){let e=(0,Nir.createEmptyPipeline)();return f5e.isNodeLike&&(t.agent&&e.addPolicy((0,Fir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,Mir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,kir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Dir.decompressResponsePolicy)())),e.addPolicy((0,Tir.formDataPolicy)(),{beforePolicies:[p5e.multipartPolicyName]}),e.addPolicy((0,Rir.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,p5e.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,xir.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),f5e.isNodeLike&&e.addPolicy((0,Sir.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,wir.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var E5e=f(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.apiVersionPolicyName=void 0;EN.apiVersionPolicy=Lir;EN.apiVersionPolicyName="ApiVersionPolicy";function Lir(t){return{name:EN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var C5e=f(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.isOAuth2TokenCredential=Uir;CN.isBearerTokenCredential=Pir;CN.isBasicCredential=_ir;CN.isApiKeyCredential=Oir;function Uir(t){return"getOAuth2Token"in t}function Pir(t){return"getBearerToken"in t}function _ir(t){return"username"in t&&"password"in t}function Oir(t){return"key"in t}});var Yk=f(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ensureSecureConnection=Yir;var Hir=Uk(),I5e=!1;function qir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function Gir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";Hir.logger.warning(t),typeof process?.emitWarning=="function"&&!I5e&&(I5e=!0,process.emitWarning(t))}function Yir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(qir(t,e))Gir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var B5e=f(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.apiKeyAuthenticationPolicyName=void 0;IN.apiKeyAuthenticationPolicy=Vir;var Jir=Yk();IN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Vir(t){return{name:IN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,Jir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var y5e=f(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.basicAuthenticationPolicyName=void 0;BN.basicAuthenticationPolicy=zir;var Q5e=s0(),Wir=Yk();BN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function zir(t){return{name:BN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,Wir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,Q5e.uint8ArrayToString)((0,Q5e.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var b5e=f(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var m9e=f(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.auxiliaryAuthenticationHeaderPolicyName=void 0;l0.auxiliaryAuthenticationHeaderPolicy=Fcr;var xcr=voe(),Tcr=Wk();l0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var p9e="x-ms-authorization-auxiliary";async function kcr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function Fcr(t){let{credentials:e,scopes:r}=t,n=t.logger||Tcr.logger,s=new WeakMap;return{name:l0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${l0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,xcr.createTokenCycler)(c),s.set(c,u)),a.push(kcr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${p9e} header will not be set.`),o(i)):(i.headers.set(p9e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Ji=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var Mcr=Gie();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return Mcr.createEmptyPipeline}});var vcr=$6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return vcr.createPipelineFromOptions}});var Lcr=e9e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return Lcr.createDefaultHttpClient}});var Ucr=t9e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return Ucr.createHttpHeaders}});var Pcr=r9e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return Pcr.createPipelineRequest}});var E9e=s8();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return E9e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return E9e.isRestError}});var C9e=hoe();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return C9e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return C9e.decompressResponsePolicyName}});var I9e=s9e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicyName}});var B9e=Eoe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicyName}});var Q9e=Zie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return Q9e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return Q9e.logPolicyName}});var y9e=doe();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return y9e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return y9e.multipartPolicyName}});var Loe=moe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Loe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Loe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Loe.getDefaultProxySettings}});var b9e=$ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return b9e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Me=h(Q,J);if(Me===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Me.value;if(J=Me.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Me.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=Ic(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Me=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Me=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Me=q.lastIndexOf("."),q=q.substring(0,Me),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=zI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=Ic(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=Ic(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=zI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Me=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Ys="";if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let Su=this.readStopNodeData(Q,Ee,bt+1);if(!Su)throw new Error(`Unexpected end of ${Ee}`);J=Su.i,Ys=Su.tagContent}let _a=new F(ae);ae!==Me&&zt&&(_a[":@"]=this.buildAttributesMap(Me,q,ae)),Ys&&(Ys=this.parseTextData(Ys,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),_a.add(this.options.textNodeName,Ys),this.addChild(P,_a,q,hn)}else{if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Ys=new F(ae);ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Ys=new F(ae);this.tagsNodeStack.push(P),ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),P=Ys}j="",J=bt}}else j+=Q[J];return b.child};function VI(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let WI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function Ic(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function zI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Ys,_a="";for(let Su=pr;Su<bt.length;Su++){let Bc=bt[Su];if(Ys)Bc===Ys&&(Ys="");else if(Bc==='"'||Bc==="'")Ys=Bc;else if(Bc===hn[0]){if(!hn[1])return{data:_a,index:Su};if(bt[Su+1]===hn[1])return{data:_a,index:Su}}else Bc===" "&&(Bc=" ");_a+=Bc}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Me=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Me=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Pf(Q,b,"",P)}function Pf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=BA(ae);if(Ee===void 0)continue;let Me="";if(Me=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];Gm(Me,b)||(hn=b.tagValueProcessor(Ee,hn),hn=tB(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=QA(ae[":@"],b),Ys=Ee==="?xml"?"":j,_a=ae[Ee][0][b.textNodeName];_a=_a.length!==0?" "+_a:"",q+=Ys+`<${Ee}${_a}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${QA(ae[":@"],b)}`,pr=Pf(ae[Ee],b,Me,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function BA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function QA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=tB(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function Gm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function tB(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?eB(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Me="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Me+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Me,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Me=0;Me<Ee;Me++)j+=this.buildAttrPairStr(ae[Me],""+Q[ue][ae[Me]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};FJe.exports=e})()});var cae=f(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.XML_CHARKEY=YN.XML_ATTRKEY=void 0;YN.XML_ATTRKEY="$";YN.XML_CHARKEY="_"});var UJe=f(N8=>{"use strict";Object.defineProperty(N8,"__esModule",{value:!0});N8.stringifyXML=jlr;N8.parseXML=Klr;var uae=MJe(),vJe=cae();function LJe(t){var e;return{attributesGroupName:vJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:vJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Wlr(t={}){var e,r;return Object.assign(Object.assign({},LJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function zlr(t={}){return Object.assign(Object.assign({},LJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ha.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ha.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ha.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,Hdr.compareHeader)(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=(0,sVe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,sVe.getURLQueries)(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};H8.StorageSharedKeyCredentialPolicy=Rae});var iVe=f(q8=>{"use strict";Object.defineProperty(q8,"__esModule",{value:!0});q8.StorageSharedKeyCredential=void 0;var qdr=B("node:crypto"),Gdr=Dae(),Ydr=_8(),xae=class extends Ydr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gdr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,qdr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};q8.StorageSharedKeyCredential=xae});var oVe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.AbortError=void 0;var Tae=class extends Error{constructor(e){super(e),this.name="AbortError"}};G8.AbortError=Tae});var kae=f(Y8=>{"use strict";Object.defineProperty(Y8,"__esModule",{value:!0});Y8.AbortError=void 0;var Jdr=oVe();Object.defineProperty(Y8,"AbortError",{enumerable:!0,get:function(){return Jdr.AbortError}})});var Fae=f(J8=>{"use strict";Object.defineProperty(J8,"__esModule",{value:!0});J8.logger=void 0;var Vdr=A0();J8.logger=(0,Vdr.createClientLogger)("storage-common")});var Mae=f(V8=>{"use strict";Object.defineProperty(V8,"__esModule",{value:!0});V8.StorageRetryPolicyType=void 0;var aVe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(aVe||(V8.StorageRetryPolicyType=aVe={}))});var cVe=f(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.StorageRetryPolicy=void 0;I2.NewRetryPolicyFactory=jdr;var Wdr=kae(),zdr=C2(),AVe=Cp(),vae=h0(),PE=Fae(),Lae=Mae();function jdr(t){return{create:(e,r)=>new W8(e,r,t)}}var _E={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kdr=new Wdr.AbortError("The operation was aborted."),W8=class extends zdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=_E){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:_E.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):_E.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:_E.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:_E.maxRetryDelayInMs):_E.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:_E.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:_E.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=(0,vae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,vae.setURLParameter)(s.url,AVe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(PE.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(PE.logger.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return PE.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return PE.logger.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return PE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return PE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(AVe.HeaderConstants.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(PE.logger.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 Lae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return PE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,vae.delay)(s,n,Kdr)}};I2.StorageRetryPolicy=W8});var _ae=f(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,Ahr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ga.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ga.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ga.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,chr.compareHeader)(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=(0,fVe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,fVe.getURLQueries)(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:XN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var mVe=f(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.storageRequestFailureDetailsParserPolicyName=void 0;ZN.storageRequestFailureDetailsParserPolicy=lhr;ZN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function lhr(){return{name:ZN.storageRequestFailureDetailsParserPolicyName,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}}}}});var EVe=f(z8=>{"use strict";Object.defineProperty(z8,"__esModule",{value:!0});z8.UserDelegationKeyCredential=void 0;var dhr=B("node:crypto"),Gae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,dhr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};z8.UserDelegationKeyCredential=Gae});var bd=f(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.BaseRequestPolicy=Ks.getCachedDefaultHttpClient=void 0;var fa=(Wn(),$n(Vn));fa.__exportStar(qJe(),Ks);var hhr=GJe();Object.defineProperty(Ks,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return hhr.getCachedDefaultHttpClient}});fa.__exportStar(JJe(),Ks);fa.__exportStar(rVe(),Ks);fa.__exportStar(nVe(),Ks);fa.__exportStar(_8(),Ks);fa.__exportStar(iVe(),Ks);fa.__exportStar(_ae(),Ks);var ghr=C2();Object.defineProperty(Ks,"BaseRequestPolicy",{enumerable:!0,get:function(){return ghr.BaseRequestPolicy}});fa.__exportStar(yae(),Ks);fa.__exportStar(L8(),Ks);fa.__exportStar(uVe(),Ks);fa.__exportStar(lVe(),Ks);fa.__exportStar(gVe(),Ks);fa.__exportStar(Dae(),Ks);fa.__exportStar(pVe(),Ks);fa.__exportStar(mVe(),Ks);fa.__exportStar(EVe(),Ks)});var Gc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var OE=f($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.Pipeline=$h.StorageOAuthScopes=void 0;$h.isPipelineLike=phr;$h.newPipeline=mhr;$h.getCoreClientOptions=Chr;$h.getCredentialFromPipeline=yVe;var QVe=w8(),CVe=Ji(),IVe=Kh(),BVe=lae(),Yae=_N(),fhr=R8(),Yc=bd(),B2=Gc();Object.defineProperty($h,"StorageOAuthScopes",{enumerable:!0,get:function(){return B2.StorageOAuthScopes}});function phr(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var j8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};$h.Pipeline=j8;function mhr(t,e={}){t||(t=new Yc.AnonymousCredential);let r=new j8([],e);return r._credential=t,r}function Ehr(t){let e=[Ihr,bVe,Bhr,Qhr,yhr,bhr,Nhr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>whr(s));return{wrappedPolicies:(0,QVe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function Chr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,QVe.convertHttpClient)(e):(0,Yc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${B2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,IVe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:B2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:B2.StorageBlobLoggingAllowedQueryParameters,logger:fhr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:BVe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new C0.SASQueryParameters(t.version,i,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}}function Ufr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Pfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function _fr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Ofr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Hfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function qfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function I0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function B0(t){let e=t.version?t.version:cWe.SERVICE_VERSION;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}});var C3=f(E3=>{"use strict";Object.defineProperty(E3,"__esModule",{value:!0});E3.BlobLeaseClient=void 0;var Gfr=Bs(),tg=Gc(),y2=f0(),m3=nl(),hAe=class{_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=(0,Gfr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,m3.assertResponse)(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!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${xWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(DWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function mpr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await ppr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(TWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!xWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}zE.pollOperation=mpr});var LAe=f(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.pollHttpOperation=Zs.isOperationError=Zs.getResourceLocation=Zs.getOperationStatus=Zs.getOperationLocation=Zs.initHttpOperation=Zs.getStatusFromInitialResponse=Zs.getErrorFromResponse=Zs.parseRetryAfter=Zs.inferLroMode=void 0;var kWe=k3(),FAe=x3();function FWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function MWe(t){return t.headers.location}function vWe(t){return t.headers["operation-location"]}function LWe(t){return t.headers["azure-asyncoperation"]}function Epr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function UWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=vWe(e),o=LWe(e),a=FWe({operationLocation:i,azureAsyncOperation:o}),A=MWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Epr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Zs.inferLroMode=UWe;function PWe(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 MAe(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 FAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Cpr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return PWe({status:r,statusCode:t.statusCode})}function Ipr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return PWe({status:i,statusCode:t.statusCode})}function MAe(t){return t===202?"running":t<300?"succeeded":"failed"}function _We({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Bpr(new Date(e)):r*1e3}}Zs.parseRetryAfter=_We;function OWe(t){let e=GWe(t,"error");if(!e){FAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){FAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Zs.getErrorFromResponse=OWe;function Bpr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function HWe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return MAe(e.rawResponse.statusCode);case"Body":return vAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Zs.getStatusFromInitialResponse=HWe;async function Qpr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,kWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=UWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:HWe,setErrorAsResult:i})}Zs.initHttpOperation=Qpr;function qWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,h4.truncatedISO8061Date)(t.startsOn,!1):"",(0,h4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,mze.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Dmr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var yze=f(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});p4.BlobServiceClient=void 0;var kmr=_N(),Fmr=Ji(),Cze=Bs(),S2=OE(),Mmr=ace(),f4=nl(),w0=bd(),og=nl(),ag=f0(),vmr=s4(),Lmr=A3(),Ize=c4(),Bze=dce(),Qze=d4(),hce=class t extends Lmr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,f4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(Cze.isNodeLike){let s=new w0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,Fmr.getDefaultProxySettings)(n.proxyUri));let i=(0,S2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,S2.newPipeline)(new w0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,S2.isPipelineLike)(r)?s=r:Cze.isNodeLike&&r instanceof w0.StorageSharedKeyCredential||r instanceof w0.AnonymousCredential||(0,kmr.isTokenCredential)(r)?s=(0,S2.newPipeline)(r,n):s=(0,S2.newPipeline)(new w0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new Mmr.ContainerClient((0,f4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,og.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,og.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,og.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,og.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,og.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,og.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,og.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,f4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};zA.NetworkError=I4;I4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var B4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};zA.UsageError=B4;B4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Rze=f(jA=>{"use strict";var Hmr=jA&&jA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qmr=jA&&jA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gmr=jA&&jA.__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)&&Hmr(e,t,r);return qmr(e,t),e},Ymr=jA&&jA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.uploadCacheArchiveSDK=jA.UploadProgress=void 0;var Ice=Gmr(Oc()),Jmr=gce(),Vmr=Cce(),Q4=class{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);Ice.info(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};jA.UploadProgress=Q4;function Wmr(t,e,r){var n;return Ymr(this,void 0,void 0,function*(){let s=new Jmr.BlobClient(t),i=s.getBlockBlobClient(),o=new Q4((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),Ice.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Vmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ice.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}jA.uploadCacheArchiveSDK=Wmr});var Qce=f(ei=>{"use strict";var zmr=ei&&ei.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jmr=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kmr=ei&&ei.__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)&&zmr(e,t,r);return jmr(e,t),e},b4=ei&&ei.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0});ei.retryHttpClientResponse=ei.retryTypedResponse=ei.retry=ei.isRetryableStatusCode=ei.isServerErrorStatusCode=ei.isSuccessStatusCode=void 0;var Dze=Kmr(Oc()),y4=XB(),hS=jw();function Xmr(t){return t?t>=200&&t<300:!1}ei.isSuccessStatusCode=Xmr;function xze(t){return t?t>=500:!0}ei.isServerErrorStatusCode=xze;function Tze(t){return t?[y4.HttpCodes.BadGateway,y4.HttpCodes.ServiceUnavailable,y4.HttpCodes.GatewayTimeout].includes(t):!1}ei.isRetryableStatusCode=Tze;function Zmr(t){return b4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bce(t,e,r,n=hS.DefaultRetryAttempts,s=hS.DefaultRetryDelay,i=void 0){return b4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!xze(c)))return A;if(c&&(u=Tze(c),o=`Cache service responded with ${c}`),Dze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Wc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function vEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=new SEr.URL(t),s=(0,Dce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,R4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,R4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,R4.downloadCacheHttpClient)(t,e):yield(0,R4.downloadCacheHttpClient)(t,e)})}mo.downloadCache=vEr;function LEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=xce(),s=pS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,ZE.retryTypedResponse)("reserveCache",()=>KA(this,void 0,void 0,function*(){return n.postJson(F2("caches"),i)}))})}mo.reserveCache=LEr;function Gze(t,e){return`bytes ${t}-${e}/*`}function UEr(t,e,r,n,s){return KA(this,void 0,void 0,function*(){Wc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Gze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Gze(n,s)},o=yield(0,ZE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>KA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,ZE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function PEr(t,e,r,n){return KA(this,void 0,void 0,function*(){let s=pS.getArchiveFileSizeInBytes(r),i=F2(`caches/${e.toString()}`),o=Sce.openSync(r,"r"),a=(0,Dce.getUploadOptions)(n),A=pS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=pS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Wc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>KA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield UEr(t,i,()=>Sce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{Sce.closeSync(o)}})}function _Er(t,e,r){return KA(this,void 0,void 0,function*(){let n={size:r};return yield(0,ZE.retryTypedResponse)("commitCache",()=>KA(this,void 0,void 0,function*(){return t.postJson(F2(`caches/${e.toString()}`),n)}))})}function OEr(t,e,r,n){return KA(this,void 0,void 0,function*(){if((0,Dce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,REr.uploadCacheArchiveSDK)(r,e,n)}else{let i=xce();Wc.debug("Upload cache"),yield PEr(i,t,e,n),Wc.debug("Commiting cache");let o=pS.getArchiveFileSizeInBytes(e);Wc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield _Er(i,t,o);if(!(0,ZE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Wc.info("Cache saved successfully")}})}mo.saveCache=OEr});var D4=f(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.isJsonObject=mS.typeofJsonValue=void 0;function HEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}mS.typeofJsonValue=HEr;function qEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}mS.isJsonObject=qEr});var T4=f(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.base64encode=ES.base64decode=void 0;var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),x4=[];for(let t=0;t<yp.length;t++)x4[yp[t].charCodeAt(0)]=t;x4[45]=yp.indexOf("+");x4[95]=yp.indexOf("/");function GEr(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=x4[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}ES.base64decode=GEr;function YEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=yp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=yp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=yp[s|n>>6],e+=yp[n&63],r=0;break}return r&&(e+=yp[s],e+="=",r==1&&(e+="=")),e}ES.base64encode=YEr});var Jze=f(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.utf8read=void 0;var Tce=t=>String.fromCharCode.apply(String,t);function JEr(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Tce(n)),s=0);return r.length?(s&&r.push(Tce(n.slice(0,s))),r.join("")):Tce(n.slice(0,s))}k4.utf8read=JEr});var M2=f(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.WireType=Ag.mergeBinaryOptions=Ag.UnknownFieldHandler=void 0;var VEr;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(VEr=Ag.UnknownFieldHandler||(Ag.UnknownFieldHandler={}));function WEr(t,e){return Object.assign(Object.assign({},t),e)}Ag.mergeBinaryOptions=WEr;var zEr;(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"})(zEr=Ag.WireType||(Ag.WireType={}))});var M4=f(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.varint32read=XA.varint32write=XA.int64toString=XA.int64fromString=XA.varint64write=XA.varint64read=void 0;function jEr(){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")}XA.varint64read=jEr;function KEr(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}XA.varint64write=KEr;var F4=65536*65536;function XEr(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=F4&&(s=s+(n/F4|0),n=n%F4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}XA.int64fromString=XEr;function ZEr(t,e){if(e>>>0<=2097151)return""+(F4*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}XA.int64toString=ZEr;function $Er(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)}}XA.varint32write=$Er;function eCr(){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}XA.varint32read=eCr});var eC=f($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.PbLong=$E.PbULong=$E.detectBi=void 0;var v2=M4(),_n;function Vze(){let t=new DataView(new ArrayBuffer(8));_n=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}$E.detectBi=Vze;Vze();function Wze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var zze=/^-?[0-9]+$/,L4=4294967296,v4=2147483648, Line truncated
`)}};aY.RpcError=sue});var oue=f(cY=>{"use strict";Object.defineProperty(cY,"__esModule",{value:!0});cY.mergeRpcOptions=void 0;var bje=lr();function QIr(t,e){if(!e)return t;let r={};AY(t,r),AY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=bje.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=bje.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},AY(t.meta,r.meta),AY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}cY.mergeRpcOptions=QIr;function AY(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}});var Aue=f(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.Deferred=R0.DeferredState=void 0;var lg;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(lg=R0.DeferredState||(R0.DeferredState={}));var aue=class{constructor(e=!0){this._state=lg.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!==lg.PENDING)throw new Error(`cannot resolve ${lg[this.state].toLowerCase()}`);this._resolve(e),this._state=lg.RESOLVED}reject(e){if(this.state!==lg.PENDING)throw new Error(`cannot reject ${lg[this.state].toLowerCase()}`);this._reject(e),this._state=lg.REJECTED}resolvePending(e){this._state===lg.PENDING&&this.resolve(e)}rejectPending(e){this._state===lg.PENDING&&this.reject(e)}};R0.Deferred=aue});var uue=f(uY=>{"use strict";Object.defineProperty(uY,"__esModule",{value:!0});uY.RpcOutputStreamController=void 0;var wje=Aue(),D0=lr(),cue=class{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){D0.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){D0.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){D0.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(){D0.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:()=>{let e=this._itState;D0.assert(e,"bad state"),D0.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 wje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;D0.assert(n.state==wje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};uY.RpcOutputStreamController=cue});var due=f(wS=>{"use strict";var yIr=wS&&wS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(wS,"__esModule",{value:!0});wS.UnaryCall=void 0;var lue=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 yIr(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}})}};wS.UnaryCall=lue});var gue=f(NS=>{"use strict";var bIr=NS&&NS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(NS,"__esModule",{value:!0});NS.ServerStreamingCall=void 0;var hue=class Line truncated
`));let n=yield Uue(r,"create");yield Pue(n,t)})}pa.createTar=EBr});var Z2=f(vi=>{"use strict";var CBr=vi&&vi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IBr=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K2=vi&&vi.__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)&&CBr(e,t,r);return IBr(e,t),e},qS=vi&&vi.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(vi,"__esModule",{value:!0});vi.saveCache=vi.restoreCache=vi.isFeatureAvailable=vi.ReserveCacheError=vi.ValidationError=void 0;var dr=K2(Oc()),EY=K2(B("path")),bs=K2(Xw()),OS=K2(Yze()),Yje=K2(Oje()),X2=N4(),nC=Gje(),BBr=jw(),F2n=XB(),sC=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};vi.ValidationError=sC;var j2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};vi.ReserveCacheError=j2;function Jje(t){if(!t||t.length===0)throw new sC("Path Validation Error: At least one directory or file path is required")}function _ue(t){if(t.length>512)throw new sC(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new sC(`Key Validation Error: ${t} cannot contain commas.`)}function QBr(){return(0,X2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}vi.isFeatureAvailable=QBr;function yBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){let i=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Jje(t),i==="v2"?yield wBr(t,e,r,n,s):yield bBr(t,e,r,n,s)})}vi.restoreCache=yBr;function bBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)_ue(A);let o=yield bs.getCompressionMethod(),a="";try{let A=yield OS.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield OS.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,nC.listTar)(a,o));let c=bs.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,nC.extractTar)(a,o),dr.info("Cache restored successfully"),new HS(A.cacheKey,c)}finally{try{yield bs.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function wBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)_ue(a);let o="";try{let a=Yje.internalCacheTwirpClient(),A=yield bs.getCompressionMethod(),c={key:e,restoreKeys:r,version:bs.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield OS.downloadCache(u.signedDownloadUrl,o,n);let d=bs.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,nC.listTar)(o,A)),yield(0,nC.extractTar)(o,A),dr.info("Cache restored successfully"),new HS(u.matchedKey,d)}finally{try{o&&(yield bs.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function NBr(t,e,r,n=!1){return qS(this,void 0,void 0,function*(){let s=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Jje(t),_ue(e),s==="v2"?yield RBr(t,e,r,n):yield SBr(t,e,r,n)})}vi.saveCache=NBr;function SBr(t,e,r,n=!1){var s,i,o,a,A;return qS(this,void 0,void 0,function*(){let c=yield bs.getCompressionMethod(),u=-1,l=yield bs.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cyr(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(WQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function uyr(){return"allowed"}function lyr(){return"success"}function dyr(){return"success"}function hyr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function gyr(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&&_le(t.origin)&&!_le(dF(t))&&(e=null);break;case"same-origin":WY(t,dF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rR(t,e){return t}function fyr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rR(t.domainLookupStartTime,r),domainLookupEndTime:rR(t.domainLookupEndTime,r),connectionStartTime:rR(t.connectionStartTime,r),connectionEndTime:rR(t.connectionEndTime,r),secureConnectionStartTime:rR(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function pyr(t){return rR(ZQr.now(),t)}function myr(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}}function jKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Eyr(t){return{referrerPolicy:t.referrerPolicy}}function Cyr(t){let e=t.referrerPolicy;U0(e);let r=null;if(t.referrer==="client"){let a=GKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=Ple(r),s=Ple(r,!0);n.toString().length>4096&&(n=s);let i=WY(t,n),o=lF(n)&&!lF(t.url);switch(e){case"origin":return s??Ple(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=dF(t);return WY(n,a)?n:lF(n)&&!lF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function Ple(t,e){return U0(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)}function lF(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"))}}function Iyr(t,e){if(VY===void 0)return!0;let r=KKe(e);if(r==="no metadata"||r.length===0)return!0;let n=Qyr(r),s=yyr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=VY.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),byr(A,a))return!0}return!1}var Byr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Byr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();JKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Qyr(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}function yyr(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}function byr(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}function wyr(t){}function WY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Nyr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function Syr(t){return t.controller.state==="aborted"}function Ryr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Dyr(t){return tyr[t.toLowerCase()]??t}function xyr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return U0(typeof e=="string"),e}var Tyr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function XKe(t,e,r=0,n=1){cl Line truncated
`);function abr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Abr(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}function cbr(t,e){jY(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&KY(t,ibr,i)||i.position===t.length-4&&KY(t,obr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ubr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",abr(u)||(u=""),h=new nbr([d],c,{type:u})):h=Zyr(Buffer.from(d)),jY(cXe(A)),jY(typeof h=="string"&&cXe(h)||ebr(h)),s.push(tbr(A,h,c))}}function ubr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=sR(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vle(o,!0,!0,a=>a===9||a===32),!$yr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sR(a=>a===32||a===9,t,e),Xyr(o)){case"content-disposition":{if(r=n=null,!KY(t,sbr,e)||(e.position+=17,r=dXe(t,e),r===null))return"failure";if(KY(t,lXe,e)){let a=e.position+lXe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=dXe(t,e),n===null))return"failure"}break}case"content-type":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),s=uXe(a);break}case"content-transfer-encoding":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),i=uXe(a);break}default:sR(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function dXe(t,e){jY(t[e.position-1]===34);let r=sR(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)}function sR(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Vle(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function KY(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}hXe.exports={multipartFormDataParser:cbr,validateBoundary:Abr}});var aR=f((RFn,bXe)=>{"use strict";var fF=Ir(),{ReadableStreamFrom:lbr,isBlobLike:fXe,isReadableStreamLike:dbr,readableStreamClose:hbr,createDeferredPromise:gbr,fullyReadBody:fbr,extractMimeType:pbr,utf8DecodeBytes:EXe}=jc(),{FormData:pXe}=gF(),{kState:oR}=AC(),{webidl:mbr}=Wo(),{Blob:Ebr}=B("node:buffer"),Wle=B("node:assert"),{isErrored:CXe,isDisturbed:Cbr}=B("node:stream"),{isArrayBuffer:Ibr}=B("node:util/types"),{serializeAMimeType:Bbr}=$A(),{multipartFormDataParser:Qbr}=gXe(),zle;try{let t=B("node:crypto");zle=e=>t.randomInt(0,e)}catch{zle=t=>Math.floor(Math.random(t))}var XY=new TextEncoder;function ybr(){}var IXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,BXe;IXe&&(BXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Cbr(e)&&!CXe(e)&&e.cancel("Response object has been garbage collected").catch(ybr)}));function QXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fXe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?XY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>hbr(A))},start(){},type:"bytes"}),Wle(dbr(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Ibr(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(fF.isFormDataLike(t)){let A=`----formdata-undici-0${`${zle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=XY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=XY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=XY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(fXe(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(fF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:lbr(t)}if((typeof s=="string"||fF.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!CXe(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function bbr(t,e=!1){return t instanceof ReadableStream&&(Wle(!fF.isDisturbed(t),"The body has already been consumed."),Wle(!t.locked,"The stream is locked.")),QXe(t,e)}function wbr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Nbr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Sbr(t){return{blob(){return iR(this,r=>{let n=mXe(this);return n===null?n="":n&&(n=Bbr(n)),new Ebr([r],{type:n})},t)},arrayBuffer(){return iR(this,r=>new Uint8Array(r).buffer,t)},text(){return iR(this,EXe,t)},json(){return iR(this,Dbr,t)},formData(){return iR(this,r=>{let n=mXe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Qbr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new pXe;return i[oR]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new pXe;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return iR(this,r=>new Uint8Array(r),t)}}}function Rbr(t){Object.assign(t.prototype,Sbr(t))}async function iR(t,e,r){if(mbr.brandCheck(t,r),yXe(t))throw new TypeError("Body is unusable: Body has already been read");Nbr(t[oR]);let n=gbr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[oR].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await fbr(t[oR].body,i,s),n.promise)}function yXe(t){let e=t[oR].body;return e!=null&&(e.stream.locked||fF.isDisturbed(e.stream))}function Dbr(t){return JSON.parse(EXe(t))}function mXe(t){let e=t[oR].headersList,r=pbr(e);return r==="failure"?null:r}bXe.exports={extractBody:QXe,safelyExtractBody:bbr,cloneBody:wbr,mixinBody:Rbr,streamRegistry:BXe,hasFinalizationRegistry:IXe,bodyUnusable:yXe}});var vXe=f((DFn,MXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:wXe}=zS(),jle=xle(),{RequestContentLengthMismatchError:P0,ResponseContentLengthMismatchError:xbr,RequestAbortedError:TXe,HeadersTimeoutError:Tbr,HeadersOverflowError:kbr,SocketError:n5,InformationalError:AR,BodyTimeoutError:Fbr,HTTPParserError:Mbr,ResponseExceededMaxSizeError:vbr}=sn(),{kUrl:kXe,kReset:ec,kClient:$le,kParser:si,kBlocking:EF,kRunning:ma,kPending:Lbr,kSize:NXe,kWriting:uC,kQueue:Td,kNoRef:pF,kKeepAliveDefaultTimeout:Ubr,kHostHeader:Pbr,kPendingIdx:_br,kRunningIdx:gl,kError:fl,kPipelining:t5,kSocket:cR,kKeepAliveTimeoutValue:s5,kMaxHeadersSize:Kle,kKeepAliveMaxTimeout:Obr,kKeepAliveTimeoutThreshold:Hbr,kHeadersTimeout:qbr,kBodyTimeout:Gbr,kStrictContentLength:ede,kMaxRequests:SXe,kCounter:Ybr,kMaxResponseSize:Jbr,kOnError:Vbr,kResume:cC,kHTTPContext:FXe}=ws(),fg=BKe(),Wbr=Buffer.alloc(0),ZY=Buffer[Symbol.species],$Y=Vt.addListener,zbr=Vt.removeAllListeners,Xle;async function jbr(){let t=process.env.JEST_WORKER_ID?Fle():void 0,e;try{e=await WebAssembly.compile(bKe())}catch{e=await WebAssembly.compile(t||Fle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onStatus(new ZY(pg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(zi.ptr===r),zi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderField(new ZY(pg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderValue(new ZY(pg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(zi.ptr===r),zi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onBody(new ZY(pg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(zi.ptr===r),zi.onMessageComplete()||0)}})}var Zle=null,tde=jbr();tde.catch();var zi=null,pg=null,e5=0,mg=null,Kbr=0,mF=1,uR=2|mF,r5=4|mF,rde=8|Kbr,nde=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Kle])&&e[Kle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(fg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Pbr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[t5]&&!h[ec]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return wXe.sendHeaders.hasSubscribers&&wXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?DXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?DXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?xXe(g,A.stream(),t,e,h,u,p,l):rwr(g,A,t,e,h,u,p,l):Vt.isStream(A)?twr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?xXe(g,A,t,e,h,u,p,l):kt(!1),!0}function twr(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"stream body cannot be pipelined");let A=!1,c=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new TXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[uC]&&r[ma]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function DXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ec]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cC]()}catch(A){t(A)}}async function rwr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new P0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[ec]=!0),r[cC]()}catch(A){t(A)}}async function xXe(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{kt(A===null),s[fl]?h(s[fl]):A=d});s.on("close",c).on("drain",c);let l=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[fl])throw s[fl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var i5=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[uC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[fl])throw r[fl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ede])throw new P0;process.emitWarning(new P0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ec]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[si].timeout&&r[si].timeoutType===uR&&r[si].timeout.refresh&&r[si].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uC]=!1,e[fl])throw e[fl];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[ede])throw new P0;process.emitWarning(new P0)}e[si].timeout&&e[si].timeoutType===uR&&e[si].timeout.refresh&&e[si].timeout.refresh(),n[cC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[uC]=!1,e&&(kt(n[ma]<=1,"pipeline should only contain this request"),s(e))}};MXe.exports=Xbr});var GXe=f((xFn,qXe)=>{"use strict";var pl=B("node:assert"),{pipeline:nwr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:sde,RequestAbortedError:LXe,SocketError:CF,InformationalError:ide}=sn(),{kUrl:o5,kReset:A5,kClient:lR,kRunning:c5,kPending:swr,kQueue:lC,kPendingIdx:ode,kRunningIdx:kd,kError:Md,kSocket:Bo,kStrictContentLength:iwr,kOnError:ade,kMaxConcurrentStreams:HXe,kHTTP2Session:Fd,kResume:dC,kSize:owr,kHTTPContext:awr}=ws(),Mp=Symbol("open streams"),UXe,PXe=!1,a5;try{a5=B("node:http2")}catch{a5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Awr,HTTP2_HEADER_METHOD:cwr,HTTP2_HEADER_PATH:uwr,HTTP2_HEADER_SCHEME:lwr,HTTP2_HEADER_CONTENT_LENGTH:dwr,HTTP2_HEADER_EXPECT:hwr,HTTP2_HEADER_STATUS:gwr}}=a5;function fwr(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}async function pwr(t,e){t[Bo]=e,PXe||(PXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=a5.connect(t[o5],{createConnection:()=>e,peerMaxConcurrentStreams:t[HXe]});r[Mp]=0,r[lR]=t,r[Bo]=e,Tr.addListener(r,"error",Ewr),Tr.addListener(r,"frameError",Cwr),Tr.addListener(r,"end",Iwr),Tr.addListener(r,"goaway",Bwr),Tr.addListener(r,"close",function(){let{[lR]:s}=this,{[Bo]:i}=s,o=this[Bo][Md]||this[Md]||new CF("closed",Tr.getSocketInfo(i));if(s[Fd]=null,s.destroyed){pl(s[swr]===0);let a=s[lC].splice(s[kd]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[Fd]=r,e[Fd]=r,Tr.addListener(e,"error",function(s){pl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Md]=s,this[lR][ade](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new CF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Md]||new CF("closed",Tr.getSocketInfo(this));t[Bo]=null,this[Fd]!=null&&this[Fd].destroy(s),t[ode]=t[kd],pl(t[c5]===0),t.emit("disconnect",t[o5],[t],s),t[dC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ywr(t,...s)},resume(){mwr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function mwr(t){let e=t[Bo];e?.destroyed===!1&&(t[owr]===0&&t[HXe]===0?(e.unref(),t[Fd].unref()):(e.ref(),t[Fd].ref()))}function Ewr(t){pl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bo][Md]=t,this[lR][ade](t)}function Cwr(t,e,r){if(r===0){let n=new ide(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bo][Md]=n,this[lR][ade](n)}}function Iwr(){let t=new CF("other side closed",Tr.getSocketInfo(this[Bo]));this.destroy(t),Tr.destroy(this[Bo],t)}function Bwr(t){let e=this[Md]||new CF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[lR];if(r[Bo]=null,r[awr]=null,this[Fd]!=null&&(this[Fd].destroy(e),this[Fd]=null),Tr.destroy(this[Bo],e),r[kd]<r[lC].length){let n=r[lC][r[kd]];r[lC][r[kd]++]=null,Tr.errorRequest(r,n,e),r[ode]=r[kd]}pl(r[c5]===0),r.emit("disconnect",r[o5],[r],e),r[dC]()}function Qwr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ywr(t,e){let r=t[Fd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[o5];l[Awr]=i||`${h}${g?`:${g}`:""}`,l[cwr]=n;let p=w=>{e.aborted||e.completed||(w=w||new LXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[lC][t[kd]++]=null,t[dC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Mp],t[lC][t[kd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Mp],t[lC][t[kd]++]=null}),d.once("close",()=>{r[Mp]-=1,r[Mp]===0&&r.unref()}),!0;l[uwr]=s,l[lwr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){UXe??=aR().extractBody;let[w,H]=UXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),Qwr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[iwr])return Tr.errorRequest(t,e,new sde),!1;process.emitWarning(new sde)}m!=null&&(pl(u,"no body must not have content length"),l[dwr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[hwr]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[jwr]=A??3e5,this[zwr]=s??3e5,this[Kwr]=I??!0,this[Xwr]=w,this[lde]=z,this[gC]=null,this[rNr]=W>-1?W:-1,this[sNr]=oe??100,this[yi]=null,this[vd]=[],this[Lp]=0,this[Ld]=0,this[yF]=he=>hde(this,he),this[nNr]=he=>tZe(this,he)}get pipelining(){return this[h5]}set pipelining(e){this[h5]=e,this[yF](!0)}get[NF](){return this[vd].length-this[Ld]}get[wF](){return this[Ld]-this[Lp]}get[bF](){return this[vd].length-this[Lp]}get[Hwr](){return!!this[yi]&&!this[hR]&&!this[yi].destroyed}get[ude](){return!!(this[yi]?.busy(null)||this[bF]>=(eZe(this)||1)||this[NF]>0)}[Owr](e){rZe(this),this.once("connect",e)}[tNr](e,r){let n=e.origin||this[Cg].origin,s=new Mwr(n,e,r);return this[vd].push(s),this[O0]||(_0.bodyLength(s.body)==null&&_0.isIterable(s.body)?(this[O0]=1,queueMicrotask(()=>hde(this))):this[yF](!0)),this[O0]&&this[fC]!==2&&this[ude]&&(this[fC]=2),this[fC]<2}async[$wr](){return new Promise(e=>{this[bF]?this[gC]=e:e(null)})}async[eNr](e){return new Promise(r=>{let n=this[vd].splice(this[Ld]);for(let i=0;i<n.length;i++){let o=n[i];_0.errorRequest(this,o,e)}let s=()=>{this[gC]&&(this[gC](),this[gC]=null),r(null)};this[yi]?(this[yi].destroy(e,s),this[yi]=null):queueMicrotask(s),this[yF]()})}},aNr=d5();function tZe(t,e){if(t[wF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vp(t[Ld]===t[Lp]);let r=t[vd].splice(t[Lp]);for(let n=0;n<r.length;n++){let s=r[n];_0.errorRequest(t,s,e)}vp(t[bF]===0)}}async function rZe(t){vp(!t[hR]),vp(!t[yi]);let{host:e,hostname:r,protocol:n,port:s}=t[Cg];if(r[0]==="["){let i=r.indexOf("]");vp(i!==-1);let o=r.substring(1,i);vp($Xe.isIP(o)),r=o}t[hR]=!0,dR.beforeConnect.hasSubscribers&&dR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF]});try{let i=await new Promise((o,a)=>{t[BF]({host:e,hostname:r,protocol:n,port:s,servername:t[hC],localAddress:t[QF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){_0.destroy(i.on("error",XXe),new Uwr);return}vp(i);try{t[yi]=i.alpnProtocol==="h2"?await oNr(t,i):await iNr(t,i)}catch(o){throw i.destroy().on("error",XXe),o}t[hR]=!1,i[Zwr]=0,i[lde]=t[lde],i[_wr]=t,i[Gwr]=null,dR.connected.hasSubscribers&&dR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],socket:i}),t.emit("connect",t[Cg],[t])}catch(i){if(t.destroyed)return;if(t[hR]=!1,dR.connectError.hasSubscribers&&dR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vp(t[wF]===0);t[NF]>0&&t[vd][t[Ld]].servername===t[hC];){let o=t[vd][t[Ld]++];_0.errorRequest(t,o,i)}else tZe(t,i);t.emit("connectionError",t[Cg],[t],i)}t[yF]()}function ZXe(t){t[fC]=0,t.emit("drain",t[Cg],[t])}function hde(t,e){t[O0]!==2&&(t[O0]=2,ANr(t,e),t[O0]=0,t[Lp]>256&&(t[vd].splice(0,t[Lp]),t[Ld]-=t[Lp],t[Lp]=0))}function ANr(t,e){for(;;){if(t.destroyed){vp(t[NF]===0);return}if(t[gC]&&!t[bF]){t[gC](),t[gC]=null;return}if(t[yi]&&t[yi].resume(),t[ude])t[fC]=2;else if(t[fC]===2){e?(t[fC]=1,queueMicrotask(()=>ZXe(t))):ZXe(t);continue}if(t[NF]===0||t[wF]>=(eZe(t)||1))return;let r=t[vd][t[Ld]];if(t[Cg].protocol==="https:"&&t[hC]!==r.servername){if(t[wF]>0)return;t[hC]=r.servername,t[yi]?.destroy(new Lwr("servername changed"),()=>{t[yi]=null,hde(t)})}if(t[hR])return;if(!t[yi]){rZe(t);return}if(t[yi].destroyed||t[yi].busy(r))return;!r.aborted&&t[yi].write(r)?t[Ld]++:t[vd].splice(t[Ld],1)}}nZe.exports=dde});var gde=f((vFn,sZe)=>{"use strict";var g5=class{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)}};sZe.exports=class{constructor(){this.head=this.tail=new g5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new g5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var oZe=f((LFn,iZe)=>{var{kFree:cNr,kConnected:uNr,kPending:lNr,kQueued:dNr,kRunning:hNr,kSize:gNr}=ws(),H0=Symbol("pool"),fde=class{constructor(e){this[H0]=e}get connected(){return this[H0][uNr]}get free(){return this[H0][cNr]}get pending(){return this[H0][lNr]}get queued(){return this[H0][dNr]}get running(){return this[H0][hNr]}get size(){return this[H0][gNr]}};iZe.exports=fde});var Bde=f((UFn,pZe)=>{"use strict";var fNr=ZS(),pNr=gde(),{kConnected:pde,kSize:aZe,kRunning:AZe,kPending:cZe,kQueued:SF,kBusy:mNr,kFree:ENr,kUrl:CNr,kClose:INr,kDestroy:BNr,kDispatch:QNr}=ws(),yNr=oZe(),tc=Symbol("clients"),rA=Symbol("needDrain"),RF=Symbol("queue"),mde=Symbol("closed resolve"),Ede=Symbol("onDrain"),uZe=Symbol("onConnect"),lZe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};yet.exports=Bhe});var k5=f((lMn,Det)=>{"use strict";var wet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:jRr}=sn(),KRr=pR();Ret()===void 0&&Net(new KRr);function Net(t){if(!t||typeof t.dispatch!="function")throw new jRr("Argument agent must implement Agent");Object.defineProperty(globalThis,wet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ret(){return globalThis[wet]}Det.exports={setGlobalDispatcher:Net,getGlobalDispatcher:Ret}});var F5=f((hMn,xet)=>{"use strict";xet.exports=class{#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 ket=f((gMn,Tet)=>{"use strict";var XRr=l5();Tet.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new XRr(r,o,s,i);return r(a,A)}}});var Met=f((fMn,Fet)=>{"use strict";var ZRr=Q5();Fet.exports=t=>e=>function(n,s){return e(n,new ZRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Let=f((pMn,vet)=>{"use strict";var $Rr=Ir(),{InvalidArgumentError:eDr,RequestAbortedError:tDr}=sn(),rDr=F5(),Qhe=class extends rDr{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new eDr("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=$Rr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new tDr(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function nDr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Qhe({maxSize:i},s);return e(n,o)}}vet.exports=nDr});var _et=f((mMn,Pet)=>{"use strict";var{isIP:sDr}=B("node:net"),{lookup:iDr}=B("node:dns"),oDr=F5(),{InvalidArgumentError:NR,InformationalError:aDr}=sn(),Uet=Math.pow(2,31)-1,yhe=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new aDr("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){iDr(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Uet?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Uet?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new bhe(this,e,r)}},bhe=class extends oDr{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=> Line truncated
${i}`;break;case"retry":Ent(i)&&(r[s]=i);break;case"id":Cnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ent(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Cnt(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,event:void 0,id:void 0,retry:void 0}}};Int.exports={EventSourceStream:cge}});var Dnt=f((zMn,Rnt)=>{"use strict";var{pipeline:fkr}=B("node:stream"),{fetching:pkr}=HF(),{makeRequest:mkr}=DR(),{webidl:Hp}=Wo(),{EventSourceStream:Ekr}=Bnt(),{parseMIMEType:Ckr}=$A(),{createFastMessageEvent:Ikr}=vR(),{isNetworkError:Qnt}=_F(),{delay:Bkr}=age(),{kEnumerableProperty:rQ}=Ir(),{environmentSettingsObject:ynt}=jc(),bnt=!1,wnt=3e3,$F=0,Nnt=1,eM=2,Qkr="anonymous",ykr="use-credentials",OR=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=$F;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hp.util.markAsUncloneable(this);let n="EventSource constructor";Hp.argumentLengthCheck(arguments,1,n),bnt||(bnt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hp.converters.USVString(e,n,"url"),r=Hp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:wnt};let s=ynt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Qkr;r.withCredentials&&(o=ykr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ynt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=mkr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===eM)return;this.#r=$F;let e={request:this.#s,dispatcher:this.#a},r=n=>{Qnt(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Qnt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?Ckr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Nnt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Ekr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Ikr(A.type,A.options))}});fkr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=pkr(e)}async#c(){this.#r!==eM&&(this.#r=$F,this.dispatchEvent(new Event("error")),await Bkr(this.#o.reconnectionTime),this.#r===$F&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Hp.brandCheck(this,t),this.#r!==eM&&(this.#r=eM,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Snt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$F,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Nnt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eM,writable:!1}};Object.defineProperties(OR,Snt);Object.defineProperties(OR.prototype,Snt);Object.defineProperties(OR.prototype,{close:rQ,onerror:rQ,onmessage:rQ,onopen:rQ,readyState:rQ,url:rQ,withCredentials:rQ});Hp.converters.EventSourceInitDict=Hp.dictionaryConverter([{key:"withCredentials",converter:Hp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hp.converters.any}]);Rnt.exports={EventSource:OR,defaultReconnectionTime:wnt}});var uge=f((jMn,vt)=>{"use strict";var bkr=gR(),xnt=iF(),wkr=fR(),Nkr=wZe(),Skr=pR(),Rkr=Mde(),Dkr=jZe(),xkr=t$e(),Tnt=sn(),B6=Ir(),{InvalidArgumentError:I6}=Tnt,HR=H$e(),Tkr=aF(),kkr=fhe(),Fkr=bet(),Mkr=Ehe(),vkr=rhe(),Lkr=Q5(),{getGlobalDispatcher:knt,setGlobalDispatcher:Ukr}=k5(),Pkr=F5(),_kr=l5(),Okr=d5();Object.assign(xnt.prototype,HR);vt.exports.Dispatcher=xnt;vt.exports.Client=bkr;vt.exports.Pool=wkr;vt.exports.BalancedPool=Nkr;vt.exports.Agent=Skr;vt.exports.ProxyAgent=Rkr;vt.exports.EnvHttpProxyAgent=Dkr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),bE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(bE("Creating `tls.Socket`: %o",this.connectOpts),i=zst.connect(this.connectOpts)):(bE("Creating `net.Socket`: %o",this.connectOpts),i=Wst.connect(this.connectOpts)),await(0,Kst.once)(i,"connect"),i}};HD.protocols=["http","https"];Ca.HttpProxyAgent=HD;function Zst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mge=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.state=void 0;$D.state={instrumenterImplementation:void 0}});var Zge=C(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.state=void 0;sR.state={operationRequestMap:new WeakMap}});var U0e=C((eCr,vlt)=>{vlt.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var O0e=C((tCr,P0e)=>{var Flt=U0e();P0e.exports={version:Flt.version}});var M2=C($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.isJsonObject=$E.typeofJsonValue=void 0;function qlt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}$E.typeofJsonValue=qlt;function Ylt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}$E.isJsonObject=Ylt});var L2=C(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.base64encode=eC.base64decode=void 0;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_2=[];for(let t=0;t<Ml.length;t++)_2[Ml[t].charCodeAt(0)]=t;_2[45]=Ml.indexOf("+");_2[95]=Ml.indexOf("/");function Vlt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=_2[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}eC.base64decode=Vlt;function Jlt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ml[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ml[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ml[s|n>>6],e+=Ml[n&63],r=0;break}return r&&(e+=Ml[s],e+="=",r==1&&(e+="=")),e}eC.base64encode=Jlt});var V0e=C(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});U2.utf8read=void 0;var pq=t=>String.fromCharCode.apply(String,t);function Wlt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(pq(n)),s=0);return r.length?(s&&r.push(pq(n.slice(0,s))),r.join("")):pq(n.slice(0,s))}U2.utf8read=Wlt});var NQ=C(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.WireType=XA.mergeBinaryOptions=XA.UnknownFieldHandler=void 0;var zlt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(zlt=XA.UnknownFieldHandler||(XA.UnknownFieldHandler={}));function jlt(t,e){return Object.assign(Object.assign({},t),e)}XA.mergeBinaryOptions=jlt;var Klt;(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"})(Klt=XA.WireType||(XA.WireType={}))});var O2=C(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.varint32read=Gi.varint32write=Gi.int64toString=Gi.int64fromString=Gi.varint64write=Gi.varint64read=void 0;function Xlt(){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")}Gi.varint64read=Xlt;function Zlt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Gi.varint64write=Zlt;var P2=65536*65536;function $lt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=P2&&(s=s+(n/P2|0),n=n%P2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Gi.int64fromString=$lt;function edt(t,e){if(e>>>0<=2097151)return""+(P2*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}Gi.int64toString=edt;function tdt(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)}}Gi.varint32write=tdt;function rdt(){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}Gi.varint32read=rdt});var Bh=C(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.PbLong=yh.PbULong=yh.detectBi=void 0;var TQ=O2(),fr;function J0e(){let t=new DataView(new ArrayBuffer(8));fr=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}yh.detectBi=J0e;J0e();function W0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var z0e=/^-?[0-9]+$/,G2=4294967296,H2=2147483648,q2=c Line truncated
`)}};hk.RpcError=qq});var Vq=C(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.mergeRpcOptions=void 0;var QEe=gt();function Qht(t,e){if(!e)return t;let r={};fk(t,r),fk(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=QEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=QEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fk(t.meta,r.meta),fk(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}gk.mergeRpcOptions=Qht;function fk(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}});var Wq=C(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Deferred=tp.DeferredState=void 0;var eu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(eu=tp.DeferredState||(tp.DeferredState={}));var Jq=class{constructor(e=!0){this._state=eu.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!==eu.PENDING)throw new Error(`cannot resolve ${eu[this.state].toLowerCase()}`);this._resolve(e),this._state=eu.RESOLVED}reject(e){if(this.state!==eu.PENDING)throw new Error(`cannot reject ${eu[this.state].toLowerCase()}`);this._reject(e),this._state=eu.REJECTED}resolvePending(e){this._state===eu.PENDING&&this.resolve(e)}rejectPending(e){this._state===eu.PENDING&&this.reject(e)}};tp.Deferred=Jq});var jq=C(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.RpcOutputStreamController=void 0;var wEe=Wq(),rp=gt(),zq=class{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){rp.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){rp.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){rp.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(){rp.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:()=>{let e=this._itState;rp.assert(e,"bad state"),rp.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 wEe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;rp.assert(n.state==wEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pk.RpcOutputStreamController=zq});var Xq=C(aC=>{"use strict";var wht=aC&&aC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(aC,"__esModule",{value:!0});aC.UnaryCall=void 0;var Kq=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 wht(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}})}};aC.UnaryCall=Kq});var $q=C(cC=>{"use strict";var Sht=cC&&cC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(cC,"__esModule",{value:!0});cC.ServerStreamingCall=void 0;var Zq=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Mut=f(Fut=>{"use strict";var Ime=$p().Buffer;Fut._dbcs=em;var jo=-1,kut=-2,Ml=-10,AA=-1e3,fD=new Array(256),$M=-1;for(DJ=0;DJ<256;DJ++)fD[DJ]=jo;var DJ;function em(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=fD.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(fD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[AA-o[n]],A=48;A<=57;A++){if(a[A]===jo)a[A]=AA-s;else if(a[A]>AA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[AA-a[A]],u=129;u<=254;u++){if(c[u]===jo)c[u]=AA-i;else{if(c[u]===AA-i)continue;if(c[u]>AA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[AA-c[u]],d=48;d<=57;d++)l[d]===jo&&(l[d]=kut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function _4r(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(b4r.has(s)){r=s;break}}return r}function O4r(t,e){let r=_4r(e);r!==""&&(t.referrerPolicy=r)}function H4r(){return"allowed"}function q4r(){return"success"}function G4r(){return"success"}function Y4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function J4r(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&&MEe(t.origin)&&!MEe(RQ(t))&&(e=null);break;case"same-origin":cv(t,RQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function QD(t,e){return t}function V4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:QD(t.domainLookupStartTime,r),domainLookupEndTime:QD(t.domainLookupEndTime,r),connectionStartTime:QD(t.connectionStartTime,r),connectionEndTime:QD(t.connectionEndTime,r),secureConnectionStartTime:QD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W4r(t){return QD(R4r.now(),t)}function z4r(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}}function uht(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function j4r(t){return{referrerPolicy:t.referrerPolicy}}function K4r(t){let e=t.referrerPolicy;uv(e);let r=null;if(t.referrer==="client"){let i=iht();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else WC.is.URL(t.referrer)&&(r=t.referrer);let n=FEe(r),s=FEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??FEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=RQ(t);return cv(n,i)?n:SQ(n)&&!SQ(i)?"no-referrer":s}case"same-origin":return cv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return cv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":n}}}function FEe(t,e=!1){return uv(WC.is.URL(t)),t=new URL(t),ght(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var X4r=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Z4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lht(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Z4r(t)):X4r(t)}function $4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lht(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function SQ(t){return WC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:$4r(t.origin):!1}function eYr(t){}function cv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function tYr(t){return t.controller.state==="aborted"}function rYr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function nYr(t){return x4r[t.toLowerCase()]??t}var sYr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dht(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,sYr),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function iYr(t,e,r,n=0,s=1){let i=dht(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>GEe(a)&&a!==59,t,e);i=HEe.decode(o)}return{name:n,value:i}}function DYr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw lc("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qEe(o,!0,!0,a=>a===9||a===32),!BYr.test(o.toString()))throw lc("header name does not match the field-name token production");if(t[e.position]!==58)throw lc("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),IYr(o)){case"content-disposition":{if(r=n=null,Ul(A=>GEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw lc("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=RYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw lc("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),s=Iht(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),i=Iht(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw lc("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function qEe(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function xYr(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}function lc(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function TYr(t){return t<=31||t===127}function kYr(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function GEe(t){return t<=127&&t!==32&&t!==9&&!TYr(t)&&!kYr(t)}Bht.exports={multipartFormDataParser:SYr,validateBoundary:NYr}});var lv=f((wGn,yht)=>{"use strict";function FYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yht.exports={createDeferredPromise:FYr}});var wD=f((NGn,Rht)=>{"use strict";var VEe=Wt(),{ReadableStreamFrom:MYr,readableStreamClose:vYr,fullyReadBody:LYr,extractMimeType:UYr}=au(),{FormData:bht,setFormDataState:PYr}=$J(),{webidl:jd}=Ko(),YEe=B("node:assert"),{isErrored:JEe,isDisturbed:_Yr}=B("node:stream"),{isUint8Array:OYr}=B("node:util/types"),{serializeAMimeType:HYr}=Ll(),{multipartFormDataParser:qYr}=Qht(),{createDeferredPromise:GYr}=lv(),{parseJSONFromBytes:YYr}=nm(),{utf8DecodeBytes:JYr}=ov(),{runtimeFeatures:VYr}=sm(),WYr=VYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),eV=new TextEncoder;function zYr(){}var jYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_Yr(e)&&!JEe(e)&&e.cancel("Response object has been garbage collected").catch(zYr)});function Nht(t,e=!1){let r=null,n=null;jd.is.ReadableStream(t)?r=t:jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),YEe(jd.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(jd.is.BufferSource(t))i=jd.util.getCopyOfBytesHeldByBufferSource(t);else if(jd.is.FormData(t)){let c=`----formdata-undici-0${`${WYr(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var _Be=C(MBe=>{"use strict";var jJ=zl().Buffer;MBe._dbcs=jl;var Is=-1,FBe=-2,qa=-10,ui=-1e3,OC=new Array(256),Tw=-1;for(rF=0;rF<256;rF++)OC[rF]=Is;var rF;function jl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=OC.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(OC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(OC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ui-o[n]],c=48;c<=57;c++){if(a[c]===Is)a[c]=ui-s;else if(a[c]>ui)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[ui-a[c]],u=129;u<=254;u++){if(A[u]===Is)A[u]=ui-i;else{if(A[u]===ui-i)continue;if(A[u]>ui)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ui-A[u]],d=48;d<=57;d++)l[d]===Is&&(l[d]=FBe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Dbt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(gbt.has(s)){r=s;break}}return r}function Rbt(t,e){let r=Dbt(e);r!==""&&(t.referrerPolicy=r)}function kbt(){return"allowed"}function vbt(){return"success"}function Fbt(){return"success"}function Mbt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _bt(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&&f7(t.origin)&&!f7(kp(t))&&(e=null);break;case"same-origin":Uw(t,kp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function VC(t,e){return t}function Lbt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:VC(t.domainLookupStartTime,r),domainLookupEndTime:VC(t.domainLookupEndTime,r),connectionStartTime:VC(t.connectionStartTime,r),connectionEndTime:VC(t.connectionEndTime,r),secureConnectionStartTime:VC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Ubt(t){return VC(Cbt.now(),t)}function Pbt(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}}function lwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Obt(t){return{referrerPolicy:t.referrerPolicy}}function Hbt(t){let e=t.referrerPolicy;Pw(e);let r=null;if(t.referrer==="client"){let i=owe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vh.is.URL(t.referrer)&&(r=t.referrer);let n=h7(r),s=h7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??h7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=kp(t);return Rp(n)&&!Rp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=kp(t);return Uw(n,i)?n:Rp(n)&&!Rp(i)?"no-referrer":s}case"same-origin":return Uw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Uw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=kp(t);return Rp(n)&&!Rp(i)?"no-referrer":n}}}function h7(t,e=!1){return Pw(Vh.is.URL(t)),t=new URL(t),gwe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Gbt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),qbt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dwe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),qbt(t)):Gbt(t)}function Ybt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dwe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Rp(t){return Vh.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Ybt(t.origin):!1}function Vbt(t){}function Uw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jbt(t){return t.controller.state==="aborted"}function Wbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function zbt(t){return ybt[t.toLowerCase()]??t}var jbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function hwe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,jbt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function Kbt(t,e,r,n=0,s=1){let i=hwe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vh.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vh.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ja(a=>b7(a)&&a!==59,t,e);i=y7.decode(o)}return{name:n,value:i,extended:s}}function IQt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ki("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ja(a=>a!==10&&a!==13&&a!==58,t,e);if(o=B7(o,!0,!0,a=>a===9||a===32),!dQt.test(o.toString()))throw Ki("header name does not match the field-name token production");if(t[e.position]!==58)throw Ki("expected :");switch(e.position++,Ja(a=>a===32||a===9,t,e),lQt(o)){case"content-disposition":{r=n=null;let a=!1;if(Ja(A=>b7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ki("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=CQt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Ki("name attribute is required in content-disposition header");break}case"content-type":{let a=Ja(c=>c!==10&&c!==13,t,e);a=B7(a,!1,!0,c=>c===9||c===32),s=ywe(a);break}case"content-transfer-encoding":{let a=Ja(c=>c!==10&&c!==13,t,e);a=B7(a,!1,!0,c=>c===9||c===32),i=ywe(a);break}default:Ja(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Ki("expected CRLF");e.position+=2}}function Ja(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function B7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function yQt(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}function Ki(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function BQt(t){return t<=31||t===127}function bQt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function b7(t){return t<=127&&t!==32&&t!==9&&!BQt(t)&&!bQt(t)}Bwe.exports={multipartFormDataParser:EQt,validateBoundary:mQt}});var Ow=C((CSr,Qwe)=>{"use strict";function QQt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Qwe.exports={createDeferredPromise:QQt}});var zC=C((ISr,xwe)=>{"use strict";var S7=st(),{ReadableStreamFrom:wQt,readableStreamClose:SQt,fullyReadBody:NQt,extractMimeType:TQt}=Oo(),{FormData:wwe,setFormDataState:xQt}=NF(),{webidl:zc}=ys(),Q7=Q("node:assert"),{isErrored:w7,isDisturbed:DQt}=Q("node:stream"),{isUint8Array:RQt}=Q("node:util/types"),{serializeAMimeType:kQt}=Va(),{multipartFormDataParser:vQt}=bwe(),{createDeferredPromise:FQt}=Ow(),{parseJSONFromBytes:MQt}=Zl(),{utf8DecodeBytes:_Qt}=yF(),{runtimeFeatures:LQt}=$l(),UQt=LQt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),TF=new TextEncoder;function PQt(){}var OQt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DQt(e)&&!w7(e)&&e.cancel("Response object has been garbage collected").catch(PQt)});function Nwe(t,e=!1){let r=null,n=null;zc.is.ReadableStream(t)?r=t:zc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),Q7(zc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(zc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(zc.is.BufferSource(t))i=zc.util.getCopyOfBytesHeldByBufferSource(t);else if(zc.is.FormData(t)){let A=`----formdata-undici-0${`${UQt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=eV.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=TF.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=eV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=TF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=eV.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(VEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:MYr(t)}return(typeof i=="string"||OYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(JEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!JEe(r)&&n.enqueue(typeof c=="string"?eV.encode(c):new Uint8Array(c));queueMicrotask(()=>vYr(n))})(),[{stream:r,source:i,length:o},a]}function KYr(t,e=!1){return jd.is.ReadableStream(t)&&(YEe(!VEe.isDisturbed(t),"The body has already been consumed."),YEe(!t.locked,"The stream is locked.")),Nht(t,e)}function XYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ZYr(t,e){return{blob(){return bD(this,n=>{let s=wht(e(this));return s===null?s="":s&&(s=HYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bD(this,JYr,t,e)},json(){return bD(this,YYr,t,e)},formData(){return bD(this,n=>{let s=wht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qYr(n,s),o=new bht;return PYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return bD(this,n=>new Uint8Array(n),t,e)}}}function $Yr(t,e){Object.assign(t.prototype,ZYr(t,e))}function bD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=GYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(LYr(t.body,o,i),s.promise)}function Sht(t){let e=t.body;return e!=null&&(e.stream.locked||VEe.isDisturbed(e.stream))}function wht(t){let e=t.headersList,r=UYr(e);return r==="failure"?null:r}Rht.exports={extractBody:Nht,safelyExtractBody:KYr,cloneBody:XYr,mixinBody:$Yr,streamRegistry:jYr,bodyUnusable:Sht}});var _ht=f((SGn,Pht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Dht}=JC(),WEe=kme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:e5r,RequestAbortedError:vht,HeadersTimeoutError:t5r,HeadersOverflowError:r5r,SocketError:gv,InformationalError:ND,BodyTimeoutError:n5r,HTTPParserError:s5r,ResponseExceededMaxSizeError:i5r}=or(),{kUrl:Lht,kReset:dc,kClient:eCe,kParser:ai,kBlocking:fv,kRunning:Na,kPending:o5r,kSize:xht,kWriting:jC,kQueue:Kd,kNoRef:dv,kKeepAliveDefaultTimeout:a5r,kHostHeader:A5r,kPendingIdx:c5r,kRunningIdx:Pl,kError:_l,kPipelining:nV,kSocket:SD,kKeepAliveTimeoutValue:iV,kMaxHeadersSize:u5r,kKeepAliveMaxTimeout:l5r,kKeepAliveTimeoutThreshold:d5r,kHeadersTimeout:h5r,kBodyTimeout:g5r,kStrictContentLength:KEe,kMaxRequests:Tht,kCounter:f5r,kMaxResponseSize:p5r,kOnError:m5r,kResume:zC,kHTTPContext:Uht,kClosed:XEe}=Mn(),Mg=Rdt(),E5r=Buffer.alloc(0),tV=Buffer[Symbol.species],C5r=Pt.removeAllListeners,zEe;function I5r(){let t=process.env.JEST_WORKER_ID?IEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Tdt())}catch{}return e||(e=new WebAssembly.Module(t||IEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onStatus(new tV(vg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderField(new tV(vg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderValue(new tV(vg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onBody(new tV(vg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var jEe=null,Ki=null,vg=null,rV=0,Lg=null,B5r=0,hv=1,RD=2|hv,sV=4|hv,ZEe=8|B5r,$Ee=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Mg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[u5r],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[A5r],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=TF.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(zc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(S7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=zc.is.ReadableStream(t)?t:wQt(t)}return(typeof i=="string"||RQt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(w7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!w7(r)&&n.enqueue(typeof A=="string"?TF.encode(A):new Uint8Array(A));queueMicrotask(()=>SQt(n))})(),[{stream:r,source:i,length:o},a]}function HQt(t,e=!1){return zc.is.ReadableStream(t)&&(Q7(!S7.isDisturbed(t),"The body has already been consumed."),Q7(!t.locked,"The stream is locked.")),Nwe(t,e)}function GQt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function qQt(t,e){return{blob(){return WC(this,n=>{let s=Swe(e(this));return s===null?s="":s&&(s=kQt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return WC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return WC(this,_Qt,t,e)},json(){return WC(this,MQt,t,e)},formData(){return WC(this,n=>{let s=Swe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=vQt(n,s),o=new wwe;return xQt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new wwe;for(let[a,c]of i)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,e)},bytes(){return WC(this,n=>new Uint8Array(n),t,e)}}}function YQt(t,e){Object.assign(t.prototype,qQt(t,e))}function WC(t,e,r,n){try{zc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Twe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FQt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(NQt(t.body,o,i),s.promise)}function Twe(t){let e=t.body;return e!=null&&(e.stream.locked||S7.isDisturbed(e.stream))}function Swe(t){let e=t.headersList,r=TQt(e);return r==="failure"?null:r}xwe.exports={extractBody:Nwe,safelyExtractBody:HQt,cloneBody:GQt,mixinBody:YQt,streamRegistry:OQt,bodyUnusable:Twe}});var Ywe=C((ySr,qwe)=>{"use strict";var Je=Q("node:assert"),_e=st(),{channels:Dwe}=qh(),N7=aW(),{RequestContentLengthMismatchError:vp,ResponseContentLengthMismatchError:Rwe,RequestAbortedError:Pwe,InvalidArgumentError:VQt,HeadersTimeoutError:JQt,HeadersOverflowError:WQt,SocketError:Fp,InformationalError:jC,BodyTimeoutError:zQt,HTTPParserError:jQt,ResponseExceededMaxSizeError:KQt}=et(),{kUrl:Owe,kReset:Xi,kClient:vF,kParser:Sr,kBlocking:qw,kRunning:Sn,kPending:F7,kSize:kwe,kWriting:Jh,kQueue:jc,kNoRef:Hw,kKeepAliveDefaultTimeout:XQt,kHostHeader:ZQt,kPendingIdx:$Qt,kRunningIdx:Wa,kError:li,kPipelining:RF,kSocket:Mp,kKeepAliveTimeoutValue:FF,kMaxHeadersSize:ewt,kKeepAliveMaxTimeout:twt,kKeepAliveTimeoutThreshold:rwt,kHeadersTimeout:nwt,kBodyTimeout:swt,kStrictContentLength:D7,kMaxRequests:vwe,kCounter:iwt,kMaxResponseSize:owt,kOnError:Fwe,kResume:td,kHTTPContext:Hwe,kClosed:R7}=sr(),Ho=xQe(),Mwe=Buffer.alloc(0),xF=Buffer[Symbol.species],awt=_e.removeAllListeners,_p=Symbol("kIdleSocketValidation"),KC=Symbol("kIdleSocketValidationTimeout"),M7=Symbol("kSocketUsed"),T7;function cwt(){let t=process.env.JEST_WORKER_ID?e7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(kQe())}catch{}return e||(e=new WebAssembly.Module(t||e7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onStatus(new xF(lu.buffer,o,i))},wasm_on_message_begin:n=>(Je(on.ptr===n),on.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderField(new xF(lu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderValue(new xF(lu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Je(on.ptr===n),on.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onBody(new xF(lu.buffer,o,i))},wasm_on_message_complete:n=>(Je(on.ptr===n),on.onMessageComplete())}})}var x7=null,on=null,lu=null,DF=0,du=null,Awt=0,Gw=1,XC=2|Gw,kF=4|Gw,k7=8|Awt,v7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ho.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ewt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nV]&&!h[dc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Dht.sendHeaders.hasSubscribers&&Dht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Fht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Fht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Mht(g,A.stream(),t,e,h,u,p,l):k5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?T5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Mht(g,A,t,e,h,u,p,l):Lt(!1),!0}function T5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new vht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[jC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Fht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[RF]&&!h[Xi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Dwe.sendHeaders.hasSubscribers&&Dwe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Lwe(f,null,t,e,h,u,g,l):_e.isBuffer(c)?Lwe(f,c,t,e,h,u,g,l):_e.isBlobLike(c)?typeof c.stream=="function"?Uwe(f,c.stream(),t,e,h,u,g,l):ywt(f,c,t,e,h,u,g,l):_e.isStream(c)?Iwt(f,c,t,e,h,u,g,l):_e.isIterable(c)?Uwe(f,c,t,e,h,u,g,l):Je(!1),!0}function Iwt(t,e,r,n,s,i,o,a){Je(i!==0||r[Sn]===0,"stream body cannot be pipelined");let c=!1,A=new MF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){_e.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Pwe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Je(s.destroyed||s[Jh]&&r[Sn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?_e.destroy(e,f):_e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Lwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Je(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[dc]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zC]()}catch(A){t(A)}}async function k5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new DQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Je(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[td]()}catch(c){t(c)}}async function ywt(t,e,r,n,s,i,o,a){Je(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new vp;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[dc]=!0),r[zC]()}catch(A){t(A)}}async function Mht(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var oV=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[jC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KEe])throw new DQ;process.emitWarning(new DQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[dc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xi]=!0),r[td]()}catch(c){t(c)}}async function Uwe(t,e,r,n,s,i,o,a){Je(i!==0||r[Sn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Je(c===null),s[li]?h(s[li]):c=d});s.on("close",A).on("drain",A);let l=new MF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[li])throw s[li];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var MF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Jh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[li])throw r[li];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[D7])throw new vp;process.emitWarning(new vp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ai].timeout&&r[ai].timeoutType===RD&&r[ai].timeout.refresh&&r[ai].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[jC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Sr].timeout&&r[Sr].timeoutType===XC&&r[Sr].timeout.refresh&&r[Sr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Jh]=!1,e[li])throw e[li];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KEe])throw new DQ;process.emitWarning(new DQ)}e[ai].timeout&&e[ai].timeoutType===RD&&e[ai].timeout.refresh&&e[ai].timeout.refresh(),n[zC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[jC]=!1,e&&(Lt(n[Na]<=1,"pipeline should only contain this request"),s(e))}};Pht.exports=Q5r});var zht=f((RGn,Wht)=>{"use strict";var Hl=B("node:assert"),{pipeline:F5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:sCe,RequestAbortedError:M5r,SocketError:Cv,InformationalError:KC,InvalidArgumentError:v5r}=or(),{kUrl:Ev,kReset:uV,kClient:Au,kRunning:Iv,kPending:L5r,kQueue:XC,kPendingIdx:oCe,kRunningIdx:Xd,kError:cu,kSocket:_s,kStrictContentLength:U5r,kOnError:DD,kMaxConcurrentStreams:AV,kPingInterval:Oht,kHTTP2Session:om,kHTTP2InitialWindowSize:P5r,kHTTP2ConnectionWindowSize:_5r,kResume:Ug,kSize:O5r,kHTTPContext:aCe,kClosed:iCe,kBodyTimeout:H5r,kEnableConnectProtocol:pv,kRemoteSettings:mv,kHTTP2Stream:aV,kHTTP2SessionState:ACe}=Mn(),{channels:Hht}=JC(),Ol=Symbol("open streams"),qht,cV;try{cV=B("node:http2")}catch{cV={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:q5r,HTTP2_HEADER_METHOD:Ght,HTTP2_HEADER_PATH:Yht,HTTP2_HEADER_SCHEME:tCe,HTTP2_HEADER_CONTENT_LENGTH:G5r,HTTP2_HEADER_EXPECT:Y5r,HTTP2_HEADER_STATUS:rCe,HTTP2_HEADER_PROTOCOL:J5r,NGHTTP2_REFUSED_STREAM:V5r,NGHTTP2_CANCEL:W5r}}=cV;function nCe(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}function z5r(t,e){t[_s]=e;let r=t[P5r],n=t[_5r],s=cV.connect(t[Ev],{createConnection:()=>e,peerMaxConcurrentStreams:t[AV],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[_s]=e,s[Ol]=0,s[Au]=t,s[_s]=e,s[ACe]={ping:{interval:t[Oht]===0?null:setInterval(Z5r,t[Oht],s).unref()}},s[pv]=!1,s[mv]=!1,n&&hr.addListener(s,"connect",K5r.bind(s,n)),hr.addListener(s,"error",$5r),hr.addListener(s,"frameError",e6r),hr.addListener(s,"end",t6r),hr.addListener(s,"goaway",r6r),hr.addListener(s,"close",n6r),hr.addListener(s,"remoteSettings",X5r),s.unref(),t[om]=s,e[om]=s,hr.addListener(e,"error",i6r),hr.addListener(e,"end",o6r),hr.addListener(e,"close",s6r),e[iCe]=!1,e.on("close",a6r),{version:"h2",defaultPipelining:1/0,write(i){return c6r(t,i)},resume(){j5r(t)},destroy(i,o){e[iCe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Iv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1;return!1}}}function j5r(t){let e=t[_s];e?.destroyed===!1&&(t[O5r]===0||t[AV]===0?(e.unref(),t[om].unref()):(e.ref(),t[om].ref()))}function K5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function X5r(t){if(this[Au][AV]=t.maxConcurrentStreams??this[Au][AV],this[mv]===!0&&this[pv]===!0&&t.enableConnectProtocol===!1){let e=new KC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[_s][cu]=e,this[Au][DD](e);return}this[pv]=t.enableConnectProtocol??this[pv],this[mv]=!0,this[Au][Ug]()}function Z5r(t){let e=t[ACe];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Au],o=this[Au];if(n!=null){let a=new KC(`HTTP/2: "PING" errored - type ${n.message}`);o[cu]=a,i[DD](a)}else i.emit("ping",s)}}function $5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_s][cu]=t,this[Au][DD](t)}function e6r(t,e,r){if(r===0){let n=new KC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_s][cu]=n,this[Au][DD](n)}}function t6r(){let t=new Cv("other side closed",hr.getSocketInfo(this[_s]));this.destroy(t),hr.destroy(this[_s],t)}function r6r(t){let e=this[cu]||new Cv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[_s])),r=this[Au];if(r[_s]=null,r[aCe]=null,this.close(),this[om]=null,hr.destroy(this[_s],e),r[Xd]<r[XC].length){let n=r[XC][r[Xd]];r[XC][r[Xd]++]=null,hr.errorRequest(r,n,e),r[oCe]=r[Xd]}Hl(r[Iv]===0),r.emit("disconnect",r[Ev],[r],e),r.emit("connectionError",r[Ev],[r],e),r[Ug]()}function n6r(){let{[Au]:t,[ACe]:e}=this,{[_s]:r}=t,n=this[_s][cu]||this[cu]||new Cv("closed",hr.getSocketInfo(r));if(t[_s]=null,t[aCe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[L5r]===0);let s=t[XC].splice(t[Xd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function s6r(){let t=this[cu]||new Cv("closed",hr.getSocketInfo(this)),e=this[om][Au];e[_s]=null,e[aCe]=null,this[om]!==null&&this[om].destroy(t),e[oCe]=e[Xd],Hl(e[Iv]===0),e.emit("disconnect",e[Ev],[e],t),e[Ug]()}function i6r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cu]=t,this[Au][DD](t)}function o6r(){hr.destroy(this,new Cv("other side closed",hr.getSock Line truncated
`;Hht.sendHeaders.publish({request:e,headers:F,socket:n[_s]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[Y5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[rCe]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),nCe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[XC][t[Xd]++]=null,t[Ug]()):(m(new KC("HTTP/2: stream half-closed (remote)")),t[XC][t[Xd]++]=null,t[oCe]=t[Xd],t[Ug]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new KC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new KC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?Jht(m,g,null,t,e,t[_s],y,I):hr.isBuffer(d)?Jht(m,g,d,t,e,t[_s],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?Vht(m,g,d.stream(),t,e,t[_s],y,I):l6r(m,g,d,t,e,t[_s],y,I):hr.isStream(d)?u6r(m,t[_s],I,g,d,t,e,y):hr.isIterable(d)?Vht(m,g,d,t,e,t[_s],y,I):Hl(!1)}}function Jht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[uV]=!0),s.onRequestSent(),n[Ug]()}catch(A){t(A)}}function u6r(t,e,r,n,s,i,o,a){Hl(a!==0||i[Iv]===0,"stream body cannot be pipelined");let A=F5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[uV]=!0),i[Ug]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function l6r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new sCe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(A){t(A)}}async function Vht(t,e,r,n,s,i,o,a){Hl(o!==0||n[Iv]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Hl(A===null),i[cu]?d(i[cu]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cu])throw i[cu];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Wht.exports=z5r});var rI=f((DGn,ngt)=>{"use strict";var am=B("node:assert"),$ht=B("node:net"),Bv=B("node:http"),xQ=Wt(),{ClientStats:d6r}=iEe(),{channels:xD}=JC(),h6r=pdt(),g6r=ID(),{InvalidArgumentError:us,InformationalError:f6r,ClientDestroyedError:p6r}=or(),m6r=BD(),{kUrl:Pg,kServerName:tI,kClient:E6r,kBusy:cCe,kConnect:C6r,kResuming:TQ,kRunning:wv,kPending:Nv,kSize:Qv,kQueue:Zd,kConnected:I6r,kConnecting:TD,kNeedDrain:$C,kKeepAliveDefaultTimeout:jht,kHostHeader:B6r,kPendingIdx:$d,kRunningIdx:Am,kError:Q6r,kPipelining:lV,kKeepAliveTimeoutValue:y6r,kMaxHeadersSize:b6r,kKeepAliveMaxTimeout:w6r,kKeepAliveTimeoutThreshold:N6r,kHeadersTimeout:S6r,kBodyTimeout:R6r,kStrictContentLength:D6r,kConnector:yv,kMaxRequests:uCe,kCounter:x6r,kClose:T6r,kDestroy:k6r,kDispatch:F6r,kLocalAddress:bv,kMaxResponseSize:M6r,kOnError:v6r,kHTTPContext:wi,kMaxConcurrentStreams:L6r,kHTTP2InitialWindowSize:U6r,kHTTP2ConnectionWindowSize:P6r,kResume:eI,kPingInterval:_6r}=Mn(),O6r=_ht(),H6r=zht(),ZC=Symbol("kClosedResolve"),q6r=Bv&&Bv.maxHeaderSize&&Number.isInteger(Bv.maxHeaderSize)&&Bv.maxHeaderSize>0?()=>Bv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Kht=()=>{};function egt(t){return t[lV]??t[wi]?.defaultPipelining??1}var lCe=class extends g6r{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[R6r]=a??3e5,this[S6r]=n??3e5,this[D6r]=m??!0,this[uCe]=w,this[ZC]=null,this[M6r]=z>-1?z:-1,this[wi]=null,this[L6r]=U??100,this[U6r]=Z??262144,this[P6r]=he??524288,this[_6r]=Se??6e4,this[Zd]=[],this[Am]=0,this[$d]=0,this[eI]=Je=>dCe(this,Je),this[v6r]=Je=>tgt(this,Je)}get pipelining(){return this[lV]}set pipelining(e){this[lV]=e,this[eI](!0)}get stats(){return new d6r(this)}get[Nv](){return this[Zd].length-this[$d]}get[wv](){return this[$d]-this[Am]}get[Qv](){return this[Zd].length-this[Am]}get[I6r](){return!!this[wi]&&!this[TD]&&!this[wi].destroyed}get[cCe](){return!!(this[wi]?.busy(null)||this[Qv]>=(egt(this)||1)||this[Nv]>0)}[C6r](e){rgt(this),this.once("connect",e)}[F6r](e,r){let n=new h6r(this[Pg].origin,e,r);return this[Zd].push(n),this[TQ]||(xQ.bodyLength(n.body)==null&&xQ.isIterable(n.body)?(this[TQ]=1,queueMicrotask(()=>dCe(this))):this[eI](!0)),this[TQ]&&this[$C]!==2&&this[cCe]&&(this[$C]=2),this[$C]<2}[T6r](){return new Promise(e=>{this[Qv]?this[ZC]=e:e(null)})}[k6r](e){return new Promise(r=>{let n=this[Zd].splice(this[$d]);for(let i=0;i<n.length;i++){let o=n[i];xQ.errorRequest(this,o,e)}let s=()=>{this[ZC]&&(this[ZC](),this[ZC]=null),r(null)};this[wi]?(this[wi].destroy(e,s),this[wi]=null):queueMicrotask(s),this[eI]()})}};function tgt(t,e){if(t[wv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){am(t[$d]===t[Am]);let r=t[Zd].splice(t[Am]);for(let n=0;n<r.length;n++){let s=r[n];xQ.errorRequest(t,s,e)}am(t[Qv]===0)}}function rgt(t){am(!t[TD]),am(!t[wi]);let{host:e,hostname:r,protocol:n,port:s}=t[Pg];if(r[0]==="["){let i=r.indexOf("]");am(i!==-1);let o=r.substring(1,i);am($ht.isIPv6(o)),r=o}t[TD]=!0,xD.beforeConnect.hasSubscribers&&xD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv]}),t[yv]({host:e,hostname:r,protocol:n,port:s,servername:t[tI],localAddress:t[bv]},(i,o)=>{if(i){Xht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}if(t.destroyed){xQ.destroy(o.on("error",Kht),new p6r),t[eI]();return}am(o);try{t[wi]=o.alpnProtocol==="h2"?H6r(t,o):O6r(t,o)}catch(a){o.destroy().on("error",Kht),Xht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}t[TD]=!1,o[x6r]=0,o[uCe]=t[uCe],o[E6r]=t,o[Q6r]=null,xD.connected.hasSubscribers&&xD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],socket:o}),t.emit("connect",t[Pg],[t]),t[eI]()})}function Xht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TD]=!1,xD.connectError.hasSubscribers&&xD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(am(t[wv]===0);t[Nv]>0&&t[Zd][t[$d]].servername===t[tI];){let o=t[Zd][t[$d]++];xQ.errorRequest(t,o,e)}else tgt(t,e);t.emit("connectionError",t[Pg],[t],e)}}function Zht(t){t[$C]=0,t.emit("drain",t[Pg],[t])}function dCe(t,e){t[TQ]!==2&&(t[TQ]=2,G6r(t,e),t[TQ]=0,t[Am]>256&&(t[Zd].splice(0,t[Am]),t[$d]-=t[Am],t[Am]=0))}function G6r(t,e){for(;;){if(t.destroyed){am(t[Nv]===0);return}if(t[ZC]&&!t[Qv]){t[ZC](),t[ZC]=null;return}if(t[wi]&&t[wi].resume(),t[cCe])t[$C]=2;else if(t[$C]===2){e?(t[$C]=1,queueMicrotask(()=>Zht(t))):Zht(t);continue}if(t[Nv]===0||t[wv]>=(egt(t)||1))return;let r=t[Zd][t[$d]];if(t[Pg].protocol==="https:"&&t[tI]!==r.servername){if(t[wv]>0)return;t[tI]=r.servername,t[wi]?.destroy(new f6r("servername changed"),()=>{t[wi]=null,dCe(t)})}if(t[TD])return;if(!t[wi]){rgt(t);return}if(t[wi].destroyed||t[wi].busy(r))return;!r.aborted&&t[wi].write(r)?t[$d]++:t[Zd].splice(t[$d],1)}}ngt.exports=lCe});var hCe=f((TGn,sgt)=>{"use strict";var dV=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};sgt.exports=class{constructor(){this.head=this.tail=new dV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dV),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var hV=f((kGn,hgt)=>{"use strict";var{PoolStats:Y6r}=iEe(),J6r=ID(),V6r=hCe(),{kConnected:gCe,kSize:igt,kRunning:ogt,kPending:agt,kQueued:Sv,kBusy:W6r,kFree:z6r,kUrl:j6r,kClose:K6r,kDestroy:X6r,kDispatch:Z6r}=Mn(),Do=Symbol("clients"),cA=Symbol("needDrain"),Rv=Symbol("queue"),fCe=Symbol("closed resolve"),pCe=Symbol("onDrain"),Agt=Symbol("onConnect"),cgt=Symbol("onDisconnect"),ugt=Symbol("onConnectionError"),mCe=Symbol("get dispatcher"),lgt=Symbol("add client"),dgt=Symbol("remove client"),ECe=class extends J6r{[Rv]=new V6r;[Sv]=0;[Do]=[];[cA]=!1;[pCe](e,r,n){let s=this[Rv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[D7])throw new vp;process.emitWarning(new vp)}e[Sr].timeout&&e[Sr].timeoutType===XC&&e[Sr].timeout.refresh&&e[Sr].timeout.refresh(),n[td]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Jh]=!1,e&&(Je(n[Sn]<=1,"pipeline should only contain this request"),s(e))}};qwe.exports=uwt});var $we=C((BSr,Zwe)=>{"use strict";var ja=Q("node:assert"),{pipeline:Bwt}=Q("node:stream"),pt=st(),{RequestContentLengthMismatchError:P7,RequestAbortedError:bwt,SocketError:jw,InformationalError:Wh,InvalidArgumentError:Qwt,HeadersTimeoutError:wwt,BodyTimeoutError:Swt}=et(),{kUrl:zw,kReset:UF,kClient:Go,kRunning:Kw,kPending:Nwt,kQueue:Vw,kPendingIdx:Lp,kRunningIdx:hu,kError:qo,kSocket:Yr,kStrictContentLength:Twt,kOnError:ZC,kMaxConcurrentStreams:O7,kPingInterval:Vwe,kHTTP2Session:rd,kHTTP2InitialWindowSize:xwt,kHTTP2ConnectionWindowSize:Dwt,kResume:fu,kSize:Rwt,kHTTPContext:G7,kClosed:H7,kBodyTimeout:kwt,kHeadersTimeout:vwt,kEnableConnectProtocol:Jw,kRemoteSettings:Ww,kHTTP2Stream:_F,kHTTP2SessionState:q7}=sr(),{channels:Jwe}=qh(),za=Symbol("open streams"),Wwe,LF;try{LF=Q("node:http2")}catch{LF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Fwt,HTTP2_HEADER_METHOD:zwe,HTTP2_HEADER_PATH:jwe,HTTP2_HEADER_SCHEME:_7,HTTP2_HEADER_CONTENT_LENGTH:Mwt,HTTP2_HEADER_EXPECT:_wt,HTTP2_HEADER_STATUS:L7,HTTP2_HEADER_PROTOCOL:Lwt,NGHTTP2_REFUSED_STREAM:Uwt,NGHTTP2_CANCEL:Pwt}}=LF;function U7(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}function Owt(t,e){t[Yr]=e;let r=t[xwt],n=t[Dwt],s=LF.connect(t[zw],{createConnection:()=>e,peerMaxConcurrentStreams:t[O7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Yr]=e,s[za]=0,s[Go]=t,s[Yr]=e,s[q7]={ping:{interval:t[Vwe]===0?null:setInterval(Ywt,t[Vwe],s).unref()}},s[Jw]=!1,s[Ww]=!1,n&&pt.addListener(s,"connect",Gwt.bind(s,n)),pt.addListener(s,"error",Vwt),pt.addListener(s,"frameError",Jwt),pt.addListener(s,"end",Wwt),pt.addListener(s,"goaway",zwt),pt.addListener(s,"close",jwt),pt.addListener(s,"remoteSettings",qwt),s.unref(),t[rd]=s,e[rd]=s,pt.addListener(e,"error",Xwt),pt.addListener(e,"end",Zwt),pt.addListener(e,"close",Kwt),e[H7]=!1,e.on("close",$wt),{version:"h2",defaultPipelining:1/0,write(i){return t1t(t,i)},resume(){Hwt(t)},destroy(i,o){e[H7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Kw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ww]===!1||pt.bodyLength(i.body)!==0&&(pt.isStream(i.body)||pt.isAsyncIterable(i.body)||pt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ww]===!1;return!1}}}function Hwt(t){let e=t[Yr];e?.destroyed===!1&&(t[Rwt]===0?(e.unref(),t[rd].unref()):(e.ref(),t[rd].ref()))}function Gwt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function qwt(t){if(this[Go][O7]=t.maxConcurrentStreams??this[Go][O7],this[Ww]===!0&&this[Jw]===!0&&t.enableConnectProtocol===!1){let e=new Wh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Yr][qo]=e,this[Go][ZC](e);return}this[Jw]=t.enableConnectProtocol??this[Jw],this[Ww]=!0,this[Go][fu]()}function Ywt(t){let e=t[q7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Go],o=this[Go];if(n!=null){let a=new Wh(`HTTP/2: "PING" errored - type ${n.message}`);o[qo]=a,i[ZC](a)}else i.emit("ping",s)}}function Vwt(t){ja(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Yr][qo]=t,this[Go][ZC](t)}function Jwt(t,e,r){if(r===0){let n=new Wh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Yr][qo]=n,this[Go][ZC](n)}}function Wwt(){let t=new jw("other side closed",pt.getSocketInfo(this[Yr]));this.destroy(t),pt.destroy(this[Yr],t)}function Yw(t,e,r=!1){let n=t[Vw],s=t[hu];if(s<t[Lp]&&n[s]===e){n[s]=null,t[hu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Lp]||(n.splice(i,1),t[Lp]--,r&&t[Lp]<t[hu]&&(t[Lp]=t[hu]))}function zwt(t){let e=this[qo]||new jw(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this[Yr])),r=this[Go];if(r[Yr]=null,r[G7]=null,this.close(),this[rd]=null,pt.destroy(this[Yr],e),r[hu]<r[Vw].length){let n=r[Vw][r[hu]];r[Vw][r[hu]++]=null,n!=null&&pt.errorRequest(r,n,e),r[Lp]=r[hu]}ja(r[Kw]===0),r.emit("disconnect",r[zw],[r],e),r.emit("connectionError",r[zw],[r],e),r[fu]()}function jwt(){let{[Go]:t,[q7]:e}=this,{[Yr]:r}=t,n=this[Yr][qo]||this[qo]||new jw("closed",pt.getSocketInfo(r));if(t[Yr]=null,t[G7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ja(t[Nwt]===0);let s=t[Vw].splice(t[hu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&pt.errorRequest(t,o,n)}}}function Kwt(){let t=this[qo]||new jw("closed",pt.getSocketInfo(this)),e=this[rd][Go];e[Yr]=null,e[G7]=null,this[rd]!==null&&this[ Line truncated
`;Jwe.sendHeaders.publish({request:e,headers:P,socket:s[Yr]})}let F=i==="GET"||i==="HEAD"||h===null;A?(f[_wt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[_F]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[_F]=!0,L()),++s[za],g.setTimeout(r);let V=!1;return g.once("response",P=>{let{[L7]:k,...j}=P;if(e.onResponseStarted(),V=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),U7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),V?(!e.aborted&&!e.completed&&e.onComplete({}),Yw(t,e),t[fu]()):(I(new Wh("HTTP/2: stream half-closed (remote)")),Yw(t,e,!0),t[fu]())}),g.once("close",()=>{g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Wh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Wh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=V?new Swt(`HTTP/2: "body timeout after ${n}"`):new wwt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Kwe(I,g,null,t,e,t[Yr],B,y):pt.isBuffer(h)?Kwe(I,g,h,t,e,t[Yr],B,y):pt.isBlobLike(h)?typeof h.stream=="function"?Xwe(I,g,h.stream(),t,e,t[Yr],B,y):n1t(I,g,h,t,e,t[Yr],B,y):pt.isStream(h)?r1t(I,t[Yr],y,g,h,t,e,B):pt.isIterable(h)?Xwe(I,g,h,t,e,t[Yr],B,y):ja(!1)}}function Kwe(t,e,r,n,s,i,o,a){try{r!=null&&pt.isBuffer(r)&&(ja(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[UF]=!0),s.onRequestSent(),n[fu]()}catch(c){t(c)}}function r1t(t,e,r,n,s,i,o,a){ja(a!==0||i[Kw]===0,"stream body cannot be pipelined");let c=Bwt(s,n,u=>{u?(pt.destroy(c,u),t(u)):(pt.removeAllListeners(c),o.onRequestSent(),r||(e[UF]=!0),i[fu]())});pt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function n1t(t,e,r,n,s,i,o,a){ja(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new P7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[UF]=!0),n[fu]()}catch(c){t(c)}}async function Xwe(t,e,r,n,s,i,o,a){ja(o!==0||n[Kw]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ja(c===null),i[qo]?d(i[qo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[qo])throw i[qo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[UF]=!0),n[fu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Zwe.exports=Owt});var Xh=C((bSr,a1e)=>{"use strict";var nd=Q("node:assert"),n1e=Q("node:net"),Xw=Q("node:http"),Up=st(),{ClientStats:s1t}=_W(),{channels:$C}=qh(),i1t=mQe(),o1t=Tp(),{InvalidArgumentError:Nr,InformationalError:a1t,ClientDestroyedError:c1t}=et(),A1t=xp(),{kUrl:gu,kServerName:Kh,kClient:u1t,kBusy:V7,kConnect:l1t,kResuming:Pp,kRunning:t1,kPending:r1,kSize:Zw,kQueue:Kc,kConnected:d1t,kConnecting:eI,kNeedDrain:jh,kKeepAliveDefaultTimeout:e1e,kHostHeader:h1t,kPendingIdx:Xc,kRunningIdx:id,kError:f1t,kPipelining:PF,kKeepAliveTimeoutValue:g1t,kMaxHeadersSize:p1t,kKeepAliveMaxTimeout:m1t,kKeepAliveTimeoutThreshold:E1t,kHeadersTimeout:C1t,kBodyTimeout:I1t,kStrictContentLength:y1t,kConnector:$w,kMaxRequests:J7,kCounter:B1t,kClose:b1t,kDestroy:Q1t,kDispatch:w1t,kLocalAddress:e1,kMaxResponseSize:S1t,kOnError:N1t,kHTTPContext:mn,kMaxConcurrentStreams:T1t,kHTTP2InitialWindowSize:x1t,kHTTP2ConnectionWindowSize:D1t,kResume:sd,kPingInterval:R1t}=sr(),k1t=Ywe(),v1t=$we(),zh=Symbol("kClosedResolve"),F1t=Xw&&Xw.maxHeaderSize&&Number.isInteger(Xw.maxHeaderSize)&&Xw.maxHeaderSize>0?()=>Xw.maxHeaderSize:()=>{throw new Nr("http module not available or http.maxHeaderSize invalid")},t1e=()=>{};function s1e(t){return t[PF]??t[mn]?.defaultPipelining??1}var W7=class extends o1t{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:F,maxResponseSize:V,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:ne,connectionWindowSize:ce,pingInterval:de,webSocket:ke}={}){if(A!==void 0)throw new Nr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Nr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Nr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[I1t]=a??3e5,this[C1t]=n??3e5,this[y1t]=m??!0,this[J7]=B,this[zh]=null,this[S1t]=V>-1?V:-1,this[mn]=null,this[T1t]=k??100,this[x1t]=ne??262144,this[D1t]=ce??524288,this[R1t]=de??6e4,this[Kc]=[],this[id]=0,this[Xc]=0,this[sd]=ve=>z7(this,ve),this[N1t]=ve=>i1e(this,ve)}get pipelining(){return this[PF]}set pipelining(e){this[PF]=e,this[sd](!0)}get stats(){return new s1t(this)}get[r1](){return this[Kc].length-this[Xc]}get[t1](){return this[Xc]-this[id]}get[Zw](){return this[Kc].length-this[id]}get[d1t](){return!!this[mn]&&!this[eI]&&!this[mn].destroyed}get[V7](){return!!(this[mn]?.busy(null)||this[Zw]>=(s1e(this)||1)||this[r1]>0)}[l1t](e){o1e(this),this.once("connect",e)}[w1t](e,r){let n=new i1t(this[gu].origin,e,r);return this[Kc].push(n),this[Pp]||(Up.bodyLength(n.body)==null&&Up.isIterable(n.body)?(this[Pp]=1,queueMicrotask(()=>z7(this))):this[sd](!0)),this[Pp]&&this[jh]!==2&&this[V7]&&(this[jh]=2),this[jh]<2}[b1t](){return new Promise(e=>{this[Zw]?this[zh]=e:e(null)})}[Q1t](e){return new Promise(r=>{let n=this[Kc].splice(this[Xc]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Up.errorRequest(this,o,e)}let s=()=>{this[zh]&&(this[zh](),this[zh]=null),r(null)};this[mn]?(this[mn].destroy(e,s),this[mn]=null):queueMicrotask(s),this[sd]()})}};function i1e(t,e){if(t[t1]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){nd(t[Xc]===t[id]);let r=t[Kc].splice(t[id]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&Up.errorRequest(t,s,e)}nd(t[Zw]===0)}}function o1e(t){nd(!t[eI]),nd(!t[mn]);let{host:e,hostname:r,protocol:n,port:s}=t[gu];if(r[0]==="["){let i=r.indexOf("]");nd(i!==-1);let o=r.substring(1,i);nd(n1e.isIPv6(o)),r=o}t[eI]=!0,$C.beforeConnect.hasSubscribers&&$C.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w]});try{t[$w]({host:e,hostname:r,protocol:n,port:s,servername:t[Kh],localAddress:t[e1]},(i,o)=>{if(i){Y7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sd]();return}if(t.destroyed){Up.destroy(o.on("error",t1e),new c1t),t[sd]();return}nd(o);try{t[mn]=o.alpnProtocol==="h2"?v1t(t,o):k1t(t,o)}catch(a){o.destroy().on("error",t1e),Y7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[sd]();return}t[eI]=!1,o[B1t]=0,o[J7]=t[J7],o[u1t]=t,o[f1t]=null,$C.connected.hasSubscribers&&$C.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w],socket:o}),t.emit("connect",t[gu],[t]),t[sd]()})}catch(i){Y7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sd]()}}function Y7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[eI]=!1,$C.connectError.hasSubscribers&&$C.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(nd(t[t1]===0);t[r1]>0&&t[Kc][t[Xc]].servername===t[Kh];){let o=t[Kc][t[Xc]++];Up.errorRequest(t,o,e)}else i1e(t,e);t.emit("connectionError",t[gu],[t],e)}}function r1e(t){t[jh]=0,t.emit("drain",t[gu],[t])}function z7(t,e){t[Pp]!==2&&(t[Pp]=2,M1t(t,e),t[Pp]=0,t[id]>256&&(t[Kc].splice(0,t[id]),t[Xc]-=t[id],t[id]=0))}function M1t(t,e){for(;;){if(t.destroyed){nd(t[r1]===0);return}if(t[zh]&&!t[Zw]){t[zh](),t[zh]=null;return}if(t[mn]&&t[mn].resume(),t[V7])t[jh]=2;else if(t[jh]===2){e?(t[jh]=1,queueMicrotask(()=>r1e(t))):r1e(t);continue}if(t[r1]===0||t[t1]>=(s1e(t)||1))return;let r=t[Kc][t[Xc]];if(r===null)return;if(t[gu].protocol==="https:"&&t[Kh]!==r.servername){if(t[t1]>0)return;t[Kh]=r.servername,t[mn]?.destroy(new a1t("servername changed"),()=>{t[mn]=null,z7(t)})}if(t[eI])return;if(!t[mn]){o1e(t);return}if(t[mn].destroyed||t[mn].busy(r))return;!r.aborted&&t[mn].write(r)?t[Xc]++:t[Kc].splice(t[Xc],1)}}a1e.exports=W7});var j7=C((wSr,c1e)=>{"use strict";var OF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};c1e.exports=class{constructor(){this.head=this.tail=new OF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var HF=C((SSr,m1e)=>{"use strict";var{PoolStats:_1t}=_W(),L1t=Tp(),U1t=j7(),{kConnected:K7,kSize:A1e,kRunning:u1e,kPending:l1e,kQueued:n1,kBusy:P1t,kFree:O1t,kUrl:H1t,kClose:G1t,kDestroy:q1t,kDispatch:Y1t}=sr(),cs=Symbol("clients"),di=Symbol("needDrain"),s1=Symbol("queue"),X7=Symbol("closed resolve"),Z7=Symbol("onDrain"),d1e=Symbol("onConnect"),h1e=Symbol("onDisconnect"),f1e=Symbol("onConnectionError"),$7=Symbol("get dispatcher"),g1e=Symbol("add client"),p1e=Symbol("remove client"),ez=class extends L1t{[s1]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";var{InvalidArgumentError:TVr}=or(),{runtimeFeatures:kVr}=sm();function FVr(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var ypt=kVr.has("crypto")?B("node:crypto"):null,MVr=ypt?.hash?t=>ypt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wpt(t){return Array.isArray(t)&&(t.length&1)===0}function vVr(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function LVr(t){let e={};if(!t)return e;if(wpt(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var bpt=["record","playback","update"];function UVr(t){if(!bpt.includes(t))throw new TVr(`Invalid snapshot mode: ${t}. Must be one of: ${bpt.join(", ")}`)}Npt.exports={createHeaderFilters:FVr,hashId:MVr,isUndiciHeaders:wpt,normalizeHeaders:LVr,isUrlExcludedFactory:vVr,validateSnapshotMode:UVr}});var vpt=f((a8n,Mpt)=>{"use strict";var{writeFile:PVr,readFile:_Vr,mkdir:OVr}=B("node:fs/promises"),{dirname:HVr,resolve:Spt}=B("node:path"),{setTimeout:qVr,clearTimeout:Rpt}=B("node:timers"),{InvalidArgumentError:Dpt,UndiciError:GVr}=or(),{hashId:YVr,isUrlExcludedFactory:JVr,normalizeHeaders:xpt,createHeaderFilters:Tpt}=kIe();function Ov(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||xpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kpt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kpt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function Fpt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Hv(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return YVr(r)}var FIe=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Tpt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=JVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Ov(e,this.#a,this.matchOptions),s=Hv(n),i=xpt(r.headers),o={statusCode:r.statusCode,headers:Fpt(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Ov(e,this.#a,this.matchOptions),n=Hv(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Dpt("Snapshot path is required");try{let n=await _Vr(Spt(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new GVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Dpt("Snapshot path is required");let n=Spt(r);await OVr(HVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await PVr(n,JS Line truncated
${e.format(r)}`.trim())}};GNe.exports=Ej});var Ij=C((nNr,JNe)=>{"use strict";var{InvalidArgumentError:OTt}=et(),{runtimeFeatures:HTt}=$l();function GTt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var qNe=HTt.has("crypto")?Q("node:crypto"):null,qTt=qNe?.hash?t=>qNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function VNe(t){return Array.isArray(t)&&(t.length&1)===0}function YTt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function VTt(t){let e={};if(!t)return e;if(VNe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var YNe=["record","playback","update"];function JTt(t){if(!YNe.includes(t))throw new OTt(`Invalid snapshot mode: ${t}. Must be one of: ${YNe.join(", ")}`)}JNe.exports={createHeaderFilters:GTt,hashId:qTt,isUndiciHeaders:VNe,normalizeHeaders:VTt,isUrlExcludedFactory:YTt,validateSnapshotMode:JTt}});var tTe=C((sNr,eTe)=>{"use strict";var{writeFile:WTt,readFile:zTt,mkdir:jTt}=Q("node:fs/promises"),{dirname:KTt,resolve:WNe}=Q("node:path"),{setTimeout:XTt,clearTimeout:zNe}=Q("node:timers"),{InvalidArgumentError:jNe,UndiciError:ZTt}=et(),{hashId:$Tt,isUrlExcludedFactory:ext,normalizeHeaders:KNe,createHeaderFilters:XNe}=Ij();function m1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||KNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:ZNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ZNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function $Ne(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function E1(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return $Tt(r)}var yj=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=XNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ext(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=m1(e,this.#a,this.matchOptions),s=E1(n),i=KNe(r.headers),o={statusCode:r.statusCode,headers:$Ne(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=m1(e,this.#a,this.matchOptions),n=E1(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new jNe("Snapshot path is required");try{let n=await zTt(WNe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new ZTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new jNe("Snapshot path is required");let n=WNe(r);await jTt(KTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await WTt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${du} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Vo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_getValuesQuery ON cacheInterceptorV${du}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_deleteByUrlQuery ON cacheInterceptorV${du}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_getValuesQuery ON cacheInterceptorV${Vo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_deleteByUrlQuery ON cacheInterceptorV${Vo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${Vo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Vo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Vo} (
url,
method,
body,
@@ -331,46 +182,98 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${du}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${du}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Vo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tBe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){tBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){tBe(e),wzr(r);let n=0,s=[],i=this;return new bzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Nzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function Nzr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var HQ=f((D8n,Omt)=>{"use strict";var{kConstruct:Szr}=Mn(),{kEnumerableProperty:VD}=Wt(),{iteratorMixin:Rzr,isValidHeaderName:Jv,isValidHeaderValue:vmt}=au(),{webidl:Pr}=Ko(),nBe=B("node:assert"),YV=B("node:util");function Mmt(t){return t===10||t===13||t===9||t===32}function Lmt(t){let e=0,r=t.length;for(;r>e&&Mmt(t.charCodeAt(r-1));)--r;for(;r>e&&Mmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Umt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sBe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)sBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sBe(t,e,r){if(r=Lmt(r),Jv(e)){if(!vmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(_mt(t)==="immutable")throw new TypeError("immutable");return VV(t).append(e,r,!1)}function Dzr(t){let e=VV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function Pmt(t,e){return t[0]<e[0]?-1:1}var JV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":VCt(i)&&(r[s]=i);break;case"id":WCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&VCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&WCt(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,event:void 0,id:void 0,retry:void 0}}};zCt.exports={EventSourceStream:OBe}});var nIt=f((e3n,rIt)=>{"use strict";var{pipeline:JXr}=B("node:stream"),{fetching:VXr}=Kv(),{makeRequest:WXr}=zD(),{webidl:lA}=Ko(),{EventSourceStream:zXr}=jCt(),{parseMIMEType:jXr}=Ll(),{createFastMessageEvent:KXr}=mW(),{isNetworkError:KCt}=Wv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:XCt}=au(),ZCt=!1,$Ct=3e3,rL=0,eIt=1,nL=2,XXr="anonymous",ZXr="use-credentials",sx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=rL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),ZCt||(ZCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=XCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XXr;r.withCredentials===!0&&(o=ZXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=XCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=WXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===nL)return;this.#r=rL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!KCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(KCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=eIt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KXr(A.type,A.options))}});JXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=VXr(e)}#c(){this.#r!==nL&&(this.#r=rL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===rL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==nL&&(this.#r=nL,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},tIt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:eIt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1}};Object.defineProperties(sx,tIt);Object.defineProperties(sx.prototype,tIt);Object.defineProperties(sx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>$Ct},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);rIt.exports={EventSource:sx,defaultReconnectionTime:$Ct}});var cIt=f((t3n,Oe)=>{"use strict";var $Xr=rI(),iIt=nv(),eZr=kD(),tZr=Bgt(),rZr=wgt(),nZr=MQ(),sZr=vCe(),iZr=jgt(),oZr=tft(),aZr=sft(),oIt=or(),TW=Wt(),{InvalidArgumentError:xW}=oIt,ix=_ft(),AZr=BD(),cZr=CIe(),{MockCallHistory:uZr,Mock Line truncated
`)}close(){this.#n.close()}get(e){Kj(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){Kj(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){Kj(e),sRt(r);let n=0,s=[],i=this;return new nRt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!iRt(s[l],u[l])){A=!1;break}}if(A)return c}}};function iRt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var im=C((SNr,wxe)=>{"use strict";var{kConstruct:oRt}=sr(),{kEnumerableProperty:pI}=st(),{iteratorMixin:aRt,isValidHeaderName:b1,isValidHeaderValue:Ixe}=Oo(),{webidl:Mt}=ys(),Zj=Q("node:assert"),CM=Q("node:util");function Cxe(t){return t===10||t===13||t===9||t===32}function yxe(t){let e=0,r=t.length;for(;r>e&&Cxe(t.charCodeAt(r-1));)--r;for(;r>e&&Cxe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Bxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});$j(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)$j(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function $j(t,e,r){if(r=yxe(r),b1(e)){if(!Ixe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Qxe(t)==="immutable")throw new TypeError("immutable");return yM(t).append(e,r,!1)}function cRt(t){let e=yM(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function bxe(t,e){return t[0]<e[0]?-1:1}var IM=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(s_(e,s,xFt)){DFt(e,i)&&(r.retry=e.toString("utf8",i));return}if(s_(e,s,TFt)){RFt(e,i)&&(r.id=e.toString("utf8",i));return}if(s_(e,s,NFt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&BFt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bFt(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===TI[0]||(this.checkBOM=!1),!0):n===void 0?e===TI[0]&&r===TI[1]?!0:(this.checkBOM=!1,!1):(e===TI[0]&&r===TI[1]&&n===TI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};DRe.exports={EventSourceStream:PK}});var PRe=C((XNr,URe)=>{"use strict";var{pipeline:kFt}=Q("node:stream"),{fetching:vFt}=T1(),{makeRequest:FFt}=EI(),{webidl:fi}=ys(),{EventSourceStream:MFt}=RRe(),{parseMIMEType:_Ft}=Va(),{createFastMessageEvent:LFt}=JM(),{isNetworkError:kRe}=w1(),{kEnumerableProperty:hm}=st(),{environmentSettingsObject:vRe}=Oo(),FRe=!1,MRe=3e3,M1=0,_Re=1,_1=2,UFt="anonymous",PFt="use-credentials",xI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=M1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),fi.util.markAsUncloneable(this);let n="EventSource constructor";fi.argumentLengthCheck(arguments,1,n),FRe||(FRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fi.converters.USVString(e),r=fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=vRe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=UFt;r.withCredentials===!0&&(o=PFt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vRe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=FFt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===_1)return;this.#r=M1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!kRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?_Ft(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=_Re,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new MFt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(LFt(c.type,c.options))}});kFt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=vFt(e)}#A(){this.#r!==_1&&(this.#r=M1,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return BZr(e,r).catch(n=>{throw sIt?AIt(n,sIt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=HQ().Headers;Oe.exports.Response=Wv().Response;Oe.exports.Request=zD().Request;Oe.exports.FormData=$J().FormData;var{setGlobalOrigin:QZr,getGlobalOrigin:yZr}=yEe();Oe.exports.setGlobalOrigin=QZr;Oe.exports.getGlobalOrigin=yZr;var{CacheStorage:bZr}=GEt(),{kConstruct:wZr}=Mn();Oe.exports.caches=new bZr(wZr);var{deleteCookie:NZr,getCookies:SZr,getSetCookies:RZr,setCookie:DZr,parseCookie:xZr}=rCt();Oe.exports.deleteCookie=NZr;Oe.exports.getCookies=SZr;Oe.exports.getSetCookies=RZr;Oe.exports.setCookie=DZr;Oe.exports.parseCookie=xZr;var{parseMIMEType:TZr,serializeAMimeType:kZr}=Ll();Oe.exports.parseMIMEType=TZr;Oe.exports.serializeAMimeType=kZr;var{CloseEvent:FZr,ErrorEvent:MZr,MessageEvent:vZr}=mW(),{WebSocket:LZr,ping:UZr}=vCt();Oe.exports.WebSocket=LZr;Oe.exports.CloseEvent=FZr;Oe.exports.ErrorEvent=MZr;Oe.exports.MessageEvent=vZr;Oe.exports.ping=UZr;Oe.exports.WebSocketStream=GCt().WebSocketStream;Oe.exports.WebSocketError=vBe().WebSocketError;Oe.exports.request=sL(ix.request);Oe.exports.stream=sL(ix.stream);Oe.exports.pipeline=sL(ix.pipeline);Oe.exports.connect=sL(ix.connect);Oe.exports.upgrade=sL(ix.upgrade);Oe.exports.MockClient=cZr;Oe.exports.MockCallHistory=uZr;Oe.exports.MockCallHistoryLog=lZr;Oe.exports.MockPool=hZr;Oe.exports.MockAgent=dZr;Oe.exports.SnapshotAgent=gZr;Oe.exports.mockErrors=fZr;var{EventSource:PZr}=nIt();Oe.exports.EventSource=PZr;function _Zr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=_Zr});var iL=f(lI=>{"use strict";lI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lI.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var lIt=f((s3n,uIt)=>{"use strict";var{asciiLowercase:kW,solelyContainsHTTPTokenCodePoints:OZr,soleyContainsHTTPQuotedStringTokenCodePoints:HZr}=iL();uIt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=kW(String(e)),this._map.get(e)}has(e){return e=kW(String(e)),this._map.has(e)}set(e,r){if(e=kW(String(e)),r=String(r),!OZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HZr(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=kW(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var gIt=f((i3n,hIt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:qZr,removeTrailingHTTPWhitespace:dIt,isHTTPWhitespaceChar:GZr,solelyContainsHTTPTokenCodePoints:HBe,soleyContainsHTTPQuotedStringTokenCodePoints:YZr,asciiLowercase:qBe,collectAnHTTPQuotedString:JZr}=iL();hIt.exports=t=>{t=qZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!HBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=dIt(n),n.length===0||!HBe(n))return null;let s={type:qBe(r),subtype:qBe(n),parameters:new Map};for(;e<t.length;){for(++e;GZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=qBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=JZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=dIt(o),o==="")continue}i.length>0&&HBe(i)&&YZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var pIt=f((o3n,fIt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:VZr}=iL();fIt.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!VZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var IIt=f((A3n,CIt)=>{"use strict";var WZr=lIt(),zZr=gIt(),jZr=pIt(),{asciiLowercase:mIt,solelyContainsHTTPTokenCodePoints:EIt}=iL();CIt.exports=class{constructor(e){e=String(e);let r=zZr(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new WZr(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=mIt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!EIt(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=mIt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!EIt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return jZr(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var JIt=f((f4n,C$r)=>{C$r.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return Oyt(this.pattern,this.options)}parse(e,r){Lj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return uh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=PNe,i=!0;break;case"?":s+=HNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;Uyt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:Lyt[c].open,close:Lyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+$in(Xin(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),Uyt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,_Ne),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?PNe:g.type==="?"?HNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=zin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==_Ne?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===_Ne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Kin(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?PNe:r.dot?Vin:Win,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Zin(a):a===uh?uh:a._src).reduce((a,A)=>(a[a.length-1]===uh&&A===uh||a.push(A),a),[]),o.forEach((a,A)=>{a!==uh||o[A-1]===uh||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=uh))}),o.filter(a=>a!==uh).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;ONe.sep!=="/"&&(e=e.split(ONe.sep).join("/")),e=e.split(Pyt),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Qu.defaults(e).Minimatch}};Qu.Minimatch=Rx});var Vyt=f((uns,Jyt)=>{Jyt.exports=Yyt;var YNe=B("fs"),{EventEmitter:eon}=B("events"),{Minimatch:GNe}=Hyt(),{resolve:ton}=B("path");function ron(t,e){return new Promise((r,n)=>{YNe.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function qyt(t,e){return new Promise((r,n)=>{(e?YNe.stat:YNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?qyt(t,!1):null):r(null):r(o)})})}async function*Gyt(t,e,r,n,s,i){let o=await ron(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await qyt(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Gyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*non(t,e,r,n){yield*Gyt("",t,e,r,n,!0)}function son(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Uj=class extends eon{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=son(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new GNe(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new GNe(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new GNe(i,{dot:!0}))}this.iterator=non(ton(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Hm(D){let S=KI(D.toString()),T=S.match(zI);if(T||(T=S.match(yT)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ce.exports.fetch=function(e,r=void 0){return AMt(e,r).catch(n=>{throw ORe?YRe(n,ORe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ce.exports.fetch),n})};Ce.exports.Headers=im().Headers;Ce.exports.Response=w1().Response;Ce.exports.Request=EI().Request;Ce.exports.FormData=NF().FormData;var{setGlobalOrigin:uMt,getGlobalOrigin:lMt}=n7();Ce.exports.setGlobalOrigin=uMt;Ce.exports.getGlobalOrigin=lMt;var{CacheStorage:dMt}=TDe(),{kConstruct:hMt}=sr();Ce.exports.caches=new dMt(hMt);var{deleteCookie:fMt,getCookies:gMt,getSetCookies:pMt,setCookie:mMt,parseCookie:EMt}=ODe();Ce.exports.deleteCookie=fMt;Ce.exports.getCookies=gMt;Ce.exports.getSetCookies=pMt;Ce.exports.setCookie=mMt;Ce.exports.parseCookie=EMt;var{parseMIMEType:CMt,serializeAMimeType:IMt}=Va();Ce.exports.parseMIMEType=CMt;Ce.exports.serializeAMimeType=IMt;var{CloseEvent:yMt,ErrorEvent:BMt,MessageEvent:bMt}=JM(),{WebSocket:QMt,ping:wMt}=CRe();Ce.exports.WebSocket=QMt;Ce.exports.CloseEvent=yMt;Ce.exports.ErrorEvent=BMt;Ce.exports.MessageEvent=bMt;Ce.exports.ping=wMt;Ce.exports.WebSocketStream=NRe().WebSocketStream;Ce.exports.WebSocketError=FK().WebSocketError;Ce.exports.request=L1(DI.request);Ce.exports.stream=L1(DI.stream);Ce.exports.pipeline=L1(DI.pipeline);Ce.exports.connect=L1(DI.connect);Ce.exports.upgrade=L1(DI.upgrade);Ce.exports.MockClient=XFt;Ce.exports.MockCallHistory=ZFt;Ce.exports.MockCallHistoryLog=$Ft;Ce.exports.MockPool=tMt;Ce.exports.MockAgent=eMt;Ce.exports.SnapshotAgent=rMt;Ce.exports.mockErrors=nMt;var{EventSource:SMt}=PRe();Ce.exports.EventSource=SMt;function NMt(){globalThis.fetch=Ce.exports.fetch,globalThis.Headers=Ce.exports.Headers,globalThis.Response=Ce.exports.Response,globalThis.Request=Ce.exports.Request,globalThis.FormData=Ce.exports.FormData,globalThis.WebSocket=Ce.exports.WebSocket,globalThis.CloseEvent=Ce.exports.CloseEvent,globalThis.ErrorEvent=Ce.exports.ErrorEvent,globalThis.MessageEvent=Ce.exports.MessageEvent,globalThis.EventSource=Ce.exports.EventSource}Ce.exports.install=NMt});var U1=C(lf=>{"use strict";lf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lf.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var WRe=C((tTr,JRe)=>{"use strict";var{asciiLowercase:a_,solelyContainsHTTPTokenCodePoints:TMt,soleyContainsHTTPQuotedStringTokenCodePoints:xMt}=U1();JRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=a_(String(e)),this._map.get(e)}has(e){return e=a_(String(e)),this._map.has(e)}set(e,r){if(e=a_(String(e)),r=String(r),!TMt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!xMt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=a_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var KRe=C((rTr,jRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:DMt,removeTrailingHTTPWhitespace:zRe,isHTTPWhitespaceChar:RMt,solelyContainsHTTPTokenCodePoints:OK,soleyContainsHTTPQuotedStringTokenCodePoints:kMt,asciiLowercase:HK,collectAnHTTPQuotedString:vMt}=U1();jRe.exports=t=>{t=DMt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!OK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=zRe(n),n.length===0||!OK(n))return null;let s={type:HK(r),subtype:HK(n),parameters:new Map};for(;e<t.length;){for(++e;RMt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=HK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=vMt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=zRe(o),o==="")continue}i.length>0&&OK(i)&&kMt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var ZRe=C((nTr,XRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:FMt}=U1();XRe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!FMt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var r2e=C((iTr,t2e)=>{"use strict";var MMt=WRe(),_Mt=KRe(),LMt=ZRe(),{asciiLowercase:$Re,solelyContainsHTTPTokenCodePoints:e2e}=U1();t2e.exports=class{constructor(e){e=String(e);let r=_Mt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new MMt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=$Re(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!e2e(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=$Re(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!e2e(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return LMt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var C2e=C(Pn=>{"use strict";var zK=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=zK(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,L,L,f,s);let P=f.type==="*"?PX:f.type==="?"?GX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=dLt[s.charAt(0)];for(let L=c.length-1;L>-1;L--){let P=c[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+Z,ce=k.split(")").length,de=k.split("(").length-ce,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==OX?"(?:$|\\/)":"";s=k+j+Z+ve+ne}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===OX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return fLt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?PX:r.dot?uLt:lLt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?pLt(a):a===gi?gi:a._src).reduce((a,c)=>(a[a.length-1]===gi&&c===gi||a.push(c),a),[]),o.forEach((a,c)=>{a!==gi||o[c-1]===gi||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=gi))}),o.filter(a=>a!==gi).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;HX.sep!=="/"&&(e=e.split(HX.sep).join("/")),e=e.split(Jke),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Xo.defaults(e).Minimatch}};Xo.Minimatch=LI});var eve=C((aDr,$ke)=>{$ke.exports=Zke;var VX=Q("fs"),{EventEmitter:ELt}=Q("events"),{Minimatch:YX}=jke(),{resolve:CLt}=Q("path");function ILt(t,e){return new Promise((r,n)=>{VX.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Kke(t,e){return new Promise((r,n)=>{(e?VX.stat:VX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Kke(t,!1):null):r(null):r(o)})})}async function*Xke(t,e,r,n,s,i){let o=await ILt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Kke(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Xke(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*yLt(t,e,r,n){yield*Xke("",t,e,r,n,!0)}function BLt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var y_=class extends ELt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=BLt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new YX(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new YX(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new YX(i,{dot:!0}))}this.iterator=yLt(CLt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,N);N=Y===-1?w.length:Y}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let Y=w.indexOf("*/",N);Y!==-1?(N=Y+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function qn(w){let b=Js(w.toString()),N=b.match(io);if(N||(N=b.match(ju)),!N)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(jI).map(te=>te.replace(Om,"").trim())}function XI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Hm(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),Ic(T,S)}class ZI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):$I(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):$I(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function $I(D,S){D.length=1,D.head=D.tail=S}function qm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,so;function Du(nB,...RT){if(nB)return Nt?so(nB):fs();if(RT.length<=1)return fs(RT[0]);fs(RT)}var $y=Xr._createTaskItem(wt,Nt?Du:Or||Du);if(tt?Xr._tasks.unshift($y):Xr._tasks.push($y),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((nB,RT)=>{fs=nB,so=RT})}function Ru(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var so=wt[Or],Du=se.indexOf(so);Du===0?se.shift():Du>0&&se.splice(Du,1),so.callback(tt,...Nt),tt!=null&&vr("error",tt,so.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Zy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let rB=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,so)=>{if(fs)return Or(fs);Nt(so)})});nt(wt),de(wt,tt)};var ST=!1,Xr={_tasks:new ZI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!ST){for(ST=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var so=Z(Ru(wt));G(tt,so)}ST=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:rB("saturated")},unsaturated:{writable:!1,value:rB("unsaturated")},empty:{writable:!1,value:rB("empty")},drain:{writable:!1,value:rB("drain")},error:{writable:!1,value:rB("error")}}),Xr}function eB(D,S){return qm(D,1,S)}function Pf(D,S,T){return qm(D,S,T)}function BA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var QA=m(BA,4);function Gm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),QA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function tB(...D){return Gm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Hs[Zo]||(rbt=global[Zo]||[],sbt(Hs,rbt),Hs.close=(function(t){function e(r,n){return t.call(Hs,r,function(s){s||nbt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,qj,{value:t}),e})(Hs.close),Hs.closeSync=(function(t){function e(r){t.apply(Hs,arguments),nbt()}return Object.defineProperty(e,qj,{value:t}),e})(Hs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){By(Hs[Zo]),B("assert").equal(Hs[Zo].length,0)}));var rbt;global[Zo]||sbt(global,Hs[Zo]);zNe.exports=VNe(hon(Hs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Hs.__patched&&(zNe.exports=VNe(Hs),Hs.__patched=!0);function VNe(t){lon(t),t.gracefulify=VNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?Dx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?Dx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=don(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function Dx(t){By("ENQUEUE",t[0].name,t[1]),Hs[Zo].push(t),WNe()}var Hj;function nbt(){for(var t=Date.now(),e=0;e<Hs[Zo].length;++e)Hs[Zo][e].length>2&&(Hs[Zo][e][3]=t,Hs[Zo][e][4]=t);WNe()}function WNe(){if(clearTimeout(Hj),Hj=void 0,Hs[Zo].length!==0){var t=Hs[Zo].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)By("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){By("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(By("RETRY",e.name,r),e.apply(null,r.concat([s]))):Hs[Zo].push(t)}Hj===void 0&&(Hj=setTimeout(WNe,0))}}});var Gj=f((fns,ibt)=>{"use strict";var bf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bf.writable=t=>bf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};UNt.exports={AggregateError:xSe,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var TSe=f((wss,PNt)=>{"use strict";PNt.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var va=f((Nss,HNt)=>{"use strict";var{format:Uun,inspect:A7}=TSe(),{AggregateError:Pun}=xs(),_un=globalThis.AggregateError||Pun,Oun=Symbol("kIsNodeError"),Hun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qun=/^([A-Z][a-z0-9]*)+$/,Gun="__node_internal_",c7={};function by(t,e){if(!t)throw new c7.ERR_INTERNAL_ASSERTION(e)}function _Nt(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Yun(t,e,r){if(typeof e=="function")return by(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return by(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:Uun(e,...r)}function ea(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Yun(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[Oun]=!0,c7[t]=n}function ONt(t){let e=Gun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Jun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _un([e,t],e.message);return r.code=e.code,r}return t||e}var kSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new c7.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ea("ERR_ASSERTION","%s",Error);ea("ERR_INVALID_ARG_TYPE",(t,e,r)=>{by(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)by(typeof A=="string","All expected entries have to be of type string"),Hun.includes(A)?s.push(A.toLowerCase()):qun.test(A)?i.push(A):(by(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,X7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(ECn))?s=r.dot?ICn:CCn:(n=e.match(ACn))?s=(r.nocase?r.dot?dCn:lCn:r.dot?uCn:cCn)(n[1]):(n=e.match(BCn))?s=(r.nocase?r.dot?yCn:QCn:r.dot?bCn:wCn)(n):(n=e.match(hCn))?s=r.dot?fCn:gCn:(n=e.match(pCn))&&(s=mCn);let i=jTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?SCn:r.dot?RCn:DCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?vCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Ly;var LCn=rDe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return LCn.AST}});var UCn=nDe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return UCn.escape}});var PCn=V7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return PCn.unescape}});et.minimatch.AST=jTt.AST;et.minimatch.Minimatch=Ly;et.minimatch.escape=iCn.escape;et.minimatch.unescape=oCn.unescape});var n1t=f($7=>{"use strict";Object.defineProperty($7,"__esModule",{value:!0});$7.LRUCache=void 0;var nT=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e1t=new Set,sDe=typeof process=="object"&&process?process:{},t1t=(t,e,r,n)=>{typeof sDe.emitWarning=="function"?sDe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},Z7=globalThis.AbortController,$Tt=globalThis.AbortSignal;if(typeof Z7>"u"){$Tt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Z7=class{constructor(){e()}signal=new $Tt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=sDe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,t1t("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var _Cn=t=>!e1t.has(t),kI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),r1t=t=>kI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?sT:null:null,sT=class extends Array{constructor(e){super(e),this.fill(0)}},iDe=class t{heap;length;static#e=!1;static create(e){let r=r1t(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},oDe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=uxe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=uxe(" "+s+"="+n[s]+`
`);return jr.from(r)};pT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(jr.toString(e.subarray(0,n)),10);if(!s)return r;let i=jr.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};pT.encode=function(e){let r=jr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),jr.byteLength(n)!==n.length)return null;for(;jr.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return jr.byteLength(n)>100||jr.byteLength(s)>155||e.linkname&&jr.byteLength(e.linkname)>100?null:(jr.write(r,n),jr.write(r,OI(e.mode&$0n,6),100),jr.write(r,OI(e.uid,6),108),jr.write(r,OI(e.gid,6),116),oQn(e.size,r,124),jr.write(r,OI(e.mtime.getTime()/1e3|0,11),136),r[156]=LK+sQn(e.type),e.linkname&&jr.write(r,e.linkname,157),jr.copy(A2t,r,lP),jr.copy(K0n,r,lxe),e.uname&&jr.write(r,e.uname,265),e.gname&&jr.write(r,e.gname,297),jr.write(r,OI(e.devmajor||0,6),329),jr.write(r,OI(e.devminor||0,6),337),s&&jr.write(r,s,345),jr.write(r,OI(u2t(r),6),148),r)};pT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-LK,i=fT(e,0,100,r),o=_I(e,100,8),a=_I(e,108,8),A=_I(e,116,8),c=_I(e,124,12),u=_I(e,136,12),l=nQn(s),d=e[157]===0?null:fT(e,157,100,r),h=fT(e,265,32),g=fT(e,297,32),p=_I(e,329,8),C=_I(e,337,8),m=u2t(e);if(m===256)return null;if(m!==_I(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(eQn(e))e[345]&&(i=fT(e,345,155,r)+"/"+i);else if(!tQn(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function eQn(t){return jr.equals(A2t,t.subarray(lP,lP+6))}function tQn(t){return jr.equals(X0n,t.subarray(lP,lP+6))&&jr.equals(Z0n,t.subarray(lxe,lxe+2))}function rQn(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function nQn(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function sQn(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function c2t(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function u2t(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function OI(t,e){return t=t.toString(8),t.length>e?j0n.slice(0,e)+" ":z0n.slice(0,e-t.length)+t+" "}function iQn(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function oQn(t,e,r){t.toString(8).length>11?iQn(t,e,r):jr.write(e,OI(t,11),r)}function aQn(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function _I(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return aQn(t);{for(;e<t.length&&t[e]===32;)e++;let n=rQn(c2t(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(jr.toString(t.subarray(e,n)),8)}}function fT(t,e,r,n){return jr.toString(t.subarray(e,c2t(t,0,e,e+r)),n)}function uxe(t){let e=jr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var f2t=f((Zos,g2t)=>{var{Writable:AQn,Readable:cQn,getStreamError:l2t}=cxe(),uQn=zDe(),d2t=uT(),mT=dxe(),lQn=d2t.alloc(0),gxe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new uQn,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return lQn;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return d2t.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},fxe=class extends cQn{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(l2t(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=h2t(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},pxe=class extends A Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function aPe(t,e){if(process.env.GITHUB_OUTPUT||"")return DT("OUTPUT",_P(t,e));process.stdout.write(xee.EOL),ad("set-output",{name:t},Eh(e))}function lE(t){process.exitCode=Dee.Failure,F1(t)}function DB(){return process.env.RUNNER_DEBUG==="1"}function Te(t){ad("debug",{},t)}function F1(t,e={}){ad("error",LP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){ad("warning",LP(e),t instanceof Error?t.toString():t)}function APe(t,e={}){ad("notice",LP(e),t instanceof Error?t.toString():t)}function fe(t){process.stdout.write(t+xee.EOL)}function b5t(t){XK("group",t)}function w5t(){XK("endgroup")}function tp(t,e){return y5t(this,void 0,void 0,function*(){b5t(t);let r;try{r=yield e()}finally{w5t()}return r})}function DA(t,e){if(process.env.GITHUB_STATE||"")return DT("STATE",_P(t,e));ad("save-state",{name:t},Eh(e))}function xB(t){return process.env[`STATE_${t}`]||""}import*as WBe from"fs";import*as zBe from"path";import*as vW from"os";var zje=Xe(Z2(),1),DBr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",xBr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",TBr="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",kBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.",jje="[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.",Vje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",FBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Wje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.";var CY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=DBr;this.cacheCleanupMessage=Wje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return zje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=xBr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setDisabled(e=TBr){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setWriteOnly(e=kBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=FBr}setCacheCleanupDisabled(e=Wje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new IY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new IY(i.entryName),i)}return r}},IY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};import*as JS from"fs";function Oue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Te(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Te(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Te(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Te(`omitBrokenSymbolicLine truncated
`+b);let[,M]=N;return M.replace(/\s/g,"").split(aA).map(Y=>Y.replace(Km,"").trim())}function lc(w,b){var N={};return Object.keys(w).forEach(M=>{var Y=w[M],W,K=h(Y),$=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),N[M]=W.concat(W.length>0?se:Y);else if($)N[M]=Y;else{if(W=qn(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(se)}function se(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(Y)(...Jt)}}),zu(N,b)}class dc{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Td(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Td(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Td(w,b){w.length=1,w.head=w.tail=b}function cA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(ze,Ne){K[ze].push(Ne)}function se(ze,Ne){let je=(...Pt)=>{xe(ze,je),Ne(...Pt)};K[ze].push(je)}function xe(ze,Ne){if(!ze)return Object.keys(K).forEach(je=>K[je]=[]);if(!Ne)return K[ze]=[];K[ze]=K[ze].filter(je=>je!==Ne)}function kt(ze,...Ne){K[ze].forEach(je=>je(...Ne))}var Jt=!1;function Ut(ze,Ne,je,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var kr,Jn;function ia(Jf,...Vy){if(Jf)return je?Jn(Jf):kr();if(Vy.length<=1)return kr(Vy[0]);kr(Vy)}var c0=Wt._createTaskItem(ze,je?ia:Pt||ia);if(Ne?Wt._tasks.unshift(c0):Wt._tasks.push(c0),Jt||(Jt=!0,A(()=>{Jt=!1,Wt.process()})),je||!Pt)return new Promise((Jf,Vy)=>{kr=Jf,Jn=Vy})}function sa(ze){return function(Ne,...je){Y-=1;for(var Pt=0,kr=ze.length;Pt<kr;Pt++){var Jn=ze[Pt],ia=W.indexOf(Jn);ia===0?W.shift():ia>0&&W.splice(ia,1),Jn.callback(Ne,...je),Ne!=null&&kt("error",Ne,Jn.data)}Y<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function a0(ze){return ze.length===0&&Wt.idle()?(A(()=>kt("drain")),!0):!1}let Vf=ze=>Ne=>{if(!Ne)return new Promise((je,Pt)=>{se(ze,(kr,Jn)=>{if(kr)return Pt(kr);je(Jn)})});xe(ze),$(ze,Ne)};var Yy=!1,Wt={_tasks:new dc,_createTaskItem(ze,Ne){return{data:ze,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!1,!1,Ne)):Ut(ze,!1,!1,Ne)},pushAsync(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!1,!0,Ne)):Ut(ze,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!0,!1,Ne)):Ut(ze,!0,!1,Ne)},unshiftAsync(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!0,!0,Ne)):Ut(ze,!0,!0,Ne)},remove(ze){Wt._tasks.remove(ze)},process(){if(!Yy){for(Yy=!0;!Wt.paused&&Y<Wt.concurrency&&Wt._tasks.length;){var ze=[],Ne=[],je=Wt._tasks.length;Wt.payload&&(je=Math.min(je,Wt.payload));for(var Pt=0;Pt<je;Pt++){var kr=Wt._tasks.shift();ze.push(kr),W.push(kr),Ne.push(kr.data)}Y+=1,Wt._tasks.length===0&&kt("empty"),Y===Wt.concurrency&&kt("saturated");var Jn=ne(sa(ze));M(Ne,Jn)}Yy=!1}},length(){return Wt._tasks.length},running(){return Y},workersList(){return W},idle(){return Wt._tasks.length+Y===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,A(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Vf("saturated")},unsaturated:{writable:!1,value:Vf("unsaturated")},empty:{writable:!1,value:Vf("empty")},drain:{writable:!1,value:Vf("drain")},error:{writable:!1,value:Vf("error")}}),Wt}function Ku(w,b){return cA(w,1,b)}function Xu(w,b,N){return cA(w,b,N)}function Bi(w,b,N,M){M=V(M);var Y=E(N);return hs(w,(W,K,$)=>{Y(b,W,(se,xe)=>{b=xe,$(se)})},W=>M(W,b))}var Ws=m(Bi,4);function Zu(...w){var b=w.map(E);return function(...N){var M=this,Y=N[N.length-1];return typeof Y=="function"?N.pop():Y=oA(),Ws(b,N,(W,K,$)=>{K.apply(M,W.concat((se,...xe)=>{$(se,xe)}))},(W,K)=>Y(W,...K)),Y[uc]}}function Of(...w){return Zu(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var q=m(Se,4);function x(w,b,N,M){var Y=E(N);return q(w,b,(W,K)=>{Y(W,($,...se)=>$?K($):K($,se))},(W,K)=>{for(var $=[],se=0;se<K.length;se++)K[se]&&($=$.concat(...K[se]));return M(W,$)})}var J=m(x,4);function X(w,b,N){return J(w,1/0,b,N)}var te=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Jr[bs]||(uve=global[bs]||[],dve(Jr,uve),Jr.close=(function(t){function e(r,n){return t.call(Jr,r,function(s){s||lve(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,S_,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),lve()}return Object.defineProperty(e,S_,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ym(Jr[bs]),Q("assert").equal(Jr[bs].length,0)}));var uve;global[bs]||dve(global,Jr[bs]);jX.exports=WX(RLt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(jX.exports=WX(Jr),Jr.__patched=!0);function WX(t){xLt(t),t.gracefulify=WX,t.createReadStream=F,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),ne(k,j,Z);function ne(ce,de,ke,ve){return e(ce,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?UI([ne,[ce,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return n(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return i(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=0),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return a(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var ne=u.test(process.version)?function(ke,ve,rt,_t){return A(ke,ce(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return A(ke,ve,ce(ke,ve,rt,_t))};return ne(k,j,Z);function ce(de,ke,ve,rt){return function(_t,Rt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?UI([ne,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Rt&&Rt.sort&&Rt.sort(),typeof ve=="function"&&ve.call(this,_t,Rt))}}}if(process.version.substr(0,4)==="v0.8"){var d=DLt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function V(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return L(de,ke,ve,function(Rt,Cr){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function UI(t){ym("ENQUEUE",t[0].name,t[1]),Jr[bs].push(t),zX()}var w_;function lve(){for(var t=Date.now(),e=0;e<Jr[bs].length;++e)Jr[bs][e].length>2&&(Jr[bs][e][3]=t,Jr[bs][e][4]=t);zX()}function zX(){if(clearTimeout(w_),w_=void 0,Jr[bs].length!==0){var t=Jr[bs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ym("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ym("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(ym("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[bs].push(t)}w_===void 0&&(w_=setTimeout(zX,0))}}});var N_=C((dDr,hve)=>{"use strict";var vu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vu.writable=t=>vu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vu.readable=t=>vu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};VMe.exports={AggregateError:RZ,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var kZ=C((BRr,JMe)=>{"use strict";JMe.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Gs=C((bRr,jMe)=>{"use strict";var{format:e8t,inspect:J_}=kZ(),{AggregateError:t8t}=Or(),r8t=globalThis.AggregateError||t8t,n8t=Symbol("kIsNodeError"),s8t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],i8t=/^([A-Z][a-z0-9]*)+$/,o8t="__node_internal_",W_={};function Qm(t,e){if(!t)throw new W_.ERR_INTERNAL_ASSERTION(e)}function WMe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function a8t(t,e,r){if(typeof e=="function")return Qm(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Qm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:e8t(e,...r)}function ws(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(a8t(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[n8t]=!0,W_[t]=n}function zMe(t){let e=o8t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function c8t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new r8t([e,t],e.message);return r.code=e.code,r}return t||e}var vZ=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new W_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ws("ERR_ASSERTION","%s",Error);ws("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Qm(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)Qm(typeof c=="string","All expected entries have to be of type string"),s8t.includes(c)?s.push(c.toLowerCase()):i8t.test(c)?i.push(c):(Qm(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=hte(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=hte(" "+s+"="+n[s]+`
`);return Yt.from(r)};wy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};wy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,vf(e.mode&Q7t,6),100),Yt.write(r,vf(e.uid,6),108),Yt.write(r,vf(e.gid,6),116),R7t(e.size,r,124),Yt.write(r,vf(e.mtime.getTime()/1e3|0,11),136),r[156]=yU+x7t(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(S4e,r,eN),Yt.copy(y7t,r,fte),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,vf(e.devmajor||0,6),329),Yt.write(r,vf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,vf(T4e(r),6),148),r)};wy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-yU,i=Qy(e,0,100,r),o=kf(e,100,8),a=kf(e,108,8),c=kf(e,116,8),A=kf(e,124,12),u=kf(e,136,12),l=T7t(s),d=e[157]===0?null:Qy(e,157,100,r),h=Qy(e,265,32),f=Qy(e,297,32),g=kf(e,329,8),E=kf(e,337,8),m=T4e(e);if(m===256)return null;if(m!==kf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(w7t(e))e[345]&&(i=Qy(e,345,155,r)+"/"+i);else if(!S7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function w7t(t){return Yt.equals(S4e,t.subarray(eN,eN+6))}function S7t(t){return Yt.equals(B7t,t.subarray(eN,eN+6))&&Yt.equals(b7t,t.subarray(fte,fte+2))}function N7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function T7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function x7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function N4e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function T4e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function vf(t,e){return t=t.toString(8),t.length>e?I7t.slice(0,e)+" ":C7t.slice(0,e-t.length)+t+" "}function D7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function R7t(t,e,r){t.toString(8).length>11?D7t(t,e,r):Yt.write(e,vf(t,11),r)}function k7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function kf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return k7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=N7t(N4e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function Qy(t,e,r,n){return Yt.toString(t.subarray(e,N4e(t,0,e,e+r)),n)}function hte(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var v4e=C((Zkr,k4e)=>{var{Writable:v7t,Readable:F7t,getStreamError:x4e}=dte(),M7t=Kee(),D4e=Cy(),Sy=gte(),_7t=D4e.alloc(0),L7t=4*1024*1024,mte=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new M7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return _7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return D4e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Ete=class extends F7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(x4e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=R4e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Vue(t,e){if(process.env.GITHUB_OUTPUT||"")return Jy("OUTPUT",xN(t,e));process.stdout.write(M8.EOL),pc("set-output",{name:t},uA(e))}function eh(t){process.exitCode=F8.Failure,Co(t)}function Tc(){return process.env.RUNNER_DEBUG==="1"}function G(t){pc("debug",{},t)}function Co(t,e={}){pc("error",SN(e),t instanceof Error?t.toString():t)}function Ye(t,e={}){pc("warning",SN(e),t instanceof Error?t.toString():t)}function L8(t,e={}){pc("notice",SN(e),t instanceof Error?t.toString():t)}function ee(t){process.stdout.write(t+M8.EOL)}function Jue(t){XU("group",t)}function Wue(){XU("endgroup")}function Mx(t,e){return yZe(this,void 0,void 0,function*(){Jue(t);let r;try{r=yield e()}finally{Wue()}return r})}function bA(t,e){if(process.env.GITHUB_STATE||"")return Jy("STATE",xN(t,e));pc("save-state",{name:t},uA(e))}function $B(t){return process.env[`STATE_${t}`]||""}import*as JK from"fs";import*as WK from"path";import*as u_ from"os";import{readFileSync as BZe,existsSync as bZe}from"fs";import{EOL as QZe}from"os";var oE=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(bZe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(BZe(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${QZe}`)}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 H8=Ee(Zue(),1),$ue=Ee(Sx(),1),LZe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function ele(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}`}function tle(t){return new H8.HttpClient().getAgent(t)}function UZe(t){return new H8.HttpClient().getAgentDispatcher(t)}function rle(t){let e=UZe(t);return(n,s)=>LZe(this,void 0,void 0,function*(){return(0,$ue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function nle(){return process.env.GITHUB_API_URL||"https://api.github.com"}function G8(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}function th(){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>"}function Gx(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,i)=>Gx.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function sle(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function ile(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)}var ole=Function.bind,ale=ole.bind(ole);function cle(t,e,r){let n=ale(ile,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=ale(sle,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(j8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=K8(m);if(I&&!y){if(h.has(m))throw new TypeError("Converting circular structure to JSON");h.add(m),d.push({parent:f.val,key:String(f.index),val:m,isArray:Array.isArray(m),keys:Array.isArray(m)?null:Object.keys(m),index:0,first:!0}),f.first=!1,f.index++}else u.push(rh(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(j8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+rh(m)+": "):u.push(rh(m)+":");let F=B!==null&&typeof B=="object",V=K8(B);if(F&&!V){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(rh(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Tle=(t,e,r)=>{try{return"rawJSON"in JSON?rh(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?rh(t,(a,c)=>typeof c=="string"&&Yx.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(ble,"$1$2$3").replace(Qle,"$1$2$3"):rh(t,e,r)}catch(n){if(n instanceof RangeError){let s=o$e(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(ble,"$1$2$3").replace(Qle,"$1$2$3")}throw n}},qx=new Map,a$e=()=>{let t=JSON.parse.toString();if(qx.has(t))return qx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return qx.set(t,e),e}catch{return qx.set(t,!1),!1}},c$e=(t,e,r,n)=>typeof e=="string"&&Nle.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&Yx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,A$e=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&i$e.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),xle=Number.MAX_SAFE_INTEGER.toString(),wle=xle.length,u$e=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,l$e=/^"-?\d+n+"$/,d$e=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Nle.test(a)?a=BigInt(a.slice(0,-1)):Yx.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Sle=t=>t.replace(u$e,(e,r,n,s)=>{let i=e[0]==='"';if(i&&l$e.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<wle||r.length===wle&&r<=xle);return i||a||c?e:'"'+e+'n"'}),Dle=(t,e)=>{if(!t)return z8(t,e);try{if(a$e())return A$e(t,e);let r=Sle(t);return z8(r,(n,s,i)=>c$e(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Sle(t),s=z8(n);return d$e(s,e)}throw r}};var ml=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var h$e="10.0.16",f$e={headers:{"user-agent":`octokit-request.js/${h$e} ${th()}`}};function g$e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Rle=()=>"";async function kle(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=g$e(t.body)||Array.isArray(t.body)?Tle(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new ml(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new ml(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await X8(o),new ml("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await X8(o),new ml(m$e(u.data),a,{response:u,request:t});return u.data=n?await X8(o):o.body,u}async function X8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Rle);let r=Cle(e);if(p$e(r)){let n="";try{return n=await t.text(),Dle(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var I$e=class extends Error{constructor(t,e,r){super(C$e(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)}request;headers;response;name="GraphqlResponseError";errors;data},y$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],B$e=["query","method","url"],vle=/\/api\/v3\/?$/;function b$e(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 o in r)if(B$e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>y$e.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return vle.test(i)&&(s.url=i.replace(vle,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new I$e(s,a,o.data)}return o.data.data})}function $8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>b$e(r,s,i),{defaults:$8.bind(null,r),endpoint:r.endpoint})}var pZt=$8(rb,{headers:{"user-agent":`octokit-graphql.js/${E$e} ${th()}`},method:"POST",url:"/graphql"});function Fle(t){return $8(t,{method:"POST",url:"/graphql"})}var e4="(?:[a-zA-Z0-9_-]+)",Mle="\\.",_le=new RegExp(`^${e4}${Mle}${e4}${Mle}${e4}$`),Q$e=_le.test.bind(_le);async function w$e(t){let e=Q$e(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"}}function S$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function N$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=S$e(t),e(s)}var Lle=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(w$e.bind(null,e),{hook:N$e.bind(null,e)})};var t4="7.0.8";var Ule=()=>{},T$e=console.warn.bind(console),x$e=console.error.bind(console);function D$e(t={}){return typeof t.debug!="function"&&(t.debug=Ule),typeof t.info!="function"&&(t.info=Ule),typeof t.warn!="function"&&(t.warn=T$e),typeof t.error!="function"&&(t.error=x$e),t}var Ple=`octokit-core.js/${t4} ${th()}`,Vx=class{static VERSION=t4;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Ale.Collection,n={baseUrl:rb.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} ${Ple}`:Ple,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rb.defaults(n),this.graphql=Fle(this.request).defaults(n),this.log=D$e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Lle(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var r4="17.0.0";var R$e={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new rF(i));return n.searchPaths.push(...que(n.patterns)),n})}static stat(e,r,n){return Gue(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield JS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Te(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield JS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield JS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Te(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as Yue from"crypto";import*as bY from"fs";import*as t7e from"stream";import*as r7e from"util";import*as n7e from"path";var HBr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qBr=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function s7e(t,e){return HBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?fe:Te,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=Yue.createHash("sha256"),g=0;try{for(var p=!0,C=qBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${n7e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(bY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=Yue.createHash("sha256");yield r7e.promisify(t7e.pipeline)(bY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var i7e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function aC(t,e){return i7e(this,void 0,void 0,function*(){return yield QY.create(t,e)})}function o7e(t){return i7e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield aC(e,{followSymbolicLinks:i});return s7e(o,r,s)})}import Vp from"path";import ic from"fs";import{readFileSync as GBr,existsSync as YBr}from"fs";import{EOL as JBr}from"os";var VS=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(YBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(GBr(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${JBr}`)}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 gge=Xe(Mnt(),1),vnt=Xe(uge(),1),d2r=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var lFr=class extends Error{constructor(t,e,r){super(uFr(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},dFr=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hFr=["query","method","url"],pst=/\/api\/v3\/?$/;function gFr(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 o in r)if(hFr.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>dFr.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return pst.test(i)&&(s.url=i.replace(pst,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new lFr(s,a,o.data)}return o.data.data})}function Rge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>gFr(r,s,i),{defaults:Rge.bind(null,r),endpoint:r.endpoint})}var gvn=Rge(mst.request,{headers:{"user-agent":`octokit-graphql.js/${cFr} ${N6()}`},method:"POST",url:"/graphql"});function Est(t){return Rge(t,{method:"POST",url:"/graphql"})}var Dge="(?:[a-zA-Z0-9_-]+)",Cst="\\.",Ist=new RegExp(`^${Dge}${Cst}${Dge}${Cst}${Dge}$`),fFr=Ist.test.bind(Ist);async function pFr(t){let e=fFr(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"}}function mFr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function EFr(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=mFr(t),e(s)}var Bst=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(pFr.bind(null,e),{hook:EFr.bind(null,e)})};var xge="7.0.6";var Qst=()=>{},CFr=console.warn.bind(console),IFr=console.error.bind(console);function BFr(t={}){return typeof t.debug!="function"&&(t.debug=Qst),typeof t.info!="function"&&(t.info=Qst),typeof t.warn!="function"&&(t.warn=CFr),typeof t.error!="function"&&(t.error=IFr),t}var yst=`octokit-core.js/${xge} ${N6()}`,x6=class{static VERSION=xge;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Jnt.Collection,n={baseUrl:Tge.request.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} ${yst}`:yst,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Tge.request.defaults(n),this.graphql=Est(this.request).defaults(n),this.log=BFr(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Bst(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var kge="17.0.0";var QFr={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions Line truncated
See ${r.getDocumentationLink()}`;vst.push(n),lE(n)}function Ust(){DA("deprecation-collector_deprecations",JSON.stringify(Pge)),DA("deprecation-collector_errors",JSON.stringify(vst))}import*as F6 from"path";var _st="GRADLE_ACTION_ID";var oQ=".setup-gradle",M6=class t{getDependencyGraphOption(){let e=Es("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return yg("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Es("artifact-retention-days");return PFr("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Qo.workflow,Qo.job,Oge())}getReportDirectory(){let e=Es("dependency-graph-report-dir");return F6.resolve(Gp(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return iQ("dependency-graph-exclude-projects")}getIncludeProjects(){return iQ("dependency-graph-include-projects")}getExcludeConfigurations(){return iQ("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return iQ("dependency-graph-include-configurations")}getPluginRepository(){return new v6}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Te(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var YR=class{isCacheDisabled(){return Pst.isFeatureAvailable()?yg("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&yg("cache-read-only")}isCacheWriteOnly(){return yg("cache-write-only")}isCacheOverwriteExisting(){return yg("cache-overwrite-existing")}isCacheStrictMatch(){return yg("gradle-home-cache-strict-match")}isCacheCleanupEnabled(){if(this.isCacheReadOnly())return!1;let e=this.getCacheCleanupOption();return e==="always"||e==="on-success"}shouldPerformCacheCleanup(e){let r=this.getCacheCleanupOption();return r==="always"?!0:r==="on-success"?!e:!1}getCacheCleanupOption(){let e=oM("gradle-home-cache-cleanup");if(e!==void 0)return k6("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always":"never";let r=Es("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always";case"on-success":return"on-success";case"never":return"never"}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Es("cache-encryption-key")}getCacheIncludes(){return Tee("gradle-home-cache-includes")}getCacheExcludes(){return Tee("gradle-home-cache-excludes")}};var qd=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return yg("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Es("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Es("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Es("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Es("develocity-token-expiry")}getDevelocityInjectionEnabled(){return oM("develocity-injection-enabled")}getDevelocityUrl(){return Es("develocity-url")}getDevelocityAllowUntrustedServer(){return oM("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return oM("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return oM("develocity-enforce-url")}getDevelocityPluginVersion(){return Es("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Es("develocity-ccud-plugin-version")}getPluginRepository(){return new v6}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(tr("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},v6=class{getUrl(){return iQ("gradle-plugin-repository-url")}getUsername(){return iQ("gradle-plugin-repository-username")}getPassword(){return iQ("gradle-plugin-repository-password")}},L6=class{getGradleVersion(){return Es("gradle-version")}getBuildRootDirectory(){let e=Gp(),r=Es("build-root-directory");return r===""?F6.re Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await qFr()}`),n;zo(`Attempt to delete ${t} failed. Will try again.`),await HFr(1e3)}}}async function HFr(t){return new Promise(e=>setTimeout(e,t))}async function qFr(){return(await ep("jps",["-lm"])).stdout}var GFr="v1",YFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",JFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",VFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",WFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",zFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",H6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function qge(t,e){let s=`${`${process.env[YFr]||""}${q6(t,GFr)}`}|${jFr()}`,i=`${s}|${KFr()}`,o=`${i}[${XFr()}]`,a=`${o}-${ZFr()}`;return e.isCacheStrictMatch()?new H6(a,[o]):new H6(a,[o,i,s])}function q6(t,e){return`gradle-${t}-${e}`}function jFr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[JFr]||`${t}-${e}`}function KFr(){return process.env[VFr]||Qo.job}function XFr(){let t=process.env[WFr];if(t)return t;let e=Qo.workflow,r=Oge();return Hge([e,r])}function ZFr(){return process.env[zFr]||Qo.sha}import WR from"path";import IM from"fs";import*as Gd from"fs";import*as Jp from"path";var Qat=Xe(iit(),1),uQ=Xe(t9(),1);import*as VR from"fs";import*as gat from"os";import*as DC from"path";var c9=Xe(Z2(),1);import{ok as fUr}from"assert";import*as wg from"path";import*as r9 from"fs";import*as RC from"path";var oUr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},{chmod:aUr,copyFile:AUr,lstat:cUr,mkdir:jot,open:_Ln,readdir:Kot,rename:uUr,rm:Xot,rmdir:OLn,stat:cfe,symlink:lUr,unlink:dUr}=r9.promises,SC=process.platform==="win32";var HLn=r9.constants.O_RDONLY;function Zot(t){if(t=hUr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return SC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function ufe(t,e){return oUr(this,void 0,void 0,function*(){let r;try{r=yield cfe(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(SC){let s=RC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(zot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield cfe(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(SC){try{let i=RC.dirname(t),o=RC.basename(t).toUpperCase();for(let a of yield Kot(i))if(o===a.toUpperCase()){t=RC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(zot(r))return t}}return""})}function hUr(t){return t=t||"",SC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function zot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var n9=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function $ot(t){return n9(this,void 0,void 0,function*(){if(SC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Xot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function lfe(t){return n9(this,void 0,void 0,function*(){fUr(t,"a path argument must be provided"),yield jot(t,{recursive:!0})})}function mM(t,e){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield mM(t,!1);if(!n)throw SC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield pUr(t);return r&&r.length>0?r[0]:""})}function pUr(t){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(SC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(wg.delimiter))s&&e.push(s);if(Zot(t)){let s=yield ufe(t,e);return s?[s]:[]}if(t.includes(wg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(wg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield ufe(wg.join(s,t),e)Line truncated
`),r,[],s)?new BM(e,n,r):(fe(`Did not restore ${e} with key ${r} to ${n}`),new BM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await aC(a,{implicitDescendants:!1})).glob();if(c.length===0){zo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(zo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await O6(n.split(`
`),a,o);for(let c of e)cM(c);return new BM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>WR.relative(this.gradleUserHome,i)),s=Gst(n);return zo(`Generating cache key for ${e} from file names: ${n}`),`${q6(e,bat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await o7e(r);return zo(`Generating cache key for ${e} from files matching: ${r}`),`${q6(e,bat)}-${n}`}async awaitForDebugging(e){return aM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!IM.existsSync(e))return[];let r=IM.readFileSync(e,"utf-8");return zo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new Ife;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);zo(`Saving cache metadata for ${this.extractorName}: ${n}`),IM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=WR.resolve(this.gradleUserHome,oQ);return IM.mkdirSync(e,{recursive:!0}),WR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},QM=class extends h9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=WR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await aC(e,{implicitDescendants:!1});for(let n of await r.glob())zo(`Deleting wrapper zip: ${n}`),await cM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=WR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new d9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},yM=class extends h9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){fe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){fe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new d9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!xC(i.gradleVersion,"8.6.0"))&&(fe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return Cfe().results.reduce((e,r)=>{let n=WR.resolve(r.rootProjectDir,".gradle/configuration-cache");return IM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import wat from"path";import WUr from"fs";import{fileURLToPath as zUr}from"url";function Nat(...t){let e=wat.dirname(zUr(import.meta.url)),r=wat.resolve(e,"..","..","..","sources","src","resources",...t);return WUr.readFileSync(r,"utf8")}function Sat(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new cb(i));return n.searchPaths.push(...u4(n.patterns)),n})}static stat(e,r,n){return p4(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield lE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield lE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield lE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var fet=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function mde(t,e){return fet(this,void 0,void 0,function*(){return yield Kx.create(t,e)})}var Afe=Ee(uD(),1);import*as fD from"crypto";import*as gE from"fs";import*as Ng from"path";import*as ufe from"util";var gb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(gb||(gb={}));var ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ti||(ti={}));var yo;(function(t){t.GNU="gnu",t.BSD="bsd"})(yo||(yo={}));var lD=2,dD=5e3,L4=5e3,U4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pb="cache.tar",P4="manifest.txt",uer=10*Math.pow(1024,3),hD="cache read denied:";var fE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Qnt=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},wnt="1.0";function mb(){return fE(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=Ng.join(n,"actions","temp")}let r=Ng.join(e,fD.randomUUID());return yield Cg(r),r})}function wA(t){return gE.statSync(t).size}function O4(t){return fE(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield mde(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Qnt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ng.relative(a,s).replace(new RegExp(`\\${Ng.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Eb(t){return fE(this,void 0,void 0,function*(){return ufe.promisify(gE.unlink)(t)})}function lfe(t){return fE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield Nc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function Cb(){return fE(this,void 0,void 0,function*(){let t=yield lfe("zstd",["--quiet"]),e=Afe.clean(t);return G(`zstd version: ${e}`),t===""?ti.Gzip:ti.ZstdWithoutLong})}function ah(t){return t===ti.Gzip?gb.Gzip:gb.Zstd}function dfe(){return fE(this,void 0,void 0,function*(){return gE.existsSync(U4)?U4:(yield lfe("tar")).toLowerCase().includes("gnu tar")?Eo("tar"):""})}function H4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function pE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(wnt),fD.createHash("sha256").update(n.join("|")).digest("hex")}function hfe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as ZE from"fs";import{URL as Mlt}from"url";var SA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Snt}from"node:os";import Nnt from"node:util";import Tnt from"node:process";function ffe(t,...e){Tnt.stderr.write(`${Nnt.format(t,...e)}${Snt}`)}import Ib from"node:process";function pD(t){return Ib.env[t]}var gfe=typeof Ib.versions.deno=="string"&&Ib.versions.deno.length>0,pfe=typeof Ib.versions.bun=="string"&&Ib.versions.bun.length>0,mD=!0;var mfe=pD("DEBUG"),Cfe,G4=[],q4=[],ED=[];mfe&&Y4(mfe);var Ife=Object.assign(t=>yfe(t),{enable:Y4,enabled:V4,disable:xnt,log:ffe});function Y4(t){Cfe=t,G4=[],q4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q4.push(r.substring(1)):G4.push(r);for(let r of ED)r.enabled=V4(r.namespace)}function V4(t){if(t.endsWith("*"))return!0;for(let e of q4)if(Efe(t,e))return!1;for(let e of G4)if(Efe(t,e))return!0;return!1}function Efe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function xnt(){let t=Cfe||"";return Y4(""),t}function yfe(t){let e=Object.assign(r,{enabled:V4(t),destroy:Dnt,log:Ife.log,namespace:t,extend:Rnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ED.push(e),e}function Dnt(){let t=ED.indexOf(this);return t>=0?(ED.splice(t,1),!0):!1}function Rnt(t){let e=yfe(`${this.namespace}:${t}`);return e.log=this.log,e}var mE=Ife;var J4=["verbose","info","warning","error"],Bfe={verbose:400,info:300,warning:200,error:100};function bfe(t,e){e.log=(...r)=>{t.log(...r)}}function Qfe(t){return J4.includes(t)}function CD(t){let e=new Set,r=pD(t.logLevelEnvVarName),n,s=mE(t.namespace);s.log=(...u)=>{mE.log(...u)};function i(u){if(u&&!Qfe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${J4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);mE.enable(l.join(","))}r&&(Qfe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${J4.join(", ")}.`));function o(u){return!!(n&&Bfe[u.level]<=Bfe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(bfe(u,d),o(d)){let h=mE.disable();mE.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return bfe(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var wfe=CD({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),knt=wfe.logger;function yb(t){return wfe.createClientLogger(t)}function ID(t){return t.toLowerCase()}function vnt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Fnt(t){for(let e of t.values())yield[e.name,e.value]}var W4=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ID(e),{name:e,value:vnt(r)})}get(e){return this._headersMap.get(ID(e))?.value}has(e){return this._ Line truncated
${Unt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function EE(t){return t instanceof ri?!0:xg(t)&&t.name==="RestError"}function Bb(t,e){return Buffer.from(t).toString(e)}function ni(t,e){return Buffer.from(t,e)}import X4 from"node:http";import Z4 from"node:https";import Tfe from"node:zlib";import{Transform as Pnt}from"node:stream";var Ri=yb("ts-http-runtime");var Ont={};function bb(t){return t&&typeof t.pipe=="function"}function xfe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Dfe(t){return t&&typeof t.byteLength=="number"}var bD=class extends Pnt{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}},$4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new SA("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new kc;Ri.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Ynt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new bD(f);g.on("error",E=>{Ri.error("Error in upload progress",E)}),bb(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a),u=Hnt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Gnt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new bD(h);f.on("error",g=>{Ri.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await qnt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();bb(a)&&(A=xfe(a));let u=Promise.resolve();bb(c)&&(u=xfe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ri.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((c,A)=>{let u=i?X4.request(a,c):Z4.request(a,c);u.once("error",l=>{A(new ri(l.message,{code:l.code??ri.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new SA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&bb(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Dfe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Ri.error("Unrecognized body type",n),A(new ri("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?X4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new X4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Z4.globalAgent;let s=e.tlsSettings??Ont,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ri.info("No cached TLS Agent exist, creating a new Agent"),i=new Z4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Hnt(t){let e=Bo();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}function Gnt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Tfe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Tfe.createInflate();return t.pipe(n),n}return t}function qnt(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 ri(`Error reading response as text: ${s.message}`,{code:ri.PARSE_ERROR}))})})}function Ynt(t){return t?Buffer.isBuffer(t)?t.length:bb(t)?null:Dfe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Rfe(){return new $4}function QD(){return Rfe()}var e6="logPolicy";function wD(t={}){let e=t.logger??Ri.info,r=new kc({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function lit(t){return t instanceof Uint8Array?t.byteLength:wb(t)?t.size===-1?void 0:t.size:void 0}function dit(t){let e=0;for(let r of t){let n=lit(r);if(n===void 0)return;e+=n}return e}async function hit(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(uit(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=dit(n);s&&t.headers.set("Content-Length",s),t.body=await bge(n)}var Sb="multipartPolicy",fit=70,git=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pit(t){if(t.length>fit)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!git.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function zD(){return{name:Sb,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?pit(r):r=Ait(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await hit(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function jD(){return BD()}var Qge=CD({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),dsr=Qge.logger;function Ia(t){return Qge.createClientLogger(t)}var TA=Ia("core-rest-pipeline");function m6(t={}){return wD({logger:TA.info,...t})}var E6=JD;function C6(t={}){return WD(t)}import I6 from"node:os";import uh from"node:process";function wge(){return"User-Agent"}async function Sge(t){if(uh&&uh.versions){let e=`${I6.type()} ${I6.release()}; ${I6.arch()}`;uh.versions.bun?t.set("Bun",`${uh.versions.bun} (${e})`):uh.versions.deno?t.set("Deno",`${uh.versions.deno} (${e})`):uh.versions.node&&t.set("Node",`${uh.versions.node} (${e})`)}}var KD="1.25.0";function Qit(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Nge(){return wge()}async function XD(t){let e=new Map;e.set("core-rest-pipeline",KD),await Sge(e);let r=Qit(e);return t?`${t} ${r}`:r}var Tge=Nge(),xge="userAgentPolicy";function y6(t={}){let e=XD(t.userAgentPrefix);return{name:xge,async sendRequest(r,n){return r.headers.has(Tge)||r.headers.set(Tge,await e),n(r)}}}var Dge=Symbol("rawContent");function B6(t){return typeof t[Dge]=="function"}function Rge(t){return B6(t)?t[Dge]():t}var ZD=Sb;function b6(){let t=zD();return{name:ZD,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)B6(n.body)&&(n.body=Rge(n.body));return t.sendRequest(e,r)}}}var Q6=YD;function w6(){return VD()}function S6(t={}){return xD(t)}function N6(){return DD()}var Es=class extends Error{constructor(e){super(e),this.name="AbortError"}};function T6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Es(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var vit="The delay was aborted.";function QE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return T6(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??vit})}function lh(t){if(xg(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}`}}function kge(t){return xg(t)}function wE(){return Tg()}var Qr=mD;function D6(t,e){return Bb(t,e)}function R6(t,e){return ni(t,e)}function dh(t){return f6(t)}function k6(t,e){return qD(t,e)}var vge="setClientRequestIdPolicy";function v6(t="x-ms-client-request-id"){return{name:vge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function F6(t){return RD(t)}function M6(t){return kD(t)}var SE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Fge(t={}){let e=new _6(t.parentContext);return t.span&&(e=e.setValue(SE.span,t.span)),t.namespace&&(e=e.setValue(SE.namespace,t.namespace)),e}var _6=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var _ge=Ee(Mge(),1),eR=_ge.state;function Fit(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Mit(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Fit(),tracingContext:Fge({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Nb(){return eR.instrumenterImplementation||(eR.instrumenterImplementation=Mit()),eR.instrumenterImplementation}function Tb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Nb().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!sat(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",hn("InvalidTag",l,si(t,i))}let A=$ot(t,i);if(A===!1)return hn("InvalidAttr","Attributes for '"+c+"' have open quote.",si(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=mpe(u,e);if(d===!0)n=!0;else return hn(d.err.code,d.err.msg,si(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return hn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",si(t,o));if(r.length===0)return hn("InvalidTag","Closing tag '"+c+"' has not been opened.",si(t,o));{let l=r.pop();if(c!==l.tagName){let d=si(t,l.tagStartPos);return hn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",si(t,o))}r.length==0&&(s=!0)}}else return hn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",si(t,i));else{let l=mpe(u,e);if(l!==!0)return hn(l.err.code,l.err.msg,si(t,i-u.length+l.err.line));if(s===!0)return hn("InvalidXml","Multiple possible root nodes found.",si(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=ppe(t,i);continue}else if(t[i+1]==="?"){if(i=gpe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=rat(t,i);if(l==-1)return hn("InvalidChar","char '&' is not expected.",si(t,i));i=l}else if(s===!0&&!xE(t[i]))return hn("InvalidXml","Extra text at the end",si(t,i));t[i]==="<"&&i--}}else{if(xE(t[i]))continue;return hn("InvalidChar","char '"+t[i]+"' is not expected.",si(t,i))}if(n){if(r.length==1)return hn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",si(t,r[0].tagStartPos));if(r.length>0)return hn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return hn("InvalidXml","Start tag expected.",1);return!0}function xE(t){return t===" "||t===" "||t===`
`||t==="\r"}function gpe(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 hn("InvalidXml","XML declaration allowed only at the start of the document.",si(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function ppe(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}var Xot='"',Zot="'";function $ot(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Xot||t[e]===Zot)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}}function eat(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&xE(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!xE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&xE(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&xE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function mpe(t,e){let r=eat(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Pb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Pb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return hn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Pb(r[s]));let i=r[s][2];if(!nat(i))return hn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Pb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return hn("InvalidAttr","Attribute '"+i+"' is repeated.",Pb(r[s]))}return!0}function tat(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}function rat(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,tat(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}function hn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function nat(t){return eH(t)}function sat(t){return eH(t)}function si(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Pb(t){return t.startIndex+t[1].length}var tH={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Ob={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},rH={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var DE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),iat=new Set("!?\\\\/[]$%{}^&*()<>|+");function Epe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(iat.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Hb(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var Mg="external",uR="base",nH="all";function oat(t){return!t||t===Mg?new Set([Mg]):t===nH?new Set([nH]):t===uR?new Set([uR]):Array.isArray(t)?new Set(t):new Set([Mg])}var Fi=Object.freeze({allow:0,leave:1,remove:2,throw:3}),aat=new Set([9,10,13]);function cat(t){if(!t)return{xmlVersion:1,onLevel:Fi.allow,nullLevel:Fi.remove};let e=t.xmlVersion===1.1?1.1:1,r=Fi[t.onNCR]??Fi.allow,n=Fi[t.nullNCR]??Fi.remove,s=Math.max(n,Fi.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var RE=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=oat(this._limit.applyLimitsTo??Mg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Hb(Ob,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new Mi("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qb(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=_E(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=pH(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=mH(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new Mi(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=_E(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=_E(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=mH(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);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 m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=Yat(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=qat(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let L=new Mi(l);I&&(L[":@"]=I),L.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s));let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Mi(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),r=V}n="",a=g}}}else n+=t[a];return e.child};function Kat(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Xat(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)}function Zat(t,e,Line truncated
`;function cct(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bH(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Lpe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function BH(t,e){let r="";e.format&&(r=act);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 So(c)):c instanceof So&&n.push(c)}let s=cct(t,e),i=lR("qName",{xmlVersion:s}),o=new RA;return Upe(t,e,r,o,n,i)}function Upe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=Cs(t);return c=yH(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=bH(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Lpe(u,!1,e,n,i),h=Act(A[":@"],e);n.push(d,h);let f=lct(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=yH(y,e)),y=Cs(y),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=pR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Jb(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=_pe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=_pe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Ppe(A[u],e):I=Upe(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Act(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 i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=kA(t[s]),n=!0}return n?r:null}function Ppe(t,e){if(!Array.isArray(t))return t!=null?Cs(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=bH(s);if(i===e.textNodeName)r+=Cs(s[i]);else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=uct(s[":@"],e),a=Ppe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function uct(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)}="${kA(s)}"`}return r}function bH(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}}function _pe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Lpe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=yH(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${kA(A)}"`}return i}function lct(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}function yH(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}function QH(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}var dct={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 Li(t){if(this.options=Object.assign({},dct,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&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new So(r)):r instanceof So&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function hct(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"}function wH(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Li.prototype.build=function(t){if(this.options.preserveOrder)return BH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new RA,r=hct(t,this.options),n=lR("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Li.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:wH(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=wH(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,Cs(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,Cs(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Cs(t[c]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),E=Cs(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Cs(g);m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=wH(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,Cs(t[c][l[h]]),a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};Li.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Cs(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+kA(e)+'"'};function fct(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Li.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 i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=kA(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]=kA(t[n]),r=!0)}return r?e:null};Li.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(dt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===dt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE));r.sort((s,i)=>DR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=NR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=TR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Xr=class extends Pg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $b(e,r,this)}computeHMACSHA256(e){return Fct("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Fn=Ia("storage-common");var ya;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ya||(ya={}));var ph={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Mct=new Es("The operation was aborted."),eQ=class extends vA{retryOptions;constructor(e,r,n=ph){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ph.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ph.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ph.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ph.maxRetryDelayInMs):ph.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ph.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ph.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=SR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=wR(s.url,Zb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Fn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(Fn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Fn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Fn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return Fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Fn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(dt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Fn.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 ya.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ya.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Fn.info(`RetryPolicy: Delay for ${s}ms`),xR(s,n,Mct)}};var tQ=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new eQ(e,r,this.retryOptions)}};var _ct="storageBrowserPolicy";function Zpe(){return{name:_ct,async sendRequest(t,e){return e(t)}}}var Lct="StorageCorrectContentLengthPolicy";function $pe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Lct,async sendRequest(e,r){return t(e),r(e)}}}var Uct="storageRetryPolicy",PE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pct=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Oct=new Es("The operation was aborted.");function eme(t={}){let e=t.retryPolicyType??PE.retryPolicyType,r=t.maxTries??PE.maxTries,n=t.retryDelayInMs??PE.retryDelayInMs,s=t.maxRetryDelayInMs??PE.maxRetryDelayInMs,i=t.secondaryHost??PE.secondaryHost,o=t.tryTimeoutInMs??PE.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return Fn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Pct)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return Fn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return Fn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=Hct("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(dt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===dt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>DR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=NR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=TR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Gct,async sendRequest(i,o){return e(i),o(i)}}}var qct="storageRequestFailureDetailsParserPolicy";function tme(){return{name:qct,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as Yct}from"node:crypto";var RR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Yct("sha256",this.key).update(e,"utf8").digest("base64")}};var kR="12.33.0",vR="2026-06-06";var FR="https://storage.azure.com/.default",Ql={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var vc="",FH="*",Vct=1*1024*1024;var Jct=4*Vct;var rme="AES256",nme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sme=["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"],ime=["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"],ome="BlobUsesCustomerSpecifiedEncryption",ame="BlobDoesNotUseCustomerSpecifiedEncryption",cme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var rQ=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function fn(t,e={}){t||(t=new Lr);let r=new rQ([],e);return r._credential=t,r}function Wct(t){let e=[zct,Ame,jct,Kct,Xct,Zct,eAt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>$ct(s));return{wrappedPolicies:Z6(r),afterRetry:n}}}}function MH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?$6(e):kH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${kR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Rb({...r,loggingOptions:{additionalAllowedHeaderNames:sme,additionalAllowedQueryParameters:ime,logger:ER.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:mR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Q6}),s.addPolicy($pe()),s.addPolicy(eme(r.retryOptions),{phase:"Retry"}),s.addPolicy(tme()),s.addPolicy(Zpe());let a=Wct(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=_H(t);Qo(c)?s.addPolicy(NE({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ro(t.version,i,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}}function zut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ro(t.version,o,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:i}}function jut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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 Ro(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Kut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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 Ro(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function Xut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Do(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ro(t.version,o,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:i}}function Zut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Do(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 Ro(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function $ut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Do(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 Ro(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function elt(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Do(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 Ro(t.version,a,i,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,void 0,void 0,s),stringToSign:o}}function tlt(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Do(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,rlt(t.requestHeaders),nlt(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Ro(t.version,a,i,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,g0e(t.requestHeaders),g0e(t.requestQueryParameters),s),stringToSign:o}}function rlt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function nlt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function g0e(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function kl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vl(t){let e=t.version?t.version:vR;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}function zE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var gQ=class{_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=wE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==vc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==vc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==vc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};KE.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=class extends Error{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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Slt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Aq=class{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);ee(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function S0e(t,e,r){return Slt(this,void 0,void 0,function*(){var n;let s=new Lc(t),i=s.getBlockBlobClient(),o=new Aq((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new T2(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ye(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as T0e from"buffer";import*as KA from"fs";import*as x0e from"stream";import*as D0e from"util";var x2=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function D2(t){return t?t>=200&&t<300:!1}function Nlt(t){return t?t>=500:!0}function Tlt(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function xlt(t){return x2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function N0e(t,e,r){return x2(this,arguments,void 0,function*(n,s,i,o=lD,a=dD,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!Nlt(d)))return l;if(d&&(h=Tlt(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield xlt(a),u++}throw Error(`${n} failed: ${A}`)})}function QQ(t,e){return x2(this,arguments,void 0,function*(r,n,s=lD,i=dD){return yield N0e(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof yA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function XE(t,e){return x2(this,arguments,void 0,function*(r,n,s=lD,i=dD){return yield N0e(r,n,o=>o.message.statusCode,s,i)})}var Ta=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Dlt(t,e){return Ta(this,void 0,void 0,function*(){yield D0e.promisify(x0e.pipeline)(t.message,e)})}var R2=class{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,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function fq(t,e,r){return Hi(this,void 0,void 0,function*(){let n=new Mlt(t),s=F0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield k0e(t,e,s):s.concurrentBlobDownloads?yield R0e(t,e,s):yield k2(t,e):yield k2(t,e)})}function Y0e(t,e,r){return Hi(this,void 0,void 0,function*(){let n=hq(),s=pE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield QQ("reserveCache",()=>Hi(this,void 0,void 0,function*(){return n.postJson(SQ("caches"),i)}))})}function G0e(t,e){return`bytes ${t}-${e}/*`}function Plt(t,e,r,n,s){return Hi(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${G0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":G0e(n,s)},o=yield XE(`uploadChunk (start: ${n}, end: ${s})`,()=>Hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!D2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Olt(t,e,r,n){return Hi(this,void 0,void 0,function*(){let s=wA(r),i=SQ(`caches/${e.toString()}`),o=ZE.openSync(r,"r"),a=uq(n),c=H4("uploadConcurrency",a.uploadConcurrency),A=H4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Hi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Plt(t,i,()=>ZE.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{ZE.closeSync(o)}})}function Hlt(t,e,r){return Hi(this,void 0,void 0,function*(){let n={size:r};return yield QQ("commitCache",()=>Hi(this,void 0,void 0,function*(){return t.postJson(SQ(`caches/${e.toString()}`),n)}))})}function gq(t,e,r,n){return Hi(this,void 0,void 0,function*(){if(uq(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield S0e(r,e,n)}else{let i=hq();G("Upload cache"),yield Olt(i,t,e,n),G("Commiting cache");let o=wA(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Hlt(i,t,o);if(!D2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var LEe=Ee(oY(),1),pn=Ee(gt(),1),vo=Ee(gt(),1),np=Ee(gt(),1),sp=Ee(gt(),1),ip=Ee(gt(),1);var uY=Ee(gt(),1),lY=Ee(gt(),1),FEe=Ee(gt(),1),MEe=Ee(gt(),1),_Ee=Ee(gt(),1);var aY=Ee(gt(),1),cY=Ee(gt(),1),REe=Ee(gt(),1),kEe=Ee(gt(),1),vEe=Ee(gt(),1),AY=class extends vEe.MessageType{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,kEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,REe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?cY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,aY.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,aY.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?cY.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Ck=new AY;var dY=class extends _Ee.MessageType{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:()=>Ck}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,MEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Ck.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?lY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,uY.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Ck.internalBinaryWrite(e.scope[i],r.tag(2,uY.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?lY.UnknownFieldHandler.onWrite Line truncated
`));let n=yield NY(r,"create");yield TY(n,t)})}var fC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Mo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ll=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},RY="cache write denied:",Bk=class t extends Ll{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},HEe=hD,bk=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Qk=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function GEe(t){if(!t||t.length===0)throw new Mo("Path Validation Error: At least one directory or file path is required")}function kY(t){if(t.length>512)throw new Mo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Mo(`Key Validation Error: ${t} cannot contain commas.`)}function qEe(){return wQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function wk(t,e,r,n){return fC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=wQ();G(`Cache service version: ${A}`),GEe(s);let u=dq();if(!_0e(u)){ee(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield sft(s,i,o,a,c):yield nft(s,i,o,a,c)})}function nft(t,e,r,n){return fC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)kY(h);let l=yield Cb(),d="";try{let h;try{h=yield q0e(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(HEe)?new bk(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ee("Lookup only - skipping download"),h.cacheKey;d=GQ.join(yield mb(),ah(l)),G(`Archive Path: ${d}`),yield fq(h.archiveLocation,d,a),Tc()&&(yield HQ(d,l));let f=wA(d);return ee(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield xY(d,l),ee("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Mo.name)throw h;f instanceof yA&&typeof f.statusCode=="number"&&f.statusCode>=500?Co(`Failed to restore: ${h.message}`):Ye(`Failed to restore: ${h.message}`)}finally{try{yield Eb(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function sft(t,e,r,n){return fC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)kY(d);let l="";try{let d=SY(),h=yield Cb(),f={key:i,restoreKeys:o,version:pE(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(HEe)?new bk(y):I}if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?ee(`Cache hit for restore-key: ${g.matchedKey}`):ee(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return ee("Lookup only - skipping download"),g.matchedKey;l=GQ.join(yield mb(),ah(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield fq(g.signedDownloadUrl,l,a);let m=wA(l);return ee(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Tc()&&(yield HQ(l,h)),yield xY(l,h),ee("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Mo.name)throw d;h instanceof yA&&typeof h.statusCode=="number"&&h.statusCode>=500?Co(`Failed to restore: ${d.message}`):Ye(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Eb(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Sk(t,e,r){return fC(this,arguments,void 0,function*(n,s,i,o=!1){let a=wQ();G(`Cache service version: ${a}`),GEe(n),kY(s);let c=dq();return L0e(c)?a==="v2"?yield oft(n,s,i,o):yield ift(n,s,i,o):(ee(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ift(t,e,r){return fC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Cb(),f=-1,g=yield O4(n);if(G("Cache Paths:"),G(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield mb(),m=GQ.join(E,ah(h));G(`Archive Path: ${m}`);try{yield DY(E,g,h),Tc()&&(yield HQ(m,h));let I=10*1024*1024*1024,y Line truncated
See ${r.getDocumentationLink()}`;YEe.push(n),eh(n)}function JEe(){bA("deprecation-collector_deprecations",JSON.stringify(FY)),bA("deprecation-collector_errors",JSON.stringify(YEe))}import*as xk from"path";var WEe="GRADLE_ACTION_ID";var vk=".setup-gradle",YQ=class t{getDependencyGraphOption(){let e=Br("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return ru("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Br("artifact-retention-days");return Aft("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Di.workflow,Di.job,zEe())}getReportDirectory(){let e=Br("dependency-graph-report-dir");return xk.resolve(Ul(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return op("dependency-graph-exclude-projects")}getIncludeProjects(){return op("dependency-graph-include-projects")}getExcludeConfigurations(){return op("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return op("dependency-graph-include-configurations")}getPluginRepository(){return new Dk}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var gC=class{isCacheDisabled(){return qEe()?ru("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&ru("cache-read-only")}isCacheWriteOnly(){return ru("cache-write-only")}isCacheOverwriteExisting(){return ru("cache-overwrite-existing")}isCacheStrictMatch(){return ru("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=qQ("gradle-home-cache-cleanup");if(e!==void 0)return Tk("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Br("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Br("cache-encryption-key")}getCacheIncludes(){return _8("gradle-home-cache-includes")}getCacheExcludes(){return _8("gradle-home-cache-excludes")}getCacheProvider(){let e=Br("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var Oc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return ru("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return qQ("develocity-injection-enabled")}getDevelocityUrl(){return Br("develocity-url")}getDevelocityAllowUntrustedServer(){return qQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return qQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return qQ("develocity-enforce-url")}getDevelocityPluginVersion(){return Br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Br("develocity-ccud-plugin-version")}getPluginRepository(){return new Dk}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ye("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},Dk=class{getUrl(){return op("gradle-plugin-repository-url")}getUsername(){return op("gradle-plugin-repository-username")}getPassword(){return op("gradle-plugin-repository-p Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XQ(i));return n.searchPaths.push(...OY(n.patterns)),n})}static stat(e,r,n){return zY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield EC.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield EC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield EC.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as jY from"crypto";import*as Hk from"fs";import*as BCe from"stream";import*as bCe from"util";import*as QCe from"path";var Rgt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},kgt=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function wCe(t,e){return Rgt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ee:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=jY.createHash("sha256"),f=0;try{for(var g=!0,E=kgt(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${QCe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(Hk.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=jY.createHash("sha256");yield bCe.promisify(BCe.pipeline)(Hk.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var SCe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function KY(t,e){return SCe(this,void 0,void 0,function*(){return yield Pk.create(t,e)})}function NCe(t){return SCe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KY(e,{followSymbolicLinks:i});return wCe(o,r,s)})}import*as XY from"path";var vgt="Gradle User Home",xCe="BASIC_CACHE_PRIMARY_KEY",DCe="BASIC_CACHE_RESTORED_KEY",Fgt="setup-java",RCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Gk=class{async restore(e,r){let n=kCe(e),s=await Mgt();bA(xCe,s);try{let i=await wk(n,s);i?(bA(DCe,i),ee(`Basic caching restored from cache key: ${i}`)):ee("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ye(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=$B(xCe),i=$B(DCe);if(n.readOnly)return{status:"read-only",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return ee(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kCe(e);try{return await Sk(o,s)===-1?(Ye(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(ee(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return Ye(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:i?"(EntLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${RCe}], make sure you have checked out the target repository`);return`${Fgt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Lgt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Ugt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Pgt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Yk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function MCe(t){return t.getCacheProvider()==="external"?(qk(Pgt),new Yk("external")):t.isCacheDisabled()?(qk("Cache is disabled: will not restore state from previous builds."),new Yk("disabled")):t.getCacheProvider()==="basic"?(qk(Ugt),new Gk):(qk(Lgt),Ogt())}async function Ogt(){let t=Hgt();return await import(_gt(t).href)}function Hgt(){let t=import.meta.dirname,e=FCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(vCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function qk(t){console.info(t)}import Vk from"fs";import _Ce from"path";var Jk=class{constructor(e){this.cacheFile=_Ce.resolve(e,vk,"valid-wrappers.json")}load(){if(Vk.existsSync(this.cacheFile))try{return JSON.parse(Vk.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ye(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Vk.mkdirSync(_Ce.dirname(this.cacheFile),{recursive:!0}),Vk.writeFileSync(this.cacheFile,JSON.stringify(r))}};var GCe=Ee(OCe(),1);import*as HCe from"util";import*as Wk from"path";import*as zk from"fs";var Wgt=HCe.promisify(zk.readdir);async function qCe(t){return(await YCe(t)).filter(r=>(0,GCe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>Wk.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function YCe(t){let e=await Wgt(t),r=await Promise.all(e.map(async n=>{let s=Wk.resolve(t,n),i=zk.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?YCe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var jgt={_useHtmlParser2:!1};function CC(t,e){if(!t)return e??jgt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var yV={};gc(yV,{contains:()=>Av,extract:()=>qpt,html:()=>Ppt,merge:()=>hIe,parseHTML:()=>Hpt,root:()=>Gpt,text:()=>Ep,xml:()=>Opt});var vh={};gc(vh,{DocumentPosition:()=>Ma,append:()=>ypt,appendChild:()=>Ipt,compareDocumentPosition:()=>AIe,existsOne:()=>aIe,filter:()=>QC,find:()=>iv,findAll:()=>wpt,findOne:()=>ov,findOneChild:()=>Qpt,getAttributeValue:()=>ppt,getChildren:()=>bC,getElementById:()=>xpt,getElements:()=>Tpt,getElementsByClassName:()=>Dpt,getElementsByTagName:()=>mp,getElementsByTagType:()=>Rpt,getFeed:()=>IV,getInnerHTML:()=>gpt,getName:()=>Ept,getOuterHTML:()=>iIe,getParent:()=>oIe,getSiblings:()=>EV,getText:()=>rv,hasAttrib:()=>mpt,hasChildren:()=>lr,innerText:()=>sw,isCDATA:()=>IC,isComment:()=>pp,isDocument:()=>Fa,isTag:()=>Te,isText:()=>Vi,nextElementSibling:()=>nv,prepend:()=>bpt,prependChild:()=>Bpt,prevElementSibling:()=>sv,removeElement:()=>Yl,removeSubsets:()=>kpt,replaceElement:()=>Cpt,testElement:()=>Npt,textContent:()=>ql,uniqueSort:()=>Rh});var va={};gc(va,{CDATA:()=>oV,Comment:()=>rV,Directive:()=>tV,Doctype:()=>aV,ElementType:()=>vt,Root:()=>$Y,Script:()=>nV,Style:()=>sV,Tag:()=>iV,Text:()=>eV,isTag:()=>ZY});var vt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(vt||(vt={}));function ZY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var $Y=vt.Root,eV=vt.Text,tV=vt.Directive,rV=vt.Comment,nV=vt.Script,sV=vt.Style,iV=vt.Tag,oV=vt.CDATA,aV=vt.Doctype;var jk=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return yC(this,e)}},ew=class extends jk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},su=class extends ew{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},hp=class extends ew{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},fp=class extends ew{constructor(e,r){super(r),this.name=e,this.type=vt.Di Line truncated
`:rv(t.children):IC(t)?rv(t.children):Vi(t)?t.data:""}function ql(t){return Array.isArray(t)?t.map(ql).join(""):lr(t)&&!pp(t)?ql(t.children):Vi(t)?t.data:""}function sw(t){return Array.isArray(t)?t.map(sw).join(""):lr(t)&&(t.type===vt.Tag||IC(t))?sw(t.children):Vi(t)?t.data:""}function bC(t){return lr(t)?t.children:[]}function oIe(t){return t.parent||null}function EV(t){let e=oIe(t);if(e!=null)return bC(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function ppt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function mpt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ept(t){return t.name}function nv(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function sv(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function Yl(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Cpt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Ipt(t,e){if(Yl(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function ypt(t,e){Yl(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Bpt(t,e){if(Yl(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function bpt(t,e){Yl(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function QC(t,e,r=!0,n=1/0){return iv(t,Array.isArray(e)?e:[e],r,n)}function iv(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Qpt(t,e){return e.find(t)}function ov(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=ov(t,i.children,!0);if(o)return o}}return null}function aIe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&aIe(t,r.children))}function wpt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var av={tag_name(t){return typeof t=="function"?e=>Te(e)&&t(e.name):t==="*"?Te:e=>Te(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Vi(e)&&t(e.data):e=>Vi(e)&&e.data===t}};function CV(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function Spt(t,e){return r=>t(r)||e(r)}function cIe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(av,r)?av[r](n):CV(r,n)});return e.length===0?null:e.reduce(Spt)}function Npt(t,e){let r=cIe(t);return r?r(e):!0}function Tpt(t,e,r,n=1/0){let s=cIe(t);return s?QC(s,e,r,n):[]}function xpt(t,e,r=!0){return Array.isArray(e)||(e=[e]),ov(CV("id",t),e,r)}function mp(t,e,r=!0,n=1/0){return QC(av.tag_name(t),e,r,n)}function Dpt(t,e,r=!0,n=1/0){return QC(CV("class",t),e,r,n)}function Rpt(t,e,r=!0,n=1/0){return QC(av.tag_type(t),e,r,n)}function kpt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ma;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ma||(Ma={}));function AIe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Ma.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ma.FOLLOWING|Ma.CONTAINED_BY:Ma.FOLLOWING:a===t?Ma.PRECEDING|Ma.CONTAINS:Ma.PRECEDING}function Rh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=AIe(e,r);return n&Ma.PRECEDING?-1:n&Ma.FOLLOWING?1:0}),t}function IV(t){let e=cv(Lpt,t);return e?e.name==="feed"?vpt(e):Fpt(e):null}function vpt(t){var e;let r=t.children,n={type:"atom",items:mp("entry",r).map(o=>{var a;let{children:c}=o,A={media:uIe(c)};Ji(A,"id","id",c),Ji(A,"title","title",c);let u=(a=cv("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kh("summary",c)||kh("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ua=Ee(Fh(),1);var LV={};function UV(t,e){return t===Ua.default.falseFunc?Ua.default.falseFunc:r=>e.isTag(r)&&t(r)}function PV(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function _V(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var MV=(t,e,r,n,s)=>{let i=s(e,_V(r),n);return i===Ua.default.trueFunc?t:i===Ua.default.falseFunc?Ua.default.falseFunc:o=>i(o)&&t(o)},yv={is:MV,matches:MV,where:MV,not(t,e,r,n,s){let i=s(e,_V(r),n);return i===Ua.default.falseFunc?t:i===Ua.default.trueFunc?Ua.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=_V(r);o.relativeSelector=!0;let a=e.some(u=>u.some(lw))?[LV]:void 0,c=s(e,o,a);if(c===Ua.default.falseFunc)return Ua.default.falseFunc;let A=UV(c,i);if(a&&c!==Ua.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...PV(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function ZIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in yv))throw new Error(`Unknown pseudo-class :${o}(${a})`);return yv[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Iv[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,XIe.parse)(A);return yv.is(t,u,r,n,s)}if(typeof c=="function")return FV(c,o,a,1),u=>c(u,a)&&t(u);if(o in vC)return vC[o](t,a,r,n);if(o in hw){let u=hw[o];return FV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Pa=Ee(RC(),1);function OV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $Ie(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Pa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Pa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Pa.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),WIe[e.action](t,e,r)}case Pa.SelectorType.Pseudo:return ZIe(t,e,r,n,s);case Pa.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Pa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=OV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=OV(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=OV(A,i));return!1};case Pa.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Pa.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Pa.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Pa.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Pa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function eye(t,e,r){let n=Bv(t,e,r);return UV(n,e.adapter)}function Bv(t,e,r){let n=typeof t=="string"?(0,Yc.parse)(t):t;return bv(n,e,r)}function tye(t){return t.type===Yc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(tye)))}var Tmt={type:Yc.SelectorType.Descendant},xmt={type:"_flexibleDescendant"},Dmt={type:Yc.SelectorType.Pseudo,name:"scope",data:null};function Rmt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===LV||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(mye,`\r
`)}}).toArray()}var rJ={};gc(rJ,{extract:()=>J0t});function V0t(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function J0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=V0t(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Lh=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Lh.prototype.cheerio="[cheerio object]";Lh.prototype.splice=Array.prototype.splice;Lh.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Lh.prototype,xV,ZV,$V,eJ,tJ,rJ);function Eye(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=CC(s),a=t(n,o,i,null);class c extends Lh{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&_a(u))return u;let f=CC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=_a(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&iw(u)?t(u,f,!1,null).children:W0t(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?iw(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):_a(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,yV,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function W0t(t){return!!t.name||t.type===va.Root||t.type===va.Text||t.type===va.Comment}var z0t=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Er="\uFFFD",T;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function xv(t){return t>=55296&&t<=57343}function Cye(t){return t>=56320&&t<=57343}function Iye(t,e){return(t-55296)*1024+9216+e}function Dv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Rv(t){return t>=64976&&t<=65007||z0t.has(t)}var z;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},A_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var fm=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function A2e(t){if(t instanceof AggregateError){eh("Multiple errors returned");for(let e of t.errors)Co(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&ee(e.stack)}else t instanceof fm?(eh(String(t)),t.stack&&ee(t.stack)):(eh(String(t)),t instanceof Error&&t.stack&&ee(t.stack))}async function u2e(t,e,r){if(!t.doValidateWrappers())return;let n=new Jk(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await c2e(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await Mx("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),ee(o.toDisplayString())});else throw ee(o.toDisplayString()),new fm(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import jo from"fs";import gm from"path";function l2e(t,e,r){let n=gm.resolve(e,vk);jo.mkdirSync(n,{recursive:!0}),jMt(e),KMt(t),Tc()&&XMt(e),r&&Rn("GRADLE_ENCRYPTION_KEY",r)}function jMt(t){let e=gm.resolve(t,"init.d");jo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=ZMt("init-scripts",n),i=gm.resolve(e,n);jo.writeFileSync(i,s)}}function KMt(t){let e=$Mt();if(e==null)return;let r=gm.resolve(t,".m2"),n=gm.resolve(r,"toolchains.xml");if(!jo.existsSync(n))jo.mkdirSync(r,{recursive:!0}),jo.writeFileSync(n,e),ee(`Wrote default JDK locations to ${n}`);else{let s=jo.readFileSync(n,"utf8"),i=e_t(s,e);jo.writeFileSync(n,i),ee(`Merged default JDK locations into ${n}`)}}function XMt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=gm.resolve(t,"gradle.properties");if(jo.existsSync(r)){ee(`Merged --info and --stacktrace into existing ${r} file`);let n=jo.readFileSync(r,"utf-8");jo.writeFileSync(r,`${e}
${n}`)}else ee(`Created a new ${r} with --info and --stacktrace`),jo.writeFileSync(r,e)}function ZMt(...t){let e=import.meta.dirname,r=gm.resolve(e,"..","..","..","sources","src","resources",...t);return jo.readFileSync(r,"utf8")}function $Mt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -384,128 +287,62 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Rat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Dat="restored-cache-key",g9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&mi("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Vp.resolve(this.gradleUserHome,"caches");return ic.existsSync(e)?(zo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=qge(this.cacheName,this.cacheConfig);zo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await _6(s,n.key,n.restoreKeys,r);if(!i){fe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}DA(Dat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new QM(this.gradleUserHome,this.cacheConfig).restore(e),await new yM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=qge(this.cacheName,this.cacheConfig).key,n=xB(Dat),s=e.entry(this.cacheDescription);if(n&&r===n){fe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await O6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new QM(this.gradleUserHome,this.cacheConfig).extract(e),new yM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Vp.resolve(this.gradleUserHome,n));for(let n of r){zo(`Removing excluded path: ${n}`);let s=await aC(n,{implicitDescendants:!1});for(let i of await s.glob())zo(`Removing excluded file: ${i}`),await cM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(oQ);let r=e.map(n=>this.resolveCachePath(n));return zo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Vp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Vp.resolve(this.gradleUserHome,oQ);ic.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),DB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Vp.resolve(this.gradleUserHome,"init.d");ic.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Nat("init-scripts",n),i=Vp.resolve(e,n);ic.writeFileSync(i,s)}}registerToolchains(){let e=Sat();if(e==null)return;let r=Vp.resolve(this.userHome,".m2"),n=Vp.resolve(r,"toolchains.xml");if(!ic.existsSync(n))ic.mkdirSync(r,{recursive:!0}),ic.writeFileSync(n,e),fe(`Wrote default JDK locations to ${n}`);else{let s=ic.readFileSync(n,"utf8"),i=Rat(s,e);ic.writeFileSync(n,i),fe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Vp.resolve(this.gradleUserHome,"gradle.properties");if(ic.existsSync(r)){fe(`Merged --info and --stacktrace into existing ${r} file`);let n=ic.readFileSync(r,"utf-8");ic.writeFileSync(r,`${e}
${n}`)}else fe(`Created a new ${r} with --info and --stacktrace`),ic.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!aM()&&!DB()||!ic.existsSync(this.gradleUserHome))return;let r=await ep("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});fe(`Gradle User Home (directories >5M): ${e}`),fe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),fe("-----------------------")}};import f9 from"fs";import bM from"path";var p9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return DA("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=xB("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&xC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await ffe(r,n)}catch{fe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await ffe("8.11")}findGradleWrapperScript(e){try{let r=A9(e.rootProjectDir);return bM.resolve(e.rootProjectDir,r)}catch(r){return Te(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=bM.resolve(this.tmpDir,"dummy-cleanup-project");f9.mkdirSync(n,{recursive:!0}),f9.writeFileSync(bM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),f9.writeFileSync(bM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),f9.writeFileSync(bM.resolve(n,"build.gradle"),'task("noop") {}'),await tp("Executing Gradle to clean up caches",async()=>{fe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await Th(e,n,{cwd:r})}};var Bfe="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function xat(t,e,r,n){if(process.env[Bfe]){fe("Cache only restored on first action step.");return}mi(Bfe,!0);let s=new g9(t,e,n);if(n.isCacheDisabled()){fe("Cache is disabled: will not restore state from previous builds."),s.init(),r.setDisabled();return}if(s.cacheOutputExists()){if(!n.isCacheOverwriteExisting()){fe("Gradle User Home already exists: will not restore from cache."),s.init(),r.setDisabled(jje);return}fe("Gradle User Home already exists: will overwrite with cached contents.")}if(s.init(),DA(Bfe,!0),n.isCacheCleanupEnabled()&&(fe("Preparing cache for cleanup."),await new p9(e,process.env.RUNNER_TEMP).prepare()),n.isCacheWriteOnly()){fe("Cache is write-only: will not restore from cache."),r.setWriteOnly();return}await tp("Restore Gradle state from cache",async()=>{await s.restore(r)})}async function kat(t,e,r){if(t)try{Te("Fetching short-lived token...");let n=await ZUr(t,e,r);if(n!=null&&!n.isEmpty()){Te("Got token(s), setting the access key env vars");let s=n.raw();Kb(s),XUr(s)}else Tat()}catch(n){Tat(),tr(`Failed to fetch short-lived token, reason: ${n}`)}}function XUr(t){[qd.DevelocityAccessKeyEnvVar,qd.GradleEnterpriseAccessKeyEnvVar].forEach(e=>mi(e,t))}function Tat(){tr("Failed to fetch short-lived token for Develocity"),process.env[qd.GradleEnterpriseAccessKeyEnvVar]&&k6(`The ${qd.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`),process.env[qd.DevelocityAccessKeyEnvVar]&&tr(`The ${qd.DevelocityAccessKeyEnvVar} env var should be mapped to a short-lived token`)}async function ZUr(t,e,r){let n=new Promise(a=>a(null)),s=m9.parse(t),i=new Qfe(e);if(s==null)return n;let o=new Array;for(let a of s.keys)try{fe(`Requesting short-lived Develocity access token for ${a.hostname}`);let A=await i.fetchToken(`https://${a.hostname}`,a,r);o.push(A)}catch(A){fe(`Failed to obtain short-lived Develocity access token for ${a.hostname}: ${A}`)}return o.length>0?m9.of(o):n}var Qfe=class{constructor(e){this.maxRetries=3;this.retryInterval=1e3;this.httpc=new Ga("gradle/actions/setup-gradle",void 0,{ignoreSslError:e})}async fetchToken(e,r,n){let s=n?`?expiresInHours=${n}`:"",i=e.endsWith("/")?e:`${e}/`,o={"Content-Type":"application/json",Authorization:`Bearer ${r.key}`},a=0;for(;a<this.maxRetries;){try{let A=`${i}api/auth/token${s}`;Te(`Attempt ${a} to fetch short lived token at ${A}`);let c=await this.httpc.post(A,"",o);if(c.message.statusCode===200){let u=await c.readBody();return new Promise(l=>l({hostname:r.hostname,key:u}))}if(a++,a===this.maxRetries)return new Promise((u,l)=>l(new Error(`Develocity short lived token request failed ${e} with status code ${c.message.statusCode}`)))}catch(A){if(a++,a===this.maxRetries)return new Promise((c,u)=>u(A))}await new Promise(A=>setTimeout(A,this.retryInterval))}return new Promise((A,c)=>c(new Error("Illegal state")))}},m9=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};async function Fat(t){return TC("DEVELOCITY_INJECTION_INIT_SCRIPT_NAME","gradle-actions.inject-develocity.init.gradle"),TC("DEVELOCITY_INJECTION_CUSTOM_VALUE","gradle-actions"),Ng("DEVELOCITY_INJECTION_ENABLED",t.getDevelocityInjectionEnabled()),Ng("DEVELOCITY_INJECTION_URL",t.getDevelocityUrl()),Ng("DEVELOCITY_INJECTION_ALLOW_UNTRUSTED_SERVER",t.getDevelocityAllowUntrustedServer()),Ng("DEVELOCITY_INJECTION_CAPTURE_FILE_FINGERPRINTS",t.getDevelocityCaptureFileFingerprints()),Ng("DEVELOCITY_INJECTION_ENFORCE_URL",t.getDevelocityEnforceUrl()),Ng("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION",t.getDevelocityPluginVersion()),Ng("DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION",t.getDevelocityCcudPluginVersion()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword()),t.getBuildScanPublishEnabled()&&(TC("DEVELOCITY_INJECTION_ENABLED","true"),TC("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION","4.3.2"),TC("DEV Line truncated
`:D9(t.children):jR(t)?D9(t.children):oc(t)?t.data:""}function zp(t){return Array.isArray(t)?t.map(zp).join(""):kn(t)&&!gQ(t)?zp(t.children):oc(t)?t.data:""}function DM(t){return Array.isArray(t)?t.map(DM).join(""):kn(t)&&(t.type===Lr.Tag||jR(t))?DM(t.children):oc(t)?t.data:""}function ZR(t){return kn(t)?t.children:[]}function sAt(t){return t.parent||null}function Gfe(t){let e=sAt(t);if(e!=null)return ZR(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function RPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function DPr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function xPr(t){return t.name}function x9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function T9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function jp(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function TPr(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function kPr(t,e){if(jp(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function FPr(t,e){jp(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function MPr(t,e){if(jp(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function vPr(t,e){jp(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function $R(t,e,r=!0,n=1/0){return k9(t,Array.isArray(e)?e:[e],r,n)}function k9(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function LPr(t,e){return e.find(t)}function F9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=F9(t,i.children,!0);if(o)return o}}return null}function iAt(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&iAt(t,r.children))}function UPr(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var M9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>oc(e)&&t(e.data):e=>oc(e)&&e.data===t}};function Yfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function PPr(t,e){return r=>t(r)||e(r)}function oAt(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(M9,r)?M9[r](n):Yfe(r,n)});return e.length===0?null:e.reduce(PPr)}function _Pr(t,e){let r=oAt(t);return r?r(e):!0}function OPr(t,e,r,n=1/0){let s=oAt(t);return s?$R(s,e,r,n):[]}function HPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),F9(Yfe("id",t),e,r)}function fQ(t,e,r=!0,n=1/0){return $R(M9.tag_name(t),e,r,n)}function qPr(t,e,r=!0,n=1/0){return $R(Yfe("class",t),e,r,n)}function GPr(t,e,r=!0,n=1/0){return $R(M9.tag_type(t),e,r,n)}function YPr(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Nl;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Nl||(Nl={}));function aAt(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function FC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=aAt(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Jfe(t){let e=v9(jPr,t);return e?e.name==="feed"?JPr(e):VPr(e):null}function JPr(t){var e;let r=t.children,n={type:"atom",items:fQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:AAt(A)};ac(c,"id","id",A),ac(c,"title","title",A);let u=(a=v9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=MC("summary",A)||MC(" Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Dl=Xe(LC(),1);var Ape={};function cpe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function upe(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function ape(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var ope=(t,e,r,n,s)=>{let i=s(e,ape(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},z9={is:ope,matches:ope,where:ope,not(t,e,r,n,s){let i=s(e,ape(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=ape(r);o.relativeSelector=!0;let a=e.some(u=>u.some(LM))?[Ape]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=cpe(A,i);if(a&&A!==Dl.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...upe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function KAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in z9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return z9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:W9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jAt.parse)(c);return z9.is(t,u,r,n,s)}if(typeof A=="function")return ipe(A,o,a,1),u=>A(u,a)&&t(u);if(o in AD)return AD[o](t,a,r,n);if(o in PM){let u=PM[o];return ipe(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe(oD(),1);function lpe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function XAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),JAt[e.action](t,e,r)}case xl.SelectorType.Pseudo:return KAt(t,e,r,n,s);case xl.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=lpe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=lpe(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=lpe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case xl.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ZAt(t,e,r){let n=j9(t,e,r);return cpe(n,e.adapter)}function j9(t,e,r){let n=typeof t=="string"?(0,Jd.parse)(t):t;return K9(n,e,r)}function $At(t){return t.type===Jd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some($At)))}var O_r={type:Jd.SelectorType.Descendant},H_r={type:"_flexibleDescendant"},q_r={type:Jd.SelectorType.Pseudo,name:"scope",data:null};function G_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===A Line truncated
`)})):{name:s,value:i.replace(fct,`\r
`)}}).toArray()}var Spe={};xu(Spe,{extract:()=>sHr});function nHr(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function sHr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=nHr(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var _C=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};_C.prototype.cheerio="[cheerio object]";_C.prototype.splice=Array.prototype.splice;_C.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_C.prototype,epe,ype,bpe,wpe,Npe,Spe);function pct(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=zR(s),a=t(n,o,i,null);class A extends _C{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=zR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&xM(u)?t(u,g,!1,null).children:iHr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?xM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,Vfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function iHr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var oHr=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Zn="\uFFFD",k;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));var aA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function rJ(t){return t>=55296&&t<=57343}function mct(t){return t>=56320&&t<=57343}function Ect(t,e){return(t-55296)*1024+9216+e}function nJ(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function sJ(t){return t>=64976&&t<=65007||oHr.has(t)}var Ae;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-pu Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},MW=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var KQ=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function RIt(t){if(t instanceof AggregateError){lE("Multiple errors returned");for(let e of t.errors)F1(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&fe(e.stack)}else t instanceof KQ?(lE(String(t)),t.stack&&fe(t.stack)):(lE(String(t)),t instanceof Error&&t.stack&&fe(t.stack))}async function DIt(t,e,r){if(!t.doValidateWrappers())return;let n=new C9(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await SIt(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await tp("All Gradle Wrapper jars are valid",async()=>{Te(`Loaded previously validated checksums from cache: ${i.join(", ")}`),fe(o.toDisplayString())});else throw fe(o.toDisplayString()),new KQ(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}var VBe="GRADLE_BUILD_ACTION_SETUP_COMPLETED",A$r="USER_HOME",c$r="GRADLE_USER_HOME",u$r="CACHE_LISTENER";async function xIt(t,e,r){let n=await TIt(),s=await l$r();if(process.env[VBe])return fe("Gradle setup only performed on first gradle/actions step in workflow."),!1;mi(VBe,!0),DA(VBe,!0),DA(A$r,n),DA(c$r,s);let i=new CY;return await xat(n,s,i,t),DA(u$r,i.stringify()),await DIt(r,Gp(),s),await Fat(e),!0}async function l$r(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Gp();return zBe.resolve(r,t)}let e=zBe.resolve(await TIt(),".gradle");if(WBe.existsSync(e))return fe(`Gradle User Home already exists at ${e}`),mi("GRADLE_USER_HOME",e),e;if(vW.platform()==="win32"&&e.startsWith("C:\\")&&WBe.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return fe(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),mi("GRADLE_USER_HOME",r),r}return mi("GRADLE_USER_HOME",e),e}async function TIt(){let t=await ep("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return fe("Could not determine user.home from java -version output. Using os.homedir()."),vW.homedir();let n=r[1];return Te(`Determined user.home from java -version output: '${n}'`),n}import h$r from"os";function oL(){return 8*1024*1024}function LW(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function kIt(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function ox(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function FIt(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function MIt(){let t=h$r.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(fe("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(fe(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function vIt(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function LIt(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var jBe=Xe(lr(),1),KBe=Xe(lr(),1),UIt=Xe(lr(),1),PIt=Xe(lr(),1),_It=Xe(lr(),1),ax=Xe(lr(),1),OIt=Xe(lr(),1),XBe=class extends OIt.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ax.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ax.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ax.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ax.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let i=(e.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?s="."+i.substring(0,3)+"Z":i.substring(6)==="000"?s="."+i.substring(0,6)+"Z":s="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",s)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,_It.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let i=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(i))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ax.PbLong.from(i/1e3).toString(),n.nanos=0,s[7]&&(n.nanos=parseInt("1"+s[7]+"0".repeat Line truncated
`," Line feed \\n"]]),GIt=new Map([...M0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function YIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of GIt)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function e_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var VK="GRADLE_BUILD_ACTION_SETUP_COMPLETED",t_t="GRADLE_USER_HOME",r_t="DEVELOCITY_CACHE_TOKEN";async function d2e(t,e,r){let n=await h2e(),s=await s_t();if(process.env[VK])return ee("Gradle setup only performed on first gradle/actions step in workflow."),!1;Rn(VK,!0),bA(VK,!0),bA(t_t,s),l2e(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await ZEe(e);return bA(r_t,o??""),await(await MCe(t)).restore(s,n_t(t,i,o)),await u2e(r,Ul(),s),KEe(e),!0}function n_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function s_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Ul();return WK.resolve(r,t)}let e=WK.resolve(await h2e(),".gradle");if(JK.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),Rn("GRADLE_USER_HOME",e),e;if(u_.platform()==="win32"&&e.startsWith("C:\\")&&JK.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Rn("GRADLE_USER_HOME",r),r}return Rn("GRADLE_USER_HOME",e),e}async function h2e(){let t=await ZB("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return ee("Could not determine user.home from java -version output. Using os.homedir()."),u_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var $2e=Ee(x2e(),1);import*as RI from"fs";import*as J2e from"os";import*as df from"path";import*as KK from"crypto";import*as mm from"fs";var E_t=Ee(uD(),1);import*as P1 from"path";var h_=Ee(uD(),1);import*as R2e from"stream";import*as k2e from"util";import{ok as I_t}from"assert";var D2e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},l_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return D2e(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;ee(i.message)}let s=this.getSleepAmount();ee(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return D2e(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var pm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},d_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},y_t=process.platform==="win32",ZTr=process.platform==="darwin",B_t="actions/tool-cache";function v2e(t,e,r,n){return pm(this,void 0,void 0,function*(){e=e||P1.join(M2e(),KK.randomUUID()),yield Cg(P1.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=jK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=jK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new l_(s,i,o).execute(()=>pm(this,void 0,void 0,function*(){return yield b_t(t,e||"",r,n)}),c=>!(c instanceof d_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function b_t(t,e,r,n){return pm(this,void 0,void 0,function*(){if(mm.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Kr(B_t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new d_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=k2e.promisify(R2e.pipeline),c=jK("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,mm.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield Mue(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function F2e(t,e){return pm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' Line truncated
`," Line feed \\n"]]),dke=new Map([...vX,["\\"," Backslash \\"],["/"," Forward slash /"]]);function hke(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of dke)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(GIt.values()).toString()}
Invalid characters include: ${Array.from(dke.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);fe("Artifact name is valid!")}function v0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of M0e)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ee("Artifact name is valid!")}function FX(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of vX)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(M0e.values()).toString()}
Invalid characters include: ${Array.from(vX.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var zIt=Xe(WIt(),1);function Xg(){return`@actions/artifact-${zIt.version}`}var PW=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},hm=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},gm=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},dI=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},fm=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};fm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var XQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
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"}};XQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZQ=class extends Error{};ZQ.prototype.name="InvalidTokenError";function B$r(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Q$r(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return B$r(e)}catch{return atob(e)}}function jIt(t,e){if(typeof t!="string")throw new ZQ("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ZQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=Q$r(n)}catch(i){throw new ZQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ZQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var _W=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Zg(){let t=LW(),e=jIt(t);if(!e.scp)throw _W;let r=e.scp.split(" ");if(r.length===0)throw _W;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw _W;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Te(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Te(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw _W}function KIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Kb(r),Kb(encodeURIComponent(r)))}catch(e){Te(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XIt(t){if(typeof t!="object"||t===null){Te("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&KIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&KIt(t.signed_url)}var OW=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},L0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=LW();this.baseUrl=kIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ga(e,[new T1(i)])}request(e,r,n,s){return OW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Te(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>OW(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return OW(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),Te(`[Response] - ${a.message.statusCode}`),Te(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(XIt(c),Te(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(XQ.isUsageErrorMessage(c.msg))throw new XQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Te(`Raw Body: ${s}`),a instanceof XQ)throw a;if(fm.isNetworkErrorCode(a?.code))throw new fm(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);fe(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ao.BadGateway,ao.GatewayTimeout,ao.InternalServerError,ao.ServiceUnavailable,ao.TooManyRequests].includes(e):!1}sleep(e){return OW(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function $g(t){let e=new L0e(Xg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new UW(e)}import*as cx from"fs";import{normalize as ZIt,resolve as $It}from"path";function eBt(t){if(!cx.existsSync Line truncated
${v$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function JW(t){return t instanceof dA?!0:ey(t)&&t.name==="RestError"}function mc(t,e){return Buffer.from(t,e)}import V0e from"node:http";import W0e from"node:https";import gBt from"node:zlib";import{Transform as L$r}from"node:stream";var Vl=AL("ts-http-runtime");var U$r={};function cL(t){return t&&typeof t.pipe=="function"}function fBt(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function pBt(t){return t&&typeof t.byteLength=="number"}var VW=class extends L$r{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}},z0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ef("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new rh;Vl.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=H$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new VW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),cL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=P$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?_$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new VW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await O$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();cL(a)&&(c=fBt(a));let u=Promise.resolve();cL(A)&&(u=fBt(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?V0e.request(a,A):W0e.request(a,A);u.once("error",l=>{c(new dA(l.message,{code:l.code??dA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ef("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&cL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):pBt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new dA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W0e.globalAgent;let s=e.tlsSettings??U$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new W0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function P$r(t){let e=mu();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}function _$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gBt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gBt.createInflate();return t.pipe(n),n}return t}function O$r(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 dA(`Error reading response as text: ${s.message}`,{code:dA.PARSE_ERROR}))})})}function H$r(t){return t?Buffer.isBuffer(t)?t.length:cL(t)?null:pBt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mBt(){return new z0e}function WW(){return mBt()}var j0e="logPolicy";function zW(t={}){let e=t.logger??Vl.info,r=new rh({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:j0e,async sendRequest Line truncated
`;return e}function len(t){return t instanceof Uint8Array?t.byteLength:az(t)?t.size===-1?void 0:t.size:void 0}function den(t){let e=0;for(let r of t){let n=len(r);if(n===void 0)return;e+=n}return e}async function hen(t,e,r){let n=[mc(`--${r}`,"utf-8"),...e.flatMap(i=>[mc(`\r
`,"utf-8"),mc(uen(i.headers),"utf-8"),mc(`\r
`,"utf-8"),i.body,mc(`\r
--${r}`,"utf-8")]),mc(`--\r
\r
`,"utf-8")],s=den(n);s&&t.headers.set("Content-Length",s),t.body=await OBt(n)}var lL="multipartPolicy",gen=70,fen=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pen(t){if(t.length>gen)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!fen.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Az(){return{name:lL,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?pen(r):r=cen(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await hen(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cz(){return YW()}import{EOL as Een}from"node:os";import Cen from"node:util";import*as HBt from"node:process";function qBt(t,...e){HBt.stderr.write(`${Cen.format(t,...e)}${Een}`)}var GBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,YBt,aQe=[],AQe=[],uz=[];GBt&&cQe(GBt);var JBt=Object.assign(t=>VBt(t),{enable:cQe,enabled:uQe,disable:Ien,log:qBt});function cQe(t){YBt=t,aQe=[],AQe=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?AQe.push(new RegExp(`^${n.substr(1)}$`)):aQe.push(new RegExp(`^${n}$`));for(let n of uz)n.enabled=uQe(n.namespace)}function uQe(t){if(t.endsWith("*"))return!0;for(let e of AQe)if(e.test(t))return!1;for(let e of aQe)if(e.test(t))return!0;return!1}function Ien(){let t=YBt||"";return cQe(""),t}function VBt(t){let e=Object.assign(r,{enabled:uQe(t),destroy:Ben,log:JBt.log,namespace:t,extend:Qen});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return uz.push(e),e}function Ben(){let t=uz.indexOf(this);return t>=0?(uz.splice(t,1),!0):!1}function Qen(t){let e=VBt(`${this.namespace}:${t}`);return e.log=this.log,e}var dx=JBt;var zBt=new Set,lz=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,lQe,dQe=dx("azure");dQe.log=(...t)=>{dx.log(...t)};var hQe=["verbose","info","warning","error"];lz&&(XBt(lz)?yen(lz):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lz}'; logging is not enabled. Acceptable values: ${hQe.join(", ")}.`));function yen(t){if(t&&!XBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${hQe.join(",")}`);lQe=t;let e=[];for(let r of zBt)KBt(r)&&e.push(r.namespace);dx.enable(e.join(","))}var WBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=dQe.extend(t);return jBt(dQe,e),{error:dz(e,"error"),warning:dz(e,"warning"),info:dz(e,"info"),verbose:dz(e,"verbose")}}function jBt(t,e){e.log=(...r)=>{t.log(...r)}}function dz(t,e){let r=Object.assign(t.extend(e),{level:e});if(jBt(t,r),KBt(r)){let n=dx.disable();dx.enable(n+","+r.namespace)}return zBt.add(r),r}function KBt(t){return!!(lQe&&WBt[t.level]<=WBt[lQe])}function XBt(t){return hQe.includes(t)}var tf=Wl("core-rest-pipeline");function gQe(t={}){return zW({logger:tf.info,...t})}var fQe=jW;function pQe(t={}){return KW(t)}import mQe from"node:os";import EQe from"node:process";function ZBt(){return"User-Agent"}async function $Bt(t){if(EQe&&EQe.versions){let e=`${mQe.type()} ${mQe.release()}; ${mQe.arch()}`,r=EQe.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})`)}}var hz="1.22.2";function xen(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function e0t(){return ZBt()}async function gz(t){let e=new Map;e.set("core-rest-pipeline",hz),await $Bt(e);let r=xen(e);return t?`${t} ${r}`:r}var t0t=e0t(),r0t="userAgentPolicy";function CQe(t={}){let e=gz(t.userAgentPrefix);return{name:r0t,async sendRequest(r,n){return r.headers.has(t0t)||r.headers.set(t0t,await e),n(r)}}}var dL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function IQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new dL(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var ven="The delay was aborted.";function hx(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return IQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ven})}function hI(t){if(ey(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}`}}function n0t(t){return ey(t)}fun Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!irn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Ni("InvalidTag",l,hA(t,i))}let c=ern(t,i);if(c===!1)return Ni("InvalidAttr","Attributes for '"+A+"' have open quote.",hA(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=q0t(u,e);if(d===!0)n=!0;else return Ni(d.err.code,d.err.msg,hA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Ni("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",hA(t,o));if(r.length===0)return Ni("InvalidTag","Closing tag '"+A+"' has not been opened.",hA(t,o));{let l=r.pop();if(A!==l.tagName){let d=hA(t,l.tagStartPos);return Ni("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",hA(t,o))}r.length==0&&(s=!0)}}else return Ni("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",hA(t,i));else{let l=q0t(u,e);if(l!==!0)return Ni(l.err.code,l.err.msg,hA(t,i-u.length+l.err.line));if(s===!0)return Ni("InvalidXml","Multiple possible root nodes found.",hA(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=H0t(t,i);continue}else if(t[i+1]==="?"){if(i=O0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=nrn(t,i);if(l==-1)return Ni("InvalidChar","char '&' is not expected.",hA(t,i));i=l}else if(s===!0&&!_0t(t[i]))return Ni("InvalidXml","Extra text at the end",hA(t,i));t[i]==="<"&&i--}}else{if(_0t(t[i]))continue;return Ni("InvalidChar","char '"+t[i]+"' is not expected.",hA(t,i))}if(n){if(r.length==1)return Ni("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hA(t,r[0].tagStartPos));if(r.length>0)return Ni("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ni("InvalidXml","Start tag expected.",1);return!0}function _0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function O0t(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 Ni("InvalidXml","XML declaration allowed only at the start of the document.",hA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function H0t(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}var Ztn='"',$tn="'";function ern(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Ztn||t[e]===$tn)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}}var trn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function q0t(t,e){let r=bz(t,trn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ni("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bL(r[s]));let i=r[s][2];if(!srn(i))return Ni("InvalidAttr","Attribute '"+i+"' is an invalid name.",bL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return Ni("InvalidAttr","Attribute '"+i+"' is repeated.",bL(r[s]))}return!0}function rrn(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}function nrn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,rrn(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}function Ni(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function srn(t){return yL(t)}function irn(t){return yL(t)}function hA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bL(t){return t.startIndex+t[1].length}var orn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},G0t=function(t){return Object.assign({},orn,t)};var Nz;typeof Symbol!="function"?Nz="@@xmlMetadata":Nz=Symbol("XML Node Metadata");var Iu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][Nz]={startIndex:r})}static getMetaDataSymbol(){return Nz}};function KQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&crn(t,e)){e+=7;let a,A;[a,A,e]=arn(t,e+1),A.indexOf("&")===-1&&(r[hrn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&urn(t,e))e+=8;else if(s&&lrn(t,e))e+=8;else if(s&&drn(t,e))e+=9;else if(Arn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function arn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Arn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function crn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function urn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function lrn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function drn(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new Iu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=oy(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=ZQe(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Iu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=oy(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=KQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=oy(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=ZQe(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new Iu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new Iu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new Iu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function wrn(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var Nrn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function Srn(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}function Rrn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function Drn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function oy(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function ZQe(t,e,r,n=">"){let s=Drn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function xrn(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=oy(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),V0t(t,e,"",r)}function V0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Mrn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];vrn(c,e)||(g=e.tagValueProcessor(A,g),g=W0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=J0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=J0t(a[":@"],e),d=n+`<${A}${l}`,h=V0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function Mrn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function J0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=W0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function vrn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function W0t(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}var Lrn={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function nh(t){this.options=Object.assign({},Lrn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=wL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_rn),this.processTextOrObjNode=Urn,this.options.format?(this.indentate=Prn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nh.prototype.build=function(t){return this.options.preserveOrder?rye(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};nh.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};nh.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Urn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}nh.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};nh.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nh.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};nh.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function Prn(t){return this.options.indentBy.repeat(t)}function _rn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var z0t={validate:wz};function X0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Orn(t={}){var e,r;return Object.assign(Object.assign({},X0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Hrn(t={}){return Object.assign(Object.assign({},X0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function Sz(t,e={}){let r=Orn(e),n=new nh(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function nye(t,e={}){if(!t)throw new Error("Document is empty");let r=z0t.validate(t);if(r!==!0)throw r;let s=new Ex(Hrn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Uz(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Mz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=vz(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var ci=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new xL(e,r,this)}computeHMACSHA256(e){return jrn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $i=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var EI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Krn=new cy("The operation was aborted."),TL=class extends sf{retryOptions;constructor(e,r,n=EI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:EI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):EI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:EI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:EI.maxRetryDelayInMs):EI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:EI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:EI.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Fz(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=mI(s.url,Cm.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if($i.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if($i.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return $i.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return $i.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return $i.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return $i.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($i.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $i.info(`RetryPolicy: Delay for ${s}ms`),Lz(s,n,Krn)}};var kL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new TL(e,r,this.retryOptions)}};var Xrn="storageBrowserPolicy";function Z0t(){return{name:Xrn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=mI(t.url,Cm.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Zrn="StorageCorrectContentLengthPolicy";function $0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Zrn,async sendRequest(e,r){return t(e),r(e)}}}var $rn="storageRetryPolicy",Cx={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},enn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],tnn=new cy("The operation was aborted.");function eQt(t={}){let e=t.retryPolicyType??Cx.retryPolicyType,r=t.maxTries??Cx.maxTries,n=t.retryDelayInMs??Cx.retryDelayInMs,s=t.maxRetryDelayInMs??Cx.maxRetryDelayInMs,i=t.secondaryHost??Cx.secondaryHost,o=t.tryTimeoutInMs??Cx.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return $i.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of enn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=rnn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Uz(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=Mz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=vz(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:nnn,async sendRequest(i,o){return e(i),o(i)}}}var snn="storageRequestFailureDetailsParserPolicy";function tQt(){return{name:snn,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}}}}import{createHmac as inn}from"node:crypto";var Pz=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return inn("sha256",this.key).update(e,"utf8").digest("base64")}};var _z="12.31.0",Oz="2026-02-06";var Hz="https://storage.azure.com/.default",Im={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sh="",aye="*",onn=1*1024*1024;var ann=4*onn;var rQt="AES256",nQt="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sQt=["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"],iQt=["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"],oQt="BlobUsesCustomerSpecifiedEncryption",aQt="BlobDoesNotUseCustomerSpecifiedEncryption",AQt=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bm(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var FL=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Si(t,e={}){t||(t=new Rs);let r=new FL([],e);return r._credential=t,r}function Ann(t){let e=[cnn,cQt,unn,lnn,dnn,hnn,fnn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>gnn(s));return{wrappedPolicies:zQe(r),afterRetry:n}}}}function Aye(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?jQe(e):iye(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${_z}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=mL({...r,loggingOptions:{additionalAllowedHeaderNames:sQt,additionalAllowedQueryParameters:iQt,logger:Rz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Sz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:nye,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:bQe}),s.addPolicy($0t()),s.addPolicy(eQt(r.retryOptions),{phase:"Retry"}),s.addPolicy(tQt()),s.addPolicy(Z0t());let a=Ann(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=cye(t);Eu(A)?s.addPolicy(px({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ch(t.version,i,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}}function cin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function uin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function lin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function din(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function hin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function gin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function my(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ey(t){let e=t.version?t.version:Oz;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}var JL=class{_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=gx()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);fe(`Redirecting to blob download url: ${wFt(u)}`);try{fe(`Starting download of artifact to: ${r}`);let l=yield NFt(u,r,e?.skipDecompress);fe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Te(`Computed digest: ${l.sha256Digest}`),Te(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function DFt(){return BT(this,arguments,void 0,function*(t=FIt()){return(yield Ayn(t))?Te(`Artifact destination folder already exists: ${t}`):(Te(`Artifact destination folder does not exist, creating: ${t}`),yield IFt.mkdir(t,{recursive:!0})),t})}var uyn=5,lyn=[400,401,403,404,422];function QT(t,e=uyn,r=lyn){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return Te(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var xFt="6.0.0";function jy(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}jy.VERSION=xFt;var FFt=Xe(TFt(),1),MFt=Xe(yge(),1),dyn="0.0.0-development";async function kFt(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function hyn(t,e,r,n){let s=new FFt.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(gyn.bind(null,t,e,r),n)}async function gyn(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new MFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return kFt(t,e,i,n)}return s}function Ky(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",kFt.bind(null,r,t)),t.hook.wrap("request",hyn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Ky.VERSION=dyn;var vFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function OK(t,e,r,n,s){return vFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},u=yield Hd(s,A,Ky,jy).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new hm(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new gm(`Artifact not found for name: ${t}
`)}var mke=Ee(pke(),1);function Du(){return`@actions/artifact-${mke.version}`}var MI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},ld=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},dd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hf=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},hd=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};hd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Cm=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};Cm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Im=class extends Error{};Im.prototype.name="InvalidTokenError";function K_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function X_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return K_t(e)}catch{return atob(e)}}function Eke(t,e){if(typeof t!="string")throw new Im("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Im(`Invalid token specified: missing part #${r+1}`);let s;try{s=X_t(n)}catch(i){throw new Im(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Im(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var E_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Ru(){let t=p_(),e=Eke(t);if(!e.scp)throw E_;let r=e.scp.split(" ");if(r.length===0)throw E_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw E_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw E_}function Cke(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(da(r),da(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ike(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&Cke(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&Cke(t.signed_url)}var C_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},MX=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=p_();this.baseUrl=tke(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Kr(e,[new gl(i)])}request(e,r,n,s){return C_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>C_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return C_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(Ike(A),G(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Cm.isUsageErrorMessage(A.msg))throw new Cm;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Cm)throw a;if(hd.isNetworkErrorCode(a?.code))throw new hd(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);ee(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return C_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function ku(t){let e=new MX(Du(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new m_(e)}import*as _I from"fs";import{normalize as yke,resolve as Bke}from"path";function bke(t){if(!_I.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ye("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ee(`Redirecting to blob download url: ${z6e(u)}`);try{ee(`Starting download of artifact to: ${r}`);let l=yield j6e(u,r,e?.skipDecompress);ee("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function Z6e(){return Dy(this,arguments,void 0,function*(t=rke()){return(yield Lzt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield q6e.mkdir(t,{recursive:!0})),t})}var Pzt=5,Ozt=[400,401,403,404,422];function Ry(t,e=Pzt,r=Ozt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var $6e="6.0.0";function Jm(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Jm.VERSION=$6e;var rHe=Ee(eHe(),1);var Hzt="0.0.0-development";function Gzt(t){return t.request!==void 0}async function tHe(t,e,r,n){if(!Gzt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function qzt(t,e,r,n){let s=new rHe.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,c=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(Yzt.bind(null,t,e,r),n)}async function Yzt(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new ml(s.data.errors[0].message,500,{request:n,response:s});return tHe(t,e,i,n)}return s}function Wm(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",tHe.bind(null,r,n)),t.hook.wrap("request",qzt.bind(null,r,n))),n}Wm.VERSION=Hzt;var nHe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function SU(t,e,r,n,s){return nHe(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Du(),previews:void 0,retry:o,request:a},u=yield xc(s,c,Wm,Jm).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new ld(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new dd(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],Te(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function LFt(t){return vFt(this,void 0,void 0,function*(){var e;let r=$g(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Zg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Da.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new gm(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function sHe(t){return nHe(this,void 0,void 0,function*(){var e;let r=ku(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Ru(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Tn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new dd(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],Te(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ra.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var UFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function PFt(t,e,r,n,s){return UFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},c=Hd(s,A,Ky,jy),u=yield OK(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new hm(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function _Ft(t){return UFt(this,void 0,void 0,function*(){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Da.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new gm(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],Te(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return fe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var OFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},HK=LIt(),qK=100,fyn=Math.ceil(HK/qK);function HFt(t,e,r,n){return OFt(this,arguments,void 0,function*(s,i,o,a,A=!1){fe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=QT(sQ),d={log:void 0,userAgent:Xg(),previews:void 0,retry:u,request:l},h=Hd(a,d,Ky,jy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qK,page:g}),C=Math.ceil(p.total_count/qK),m=p.total_count;m>HK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${HK}. Results will be incomplete as only the first ${HK} artifacts will be returned`),C=fyn);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(g++,g;g<=C;g++){Te(`Fetching page ${g} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qK,page:g});for(let y of I.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=GFt(c)),fe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function qFt(){return OFt(this,arguments,void 0,function*(t=!1){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ra.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=GFt(o)),fe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function GFt(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var mP=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},pyn=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Xy=class{uploadArtifact(e,r,n,s){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;return _2t(e,r,n,s)}catch(i){throw tr(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ko.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var iHe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function oHe(t,e,r,n,s){return iHe(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Du(),previews:void 0,retry:o,request:a},A=xc(s,c,Wm,Jm),u=yield SU(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new ld(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function aHe(t){return iHe(this,void 0,void 0,function*(){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ru(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Tn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new dd(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ee(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var cHe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},NU=ike(),TU=100,Vzt=Math.ceil(NU/TU);function AHe(t,e,r,n){return cHe(this,arguments,void 0,function*(s,i,o,a,c=!1){ee(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=Ry(yg),d={log:void 0,userAgent:Du(),previews:void 0,retry:u,request:l},h=xc(a,d,Wm,Jm),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:TU,page:f}),E=Math.ceil(g.total_count/TU),m=g.total_count;m>NU&&(Ye(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${NU}. Results will be incomplete as only the first ${NU} artifacts will be returned`),E=Vzt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){G(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:TU,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=lHe(A)),ee(`Found ${A.length} artifact(s)`),{artifacts:A}})}function uHe(){return cHe(this,arguments,void 0,function*(t=!1){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ru(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ko.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=lHe(o)),ee(`Found ${o.length} artifact(s)`),{artifacts:o}})}function lHe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var aN=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Jzt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},zm=class{uploadArtifact(e,r,n,s){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;return c6e(e,r,n,s)}catch(i){throw Ye(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=pyn(r,["findBy"]);return SFt(e,n,s,i,o)}return RFt(e,r)}catch(n){throw tr(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Jzt(r,["findBy"]);return K6e(e,n,s,i,o)}return X6e(e,r)}catch(n){throw Ye(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return HFt(r,n,s,i,e?.latest)}return qFt(e?.latest)}catch(r){throw tr(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return AHe(r,n,s,i,e?.latest)}return uHe(e?.latest)}catch(r){throw Ye(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return OK(e,n,s,i,o)}return LFt(e)}catch(n){throw tr(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return SU(e,n,s,i,o)}return sHe(e)}catch(n){throw Ye(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return PFt(e,i,n,s,o)}return _Ft(e)}catch(n){throw tr(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return oHe(e,i,n,s,o)}return aHe(e)}catch(n){throw Ye(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var GAs=new Xy;import*as GK from"path";import kxe from"fs";var JFt="dependency-graph_";async function VFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await Eyn(t);return}fe("Enabling dependency graph generation"),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",Syn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Gp()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&mi(t,e)}async function WFt(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await YFt(t,!1);return;case"generate-submit-and-upload":await YFt(t,!0);return;case"generate-and-upload":await Cyn(t)}}catch(r){jFt(t,e,r)}}async function Eyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}try{await zFt(await Iyn(t))}catch(e){jFt(t,"download-and-submit",e)}}async function YFt(t,e){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}let r=await Fxe();try{await zFt(r)}catch(n){try{await Txe(r,t)}catch(s){fe(String(s))}throw n}e&&await Txe(r,t)}async function Cyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}await Txe(await Fxe(),t)}async function Iyn(t){let e=Qo.payload.workflow_run?{token:P6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new Xy,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(JFt)),s=t.getDownloadArtifactName();s&&(fe(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});fe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fxe()}async function Fxe(){let r=(await(await aC(`${yyn()}/**/*.json`)).glob()).filter(n=>!byn(n));return r.forEach(wyn),fe(`Found dependency graph files: ${r.join(", ")}`),r}async function Txe(t,e){if(t.length===0){fe("No dependency graph files found to upload.");return}let r=Gp(),n=new Xy;for(let s of t){let i=Mxe(s);fe(`Uploading dependency graph file: ${i}`);let o=`${JFt}${GK.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zFt(t){if(t.length===0){fe("No dependency graph files found to submit.");return}for(let e of t)try{await Qyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Byn(e,r)),r}}function Byn(t,e){let n=`Dependency submission failed for ${Mxe(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var XFr=new zm;import*as xU from"path";import Fte from"fs";var hHe="dependency-graph_";async function fHe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await zzt(t);return}ee("Enabling dependency graph generation"),Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),yi("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Di.runId.toString()),yi("GITHUB_DEPENDENCY_GRAPH_REF",Di.ref),yi("GITHUB_DEPENDENCY_GRAPH_SHA",njt()),yi("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Ul()),yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),yi("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),yi("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),yi("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),yi("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),yi("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),yi("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),yi("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function yi(t,e){process.env[t]||e!==void 0&&Rn(t,e)}async function gHe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await dHe(t,!1);return;case"generate-submit-and-upload":await dHe(t,!0);return;case"generate-and-upload":await jzt(t)}}catch(r){mHe(t,e,r)}}async function zzt(t){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}try{await pHe(await Kzt(t))}catch(e){mHe(t,"download-and-submit",e)}}async function dHe(t,e){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}let r=await Mte();try{await pHe(r)}catch(n){try{await vte(r,t)}catch(s){ee(String(s))}throw n}e&&await vte(r,t)}async function jzt(t){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}await vte(await Mte(),t)}async function Kzt(t){let e=Di.payload.workflow_run?{token:Fk(),workflowRunId:Di.payload.workflow_run.id,repositoryName:Di.repo.repo,repositoryOwner:Di.repo.owner}:void 0,r=new zm,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(hHe)),s=t.getDownloadArtifactName();s&&(ee(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});ee(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Mte()}async function Mte(){let r=(await(await KY(`${$zt()}/**/*.json`)).glob()).filter(n=>!ejt(n));return r.forEach(tjt),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function vte(t,e){if(t.length===0){ee("No dependency graph files found to upload.");return}let r=Ul(),n=new zm;for(let s of t){let i=_te(s);ee(`Uploading dependency graph file: ${i}`);let o=`${hHe}${xU.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function pHe(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await Zzt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Xzt(e,r)),r}}function Xzt(t,e){let n=`Dependency submission failed for ${_te(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function Qyn(t){let e=Nyn(),r=kxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Qo.repo.owner,n.repo=Qo.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Mxe(t);APe(`Submitted ${i}: ${s.data.message}`)}function yyn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function byn(t){let e=`${t}.processed`;return kxe.existsSync(e)}function wyn(t){let e=`${t}.processed`;kxe.writeFileSync(e,"")}function jFt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new KQ(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Nyn(){return Hd(P6())}function Mxe(t){let e=Gp();return GK.relative(e,t)}function Syn(){let t=Qo;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function vxe(){return process.env.ACT!==void 0}function Lxe(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(Dyn(o[1],o[6],o[0]));while(o!==null);return i}function Dyn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}async function xyn(){try{Ost("gradle/actions/dependency-submission"),await xIt(new YR,new qd,new U6);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new M6;if(await VFt(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new L6,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function Zzt(t){let e=rjt(),r=Fte.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Di.repo.owner,n.repo=Di.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=_te(t);L8(`Submitted ${i}: ${s.data.message}`)}function $zt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ejt(t){let e=`${t}.processed`;return Fte.existsSync(e)}function tjt(t){let e=`${t}.processed`;Fte.writeFileSync(e,"")}function mHe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new fm(r);Ye(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function rjt(){return xc(Fk())}function _te(t){let e=Ul();return xU.relative(e,t)}function njt(){let t=Di;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function Lte(){return process.env.ACT!==void 0}function Ute(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(ijt(o[1],o[6],o[0]));while(o!==null);return i}function ijt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function ojt(t=process.platform){return t==="win32"?50:0}async function EHe(t=process.platform){let e=ojt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function ajt(){try{jEe("gradle/actions/dependency-submission"),await d2e(new gC,new Oc,new kk);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new YQ;if(await fHe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new Rk,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${n}
${s}
`,o=Lxe(i);await yat(r.getGradleVersion(),r.getBuildRootDirectory(),o),await WFt(e),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Ust()}catch(t){RIt(t)}process.exit()}xyn();export{xyn as run};
`,o=Ute(i);await eke(r.getGradleVersion(),r.getBuildRootDirectory(),o),await gHe(e),Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),JEe()}catch(t){A2e(t)}await EHe()}ajt();export{ajt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
@@ -578,5 +415,22 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+229 -338
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var p7e=Object.create;var $S=Object.defineProperty;var m7e=Object.getOwnPropertyDescriptor;var y7e=Object.getOwnPropertyNames;var b7e=Object.getPrototypeOf,w7e=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var D7e=(t,e)=>()=>(t&&(e=t(t=0)),e);var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nc=(t,e)=>{for(var r in e)$S(t,r,{get:e[r],enumerable:!0})},Oie=(t,e,r,A)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y7e(e))!w7e.call(t,s)&&s!==r&&$S(t,s,{get:()=>e[s],enumerable:!(A=m7e(e,s))||A.enumerable});return t};var zt=(t,e,r)=>(r=t!=null?p7e(b7e(t)):{},Oie(e||!t||!t.__esModule?$S(r,"default",{value:t,enumerable:!0}):r,t)),_r=t=>Oie($S({},"__esModule",{value:!0}),t);var Wie=h(pI=>{"use strict";var Dpr=B("net"),F7e=B("tls"),zG=B("http"),qie=B("https"),x7e=B("events"),Npr=B("assert"),U7e=B("util");pI.httpOverHttp=M7e;pI.httpsOverHttp=L7e;pI.httpOverHttps=v7e;pI.httpsOverHttps=_7e;function M7e(t){var e=new Rl(t);return e.request=zG.request,e}function L7e(t){var e=new Rl(t);return e.request=zG.request,e.createSocket=Jie,e.defaultPort=443,e}function v7e(t){var e=new Rl(t);return e.request=qie.request,e}function _7e(t){var e=new Rl(t);return e.request=qie.request,e.createSocket=Jie,e.defaultPort=443,e}function Rl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||zG.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,s,n,i){for(var o=Vie(s,n,i),a=0,c=e.requests.length;a<c;++a){var u=e.requests[a];if(u.host===o.host&&u.port===o.port){e.requests.splice(a,1),u.request.onSocket(A);return}}A.destroy(),e.removeSocket(A)})}U7e.inherits(Rl,x7e.EventEmitter);Rl.prototype.addRequest=function(e,r,A,s){var n=this,i=jG({request:e},n.options,Vie(r,A,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){n.emit("free",o,i)}function c(u){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Rl.prototype.createSocket=function(e,r){var A=this,s={};A.sockets.push(s);var n=jG({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),sd("making CONNECT request");var i=A.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",u),i.end();function o(l){l.upgrade=!0}function a(l,g,d){process.nextTick(function(){c(l,g,d)})}function c(l,g,d){if(i.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){sd("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var E=new Error("tunneling socket could not be established, statusCode="+l.statusCode);E.code="ECONNRESET",e.request.emit("error",E),A.removeSocket(s);return}if(d.length>0){sd("got illegal response body from proxy"),g.destroy();var E=new Error("got illegal response body from proxy");E.code="ECONNRESET",e.request.emit("error",E),A.removeSocket(s);return}return sd("tunneling connection has established"),A.sockets[A.sockets.indexOf(s)]=g,r(g)}function u(l){i.removeAllListeners(),sd(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),A.removeSocket(s)}};Rl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var A=this.requests.shift();A&&this.createSocket(A,function(s){A.request.onSocket(s)})}};function Jie(t,e){var r=this;Rl.prototype.createSocket.call(r,t,function(A){var s=t.request.getHeader("host"),n=jG({},r.options,{socket:A,servername:s?s.replace(/:.*$/,""):t.host}),i=F7e.connect(0,n);r.sockets[r.sockets.indexOf(A)]=i,e(i)})}function Vie(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function jG(t){for(var e=1,r=arguments.length;e<r;++e){var A=arguments[e];if(typeof A=="object")for(var s=Object.keys(A),n=0,i=s.length;n<i;++n){var o=s[n];A[o]!==void 0&&(t[o]=A[o])}}return t}var sd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sd=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)}:sd=function(){};pI.debug=sd});var A1=h((Spr,zie)=>{zie.exports=Wie()});var Xr=h((Tpr,jie)=>{jie.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 Xt=h((kpr,Boe)=>{"use strict";var Kie=Symbol.for("undici.error.UND_ERR"),cA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Kie]===!0}[Kie]=!0},Xie=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),KG=class extends cA{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[Xie]===!0}[Xie]=!0},Zie=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),XG=class extends cA{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[Zie]===!0}[Zie]=!0},$ie=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),ZG=class extends cA{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[$ie]===!0}[$ie]=!0},eoe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),$G=class extends cA{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[eoe]===!0}[eoe]=!0},toe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),e8=class extends cA{constructor(e,r,A,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function eZe(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(_Xe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function tZe(){return"allowed"}function rZe(){return"success"}function AZe(){return"success"}function sZe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function nZe(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&&Y8(t.origin)&&!Y8(Ly(t))&&(e=null);break;case"same-origin":b1(t,Ly(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function kI(t,e){return t}function iZe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:kI(t.domainLookupStartTime,r),domainLookupEndTime:kI(t.domainLookupEndTime,r),connectionStartTime:kI(t.connectionStartTime,r),connectionEndTime:kI(t.connectionEndTime,r),secureConnectionStartTime:kI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function oZe(t){return kI(YXe.now(),t)}function aZe(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}}function Uae(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function cZe(t){return{referrerPolicy:t.referrerPolicy}}function uZe(t){let e=t.referrerPolicy;SE(e);let r=null;if(t.referrer==="client"){let o=Rae();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=G8(r),s=G8(r,!0);A.toString().length>4096&&(A=s);let n=b1(t,A),i=My(A)&&!My(t.url);switch(e){case"origin":return s??G8(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=Ly(t);return b1(A,o)?A:My(A)&&!My(o)?"no-referrer":s}default:return i?"no-referrer":s}}function G8(t,e){return SE(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)}function My(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function lZe(t,e){if(y1===void 0)return!0;let r=Mae(e);if(r==="no metadata"||r.length===0)return!0;let A=dZe(r),s=hZe(r,A);for(let n of s){let i=n.algo,o=n.hash,a=y1.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),EZe(a,o))return!0}return!1}var gZe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Mae(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=gZe.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Tae.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function dZe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function hZe(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function EZe(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}function fZe(t){}function b1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function CZe(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function IZe(t){return t.controller.state==="aborted"}function BZe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function QZe(t){return VXe[t.toLowerCase()]??t}function pZe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return SE(typeof e=="string"),e}var mZe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lae(t,e,r=0,A=1){class s{ Line truncated
`);function ZZe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function $Ze(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function e$e(t,e){D1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&N1(t,KZe,n)||n.position===t.length-4&&N1(t,XZe,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=t$e(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let E=t.indexOf(A.subarray(2),n.position);if(E===-1)return"failure";g=t.subarray(n.position,E-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",ZZe(u)||(u=""),d=new zZe([g],c,{type:u})):d=YZe(Buffer.from(g)),D1(zae(a)),D1(typeof d=="string"&&zae(d)||JZe(d)),s.push(VZe(a,d,c))}}function t$e(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=xI(o=>o!==10&&o!==13&&o!==58,t,e);if(i=K8(i,!0,!0,o=>o===9||o===32),!qZe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,xI(o=>o===32||o===9,t,e),GZe(i)){case"content-disposition":{if(r=A=null,!N1(t,jZe,e)||(e.position+=17,r=Xae(t,e),r===null))return"failure";if(N1(t,Kae,e)){let o=e.position+Kae.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=Xae(t,e),A===null))return"failure"}break}case"content-type":{let o=xI(a=>a!==10&&a!==13,t,e);o=K8(o,!1,!0,a=>a===9||a===32),s=jae(o);break}case"content-transfer-encoding":{let o=xI(a=>a!==10&&a!==13,t,e);o=K8(o,!1,!0,a=>a===9||a===32),n=jae(o);break}default:xI(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Xae(t,e){D1(t[e.position-1]===34);let r=xI(A=>A!==10&&A!==13&&A!==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)}function xI(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function K8(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function N1(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}Zae.exports={multipartFormDataParser:e$e,validateBoundary:$Ze}});var LI=h((r0r,cce)=>{"use strict";var Py=bt(),{ReadableStreamFrom:r$e,isBlobLike:ece,isReadableStreamLike:A$e,readableStreamClose:s$e,createDeferredPromise:n$e,fullyReadBody:i$e,extractMimeType:o$e,utf8DecodeBytes:Ace}=Hi(),{FormData:tce}=_y(),{kState:MI}=nd(),{webidl:a$e}=Ps(),{Blob:c$e}=B("node:buffer"),X8=B("node:assert"),{isErrored:sce,isDisturbed:u$e}=B("node:stream"),{isArrayBuffer:l$e}=B("node:util/types"),{serializeAMimeType:g$e}=zn(),{multipartFormDataParser:d$e}=$ae(),Z8;try{let t=B("node:crypto");Z8=e=>t.randomInt(0,e)}catch{Z8=t=>Math.floor(Math.random(t))}var R1=new TextEncoder;function h$e(){}var nce=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ice;nce&&(ice=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!u$e(e)&&!sce(e)&&e.cancel("Response object has been garbage collected").catch(h$e)}));function oce(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ece(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?R1.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>s$e(a))},start(){},type:"bytes"}),X8(A$e(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(l$e(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(Py.isFormDataLike(t)){let a=`----formdata-undici-0${`${Z8(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=R1.encode(c+`; name="${u(l(Q))}"\r
var oCe=Object.create;var Ix=Object.defineProperty;var aCe=Object.getOwnPropertyDescriptor;var ACe=Object.getOwnPropertyNames;var cCe=Object.getPrototypeOf,uCe=Object.prototype.hasOwnProperty;var N=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var I=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},zi=(t,e)=>{for(var r in e)Ix(t,r,{get:e[r],enumerable:!0})},lCe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ACe(e))!uCe.call(t,n)&&n!==r&&Ix(t,n,{get:()=>e[n],enumerable:!(s=aCe(e,n))||s.enumerable});return t};var we=(t,e,r)=>(r=t!=null?oCe(cCe(t)):{},lCe(e||!t||!t.__esModule?Ix(r,"default",{value:t,enumerable:!0}):r,t));var YG=I(fh=>{"use strict";var jlt=N("net"),mCe=N("tls"),bx=N("http"),_G=N("https"),ECe=N("events"),Xlt=N("assert"),CCe=N("util");fh.httpOverHttp=ICe;fh.httpsOverHttp=BCe;fh.httpOverHttps=yCe;fh.httpsOverHttps=QCe;function ICe(t){var e=new Ja(t);return e.request=bx.request,e}function BCe(t){var e=new Ja(t);return e.request=bx.request,e.createSocket=HG,e.defaultPort=443,e}function yCe(t){var e=new Ja(t);return e.request=_G.request,e}function QCe(t){var e=new Ja(t);return e.request=_G.request,e.createSocket=HG,e.defaultPort=443,e}function Ja(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||bx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=GG(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}CCe.inherits(Ja,ECe.EventEmitter);Ja.prototype.addRequest=function(e,r,s,n){var i=this,o=wx({request:e},i.options,GG(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ja.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=wx({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),oc("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){oc("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){oc("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return oc("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),oc(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Ja.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function HG(t,e){var r=this;Ja.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=wx({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=mCe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function GG(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function wx(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var oc;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?oc=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)}:oc=function(){};fh.debug=oc});var Nx=I(($lt,qG)=>{qG.exports=YG()});var xt=I((edt,JG)=>{JG.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 et=I((tdt,p9)=>{"use strict";var VG=Symbol.for("undici.error.UND_ERR"),Dt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[VG]===!0}[VG]=!0},WG=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Sx=class extends Dt{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[WG]===!0}[WG]=!0},zG=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Tx=class extends Dt{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[zG]===!0}[zG]=!0},KG=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xx=class extends Dt{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[KG]===!0}[KG]=!0},jG=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Dx=class extends Dt{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jG]===!0}[jG]=!0},XG=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Rx=class extends Dt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function OBe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(QBe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function _Be(){return"allowed"}function HBe(){return"success"}function GBe(){return"success"}function YBe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function qBe(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&&yD(t.origin)&&!yD(tm(t))&&(e=null);break;case"same-origin":AB(t,tm(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function wh(t,e){return t}function JBe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wh(t.domainLookupStartTime,r),domainLookupEndTime:wh(t.domainLookupEndTime,r),connectionStartTime:wh(t.connectionStartTime,r),connectionEndTime:wh(t.connectionEndTime,r),secureConnectionStartTime:wh(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VBe(t){return wh(TBe.now(),t)}function WBe(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}}function DY(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function zBe(t){return{referrerPolicy:t.referrerPolicy}}function KBe(t){let e=t.referrerPolicy;Ju(e);let r=null;if(t.referrer==="client"){let a=bY();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=BD(r),n=BD(r,!0);s.toString().length>4096&&(s=n);let i=AB(t,s),o=em(s)&&!em(t.url);switch(e){case"origin":return n??BD(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=tm(t);return AB(s,a)?s:em(s)&&!em(a)?"no-referrer":n}default:return o?"no-referrer":n}}function BD(t,e){return Ju(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)}function em(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function jBe(t,e){if(aB===void 0)return!0;let r=RY(e);if(r==="no metadata"||r.length===0)return!0;let s=ZBe(r),n=$Be(r,s);for(let i of n){let o=i.algo,a=i.hash,A=aB.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),eye(A,a))return!0}return!1}var XBe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function RY(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=XBe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();NY.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function ZBe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function $Be(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function eye(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}function tye(t){}function AB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function rye(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function sye(t){return t.controller.state==="aborted"}function nye(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iye(t){return RBe[t.toLowerCase()]??t}function oye(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ju(typeof e=="string"),e}var aye=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function kY(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function vye(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Pye(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Oye(t,e){uB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&lB(t,Uye,i)||i.position===t.length-4&&lB(t,Lye,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_ye(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",vye(u)||(u=""),h=new Fye([d],c,{type:u})):h=Tye(Buffer.from(d)),uB(qY(A)),uB(typeof h=="string"&&qY(h)||Dye(h)),n.push(Rye(A,h,c))}}function _ye(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Sh(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xD(o,!0,!0,a=>a===9||a===32),!xye.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sh(a=>a===32||a===9,t,e),Sye(o)){case"content-disposition":{if(r=s=null,!lB(t,Mye,e)||(e.position+=17,r=WY(t,e),r===null))return"failure";if(lB(t,VY,e)){let a=e.position+VY.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=WY(t,e),s===null))return"failure"}break}case"content-type":{let a=Sh(A=>A!==10&&A!==13,t,e);a=xD(a,!1,!0,A=>A===9||A===32),n=JY(a);break}case"content-transfer-encoding":{let a=Sh(A=>A!==10&&A!==13,t,e);a=xD(a,!1,!0,A=>A===9||A===32),i=JY(a);break}default:Sh(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function WY(t,e){uB(t[e.position-1]===34);let r=Sh(s=>s!==10&&s!==13&&s!==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)}function Sh(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xD(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function lB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}zY.exports={multipartFormDataParser:Oye,validateBoundary:Pye}});var Dh=I((Ndt,iq)=>{"use strict";var nm=Oe(),{ReadableStreamFrom:Hye,isBlobLike:jY,isReadableStreamLike:Gye,readableStreamClose:Yye,createDeferredPromise:qye,fullyReadBody:Jye,extractMimeType:Vye,utf8DecodeBytes:$Y}=ln(),{FormData:XY}=sm(),{kState:xh}=ac(),{webidl:Wye}=Yr(),{Blob:zye}=N("node:buffer"),DD=N("node:assert"),{isErrored:eq,isDisturbed:Kye}=N("node:stream"),{isArrayBuffer:jye}=N("node:util/types"),{serializeAMimeType:Xye}=ks(),{multipartFormDataParser:Zye}=KY(),RD;try{let t=N("node:crypto");RD=e=>t.randomInt(0,e)}catch{RD=t=>Math.floor(Math.random(t))}var dB=new TextEncoder;function $ye(){}var tq=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,rq;tq&&(rq=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Kye(e)&&!eq(e)&&e.cancel("Response object has been garbage collected").catch($ye)}));function sq(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jY(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?dB.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>Yye(A))},start(){},type:"bytes"}),DD(Gye(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(jye(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(nm.isFormDataLike(t)){let A=`----formdata-undici-0${`${RD(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let C=dB.encode(c+`; name="${u(l(E))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=R1.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=dB.encode(`${c}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=R1.encode(`--${a}--\r
`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(ece(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Py.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:r$e(t)}if((typeof s=="string"||Py.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!sce(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:r,source:s,length:n},i]}function E$e(t,e=!1){return t instanceof ReadableStream&&(X8(!Py.isDisturbed(t),"The body has already been consumed."),X8(!t.locked,"The stream is locked.")),oce(t,e)}function f$e(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function C$e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function I$e(t){return{blob(){return UI(this,r=>{let A=rce(this);return A===null?A="":A&&(A=g$e(A)),new c$e([r],{type:A})},t)},arrayBuffer(){return UI(this,r=>new Uint8Array(r).buffer,t)},text(){return UI(this,Ace,t)},json(){return UI(this,Q$e,t)},formData(){return UI(this,r=>{let A=rce(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=d$e(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new tce;return n[MI]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new tce;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return UI(this,r=>new Uint8Array(r),t)}}}function B$e(t){Object.assign(t.prototype,I$e(t))}async function UI(t,e,r){if(a$e.brandCheck(t,r),ace(t))throw new TypeError("Body is unusable: Body has already been read");C$e(t[MI]);let A=n$e(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[MI].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await i$e(t[MI].body,n,s),A.promise)}function ace(t){let e=t[MI].body;return e!=null&&(e.stream.locked||Py.isDisturbed(e.stream))}function Q$e(t){return JSON.parse(Ace(t))}function rce(t){let e=t[MI].headersList,r=o$e(e);return r==="failure"?null:r}cce.exports={extractBody:oce,safelyExtractBody:E$e,cloneBody:f$e,mixinBody:B$e,streamRegistry:ice,hasFinalizationRegistry:nce,bodyUnusable:ace}});var Qce=h((A0r,Bce)=>{"use strict";var ze=B("node:assert"),ot=bt(),{channels:uce}=yI(),$8=U8(),{RequestContentLengthMismatchError:TE,ResponseContentLengthMismatchError:p$e,RequestAbortedError:fce,HeadersTimeoutError:m$e,HeadersOverflowError:y$e,SocketError:U1,InformationalError:vI,BodyTimeoutError:b$e,HTTPParserError:w$e,ResponseExceededMaxSizeError:D$e}=Xt(),{kUrl:Cce,kReset:jn,kClient:A3,kParser:IA,kBlocking:Gy,kRunning:Zs,kPending:N$e,kSize:lce,kWriting:od,kQueue:ic,kNoRef:Oy,kKeepAliveDefaultTimeout:R$e,kHostHeader:S$e,kPendingIdx:T$e,kRunningIdx:Ho,kError:Go,kPipelining:F1,kSocket:_I,kKeepAliveTimeoutValue:M1,kMaxHeadersSize:e3,kKeepAliveMaxTimeout:k$e,kKeepAliveTimeoutThreshold:F$e,kHeadersTimeout:x$e,kBodyTimeout:U$e,kStrictContentLength:s3,kMaxRequests:gce,kCounter:M$e,kMaxResponseSize:L$e,kOnError:v$e,kResume:id,kHTTPContext:Ice}=Xr(),ru=iae(),_$e=Buffer.alloc(0),S1=Buffer[Symbol.species],T1=ot.addListener,P$e=ot.removeAllListeners,t3;async function O$e(){let t=process.env.JEST_WORKER_ID?v8():void 0,e;try{e=await WebAssembly.compile(cae())}catch{e=await WebAssembly.compile(t||v8())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onStatus(new S1(Au.buffer,n,s))||0},wasm_on_message_begin:r=>(ze(as.ptr===r),as.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onHeaderField(new S1(Au.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onHeaderValue(new S1(Au.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(ze(as.ptr===r),as.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onBody(new S1(Au.buffer,n,s))||0},wasm_on_message_complete:r=>(ze(as.ptr===r),as.onMessageComplete()||0)}})}var r3=null,n3=O$e();n3.catch();var as=null,Au=null,k1=0,su=null,H$e=0,Hy=1,PI=2|Hy,x1=4|Hy,i3=8|H$e,o3=class{constructor(e,r,{exports:A}){ze(Number.isFinite(e[e3])&&e[e3]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(ru.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?C+=`host: ${s}\r
`:C+=t[S$e],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[F1]&&!d[jn]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return uce.sendHeaders.hasSubscribers&&uce.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?hce(E,null,t,e,d,u,C,l):ot.isBuffer(a)?hce(E,a,t,e,d,u,C,l):ot.isBlobLike(a)?typeof a.stream=="function"?Ece(E,a.stream(),t,e,d,u,C,l):W$e(E,a,t,e,d,u,C,l):ot.isStream(a)?V$e(E,a,t,e,d,u,C,l):ot.isIterable(a)?Ece(E,a,t,e,d,u,C,l):ze(!1),!0}function V$e(t,e,r,A,s,n,i,o){ze(n!==0||r[Zs]===0,"stream body cannot be pipelined");let a=!1,c=new L1({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ot.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new fce;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,ze(s.destroyed||s[od]&&r[Zs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ot.destroy(e,E):ot.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function hce(t,e,r,A,s,n,i,o){try{e?ot.isBuffer(e)&&(ze(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[jn]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(ze(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[id]()}catch(a){t(a)}}async function W$e(t,e,r,A,s,n,i,o){ze(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new TE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[jn]=!0),r[id]()}catch(a){t(a)}}async function Ece(t,e,r,A,s,n,i,o){ze(n!==0||r[Zs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{ze(a===null),s[Go]?d(s[Go]):a=g});s.on("close",c).on("drain",c);let l=new L1({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Go])throw s[Go];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var L1=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[od]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[s3])throw new TE;process.emitWarning(new TE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[jn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[IA].timeout&&r[IA].timeoutType===PI&&r[IA].timeout.refresh&&r[IA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[od]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[s3])throw new TE;process.emitWarning(new TE)}e[IA].timeout&&e[IA].timeoutType===PI&&e[IA].timeout.refresh&&e[IA].timeout.refresh(),A[id]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[od]=!1,e&&(ze(A[Zs]<=1,"pipeline should only contain this request"),s(e))}};Bce.exports=G$e});var Rce=h((s0r,Nce)=>{"use strict";var Yo=B("node:assert"),{pipeline:z$e}=B("node:stream"),Tt=bt(),{RequestContentLengthMismatchError:a3,RequestAbortedError:pce,SocketError:Yy,InformationalError:c3}=Xt(),{kUrl:v1,kReset:P1,kClient:OI,kRunning:O1,kPending:j$e,kQueue:ad,kPendingIdx:u3,kRunningIdx:oc,kError:cc,kSocket:Is,kStrictContentLength:K$e,kOnError:l3,kMaxConcurrentStreams:Dce,kHTTP2Session:ac,kResume:cd,kSize:X$e,kHTTPContext:Z$e}=Xr(),Ul=Symbol("open streams"),mce,yce=!1,_1;try{_1=B("node:http2")}catch{_1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$$e,HTTP2_HEADER_METHOD:eet,HTTP2_HEADER_PATH:tet,HTTP2_HEADER_SCHEME:ret,HTTP2_HEADER_CONTENT_LENGTH:Aet,HTTP2_HEADER_EXPECT:set,HTTP2_HEADER_STATUS:net}}=_1;function iet(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function oet(t,e){t[Is]=e,yce||(yce=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_1.connect(t[v1],{createConnection:()=>e,peerMaxConcurrentStreams:t[Dce]});r[Ul]=0,r[OI]=t,r[Is]=e,Tt.addListener(r,"error",cet),Tt.addListener(r,"frameError",uet),Tt.addListener(r,"end",get),Tt.addListener(r,"goaway",det),Tt.addListener(r,"close",function(){let{[OI]:s}=this,{[Is]:n}=s,i=this[Is][cc]||this[cc]||new Yy("closed",Tt.getSocketInfo(n));if(s[ac]=null,s.destroyed){Yo(s[j$e]===0);let o=s[ad].splice(s[oc]);for(let a=0;a<o.length;a++){let c=o[a];Tt.errorRequest(s,c,i)}}}),r.unref(),t[ac]=r,e[ac]=r,Tt.addListener(e,"error",function(s){Yo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cc]=s,this[OI][l3](s)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Yy("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let s=this[cc]||new Yy("closed",Tt.getSocketInfo(this));t[Is]=null,this[ac]!=null&&this[ac].destroy(s),t[u3]=t[oc],Yo(t[O1]===0),t.emit("disconnect",t[v1],[t],s),t[cd]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Eet(t,...s)},resume(){aet(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function aet(t){let e=t[Is];e?.destroyed===!1&&(t[X$e]===0&&t[Dce]===0?(e.unref(),t[ac].unref()):(e.ref(),t[ac].ref()))}function cet(t){Yo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Is][cc]=t,this[OI][l3](t)}function uet(t,e,r){if(r===0){let A=new c3(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Is][cc]=A,this[OI][l3](A)}}function get(){let t=new Yy("other side closed",Tt.getSocketInfo(this[Is]));this.destroy(t),Tt.destroy(this[Is],t)}function det(t){let e=this[cc]||new Yy(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[OI];if(r[Is]=null,r[Z$e]=null,this[ac]!=null&&(this[ac].destroy(e),this[ac]=null),Tt.destroy(this[Is],e),r[oc]<r[ad].length){let A=r[ad][r[oc]];r[ad][r[oc]++]=null,Tt.errorRequest(r,A,e),r[u3]=r[oc]}Yo(r[O1]===0),r.emit("disconnect",r[v1],[r],e),r[cd]()}function het(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Eet(t,e){let r=t[ac],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:E}=t[v1];l[$$e]=n||`${d}${E?`:${E}`:""}`,l[eet]=A;let C=k=>{e.aborted||e.completed||(k=k||new pce,Tt.errorRequest(t,e,k),g!=null&&Tt.destroy(g,k),Tt.destroy(u,k),t[ad][t[oc]++]=null,t[cd]())};try{e.onConnect(C)}catch(k){Tt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Ul],t[ad][t[oc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Ul],t[ad][t[oc]++]=null}),g.once("close",()=>{r[Ul]-=1,r[Ul]===0&&r.unref()}),!0;l[tet]=s,l[ret]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let I=Tt.bodyLength(u);if(Tt.isFormDataLike(u)){mce??=LI().extractBody;let[k,J]=mce(u);l["content-type"]=J,u=k.stream,I=k.length}if(I==null&&(I=e.contentLength),(I===0||!Q)&&(I=null),het(A)&&I>0&&e.contentLength!=null&&e.contentLength!==I){if(t[K$e])return Tt.errorRequest(t,e,new a3),!1;process.emitWarning(new a3)}I!=null&&(Yo(u,"no body must not have content length"),l[Aet]=`${I}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[set]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[Get]=a??3e5,this[Het]=s??3e5,this[Yet]=p??!0,this[qet]=k,this[E3]=j,this[ld]=null,this[jet]=$>-1?$:-1,this[Xet]=Ne??100,this[_A]=null,this[uc]=[],this[Ll]=0,this[lc]=0,this[Wy]=le=>C3(this,le),this[Ket]=le=>Oce(this,le)}get pipelining(){return this[q1]}set pipelining(e){this[q1]=e,this[Wy](!0)}get[Ky](){return this[uc].length-this[lc]}get[jy](){return this[lc]-this[Ll]}get[zy](){return this[uc].length-this[Ll]}get[Uet](){return!!this[_A]&&!this[GI]&&!this[_A].destroyed}get[h3](){return!!(this[_A]?.busy(null)||this[zy]>=(Pce(this)||1)||this[Ky]>0)}[xet](e){Hce(this),this.once("connect",e)}[zet](e,r){let A=e.origin||this[iu].origin,s=new Det(A,e,r);return this[uc].push(s),this[FE]||(kE.bodyLength(s.body)==null&&kE.isIterable(s.body)?(this[FE]=1,queueMicrotask(()=>C3(this))):this[Wy](!0)),this[FE]&&this[gd]!==2&&this[h3]&&(this[gd]=2),this[gd]<2}async[Vet](){return new Promise(e=>{this[zy]?this[ld]=e:e(null)})}async[Wet](e){return new Promise(r=>{let A=this[uc].splice(this[lc]);for(let n=0;n<A.length;n++){let i=A[n];kE.errorRequest(this,i,e)}let s=()=>{this[ld]&&(this[ld](),this[ld]=null),r(null)};this[_A]?(this[_A].destroy(e,s),this[_A]=null):queueMicrotask(s),this[Wy]()})}},ett=Y1();function Oce(t,e){if(t[jy]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ml(t[lc]===t[Ll]);let r=t[uc].splice(t[Ll]);for(let A=0;A<r.length;A++){let s=r[A];kE.errorRequest(t,s,e)}Ml(t[zy]===0)}}async function Hce(t){Ml(!t[GI]),Ml(!t[_A]);let{host:e,hostname:r,protocol:A,port:s}=t[iu];if(r[0]==="["){let n=r.indexOf("]");Ml(n!==-1);let i=r.substring(1,n);Ml(_ce.isIP(i)),r=i}t[GI]=!0,HI.beforeConnect.hasSubscribers&&HI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy]});try{let n=await new Promise((i,o)=>{t[Jy]({host:e,hostname:r,protocol:A,port:s,servername:t[ud],localAddress:t[Vy]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){kE.destroy(n.on("error",Lce),new Tet);return}Ml(n);try{t[_A]=n.alpnProtocol==="h2"?await $et(t,n):await Zet(t,n)}catch(i){throw n.destroy().on("error",Lce),i}t[GI]=!1,n[Jet]=0,n[E3]=t[E3],n[Fet]=t,n[Let]=null,HI.connected.hasSubscribers&&HI.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy],socket:n}),t.emit("connect",t[iu],[t])}catch(n){if(t.destroyed)return;if(t[GI]=!1,HI.connectError.hasSubscribers&&HI.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ml(t[jy]===0);t[Ky]>0&&t[uc][t[lc]].servername===t[ud];){let i=t[uc][t[lc]++];kE.errorRequest(t,i,n)}else Oce(t,n);t.emit("connectionError",t[iu],[t],n)}t[Wy]()}function vce(t){t[gd]=0,t.emit("drain",t[iu],[t])}function C3(t,e){t[FE]!==2&&(t[FE]=2,ttt(t,e),t[FE]=0,t[Ll]>256&&(t[uc].splice(0,t[Ll]),t[lc]-=t[Ll],t[Ll]=0))}function ttt(t,e){for(;;){if(t.destroyed){Ml(t[Ky]===0);return}if(t[ld]&&!t[zy]){t[ld](),t[ld]=null;return}if(t[_A]&&t[_A].resume(),t[h3])t[gd]=2;else if(t[gd]===2){e?(t[gd]=1,queueMicrotask(()=>vce(t))):vce(t);continue}if(t[Ky]===0||t[jy]>=(Pce(t)||1))return;let r=t[uc][t[lc]];if(t[iu].protocol==="https:"&&t[ud]!==r.servername){if(t[jy]>0)return;t[ud]=r.servername,t[_A]?.destroy(new Ret("servername changed"),()=>{t[_A]=null,C3(t)})}if(t[GI])return;if(!t[_A]){Hce(t);return}if(t[_A].destroyed||t[_A].busy(r))return;!r.aborted&&t[_A].write(r)?t[lc]++:t[uc].splice(t[lc],1)}}Gce.exports=f3});var I3=h((c0r,Yce)=>{"use strict";var J1=class{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)}};Yce.exports=class{constructor(){this.head=this.tail=new J1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new J1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Jce=h((u0r,qce)=>{var{kFree:rtt,kConnected:Att,kPending:stt,kQueued:ntt,kRunning:itt,kSize:ott}=Xr(),xE=Symbol("pool"),B3=class{constructor(e){this[xE]=e}get connected(){return this[xE][Att]}get free(){return this[xE][rtt]}get pending(){return this[xE][stt]}get queued(){return this[xE][ntt]}get running(){return this[xE][itt]}get size(){return this[xE][ott]}};qce.exports=B3});var w3=h((l0r,tue)=>{"use strict";var att=NI(),ctt=I3(),{kConnected:Q3,kSize:Vce,kRunning:Wce,kPending:zce,kQueued:Xy,kBusy:utt,kFree:ltt,kUrl:gtt,kClose:dtt,kDestroy:htt,kDispatch:Ett}=Xr(),ftt=Jce(),Kn=Symbol("clients"),bn=Symbol("needDrain"),Zy=Symbol("queue"),p3=Symbol("closed resolve"),m3=Symbol("onDrain"),jce=Symbol("onConnect"),Kce=Symbol("onDisconnect"),Xce=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};oge.exports=wY});var cT=h((P0r,gge)=>{"use strict";var cge=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:GAt}=Xt(),YAt=JI();lge()===void 0&&uge(new YAt);function uge(t){if(!t||typeof t.dispatch!="function")throw new GAt("Argument agent must implement Agent");Object.defineProperty(globalThis,cge,{value:t,writable:!0,enumerable:!1,configurable:!1})}function lge(){return globalThis[cge]}gge.exports={setGlobalDispatcher:uge,getGlobalDispatcher:lge}});var uT=h((H0r,dge)=>{"use strict";dge.exports=class{#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 Ege=h((G0r,hge)=>{"use strict";var qAt=G1();hge.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new qAt(r,i,s,n);return r(o,a)}}});var Cge=h((Y0r,fge)=>{"use strict";var JAt=$1();fge.exports=t=>e=>function(A,s){return e(A,new JAt({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var Bge=h((q0r,Ige)=>{"use strict";var VAt=bt(),{InvalidArgumentError:WAt,RequestAbortedError:zAt}=Xt(),jAt=uT(),DY=class extends jAt{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new WAt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=VAt.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new zAt(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function KAt({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new DY({maxSize:n},s);return e(A,i)}}Ige.exports=KAt});var mge=h((J0r,pge)=>{"use strict";var{isIP:XAt}=B("node:net"),{lookup:ZAt}=B("node:dns"),$At=uT(),{InvalidArgumentError:tB,InformationalError:est}=Xt(),Qge=Math.pow(2,31)-1,NY=class{#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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={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,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new est("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){ZAt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===Qge?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===Qge?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new RY(this,e,r)}},RY=class extends $At{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":tEe(n)&&(r[s]=n);break;case"id":rEe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&tEe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&rEe(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,event:void 0,id:void 0,retry:void 0}}};AEe.exports={EventSourceStream:d4}});var gEe=h((mmr,lEe)=>{"use strict";var{pipeline:aat}=B("node:stream"),{fetching:cat}=lb(),{makeRequest:uat}=sB(),{webidl:Hl}=Ps(),{EventSourceStream:lat}=sEe(),{parseMIMEType:gat}=zn(),{createFastMessageEvent:dat}=uB(),{isNetworkError:nEe}=cb(),{delay:hat}=l4(),{kEnumerableProperty:zE}=bt(),{environmentSettingsObject:iEe}=Hi(),oEe=!1,aEe=3e3,yb=0,cEe=1,bb=2,Eat="anonymous",fat="use-credentials",EB=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=yb;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Hl.util.markAsUncloneable(this);let A="EventSource constructor";Hl.argumentLengthCheck(arguments,1,A),oEe||(oEe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hl.converters.USVString(e,A,"url"),r=Hl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:aEe};let s=iEe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Eat;r.withCredentials&&(i=fat,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=iEe.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=uat(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===bb)return;this.#A=yb;let e={request:this.#s,dispatcher:this.#o},r=A=>{nEe(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(nEe(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?gat(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=cEe,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new lat({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(dat(a.type,a.options))}});aat(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=cat(e)}async#c(){this.#A!==bb&&(this.#A=yb,this.dispatchEvent(new Event("error")),await hat(this.#i.reconnectionTime),this.#A===yb&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Hl.brandCheck(this,t),this.#A!==bb&&(this.#A=bb,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},uEe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:cEe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bb,writable:!1}};Object.defineProperties(EB,uEe);Object.defineProperties(EB.prototype,uEe);Object.defineProperties(EB.prototype,{close:zE,onerror:zE,onmessage:zE,onopen:zE,readyState:zE,url:zE,withCredentials:zE});Hl.converters.EventSourceInitDict=Hl.dictionaryConverter([{key:"withCredentials",converter:Hl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hl.converters.any}]);lEe.exports={EventSource:EB,defaultReconnectionTime:aEe}});var fEe=h((ymr,Ze)=>{"use strict";var Cat=YI(),dEe=Sy(),Iat=qI(),Bat=uue(),Qat=JI(),pat=_3(),mat=Uue(),yat=Oue(),hEe=Xt(),ZT=bt(),{InvalidArgumentError:XT}=hEe,fB=Dle(),bat=ky(),wat=BY(),Dat=age(),Nat=mY(),Rat=iY(),Sat=$1(),{getGlobalDispatcher:EEe,setGlobalDispatcher:Tat}=cT(),kat=uT(),Fat=G1(),xat=Y1();Object.assign(dEe.prototype,fB);Ze.exports.Dispatcher=dEe;Ze.exports.Client=Cat;Ze.exports.Pool=Iat;Ze.exports.BalancedPool=Bat;Ze.exports.Agent=Qat;Ze.exports.ProxyAgent=pat;Ze.exports.EnvHttpProxyAgent=mat;Ze.export Line truncated
\r
`),wut=/\r\n/g,Dut=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function QB(t){dfe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=gfe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=gfe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new yut(but),this.ss.on("info",function(r,A,s,n){A&&!e.maxed&&(e.nread+n-s>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-s,e.buffer+=A.toString("binary",s,n)),r&&e._finish()})}mut(QB,dfe);QB.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};QB.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};QB.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};QB.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(wut),e=t.length,r,A;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&A){this.header[A][this.header[A].length-1]+=t[s];continue}let n=t[s].indexOf(":");if(n===-1||n===0)return;if(r=Dut.exec(t[s]),A=r[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};hfe.exports=QB});var tq=h((Eyr,Cfe)=>{"use strict";var eq=B("node:stream").Writable,Nut=B("node:util").inherits,Rut=Z4(),ffe=ufe(),Sut=Efe(),Tut=45,kut=Buffer.from("-"),Fut=Buffer.from(`\r
`),xut=function(){};function fc(t){if(!(this instanceof fc))return new fc(t);if(eq.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Sut(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}Nut(fc,eq);fc.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else eq.prototype.emit.apply(this,arguments)};fc.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new ffe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(t);if(!this._inHeader&&A!==void 0&&A<t.length)t=t.slice(A);else return r()}this._firstWrite&&(this._bparser.push(Fut),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};fc.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};fc.prototype.setBoundary=function(t){let e=this;this._bparser=new Rut(`\r
--`+t),this._bparser.on("info",function(r,A,s,n){e._oninfo(r,A,s,n)})};fc.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",xut),this._part.resume())};fc.prototype._oninfo=function(t,e,r,A){let s,n=this,i=0,o,a=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+i<A;)if(e[r+i]===Tut)++i,++this._dashes;else{this._dashes&&(s=kut),this._dashes=0;break}if(this._dashes===2&&(r+i<A&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+i,A)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new ffe(this._partOpts),this._part._read=function(c){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<A&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(a=this._part.push(s)),a=this._part.push(e.slice(r,A)),a||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(r,A)),!this._inHeader&&o!==void 0&&o<A&&this._oninfo(!1,e,r+o,A))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==A&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};fc.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Cfe.exports=fc});var dk=h((rq,Qfe)=>{"use strict";var Ife=new TextDecoder("utf-8"),Bfe=new Map([["utf-8",Ife],["utf8",Ife]]);function Uut(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return Tb.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Tb.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Tb.utf16le;case"base64":return Tb.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return Tb.other.bind(t)}}var Tb={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),Bfe.has(rq.toString()))try{return Bfe.get(rq).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function Mut(t,e,r){return t&&Uut(r)(t,e)}Qfe.exports=Mut});var sq=h((fyr,wfe)=>{"use strict";var hk=dk(),pfe=/%[a-fA-F0-9][a-fA-F0-9]/g,Lut={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function Mlt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy")??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(plt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function Llt(){return"allowed"}function vlt(){return"success"}function _lt(){return"success"}function Plt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function Olt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&gq(t.origin)&&!gq(xb(t))&&(e=null);break;case"same-origin":Bk(t,xb(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function Hlt(t){return blt.now()}function Glt(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}}function Ylt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function qlt(t){return{referrerPolicy:t.referrerPolicy}}function Jlt(t){let e=t.referrerPolicy;wB(e);let r=null;if(t.referrer==="client"){let o=ylt();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=uq(r),s=uq(r,!0);A.toString().length>4096&&(A=s);let n=Bk(t,A),i=Fb(A)&&!Fb(t.url);switch(e){case"origin":return s??uq(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=xb(t);return Bk(A,o)?A:Fb(A)&&!Fb(o)?"no-referrer":s}default:return i?"no-referrer":s}}function uq(t,e){return wB(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Fb(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function Vlt(t,e){if(Ik===void 0)return!0;let r=Zfe(e);if(r==="no metadata"||r.length===0)return!0;let A=zlt(r),s=jlt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=Ik.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),Klt(a,o))return!0}return!1}var Wlt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Zfe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=Wlt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();zfe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function zlt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function jlt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function Klt(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}function Xlt(t){}function Bk(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Zlt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function $lt(t){return t.controller.state==="aborted"}function egt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var dq={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(dq,null);function tgt(t){return dq[t.toLowerCase()]??t}function rgt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wB(typeof e=="string"),e}var Agt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function sgt(t,e,r){let A={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:i,target:o}=A,a=o(),c=a.length;if(n>=c)return{value:void 0,done:!0};let u=a[n];return A.index=n+1,ngt(u,i)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,Agt),Object.setPrototypeOf({},s)}function ngt(t,e){let r;switch(e){case"key":{r=t[0];break}case"va Line truncated
`||t===" "||t===" "}function hq(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&nCe(t[A]);A++);if(r)for(;s>0&&nCe(t[s]);s--);return t.slice(A,s+1)}function iCe(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function bgt(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&iCe(t[A]);A++);if(r)for(;s>0&&iCe(t[s]);s--);return t.slice(A,s+1)}uCe.exports={dataURLProcessor:Qgt,URLSerializer:oCe,collectASequenceOfCodePoints:mk,collectASequenceOfCodePointsFast:DB,stringPercentDecode:aCe,parseMIMEType:Eq,collectAnHTTPQuotedString:cCe,serializeAMimeType:ygt}});var yk=h((Ryr,ECe)=>{"use strict";var{Blob:dCe,File:lCe}=B("buffer"),{types:fq}=B("util"),{kState:ji}=ql(),{isBlobLike:hCe}=Zo(),{webidl:nr}=Dn(),{parseMIMEType:wgt,serializeAMimeType:Dgt}=Cc(),{kEnumerableProperty:gCe}=Yt(),Ngt=new TextEncoder,Ub=class t extends dCe{constructor(e,r,A={}){nr.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=nr.converters["sequence<BlobPart>"](e),r=nr.converters.USVString(r),A=nr.converters.FilePropertyBag(A);let s=r,n=A.type,i;e:{if(n){if(n=wgt(n),n==="failure"){n="";break e}n=Dgt(n).toLowerCase()}i=A.lastModified}super(Rgt(e,A),{type:n}),this[ji]={name:s,lastModified:i,type:n}}get name(){return nr.brandCheck(this,t),this[ji].name}get lastModified(){return nr.brandCheck(this,t),this[ji].lastModified}get type(){return nr.brandCheck(this,t),this[ji].type}},Cq=class t{constructor(e,r,A={}){let s=r,n=A.type,i=A.lastModified??Date.now();this[ji]={blobLike:e,name:s,type:n,lastModified:i}}stream(...e){return nr.brandCheck(this,t),this[ji].blobLike.stream(...e)}arrayBuffer(...e){return nr.brandCheck(this,t),this[ji].blobLike.arrayBuffer(...e)}slice(...e){return nr.brandCheck(this,t),this[ji].blobLike.slice(...e)}text(...e){return nr.brandCheck(this,t),this[ji].blobLike.text(...e)}get size(){return nr.brandCheck(this,t),this[ji].blobLike.size}get type(){return nr.brandCheck(this,t),this[ji].blobLike.type}get name(){return nr.brandCheck(this,t),this[ji].name}get lastModified(){return nr.brandCheck(this,t),this[ji].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(Ub.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:gCe,lastModified:gCe});nr.converters.Blob=nr.interfaceConverter(dCe);nr.converters.BlobPart=function(t,e){if(nr.util.Type(t)==="Object"){if(hCe(t))return nr.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||fq.isAnyArrayBuffer(t))return nr.converters.BufferSource(t,e)}return nr.converters.USVString(t,e)};nr.converters["sequence<BlobPart>"]=nr.sequenceConverter(nr.converters.BlobPart);nr.converters.FilePropertyBag=nr.dictionaryConverter([{key:"lastModified",converter:nr.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:nr.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=nr.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Rgt(t,e){let r=[];for(let A of t)if(typeof A=="string"){let s=A;e.endings==="native"&&(s=Sgt(s)),r.push(Ngt.encode(s))}else fq.isAnyArrayBuffer(A)||fq.isTypedArray(A)?A.buffer?r.push(new Uint8Array(A.buffer,A.byteOffset,A.byteLength)):r.push(new Uint8Array(A)):hCe(A)&&r.push(A);return r}function Sgt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function Tgt(t){return lCe&&t instanceof lCe||t instanceof Ub||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}ECe.exports={File:Ub,FileLike:Cq,isFileLike:Tgt}});var wk=h((Syr,QCe)=>{"use strict";var{isBlobLike:bk,toUSVString:kgt,makeIterator:Iq}=Zo(),{kState:tn}=ql(),{File:BCe,FileLike:fCe,isFileLike:Fgt}=yk(),{webidl:hr}=Dn(),{Blob:xgt,File:Bq}=B("buffer"),CCe=Bq??BCe,NB=class t{constructor(e){if(e!==void 0)throw hr.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[tn]=[]}append(e,r,A=void 0){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!bk(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=hr.converters.USVString(e),r=bk(r)?hr.converters.Blob(r,{strict:!1}):hr.converters.USVString(r),A=arguments.length===3?hr.converters.USVString(A):void 0;let s=ICe(e,r,A);this[tn].push(s)}delete(e){hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=hr.converters.USVString(e),this[tn]=this[tn].filter(r=>r.name!==e)}get(e){hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=hr.converters.USVString(e);let r=this[tn].findIndex(A=>A.name===e);return r===-1?null:this[tn][r].value}getAll(e){return hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=hr.converters.USVString(e),this[tn].filter(r=>r.name===e).map(r=>r.value)}has(e){return hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=hr.converters.USVString(e),this[tn].findIndex(r=>r.name===e)!==-1}set(e,r,A=void 0){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!bk(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=hr.converters.USVString(e),r=bk(r)?hr.converters.Blob(r,{strict:!1}):hr.converters.USVString(r),A=arguments.length===3?kgt(A):void 0;let s=ICe(e,r,A),n=this[tn].findIndex(i=>i.name===e);n!==-1?this[tn]=[...this[tn].slice(0,n),s,...this[tn].slice(n+1).filter(i=>i.name!==e)]:this[tn].push(s)}entries(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","key")}values(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[A,s]of this)e.apply(r,[s,A,this])}};NB.prototype[Symbol.iterator]=NB.prototype.entries;Object.defineProperties(NB.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function ICe(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Fgt(e)||(e=e instanceof xgt?new CCe([e],"blob",{type:e.type}):new fCe(e,"blob",{type:e.type})),r!==void 0){let A={type:e.type,lastModified:e.lastModified};e=Bq&&e instanceof Bq||e instanceof BCe?new CCe([e],r,A):new fCe(e,r,A)}return{name:t,value:e}}QCe.exports={FormData:NB}});var Mb=h((Tyr,SCe)=>{"use strict";var Ugt=_fe(),RB=Yt(),{ReadableStreamFrom:Mgt,isBlobLike:pCe,isReadableStreamLike:Lgt,readableStreamClose:vgt,createDeferredPromise:_gt,fullyReadBody:Pgt}=Zo(),{FormData:mCe}=wk(),{kState:Vl}=ql(),{webidl:Qq}=Dn(),{DOMException:wCe,structuredClone:Ogt}=Sd(),{Blob:Hgt,File:Ggt}=B("buffer"),{kBodyUsed:Ygt}=Or(),pq=B("assert"),{isErrored:qgt}=Yt(),{isUint8Array:DCe,isArrayBuffer:Jgt}=B("util/types"),{File:Vgt}=yk(),{parseMIMEType:Wgt,serializeAMimeType:zgt}=Cc(),mq;try{let t=B("node:crypto");mq=e=>t.randomInt(0,e)}catch{mq=t=>Math.floor(Math.random(t))}var Jl=globalThis.ReadableStream,yCe=Ggt??Vgt,Dk=new TextEncoder,jgt=new TextDecoder;function NCe(t,e=!1){Jl||(Jl=B("stream/web").ReadableStream);let r=null;t instanceof Jl?r=t:pCe(t)?r=t.stream():r=new Jl({async pull(a){a.enqueue(typeof s=="string"?Dk.encode(s):s),queueMicrotask(()=>vgt(a))},start(){},type:void 0}),pq(Lgt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(Jgt(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(RB.isFormDataLike(t)){let a=`----formdata-undici-0${`${mq(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=Dk.encode(c+`; name="${u(l(Q))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=Dk.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=Dk.encode(`--${a}--`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i="multipart/form-data; boundary="+a}else if(pCe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Jl?t:Mgt(t)}if((typeof s=="string"||RB.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new Jl({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();return l?queueMicrotask(()=>{c.close()}):qgt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await a.return()},type:void 0})}return[{stream:r,source:s,length:n},i]}function Kgt(t,e=!1){return Jl||(Jl=B("stream/web").ReadableStream),t instanceof Jl&&(pq(!RB.isDisturbed(t),"The body has already been consumed."),pq(!t.locked,"The stream is locked.")),NCe(t,e)}function Xgt(t){let[e,r]=t.stream.tee(),A=Ogt(r,{transfer:[r]}),[,s]=A.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*bCe(t){if(t)if(DCe(t))yield t;else{let e=t.stream;if(RB.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[Ygt]=!0,yield*e}}function yq(t){if(t.aborted)throw new wCe("The operation was aborted.","AbortError")}function Zgt(t){return{blob(){return Nk(this,r=>{let A=rdt(this);return A==="failure"?A="":A&&(A=zgt(A)),new Hgt([r],{type:A})},t)},arrayBuffer(){return Nk(this,r=>new Uint8Array(r).buffer,t)},text(){return Nk(this,RCe,t)},json(){return Nk(this,tdt,t)},async formData(){Qq.brandCheck(this,t),yq(this[Vl]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let A={};for(let[o,a]of this.headers)A[o.toLowerCase()]=a;let s=new mCe,n;try{n=new Ugt({headers:A,preservePath:!0})}catch(o){throw new wCe(`${o}`,"AbortError")}n.on("field",(o,a)=>{s.append(o,a)}),n.on("file",(o,a,c,u,l)=>{let g=[];if(u==="base64"||u.toLowerCase()==="base64"){let d="";a.on("data",E=>{d+=E.toString().replace(/[\r\n]/gm,"");let C=d.length-d.length%4;g.push(Buffer.from(d.slice(0,C),"base64")),d=d.slice(C)}),a.on("end",()=>{g.push(Buffer.from(d,"base64")),s.append(o,new yCe(g,c,{type:l}))})}else a.on("data",d=>{g.push(d)}),a.on("end",()=>{s.append(o,new yCe(g,c,{type:l}))})});let i=new Promise((o,a)=>{n.on("finish",o),n.on("error",c=>a(new TypeError(c)))});if(this.body!==null)for await(let o of bCe(this[Vl].body))n.write(o);return n.end(),await i,s}else if(/application\/x-www-form-urlencoded/.test(r)){let A;try{let n="",i=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of bCe(this[Vl].body)){if(!DCe(o))throw new TypeError("Expected Uint8Array chunk");n+=i.decode(o,{stream:!0})}n+=i.decode(),A=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let s=new mCe;for(let[n,i]of A)s.append(n,i);return s}else throw await Promise.resolve(),yq(this[Vl]),Qq.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function $gt(t){Object.assign(t.prototype,Zgt(t))}async function Nk(t,e,r){if(Qq.brandCheck(t,r),yq(t[Vl]),edt(t[Vl].body))throw new TypeError("Body is unusable");let A=_gt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[Vl].body==null?(n(new Uint8Array),A.promise):(await Pgt(t[Vl].body,n,s),A.promise)}function edt(t){return t!=null&&(t.stream.locked||RB.isDisturbed(t.stream))}function RCe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),jgt.decode(t))}function tdt(t){return JSON.parse(RCe(t))}function rdt(t){let{headersList:e}=t[Vl],r=e.get("content-type");return r===null?"failure":Wgt(r)}SCe.exports={extractBody:NCe,safelyExtractBody:Kgt,cloneBody:Xgt,mixinBody:$gt}});var xCe=h((kyr,FCe)=>{"use strict";var{InvalidArgumentError:Sr,NotSupportedError:Adt}=br(),Wl=B("assert"),{kHTTP2BuildRequest:sdt,kHTTP2CopyHeaders:ndt,kHTTP1BuildRequest:idt}=Or(),ei=Yt(),TCe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,kCe=/[^\t\x20-\x7e\x80-\xff]/,odt=/[^\u0021-\u00ff]/,Ic=Symbol("handler"),ZA={},bq;try{let t=B("diagnostics_channel");ZA.create=t.channel("undici:request:create"),ZA.bodySent=t.channel("undici:request:bodySent"),ZA.headers=t.channel("undici:request:headers"),ZA.trailers=t.channel("undici:request:trailers"),ZA.error=t.channel("undici:request:error")}catch{ZA.create={hasSubscribers:!1},ZA.bodySent={hasSubscribers:!1},ZA.headers={hasSubscribers:!1},ZA.trailers={hasSubscribers:!1},ZA.error={hasSubscribers:!1}}var wq=class t{constructor(e,{path:r,method:A,body:s,headers:n,query:i,idempotent:o,blocking:a,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:g,throwOnError:d,expectContinue:E},C){if(typeof r!="string")throw new Sr("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("httpsLine truncated
`),this.body=Q.stream,this.contentLength=Q.length}else ei.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);ei.validateHandler(C,A,c),this.servername=ei.getServerName(this.host),this[Ic]=C,ZA.create.hasSubscribers&&ZA.create.publish({request:this})}onBodySent(e){if(this[Ic].onBodySent)try{return this[Ic].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(ZA.bodySent.hasSubscribers&&ZA.bodySent.publish({request:this}),this[Ic].onRequestSent)try{return this[Ic].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Wl(!this.aborted),Wl(!this.completed),this.error)e(this.error);else return this.abort=e,this[Ic].onConnect(e)}onHeaders(e,r,A,s){Wl(!this.aborted),Wl(!this.completed),ZA.headers.hasSubscribers&&ZA.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Ic].onHeaders(e,r,A,s)}catch(n){this.abort(n)}}onData(e){Wl(!this.aborted),Wl(!this.completed);try{return this[Ic].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,A){return Wl(!this.aborted),Wl(!this.completed),this[Ic].onUpgrade(e,r,A)}onComplete(e){this.onFinally(),Wl(!this.aborted),this.completed=!0,ZA.trailers.hasSubscribers&&ZA.trailers.publish({request:this,trailers:e});try{return this[Ic].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),ZA.error.hasSubscribers&&ZA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ic].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return Lb(this,e,r),this}static[idt](e,r,A){return new t(e,r,A)}static[sdt](e,r,A){let s=r.headers;r={...r,headers:null};let n=new t(e,r,A);if(n.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Sr("headers array must be even");for(let i=0;i<s.length;i+=2)Lb(n,s[i],s[i+1],!0)}else if(s&&typeof s=="object"){let i=Object.keys(s);for(let o=0;o<i.length;o++){let a=i[o];Lb(n,a,s[a],!0)}}else if(s!=null)throw new Sr("headers must be an object or an array");return n}static[ndt](e){let r=e.split(`\r
`),A={};for(let s of r){let[n,i]=s.split(": ");i==null||i.length===0||(A[n]?A[n]+=`,${i}`:A[n]=i)}return A}};function Af(t,e,r){if(e&&typeof e=="object")throw new Sr(`invalid ${t} header`);if(e=e!=null?`${e}`:"",kCe.exec(e)!==null)throw new Sr(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function Lb(t,e,r,A=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Sr(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(kCe.exec(r)!==null)throw new Sr(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Sr("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,A?t.headers[e]=Af(e,r,A):t.headers+=Af(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Sr("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Sr("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Sr("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Sr("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new Adt("expect header not supported");if(TCe.exec(e)===null)throw new Sr("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)A?t.headers[e]?t.headers[e]+=`,${Af(e,r[s],A)}`:t.headers[e]=Af(e,r[s],A):t.headers+=Af(e,r[s]);else A?t.headers[e]=Af(e,r,A):t.headers+=Af(e,r)}}}FCe.exports=wq});var Rk=h((Fyr,UCe)=>{"use strict";var adt=B("events"),Dq=class extends adt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};UCe.exports=Dq});var _b=h((xyr,MCe)=>{"use strict";var cdt=Rk(),{ClientDestroyedError:Nq,ClientClosedError:udt,InvalidArgumentError:SB}=br(),{kDestroy:ldt,kClose:gdt,kDispatch:Rq,kInterceptors:sf}=Or(),TB=Symbol("destroyed"),vb=Symbol("closed"),zl=Symbol("onDestroyed"),kB=Symbol("onClosed"),Sk=Symbol("Intercepted Dispatch"),Sq=class extends cdt{constructor(){super(),this[TB]=!1,this[zl]=null,this[vb]=!1,this[kB]=[]}get destroyed(){return this[TB]}get closed(){return this[vb]}get interceptors(){return this[sf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[sf][r]!="function")throw new SB("interceptor must be an function")}this[sf]=e}close(e){if(e===void 0)return new Promise((A,s)=>{this.close((n,i)=>n?s(n):A(i))});if(typeof e!="function")throw new SB("invalid callback");if(this[TB]){queueMicrotask(()=>e(new Nq,null));return}if(this[vb]){this[kB]?this[kB].push(e):queueMicrotask(()=>e(null,null));return}this[vb]=!0,this[kB].push(e);let r=()=>{let A=this[kB];this[kB]=null;for(let s=0;s<A.length;s++)A[s](null,null)};this[gdt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,n)=>{this.destroy(e,(i,o)=>i?n(i):s(o))});if(typeof r!="function")throw new SB("invalid callback");if(this[TB]){this[zl]?this[zl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Nq),this[TB]=!0,this[zl]=this[zl]||[],this[zl].push(r);let A=()=>{let s=this[zl];this[zl]=null;for(let n=0;n<s.length;n++)s[n](null,null)};this[ldt](e).then(()=>{queueMicrotask(A)})}[Sk](e,r){if(!this[sf]||this[sf].length===0)return this[Sk]=this[Rq],this[Rq](e,r);let A=this[Rq].bind(this);for(let s=this[sf].length-1;s>=0;s--)A=this[sf][s](A);return this[Sk]=A,A(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new SB("handler must be an object");try{if(!e||typeof e!="object")throw new SB("opts must be an object.");if(this[TB]||this[zl])throw new Nq;if(this[vb])throw new udt;return this[Sk](e,r)}catch(A){if(typeof r.onError!="function")throw new SB("invalid onError method");return r.onError(A),!1}}};MCe.exports=Sq});var Pb=h((Lyr,_Ce)=>{"use strict";var ddt=B("net"),LCe=B("assert"),vCe=Yt(),{InvalidArgumentError:hdt,ConnectTimeoutError:Edt}=br(),Tq,kq;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?kq=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let A=this._sessionCache.get(r);A!==void 0&&A.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:kq=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:A}=this._sessionCache.keys().next();this._sessionCache.delete(A)}this._sessionCache.set(e,r)}}};function fdt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:A,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new hdt("maxCachedSessions must be a positive integer or zero");let n={path:r,...s},i=new kq(e??100);return A=A??1e4,t=t??!1,function({h Line truncated
`,this[tIe]=a??3e5,this[eIe]=s??3e5,this[Jb]=p??!0,this[Vdt]=k,this[Vb]=j,this[kd]=null,this[AIe]=$>-1?$:-1,this[Bu]="h1",this[Xi]=null,this[vk]=Ne?{openStreams:0,maxConcurrentStreams:K??100}:null,this[sIe]=`${this[Gs].hostname}${this[Gs].port?`:${this[Gs].port}`:""}`,this[Hr]=[],this[Gr]=0,this[Ki]=0}get pipelining(){return this[xd]}set pipelining(e){this[xd]=e,Zi(this,!0)}get[af](){return this[Hr].length-this[Ki]}get[lA](){return this[Ki]-this[Gr]}get[of](){return this[Hr].length-this[Gr]}get[Jdt](){return!!this[pA]&&!this[xB]&&!this[pA].destroyed}get[Pq](){let e=this[pA];return e&&(e[Nn]||e[Xl]||e[MB])||this[of]>=(this[xd]||1)||this[af]>0}[qdt](e){aIe(this),this.once("connect",e)}[jdt](e,r){let A=e.origin||this[Gs].origin,s=this[Bu]==="h2"?_q[Xdt](A,e,r):_q[$dt](A,e,r);return this[Hr].push(s),this[nf]||(ve.bodyLength(s.body)==null&&ve.isIterable(s.body)?(this[nf]=1,process.nextTick(Zi,this)):Zi(this,!0)),this[nf]&&this[Fd]!==2&&this[Pq]&&(this[Fd]=2),this[Fd]<2}async[Wdt](){return new Promise(e=>{this[of]?this[kd]=e:e(null)})}async[zdt](e){return new Promise(r=>{let A=this[Hr].splice(this[Ki]);for(let n=0;n<A.length;n++){let i=A[n];Rn(this,i,e)}let s=()=>{this[kd]&&(this[kd](),this[kd]=null),r()};this[Xi]!=null&&(ve.destroy(this[Xi],e),this[Xi]=null,this[vk]=null),this[pA]?ve.destroy(this[pA].on("close",s),e):queueMicrotask(s),Zi(this)})}};function oht(t){Be(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[pA][Ys]=t,Hk(this[Iu],t)}function aht(t,e,r){let A=new Cu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[pA][Ys]=A,Hk(this[Iu],A))}function cht(){ve.destroy(this,new UB("other side closed")),ve.destroy(this[pA],new UB("other side closed"))}function uht(t){let e=this[Iu],r=new Cu(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[pA]=null,e[Xi]=null,e.destroyed){Be(this[af]===0);let A=e[Hr].splice(e[Gr]);for(let s=0;s<A.length;s++){let n=A[s];Rn(this,n,r)}}else if(e[lA]>0){let A=e[Hr][e[Gr]];e[Hr][e[Gr]++]=null,Rn(e,A,r)}e[Ki]=e[Gr],Be(e[lA]===0),e.emit("disconnect",e[Gs],[e],r),Zi(e)}var hu=OCe(),lht=Fk(),ght=Buffer.alloc(0);async function dht(){let t=process.env.JEST_WORKER_ID?Mq():void 0,e;try{e=await WebAssembly.compile(Buffer.from(WCe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Mq(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onStatus(new xk(Eu.buffer,n,s))||0},wasm_on_message_begin:r=>(Be.strictEqual(cs.ptr,r),cs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onHeaderField(new xk(Eu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onHeaderValue(new xk(Eu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Be.strictEqual(cs.ptr,r),cs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onBody(new xk(Eu.buffer,n,s))||0},wasm_on_message_complete:r=>(Be.strictEqual(cs.ptr,r),cs.onMessageComplete()||0)}})}var vq=null,Gq=dht();Gq.catch();var cs=null,Eu=null,Uk=0,fu=null,LB=1,Lk=2,Yq=3,qq=class{constructor(e,r,{exports:A}){Be(Number.isFinite(e[Mk])&&e[Mk]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(hu.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Mk],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[AIe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(Lq.clearTimeout(this.timeout),e?(this.timeout=Lq.setTimeout(hht,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Be(this.ptr!=null),Be(cs==null),this.llhttp.llhttp_resume(this.ptr),Be(this.timeoutType===Lk),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||ght),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Be(this.ptr!=null),Be(cs==null),Be(!this.paused);let{socket:r,llhttp:A}=this;e.length>Uk&&(fu&&A.free(fu),Uk=Math.ceil(e.length/4096)*4096,fu=A.malloc(Uk)),new Uint8Array(A.memory.buffer,fu,Uk).set(e);try{let s;try{Eu=e,cs=this,s=A.llhttp_execute(this.ptr,fu,e.length)}catch(i){throw i}finally{cs=null,Eu=null}let n=A.llhttp_get_error_pos(this.ptr)-fu;if(s===hu.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(s===hu.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(n));else if(s!==hu.ERROR.OK){let i=A.llhttp_get_error_reason(this.ptr),o="";if(i){let a=new Uint8Array(A.memory.buffer,i).indexOf(0);o="Response does not match Line truncated
`;return typeof n=="string"?E+=`host: ${n}\r
`:E+=t[XCe],i?E+=`connection: upgrade\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=dB.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${A}`}else if(jY(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(nm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Hye(t)}if((typeof n=="string"||nm.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!eq(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function eQe(t,e=!1){return t instanceof ReadableStream&&(DD(!nm.isDisturbed(t),"The body has already been consumed."),DD(!t.locked,"The stream is locked.")),sq(t,e)}function tQe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function rQe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function sQe(t){return{blob(){return Th(this,r=>{let s=ZY(this);return s===null?s="":s&&(s=Xye(s)),new zye([r],{type:s})},t)},arrayBuffer(){return Th(this,r=>new Uint8Array(r).buffer,t)},text(){return Th(this,$Y,t)},json(){return Th(this,iQe,t)},formData(){return Th(this,r=>{let s=ZY(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Zye(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new XY;return i[xh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new XY;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Th(this,r=>new Uint8Array(r),t)}}}function nQe(t){Object.assign(t.prototype,sQe(t))}async function Th(t,e,r){if(Wye.brandCheck(t,r),nq(t))throw new TypeError("Body is unusable: Body has already been read");rQe(t[xh]);let s=qye(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[xh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Jye(t[xh].body,i,n),s.promise)}function nq(t){let e=t[xh].body;return e!=null&&(e.stream.locked||nm.isDisturbed(e.stream))}function iQe(t){return JSON.parse($Y(t))}function ZY(t){let e=t[xh].headersList,r=Vye(e);return r==="failure"?null:r}iq.exports={extractBody:sq,safelyExtractBody:eQe,cloneBody:tQe,mixinBody:nQe,streamRegistry:rq,hasFinalizationRegistry:tq,bodyUnusable:nq}});var Bq=I((Sdt,Iq)=>{"use strict";var ce=N("node:assert"),de=Oe(),{channels:oq}=mh(),kD=hD(),{RequestContentLengthMismatchError:Vu,ResponseContentLengthMismatchError:aq,RequestAbortedError:fq,InvalidArgumentError:oQe,HeadersTimeoutError:aQe,HeadersOverflowError:AQe,SocketError:Rh,InformationalError:kh,BodyTimeoutError:cQe,HTTPParserError:uQe,ResponseExceededMaxSizeError:lQe}=et(),{kUrl:pq,kReset:Fs,kClient:pB,kParser:yt,kBlocking:am,kRunning:lr,kPending:mq,kSize:Aq,kWriting:Ac,kQueue:Ki,kNoRef:im,kKeepAliveDefaultTimeout:dQe,kHostHeader:hQe,kPendingIdx:gQe,kRunningIdx:ei,kError:us,kPipelining:mB,kSocket:Wu,kKeepAliveTimeoutValue:CB,kMaxHeadersSize:FD,kKeepAliveMaxTimeout:fQe,kKeepAliveTimeoutThreshold:pQe,kHeadersTimeout:mQe,kBodyTimeout:EQe,kStrictContentLength:LD,kMaxRequests:cq,kCounter:CQe,kMaxResponseSize:IQe,kOnError:uq,kResume:Xa,kHTTPContext:Eq}=xt(),dn=rY(),lq=Buffer.alloc(0),hB=Buffer[Symbol.species],gB=de.addListener,BQe=de.removeAllListeners,zu=Symbol("kIdleSocketValidation"),Fh=Symbol("kIdleSocketValidationTimeout"),_D=Symbol("kSocketUsed"),MD;async function yQe(){let t=process.env.JEST_WORKER_ID?pD():void 0,e;try{e=await WebAssembly.compile(iY())}catch{e=await WebAssembly.compile(t||pD())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onStatus(new hB(ko.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(Ht.ptr===r),Ht.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onHeaderField(new hB(ko.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onHeaderValue(new hB(ko.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(Ht.ptr===r),Ht.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onBody(new hB(ko.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(Ht.ptr===r),Ht.onMessageComplete()||0)}})}var UD=null,vD=yQe();vD.catch();var Ht=null,ko=null,fB=0,Fo=null,QQe=0,om=1,Mh=2|om,EB=4|om,PD=8|QQe,OD=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[FD])&&e[FD]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(dn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[hQe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[xd]&&!d[Nn]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,o&&(E+=o),rn.sendHeaders.hasSubscribers&&rn.sendHeaders.publish({request:e,headers:E,socket:d}),!r||l===0?(g===0?d.write(`${E}content-length: 0\r
`:t[mB]&&!h[Fs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],C=c[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${m}: ${C[w]}\r
`;else p+=`${m}: ${C}\r
`}return oq.sendHeaders.hasSubscribers&&oq.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?hq(f,null,t,e,h,u,p,l):de.isBuffer(A)?hq(f,A,t,e,h,u,p,l):de.isBlobLike(A)?typeof A.stream=="function"?gq(f,A.stream(),t,e,h,u,p,l):DQe(f,A,t,e,h,u,p,l):de.isStream(A)?xQe(f,A,t,e,h,u,p,l):de.isIterable(A)?gq(f,A,t,e,h,u,p,l):ce(!1),!0}function xQe(t,e,r,s,n,i,o,a){ce(i!==0||r[lr]===0,"stream body cannot be pipelined");let A=!1,c=new IB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){de.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new fq;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[Ac]&&r[lr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?de.destroy(e,f):de.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function hq(t,e,r,s,n,i,o,a){try{e?de.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Be(g===null,"no body must not have content length"),d.write(`${E}\r
`,"latin1")),e.onRequestSent()):ve.isBuffer(r)?(Be(g===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${E}content-length: ${g}\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Fs]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"),d.write(r),d.uncork(),e.onBodySent(r),e.onRequestSent(),u||(d[Nn]=!0)):ve.isBlobLike(r)?typeof r.stream=="function"?Pk({body:r.stream(),client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):lIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isStream(r)?uIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isIterable(r)?Pk({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):Be(!1),!0}function Cht(t,e,r){let{body:A,method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=r,l;if(typeof u=="string"?l=_q[Zdt](u.trim()):l=u,o)return Rn(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(p=>{r.aborted||r.completed||Rn(t,r,p||new Vq)})}catch(p){Rn(t,r,p)}if(r.aborted)return!1;let g,d=t[vk];if(l[eht]=i||t[sIe],l[tht]=s,s==="CONNECT")return e.ref(),g=e.request(l,{endStream:!1,signal:c}),g.id&&!g.pending?(r.onUpgrade(null,null,g),++d.openStreams):g.once("ready",()=>{r.onUpgrade(null,null,g),++d.openStreams}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),!0;l[rht]=n,l[Aht]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let C=ve.bodyLength(A);if(C==null&&(C=r.contentLength),(C===0||!E)&&(C=null),cIe(s)&&C>0&&r.contentLength!=null&&r.contentLength!==C){if(t[Jb])return Rn(t,r,new Kl),!1;process.emitWarning(new Kl)}C!=null&&(Be(A,"no body must not have content length"),l[sht]=`${C}`),e.ref();let Q=s==="GET"||s==="HEAD";return a?(l[nht]="100-continue",g=e.request(l,{endStream:Q,signal:c}),g.once("continue",I)):(g=e.request(l,{endStream:Q,signal:c}),I()),++d.openStreams,g.once("response",p=>{let{[iht]:w,...k}=p;r.onHeaders(Number(w),k,g.resume.bind(g),"")===!1&&g.pause()}),g.once("end",()=>{r.onComplete([])}),g.on("data",p=>{r.onData(p)===!1&&g.pause()}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),g.once("error",function(p){t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,p))}),g.once("frameError",(p,w)=>{let k=new Cu(`HTTP/2: "frameError" received - type ${p}, code ${w}`);Rn(t,r,k),t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,k))}),!0;function I(){A?ve.isBuffer(A)?(Be(C===A.byteLength,"buffer body must have content length"),g.cork(),g.write(A),g.uncork(),g.end(),r.onBodySent(A),r.onRequestSent()):ve.isBlobLike(A)?typeof A.stream=="function"?Pk({client:t,request:r,contentLength:C,h2stream:g,expectsPayload:E,body:A.stream(),socket:t[pA],header:""}):lIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,h2stream:g,header:"",socket:t[pA]}):ve.isStream(A)?uIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,socket:t[pA],h2stream:g,header:""}):ve.isIterable(A)?Pk({body:A,client:t,request:r,contentLength:C,expectsPayload:E,header:"",h2stream:g,socket:t[pA]}):Be(!1):r.onRequestSent()}}function uIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){if(Be(n!==0||r[lA]===0,"stream body cannot be pipelined"),r[Bu]==="h2"){let C=function(Q){A.onBodySent(Q)},E=Udt(e,t,Q=>{Q?(ve.destroy(e,Q),ve.destroy(t,Q)):A.onRequestSent()});E.on("data",C),E.once("end",()=>{E.removeListener("data",C),ve.destroy(E)});return}let a=!1,c=new Ok({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ve.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(a)return;let E=new Vq;queueMicrotask(()=>d(E))},d=function(E){if(!a){if(a=!0,Be(s.destroyed||s[Xl]&&r[lA]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("error",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ve.destroy(e,E):ve.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d)}async function lIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Be(n===e.size,"blob body must have content length");let a=r[Bu]==="h2";try{if(n!=null&&n!==e.size)throw new Kl;let c=Buffer.from(await e.arrayBuffer());a?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(ce(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Xa]()}catch(A){t(A)}}async function DQe(t,e,r,s,n,i,o,a){ce(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vu;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),A.onBodySent(c),A.onRequestSent(),o||(s[Nn]=!0),Zi(r)}catch(c){ve.destroy(a?t:s,c)}}async function Pk({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Be(n!==0||r[lA]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Be(a===null),s[Ys]?d(s[Ys]):a=g});if(r[Bu]==="h2"){t.on("close",c).on("drain",c);try{for await(let g of e){if(s[Ys])throw s[Ys];let d=t.write(g);A.onBodySent(g),d||await u()}}catch(g){t.destroy(g)}finally{A.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new Ok({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Ys])throw s[Ys];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var Ok=class{constructor({socket:e,request:r,contentLength:A,client:s,expectsPayload:n,header:i}){this.socket=e,this.request=r,this.contentLength=A,this.client=s,this.bytesWritten=0,this.expectsPayload=n,this.header=i,e[Xl]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Ys])throw r[Ys];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[Jb])throw new Kl;process.emitWarning(new Kl)}r.cork(),i===0&&(o||(r[Nn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Fs]=!0),r[Xa]()}catch(A){t(A)}}async function gq(t,e,r,s,n,i,o,a){ce(i!==0||r[lr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{ce(A===null),n[us]?h(n[us]):A=d});n.on("close",c).on("drain",c);let l=new IB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[us])throw n[us];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var IB=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Ac]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[us])throw r[us];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[LD])throw new Vu;process.emitWarning(new Vu)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Fs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[QA].timeout&&r[QA].timeoutType===LB&&r[QA].timeout.refresh&&r[QA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[Xl]=!1,e[Ys])throw e[Ys];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[yt].timeout&&r[yt].timeoutType===Mh&&r[yt].timeout.refresh&&r[yt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Ac]=!1,e[us])throw e[us];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[Jb])throw new Kl;process.emitWarning(new Kl)}e[QA].timeout&&e[QA].timeoutType===LB&&e[QA].timeout.refresh&&e[QA].timeout.refresh(),Zi(A)}}destroy(e){let{socket:r,client:A}=this;r[Xl]=!1,e&&(Be(A[lA]<=1,"pipeline should only contain this request"),ve.destroy(r,e))}};function Rn(t,e,r){try{e.onError(r),Be(e.aborted)}catch(A){t.emit("error",A)}}gIe.exports=Hq});var hIe=h((Jyr,dIe)=>{"use strict";var Gk=class{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)}};dIe.exports=class{constructor(){this.head=this.tail=new Gk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Gk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var fIe=h((Vyr,EIe)=>{var{kFree:Iht,kConnected:Bht,kPending:Qht,kQueued:pht,kRunning:mht,kSize:yht}=Or(),cf=Symbol("pool"),Wq=class{constructor(e){this[cf]=e}get connected(){return this[cf][Bht]}get free(){return this[cf][Iht]}get pending(){return this[cf][Qht]}get queued(){return this[cf][pht]}get running(){return this[cf][mht]}get size(){return this[cf][yht]}};EIe.exports=Wq});var $q=h((Wyr,DIe)=>{"use strict";var bht=_b(),wht=hIe(),{kConnected:zq,kSize:CIe,kRunning:IIe,kPending:BIe,kQueued:zb,kBusy:Dht,kFree:Nht,kUrl:Rht,kClose:Sht,kDestroy:Tht,kDispatch:kht}=Or(),Fht=fIe(),ti=Symbol("clients"),Sn=Symbol("needDrain"),jb=Symbol("queue"),jq=Symbol("closed resolve"),Kq=Symbol("onDrain"),QIe=Symbol("onConnect"),pIe=Symbol("onDisconnect"),mIe=Symbol("onConnectionError"),Xq=Symbol("get dispatcher"),bIe=Symbol("add client"),wIe=Symbol("remove client"),yIe=Symbol("stats"),Zq=class extends bht{constructor(){super(),this[jb]=new wht,this[ti]=[],this[zb]=0;let e=this;this[Kq]=function(A,s){let n=e[jb],i=!1;for(;!i;){let o=n.shift();if(!o)break;e[zb]--,i=!this.dispatch(o.opts,o.handler)}this[Sn]=i,!this[Sn]&&e[Sn]&&(e[Sn]=!1,e.emit("drain",A,[e,...s])),e[jq]&&n.isEmpty()&&Promise.all(e[ti].map(o=>o.close())).then(e[jq])},this[QIe]=(r,A)=>{e.emit("connect",r,[e,...A])},this[pIe]=(r,A,s)=>{e.emit("disconnect",r,[e,...A],s)},this[mIe]=(r,A,s)=>{e.emit("connectionError",r,[e,...A],s)},this[yIe]=new Fht(this)}get[Dht](){return this[Sn]}get[zq](){return this[ti].filter(e=>e[zq]).length}get[Nht](){return this[ti].filter(e=>e[zq]&&!e[Sn]).length}get[BIe](){let e=this[zb];for(let{[BIe]:r}of this[ti])e+=r;return e}get[IIe](){let e=0;for(let{[IIe]:r}of this[ti])e+=r;return e}get[CIe](){let e=this[zb];for(let{[CIe]:r}of this[ti])e+=r;return e}get stats(){return this[yIe]}async[Sht](){return this[jb].isEmpty()?Promise.all(this[ti].map(e=>e.close())):new Promise(e=>{this[jq]=e})}async[Tht](e){for(;;){let r=this[jb].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[ti].map(r=>r.destroy(e)))}[kht](e,r){let A=this[Xq]();return A?A.dispatch(e,r)||(A[Sn]=!0,this[Sn]=!this[Xq]()):(this[Sn]=!0,this[jb].push({opts:e,handler:r}),this[zb]++),!this[Sn]}[bIe](e){return e.on("drain",this[Kq]).on("connect",this[QIe]).on("disconnect",this[pIe]).on("connectionError",this[mIe]),this[ti].push(e),this[Sn]&&process.nextTick(()=>{this[Sn]&&this[Kq](e[Rht],[this,e])}),this}[wIe](e){e.close(()=>{let r=this[ti].indexOf(e);r!==-1&&this[ti].splice(r,1)}),this[Sn]=this[ti].some(r=>!r[Sn]&&r.closed!==!0&&r.destroyed!==!0)}};DIe.exports={PoolBase:Zq,kClients:ti,kNeedDrain:Sn,kAddClient:bIe,kRemoveClient:wIe,kGetDispatcher:Xq}});var vB=h((zyr,SIe)=>{"use strict";var{PoolBase:xht,kClients:Yk,kNeedDrain:Uht,kAddClient:Mht,kGetDispatcher:Lht}=$q(),vht=Wb(),{InvalidArgumentError:e5}=br(),t5=Yt(),{kUrl:NIe,kInterceptors:_ht}=Or(),Pht=Pb(),r5=Symbol("options"),A5=Symbol("connections"),RIe=Symbol("factory");function Oht(t,e){return new vht(t,e)}var s5=class extends xht{constructor(e,{connections:r,factory:A=Oht,connect:s,connectTimeout:n,tls:i,maxCachedSessions:o,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...g}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new e5("invalid connections");if(typeof A!="function")throw new e5("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new e5("connect must be a function or an object");typeof s!="function"&&(s=Pht({...i,maxCachedSessions:o,allowH2:l,socketPath:a,timeout:n,...t5.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[_ht]=g.interceptors&&g.interceptors.Pool&&Array.isArray(g.interceptors.Pool)?g.interceptors.Pool:[],this[A5]=r||null,this[NIe]=t5.parseOrigin(e),this[r5]={...t5.deepClone(g),connect:s,allowH2:l},this[r5].interceptors=g.interceptors?{...g.interceptors}:void 0,this[RIe]=A,this.on("connectionError",(d,E,C)=>{for(let Q of Line truncated
${A.count} ${A.noun} ${A.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[LD])throw new Vu;process.emitWarning(new Vu)}e[yt].timeout&&e[yt].timeoutType===Mh&&e[yt].timeout.refresh&&e[yt].timeout.refresh(),s[Xa]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Ac]=!1,e&&(ce(s[lr]<=1,"pipeline should only contain this request"),n(e))}};Iq.exports=bQe});var xq=I((Tdt,Tq)=>{"use strict";var ti=N("node:assert"),{pipeline:RQe}=N("node:stream"),qe=Oe(),{RequestContentLengthMismatchError:HD,RequestAbortedError:yq,SocketError:Am,InformationalError:GD}=et(),{kUrl:BB,kReset:QB,kClient:Uh,kRunning:bB,kPending:kQe,kQueue:cc,kPendingIdx:YD,kRunningIdx:ji,kError:Zi,kSocket:Tr,kStrictContentLength:FQe,kOnError:qD,kMaxConcurrentStreams:Sq,kHTTP2Session:Xi,kResume:uc,kSize:MQe,kHTTPContext:UQe}=xt(),Za=Symbol("open streams"),Qq,bq=!1,yB;try{yB=N("node:http2")}catch{yB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:LQe,HTTP2_HEADER_METHOD:vQe,HTTP2_HEADER_PATH:PQe,HTTP2_HEADER_SCHEME:OQe,HTTP2_HEADER_CONTENT_LENGTH:_Qe,HTTP2_HEADER_EXPECT:HQe,HTTP2_HEADER_STATUS:GQe}}=yB;function YQe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function qQe(t,e){t[Tr]=e,bq||(bq=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=yB.connect(t[BB],{createConnection:()=>e,peerMaxConcurrentStreams:t[Sq]});r[Za]=0,r[Uh]=t,r[Tr]=e,qe.addListener(r,"error",VQe),qe.addListener(r,"frameError",WQe),qe.addListener(r,"end",zQe),qe.addListener(r,"goaway",KQe),qe.addListener(r,"close",function(){let{[Uh]:n}=this,{[Tr]:i}=n,o=this[Tr][Zi]||this[Zi]||new Am("closed",qe.getSocketInfo(i));if(n[Xi]=null,n.destroyed){ti(n[kQe]===0);let a=n[cc].splice(n[ji]);for(let A=0;A<a.length;A++){let c=a[A];qe.errorRequest(n,c,o)}}}),r.unref(),t[Xi]=r,e[Xi]=r,qe.addListener(e,"error",function(n){ti(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=n,this[Uh][qD](n)}),qe.addListener(e,"end",function(){qe.destroy(this,new Am("other side closed",qe.getSocketInfo(this)))}),qe.addListener(e,"close",function(){let n=this[Zi]||new Am("closed",qe.getSocketInfo(this));t[Tr]=null,this[Xi]!=null&&this[Xi].destroy(n),t[YD]=t[ji],ti(t[bB]===0),t.emit("disconnect",t[BB],[t],n),t[uc]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return XQe(t,...n)},resume(){JQe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function JQe(t){let e=t[Tr];e?.destroyed===!1&&(t[MQe]===0&&t[Sq]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}function VQe(t){ti(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tr][Zi]=t,this[Uh][qD](t)}function WQe(t,e,r){if(r===0){let s=new GD(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tr][Zi]=s,this[Uh][qD](s)}}function zQe(){let t=new Am("other side closed",qe.getSocketInfo(this[Tr]));this.destroy(t),qe.destroy(this[Tr],t)}function KQe(t){let e=this[Zi]||new Am(`HTTP/2: "GOAWAY" frame received with code ${t}`,qe.getSocketInfo(this)),r=this[Uh];if(r[Tr]=null,r[UQe]=null,this[Xi]!=null&&(this[Xi].destroy(e),this[Xi]=null),qe.destroy(this[Tr],e),r[ji]<r[cc].length){let s=r[cc][r[ji]];r[cc][r[ji]++]=null,qe.errorRequest(r,s,e),r[YD]=r[ji]}ti(r[bB]===0),r.emit("disconnect",r[BB],[r],e),r[uc]()}function jQe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function XQe(t,e){let r=t[Xi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return qe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let k=c[T+0],M=c[T+1];if(Array.isArray(M))for(let q=0;q<M.length;q++)l[k]?l[k]+=`,${M[q]}`:l[k]=M[q];else l[k]=M}let d,{hostname:h,port:f}=t[BB];l[LQe]=i||`${h}${f?`:${f}`:""}`,l[vQe]=s;let p=T=>{e.aborted||e.completed||(T=T||new yq,qe.errorRequest(t,e,T),d!=null&&qe.destroy(d,T),qe.destroy(u,T),t[cc][t[ji]++]=null,t[uc]())};try{e.onConnect(p)}catch(T){qe.errorRequest(t,e,T)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Za],t[cc][t[ji]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Za],t[cc][t[ji]++]=null}),d.once("close",()=>{r[Za]-=1,r[Za]===0&&r.unref()}),!0;l[PQe]=n,l[OQe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=qe.bodyLength(u);if(qe.isFormDataLike(u)){Qq??=Dh().extractBody;let[T,k]=Qq(u);l["content-type"]=k,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),jQe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[FQe])return qe.errorRequest(t,e,new HD),!1;process.emitWarning(new HD)}m!=null&&(ti(u,"no body must not have content length"),l[_Qe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[HQe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",w)):(d=r Line truncated
`,this[Qbe]=A??3e5,this[ybe]=n??3e5,this[bbe]=C??!0,this[wbe]=T,this[zD]=M,this[dc]=null,this[Dbe]=v>-1?v:-1,this[kbe]=Re??100,this[tr]=null,this[$i]=[],this[eA]=0,this[eo]=0,this[dm]=ke=>jD(this,ke),this[Rbe]=ke=>Hq(this,ke)}get pipelining(){return this[TB]}set pipelining(e){this[TB]=e,this[dm](!0)}get[fm](){return this[$i].length-this[eo]}get[gm](){return this[eo]-this[eA]}get[hm](){return this[$i].length-this[eA]}get[fbe](){return!!this[tr]&&!this[vh]&&!this[tr].destroyed}get[WD](){return!!(this[tr]?.busy(null)||this[hm]>=(_q(this)||1)||this[fm]>0)}[gbe](e){Gq(this),this.once("connect",e)}[xbe](e,r){let s=e.origin||this[Uo].origin,n=new Abe(s,e,r);return this[$i].push(n),this[ju]||(Ku.bodyLength(n.body)==null&&Ku.isIterable(n.body)?(this[ju]=1,queueMicrotask(()=>jD(this))):this[dm](!0)),this[ju]&&this[hc]!==2&&this[WD]&&(this[hc]=2),this[hc]<2}async[Sbe](){return new Promise(e=>{this[hm]?this[dc]=e:e(null)})}async[Tbe](e){return new Promise(r=>{let s=this[$i].splice(this[eo]);for(let i=0;i<s.length;i++){let o=s[i];Ku.errorRequest(this,o,e)}let n=()=>{this[dc]&&(this[dc](),this[dc]=null),r(null)};this[tr]?(this[tr].destroy(e,n),this[tr]=null):queueMicrotask(n),this[dm]()})}},Ube=SB();function Hq(t,e){if(t[gm]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$a(t[eo]===t[eA]);let r=t[$i].splice(t[eA]);for(let s=0;s<r.length;s++){let n=r[s];Ku.errorRequest(t,n,e)}$a(t[hm]===0)}}async function Gq(t){$a(!t[vh]),$a(!t[tr]);let{host:e,hostname:r,protocol:s,port:n}=t[Uo];if(r[0]==="["){let i=r.indexOf("]");$a(i!==-1);let o=r.substring(1,i);$a(Oq.isIP(o)),r=o}t[vh]=!0,Lh.beforeConnect.hasSubscribers&&Lh.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um]});try{let i=await new Promise((o,a)=>{t[um]({host:e,hostname:r,protocol:s,port:n,servername:t[lc],localAddress:t[lm]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Ku.destroy(i.on("error",vq),new lbe);return}$a(i);try{t[tr]=i.alpnProtocol==="h2"?await Mbe(t,i):await Fbe(t,i)}catch(o){throw i.destroy().on("error",vq),o}t[vh]=!1,i[Nbe]=0,i[zD]=t[zD],i[hbe]=t,i[mbe]=null,Lh.connected.hasSubscribers&&Lh.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um],socket:i}),t.emit("connect",t[Uo],[t])}catch(i){if(t.destroyed)return;if(t[vh]=!1,Lh.connectError.hasSubscribers&&Lh.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($a(t[gm]===0);t[fm]>0&&t[$i][t[eo]].servername===t[lc];){let o=t[$i][t[eo]++];Ku.errorRequest(t,o,i)}else Hq(t,i);t.emit("connectionError",t[Uo],[t],i)}t[dm]()}function Pq(t){t[hc]=0,t.emit("drain",t[Uo],[t])}function jD(t,e){t[ju]!==2&&(t[ju]=2,Lbe(t,e),t[ju]=0,t[eA]>256&&(t[$i].splice(0,t[eA]),t[eo]-=t[eA],t[eA]=0))}function Lbe(t,e){for(;;){if(t.destroyed){$a(t[fm]===0);return}if(t[dc]&&!t[hm]){t[dc](),t[dc]=null;return}if(t[tr]&&t[tr].resume(),t[WD])t[hc]=2;else if(t[hc]===2){e?(t[hc]=1,queueMicrotask(()=>Pq(t))):Pq(t);continue}if(t[fm]===0||t[gm]>=(_q(t)||1))return;let r=t[$i][t[eo]];if(t[Uo].protocol==="https:"&&t[lc]!==r.servername){if(t[gm]>0)return;t[lc]=r.servername,t[tr]?.destroy(new ube("servername changed"),()=>{t[tr]=null,jD(t)})}if(t[vh])return;if(!t[tr]){Gq(t);return}if(t[tr].destroyed||t[tr].busy(r))return;!r.aborted&&t[tr].write(r)?t[eo]++:t[$i].splice(t[eo],1)}}Yq.exports=KD});var XD=I((Fdt,qq)=>{"use strict";var xB=class{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)}};qq.exports=class{constructor(){this.head=this.tail=new xB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new xB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Vq=I((Mdt,Jq)=>{var{kFree:vbe,kConnected:Pbe,kPending:Obe,kQueued:_be,kRunning:Hbe,kSize:Gbe}=xt(),Xu=Symbol("pool"),ZD=class{constructor(e){this[Xu]=e}get connected(){return this[Xu][Pbe]}get free(){return this[Xu][vbe]}get pending(){return this[Xu][Obe]}get queued(){return this[Xu][_be]}get running(){return this[Xu][Hbe]}get size(){return this[Xu][Gbe]}};Jq.exports=ZD});var n2=I((Udt,rJ)=>{"use strict";var Ybe=Bh(),qbe=XD(),{kConnected:$D,kSize:Wq,kRunning:zq,kPending:Kq,kQueued:pm,kBusy:Jbe,kFree:Vbe,kUrl:Wbe,kClose:zbe,kDestroy:Kbe,kDispatch:jbe}=xt(),Xbe=Vq(),Ms=Symbol("clients"),ls=Symbol("needDrain"),mm=Symbol("queue"),e2=Symbol("closed resolve"),t2=Symbol("onDrain"),jq=Symbol("onConnect"),Xq=Symbol("onDisconnect"),Zq=Symbol("onConnectionError"),r2=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};oQe.exports=G5});var hQe=h((Bbr,dQe)=>{"use strict";var{kProxy:Hft,kClose:Gft,kDestroy:Yft,kInterceptors:qft}=Or(),{URL:cQe}=B("url"),uQe=Xb(),Jft=vB(),Vft=_b(),{InvalidArgumentError:rw,RequestAbortedError:Wft}=br(),lQe=Pb(),ew=Symbol("proxy agent"),uF=Symbol("proxy client"),tw=Symbol("proxy headers"),Y5=Symbol("request tls settings"),zft=Symbol("proxy tls settings"),gQe=Symbol("connect endpoint function");function jft(t){return t==="https:"?443:80}function Kft(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new rw("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Xft(t,e){return new Jft(t,e)}var q5=class extends Vft{constructor(e){if(super(e),this[Hft]=Kft(e),this[ew]=new uQe(e),this[qft]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new rw("Proxy opts.uri is mandatory");let{clientFactory:r=Xft}=e;if(typeof r!="function")throw new rw("Proxy opts.clientFactory must be a function.");this[Y5]=e.requestTls,this[zft]=e.proxyTls,this[tw]=e.headers||{};let A=new cQe(e.uri),{origin:s,port:n,host:i,username:o,password:a}=A;if(e.auth&&e.token)throw new rw("opts.auth cannot be used in combination with opts.token");e.auth?this[tw]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[tw]["proxy-authorization"]=e.token:o&&a&&(this[tw]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(a)}`).toString("base64")}`);let c=lQe({...e.proxyTls});this[gQe]=lQe({...e.requestTls}),this[uF]=r(A,{connect:c}),this[ew]=new uQe({...e,connect:async(u,l)=>{let g=u.host;u.port||(g+=`:${jft(u.protocol)}`);try{let{socket:d,statusCode:E}=await this[uF].connect({origin:s,port:n,path:g,signal:u.signal,headers:{...this[tw],host:i}});if(E!==200&&(d.on("error",()=>{}).destroy(),l(new Wft(`Proxy response (${E}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,d);return}let C;this[Y5]?C=this[Y5].servername:C=u.servername,this[gQe]({...u,servername:C,httpSocket:d},l)}catch(d){l(d)}}})}dispatch(e,r){let{host:A}=new cQe(e.origin),s=Zft(e.headers);return $ft(s),this[ew].dispatch({...e,headers:{...s,host:A}},r)}async[Gft](){await this[ew].close(),await this[uF].close()}async[Yft](){await this[ew].destroy(),await this[uF].destroy()}};function Zft(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function $ft(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new rw("Proxy-Authorization should be sent in ProxyAgent constructor")}dQe.exports=q5});var BQe=h((Qbr,IQe)=>{var Ef=B("assert"),{kRetryHandlerDefaultRetry:EQe}=Or(),{RequestRetryError:lF}=br(),{isDisturbed:fQe,parseHeaders:eCt,parseRangeHeader:CQe}=Yt();function tCt(t){let e=Date.now();return new Date(t).getTime()-e}var J5=class t{constructor(e,r){let{retryOptions:A,...s}=e,{retry:n,maxRetries:i,maxTimeout:o,minTimeout:a,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:g,statusCodes:d}=A??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[EQe],retryAfter:g??!0,maxTimeout:o??30*1e3,timeout:a??500,timeoutFactor:c??2,maxRetries:i??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:d??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(E=>{this.aborted=!0,this.abort?this.abort(E):this.reason=E})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,A){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,A)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[EQe](e,{state:r,opts:A},s){let{statusCode:n,code:i,headers:o}=e,{method:a,retryOptions:c}=A,{maxRetries:u,timeout:l,maxTimeout:g,timeoutFactor:d,statusCodes:E,errorCodes:C,methods:Q}=c,{counter:I,currentTimeout:p}=r;if(p=p!=null&&p>0?p:l,i&&i!=="UND_ERR_REQ_RETRY"&&i!=="UND_ERR_SOCKET"&&!C.includes(i)){s(e);return}if(Array.isArray(Q)&&!Q.includes(a)){s(e);return}if(n!=null&&Array.isArray(E)&&!E.includes(n)){s(e);return}if(I>u){s(e);return}let w=o!=null&&o["retry-after"];w&&(w=Number(w),w=isNaN(w)?tCt(w):w*1e3);let k=w>0?Math.min(w,g):Math.min(p*d**I,g);r.currentTimeout=k,setTimeout(()=>s(null),k)}onHeaders(e,r,A,s){let n=eCt(r);if(this.retryCount+=1,e>=300)return this.abort(new lF("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=CQe(n["content-range"]);if(!o)return this.abort(new lF("Content-Range mismatch",e,{headers:n,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==n.etag)return this.abort(new lF("ETag mismatch",e,{headers:n,count:this.retryCount})),!1;let{start:a,size:c,end:u=c}=o Line truncated
Error Code : ${i.statusCode}
Error Message: ${i.message}`)})).result)===null||r===void 0?void 0:r.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return R0e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,S0e.debug)(`ID token url is ${r}`);let A=yield t.getCall(r);return(0,S0e.setSecret)(A),A}catch(r){throw new Error(`Error message: ${r.message}`)}})}};aQ.OidcClient=U9});var _9=h(ii=>{"use strict";var M9=ii&&ii.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ii,"__esModule",{value:!0});ii.summary=ii.markdownSummary=ii.SUMMARY_DOCS_URL=ii.SUMMARY_ENV_VAR=void 0;var JQt=B("os"),L9=B("fs"),{access:VQt,appendFile:WQt,writeFile:zQt}=L9.promises;ii.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";ii.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var v9=class{constructor(){this._buffer=""}filePath(){return M9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ii.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${ii.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield VQt(e,L9.constants.R_OK|L9.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,A={}){let s=Object.entries(A).map(([n,i])=>` ${n}="${i}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return M9(this,void 0,void 0,function*(){let r=!!e?.overwrite,A=yield this.filePath();return yield(r?zQt:WQt)(A,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return M9(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(JQt.EOL)}addCodeBlock(e,r){let A=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,r=!1){let A=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),n=this.wrap(A,s);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:u}=i,l=o?"th":"td",g=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,a,g)}).join("");return this.wrap("tr",n)}).join(""),A=this.wrap("table",r);return this.addRaw(A).addEOL()}addDetails(e,r){let A=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(A).addEOL()}addImage(e,r,A){let{width:s,height:n}=A||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:r},i));return this.addRaw(o).addEOL()}addHeading(e,r){let A=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1",n=this.wrap(s,e);return this.addRaw(n).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 A=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,r){let A=this.wrap("a",e,{href:r});return this.addRaw(A).addEOL()}},k0e=new v9;ii.markdownSummary=k0e;ii.summary=k0e});var F0e=h(oi=>{"use strict";var jQt=oi&&oi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),KQt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XQt=oi&&oi.__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)&&jQt(e,t,r);return KQt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.toPlatformPath=oi.toWin32Path=oi.toPosixPath=void 0;var ZQt=XQt(B("path"));function $Qt(t){return t.replace(/[\\]/g,"/")}oi.toPosixPath=$Qt;function ept(t){return t.replace(/[/]/g,"\\")}oi.toWin32Path=ept;function tpt(t){return t.replace(/[/\\]/g,ZQt.sep)}oi.toPlatformPath=tpt});var O9=h(be=>{"use strict";var rpt=be&&be.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),ALine truncated
`);return{name:e,version:r}});qt.platform=K0e.default.platform();qt.arch=K0e.default.arch();qt.isWindows=qt.platform==="win32";qt.isMacOS=qt.platform==="darwin";qt.isLinux=qt.platform==="linux";function Upt(){return o2(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield qt.isWindows?kpt():qt.isMacOS?Fpt():xpt()),{platform:qt.platform,arch:qt.arch,isWindows:qt.isWindows,isMacOS:qt.isMacOS,isLinux:qt.isLinux})})}qt.getDetails=Upt});var no=h(Qe=>{"use strict";var Mpt=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),Lpt=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J9=Qe&&Qe.__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)&&Mpt(e,t,r);return Lpt(e,t),e},Z0e=Qe&&Qe.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.platform=Qe.toPlatformPath=Qe.toWin32Path=Qe.toPosixPath=Qe.markdownSummary=Qe.summary=Qe.getIDToken=Qe.getState=Qe.saveState=Qe.group=Qe.endGroup=Qe.startGroup=Qe.info=Qe.notice=Qe.warning=Qe.error=Qe.debug=Qe.isDebug=Qe.setFailed=Qe.setCommandEcho=Qe.setOutput=Qe.getBooleanInput=Qe.getMultilineInput=Qe.getInput=Qe.addPath=Qe.setSecret=Qe.exportVariable=Qe.ExitCode=void 0;var na=vEe(),yf=OEe(),uQ=ik(),$0e=J9(B("os")),vpt=J9(B("path")),_pt=T0e(),q9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(q9||(Qe.ExitCode=q9={}));function Ppt(t,e){let r=(0,uQ.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,yf.issueFileCommand)("ENV",(0,yf.prepareKeyValueMessage)(t,e));(0,na.issueCommand)("set-env",{name:t},r)}Qe.exportVariable=Ppt;function Opt(t){(0,na.issueCommand)("add-mask",{},t)}Qe.setSecret=Opt;function Hpt(t){process.env.GITHUB_PATH||""?(0,yf.issueFileCommand)("PATH",t):(0,na.issueCommand)("add-path",{},t),process.env.PATH=`${t}${vpt.delimiter}${process.env.PATH}`}Qe.addPath=Hpt;function V9(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}Qe.getInput=V9;function Gpt(t,e){let r=V9(t,e).split(`
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}Qe.getMultilineInput=Gpt;function Ypt(t,e){let r=["true","True","TRUE"],A=["false","False","FALSE"],s=V9(t,e);if(r.includes(s))return!0;if(A.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Qe.getBooleanInput=Ypt;function qpt(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,yf.issueFileCommand)("OUTPUT",(0,yf.prepareKeyValueMessage)(t,e));process.stdout.write($0e.EOL),(0,na.issueCommand)("set-output",{name:t},(0,uQ.toCommandValue)(e))}Qe.setOutput=qpt;function Jpt(t){(0,na.issue)("echo",t?"on":"off")}Qe.setCommandEcho=Jpt;function Vpt(t){process.exitCode=q9.Failure,eme(t)}Qe.setFailed=Vpt;function Wpt(){return process.env.RUNNER_DEBUG==="1"}Qe.isDebug=Wpt;function zpt(t){(0,na.issueCommand)("debug",{},t)}Qe.debug=zpt;function eme(t,e={}){(0,na.issueCommand)("error",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.error=eme;function jpt(t,e={}){(0,na.issueCommand)("warning",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.warning=jpt;function Kpt(t,e={}){(0,na.issueCommand)("notice",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.notice=Kpt;function Xpt(t){process.stdout.write(t+$0e.EOL)}Qe.info=Xpt;function tme(t){(0,na.issue)("group",t)}Qe.startGroup=tme;function rme(){(0,na.issue)("endgroup")}Qe.endGroup=rme;function Zpt(t,e){return Z0e(this,void 0,void 0,function*(){tme(t);let r;try{r=yield e()}finally{rme()}return r})}Qe.group=Zpt;function $pt(t,e){if(process.env.GITHUB_STATE||"")return(0,yf.issueFileCommand)("STATE",(0,yf.prepareKeyValueMessage)(t,e));(0,na.issueCommand)("save-state",{name:t},(0,uQ.toCommandValue)(e))}Qe.saveState=$pt;function e0t(t){return process.env[`STATE_${t}`]||""}Qe.getState=e0t;function t0t(t){return Z0e(this,void 0,void 0,function*(){return yield _pt.OidcClient.getIDToken(t)})}Qe.getIDToken=t0t;var r0t=_9();Object.defineProperty(Qe,"summary",{enumerable:!0,get:function(){return r0t.summary}});var A0t=_9();Object.defineProperty(Qe,"markdownSummary",{enumerable:!0,get:function(){return A0t.markdownSummary}});var W9=F0e();Object.defineProperty(Qe,"toPosixPath",{enumerable:!0,get:function(){return W9.toPosixPath}});Object.defineProperty(Qe,"toWin32Path",{enumerable:!0,get:function(){return W9.toWin32Path}});Object.defineProperty(Qe,"toPlatformPath",{enumerable:!0,get:function(){return W9.toPlatformPath}});Qe.platform=J9(X0e())});var Ame=h(Nu=>{"use strict";var s0t=Nu&&Nu.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),n0t=Nu&&Nu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i0t=Nu&&Nu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&s0t(e,t,r);return n0t(e,t),e};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.getOptions=void 0;var z9=i0t(no());function o0t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,z9.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,z9.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,z9.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Nu.getOptions=o0t});var c2=h(yA=>{"use strict";var a0t=yA&&yA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),c0t=yA&&yA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u0t=yA&&yA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&a0t(e,t,r);return c0t(e,t),e},l0t=yA&&yA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yA,"__esModule",{value:!0});yA.safeTrimTrailingSeparator=yA.normalizeSeparators=yA.hasRoot=yA.hasAbsoluteRoot=yA.ensureAbsoluteRoot=yA.dirname=void 0;var a2=u0t(B("path")),bf=l0t(B("assert")),Hd=process.platform==="win32";function g0t(t){if(t=K9(t),Hd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=a2.dirname(t);return Hd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=K9(e)),e}yA.dirname=g0t;function d0t(t,e){if(bf.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),bf.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),j9(e))return e;if(Hd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return bf.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+Line truncated
%s`,J,J,p,A);var j=p.type==="*"?eJ:p.type==="?"?$9:"\\"+p.type;s=!0,A=A.slice(0,p.reStart)+j+"\\("+J}E(),n&&(A+="\\\\");var H=!1;switch(A.charAt(0)){case"[":case".":case"(":H=!0}for(var $=o.length-1;$>-1;$--){var oe=o[$],pe=A.slice(0,oe.reStart),Ne=A.slice(oe.reStart,oe.reEnd-8),K=A.slice(oe.reEnd-8,oe.reEnd),le=A.slice(oe.reEnd);K+=le;var Pe=pe.split("(").length-1,Wt=le;for(C=0;C<Pe;C++)Wt=Wt.replace(/\)[+*?]?/,"");le=Wt;var Ht="";le===""&&e!==l2&&(Ht="$");var $g=pe+Ne+le+Ht+K;A=$g}if(A!==""&&s&&(A="(?=.)"+A),H&&(A=g+A),e===l2)return[A,s];if(!s)return G0t(t);var ed=r.nocase?"i":"";try{var vo=new RegExp("^"+A+"$",ed)}catch{return new RegExp("$.")}return vo._glob=t,vo._src=A,vo}io.makeRe=function(t,e){return new Js(t,e||{}).makeRe()};Js.prototype.makeRe=H0t;function H0t(){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?eJ:e.dot?x0t:U0t,A=e.nocase?"i":"",s=t.map(function(n){return n.map(function(i){return i===tJ?r:typeof i=="string"?Y0t(i):i._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,A)}catch{this.regexp=!1}return this.regexp}io.match=function(t,e,r){r=r||{};var A=new Js(e,r);return t=t.filter(function(s){return A.match(s)}),A.options.nonull&&!t.length&&t.push(e),t};Js.prototype.match=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 A=this.options;Iw.sep!=="/"&&(e=e.split(Iw.sep).join("/")),e=e.split(bme),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,i;for(i=e.length-1;i>=0&&(n=e[i],!n);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;A.matchBase&&o.length===1&&(a=[n]);var c=this.matchOne(a,o,r);if(c)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate};Js.prototype.matchOne=function(t,e,r){var A=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,i=t.length,o=e.length;s<i&&n<o;s++,n++){this.debug("matchOne loop");var a=e[n],c=t[s];if(this.debug(e,a,c),a===!1)return!1;if(a===tJ){this.debug("GLOBSTAR",[e,a,c]);var u=s,l=n+1;if(l===o){for(this.debug("** at the end");s<i;s++)if(t[s]==="."||t[s]===".."||!A.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<i;){var g=t[u];if(this.debug(`
globstar while`,t,u,e,l,g),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,i,g),!0;if(g==="."||g===".."||!A.dot&&g.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===i))}var d;if(typeof a=="string"?(d=c===a,this.debug("string match",a,c,d)):(d=c.match(a),this.debug("pattern match",a,c,d)),!d)return!1}if(s===i&&n===o)return!0;if(s===i)return r;if(n===o)return s===i-1&&t[s]==="";throw new Error("wtf?")};function G0t(t){return t.replace(/\\(.)/g,"$1")}function Y0t(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Rme=h(ia=>{"use strict";var q0t=ia&&ia.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),J0t=ia&&ia.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nme=ia&&ia.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&q0t(e,t,r);return J0t(e,t),e},V0t=ia&&ia.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ia,"__esModule",{value:!0});ia.Path=void 0;var Bw=Nme(B("path")),Yd=Nme(c2()),Qw=V0t(B("assert")),W0t=process.platform==="win32",AJ=class{constructor(e){if(this.segments=[],typeof e=="string")if(Qw.default(e,"Parameter 'itemPath' must not be empty"),e=Yd.safeTrimTrailingSeparator(e),!Yd.hasRoot(e))this.segments=e.split(Bw.sep);else{let r=e,A=Yd.dirname(r);for(;A!==r;){let s=Bw.basename(r);this.segments.unshift(s),r=A,A=Yd.dirname(r)}this.segments.unshift(r)}else{Qw.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];Qw.default(A,"Parameter 'itemPath' must not contain any empty segments"),A=Yd.normalizeSeparators(e[r]),r===0&&Yd.hasRoot(A)?(A=Yd.safeTrimTrailingSeparator(A),Qw.default(A===Yd.dirname(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)):(Qw.default(!A.includes(Bw.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(A))}}}toString(){let e=this.segments[0],r=e.endsWith(Bw.sep)||W0t&&/^[A-Z]:$/i.test(e);for(let A=1;A<this.segments.length;A++)r?r=!1:e+=Bw.sep,e+=this.segments[A];return e}};ia.Path=AJ});var Sme=h(oa=>{"use strict";var z0t=oa&&oa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),j0t=oa&&oa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iJ=oa&&oa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&z0t(e,t,r);return j0t(e,t),e},K0t=oa&&oa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oa,"__esModule",{value:!0});oa.Pattern=void 0;var X0t=iJ(B("os")),pw=iJ(B("path")),gi=iJ(c2()),wf=K0t(B("assert")),Z0t=rJ(),sJ=u2(),d2=Rme(),rg=process.platform==="win32",nJ=class t{constructor(e,r=!1,A,s){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{A=A||[],wf.default(A.length,"Parameter 'segments' must not empty");let c=t.getLiteral(A[0]);wf.default(c&&gi.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),n=new d2.Path(A).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,s),this.segments=new d2.Path(n).segments,this.trailingSeparator=gi.normalizeSeparators(n).endsWith(pw.sep),n=gi.safeTrimTrailingSeparator(n);let i=!1,o=this.segments.map(c=>t.getLiteral(c)).filter(c=>!i&&!(i=c===""));this.searchPath=new d2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),rg?"i":""),this.isImplicitPattern=r;let a={dot:!0,nobrace:!0,nocase:rg,nocomment:!0,noext:!0,nonegate:!0};n=rg?n.replace(/\\/g,"/"):n,this.minimatch=new Z0t.Minimatch(n,a)}match(e){return this.segments[this.segments.length-1]==="**"?(e=gi.normalizeSeparators(e),!e.endsWith(pw.sep)&&this.isImplicitPattern===!1&&(e=`${e}${pw.sep}`)):e=gi.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?sJ.MatchKind.Directory:sJ.MatchKind.All:sJ.MatchKind.None}partialMatch(e){return e=gi.safeTrimTrailingSeparator(e),gi.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(rg?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(rg?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){wf.default(e,"pattern cannot be empty");let A=new d2.Path(e).segments.map(s=>t.getLiteral(s));if(wf.default(A.every((s,n)=>(s!=="."||n===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),wf.default(!gi.hasRoot(e)||A[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=gi.normalizeSeparators(e),e==="."||e.startsWith(`.${pw.sep}`))e=t.globEscape(process.cw Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new xme.Pattern(n));return A.searchPaths.push(...E2.getSearchPaths(A.patterns)),A})}static stat(e,r,A){return aJ(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mw.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){cJ.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield mw.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield mw.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){cJ.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};Qs.DefaultGlobber=uJ});var Lme=h(gQ=>{"use strict";var nmt=gQ&&gQ.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(gQ,"__esModule",{value:!0});gQ.create=void 0;var imt=Mme();function omt(t,e){return nmt(this,void 0,void 0,function*(){return yield imt.DefaultGlobber.create(t,e)})}gQ.create=omt});var Gme=h((nt,Hme)=>{nt=Hme.exports=Qt;var ar;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?ar=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:ar=function(){};nt.SEMVER_SPEC_VERSION="2.0.0";var bw=256,f2=Number.MAX_SAFE_INTEGER||9007199254740991,lJ=16,amt=bw-6,dQ=nt.re=[],or=nt.safeRe=[],X=nt.src=[],Y=nt.tokens={},Pme=0;function wt(t){Y[t]=Pme++}var dJ="[a-zA-Z0-9-]",gJ=[["\\s",1],["\\d",bw],[dJ,amt]];function Dw(t){for(var e=0;e<gJ.length;e++){var r=gJ[e][0],A=gJ[e][1];t=t.split(r+"*").join(r+"{0,"+A+"}").split(r+"+").join(r+"{1,"+A+"}")}return t}wt("NUMERICIDENTIFIER");X[Y.NUMERICIDENTIFIER]="0|[1-9]\\d*";wt("NUMERICIDENTIFIERLOOSE");X[Y.NUMERICIDENTIFIERLOOSE]="\\d+";wt("NONNUMERICIDENTIFIER");X[Y.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+dJ+"*";wt("MAINVERSION");X[Y.MAINVERSION]="("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")";wt("MAINVERSIONLOOSE");X[Y.MAINVERSIONLOOSE]="("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")";wt("PRERELEASEIDENTIFIER");X[Y.PRERELEASEIDENTIFIER]="(?:"+X[Y.NUMERICIDENTIFIER]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";wt("PRERELEASEIDENTIFIERLOOSE");X[Y.PRERELEASEIDENTIFIERLOOSE]="(?:"+X[Y.NUMERICIDENTIFIERLOOSE]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";wt("PRERELEASE");X[Y.PRERELEASE]="(?:-("+X[Y.PRERELEASEIDENTIFIER]+"(?:\\."+X[Y.PRERELEASEIDENTIFIER]+")*))";wt("PRERELEASELOOSE");X[Y.PRERELEASELOOSE]="(?:-?("+X[Y.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+X[Y.PRERELEASEIDENTIFIERLOOSE]+")*))";wt("BUILDIDENTIFIER");X[Y.BUILDIDENTIFIER]=dJ+"+";wt("BUILD");X[Y.BUILD]="(?:\\+("+X[Y.BUILDIDENTIFIER]+"(?:\\."+X[Y.BUILDIDENTIFIER]+")*))";wt("FULL");wt("FULLPLAIN");X[Y.FULLPLAIN]="v?"+X[Y.MAINVERSION]+X[Y.PRERELEASE]+"?"+X[Y.BUILD]+"?";X[Y.FULL]="^"+X[Y.FULLPLAIN]+"$";wt("LOOSEPLAIN");X[Y.LOOSEPLAIN]="[v=\\s]*"+X[Y.MAINVERSIONLOOSE]+X[Y.PRERELEASELOOSE]+"?"+X[Y.BUILD]+"?";wt("LOOSE");X[Y.LOOSE]="^"+X[Y.LOOSEPLAIN]+"$";wt("GTLT");X[Y.GTLT]="((?:<|>)?=?)";wt("XRANGEIDENTIFIERLOOSE");X[Y.XRANGEIDENTIFIERLOOSE]=X[Y.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";wt("XRANGEIDENTIFIER");X[Y.XRANGEIDENTIFIER]=X[Y.NUMERICIDENTIFIER]+"|x|X|\\*";wt("XRANGEPLAIN");X[Y.XRANGEPLAIN]="[v=\\s]*("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:"+X[Y.PRERELEASE]+")?"+X[Y.BUILD]+"?)?)?";wt("XRANGEPLAINLOOSE");X[Y.XRANGEPLAINLOOSE]="[v=\\s]*("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:"+X[Y.PRERELEASELOOSE]+")?"+X[Y.BUILD]+"?)?)?";wt("XRANGE");X[Y.XRANGE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAIN]+"$";wt("XRANGELOOSE");X[Y.XRANGELOOSE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAINLOOSE]+"$";wt("COERCE");X[Y.COERCE]="(^|[^\\d])(\\d{1,"+lJ+"})(?:\\.(\\d{1,"+lJ+"}))?(?:\\.(\\d{1,"+lJ+"}))?(?:$|[^\\d])";wt("COERCERTL");dQ[Y.COERCERTL]=new RegExp(X[Y.COERCE],"g");or[Y.COERCERTL]=new RegExp(Dw(X[Y.COERCE]),"g");wt("LONETILDE");X[Y.LONETILDE]="(?:~>?)";wt("TILDETRIM");X[Y.TILDETRIM]="(\\s*)"+X[Y.LONETILDE]+"\\s+";dQ[Y.TILDETRIM]=new RegExp(X[Y.TILDETRIM],"g");or[Y.TILDETRIM]=new RegExp(Dw(X[Y.TILDETRIM]),"g");var cmt="$1~";wt("TILDE");X[Y.TILDE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAIN]+"$";wt("TILDELOOSE");X[Y.TILDELOOSE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAINLOOSE]+"$";wt("LONECARET");X[Y.LONECARET]="(?:\\^)";wt("CARETTRIM");X[Y.CARETTRIM]="(\\s*)"+X[Y.LONECARET]+"\\s+";dQ[Y.CARETTRIM]=new RegExp(X[Y.CARETTRIM],"g");or[Y.CARETTRIM]=new RegExp(Dw(X[Y.CARETTRIM]),"g");var umt="$1^";wt("CARET");X[Y.C Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=Wmt(a.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let g=s,d=Q2.relative(o,g).replace(new RegExp(`\\${Q2.sep}`,"g"),"/");Nw.debug(`Matched: ${d}`),d===""?i.push("."):i.push(`${d}`)}}catch(g){r={error:g}}finally{try{!c&&!e&&(A=u.return)&&(yield A.call(u))}finally{if(r)throw r.error}}return i})}Kt.resolvePaths=tyt;function ryt(t){return fQ(this,void 0,void 0,function*(){return Xmt.promisify(IJ.unlink)(t)})}Kt.unlinkFile=ryt;function zme(t,e=[]){return fQ(this,void 0,void 0,function*(){let r="";e.push("--version"),Nw.debug(`Checking ${t} ${e.join(" ")}`);try{yield zmt.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:A=>r+=A.toString(),stderr:A=>r+=A.toString()}})}catch(A){Nw.debug(A.message)}return r=r.trim(),Nw.debug(r),r})}function Ayt(){return fQ(this,void 0,void 0,function*(){let t=yield zme("zstd",["--quiet"]),e=Kmt.clean(t);return Nw.debug(`zstd version: ${e}`),t===""?Rf.CompressionMethod.Gzip:Rf.CompressionMethod.ZstdWithoutLong})}Kt.getCompressionMethod=Ayt;function syt(t){return t===Rf.CompressionMethod.Gzip?Rf.CacheFilename.Gzip:Rf.CacheFilename.Zstd}Kt.getCacheFileName=syt;function nyt(){return fQ(this,void 0,void 0,function*(){return IJ.existsSync(Rf.GnuTarPathOnWindows)?Rf.GnuTarPathOnWindows:(yield zme("tar")).toLowerCase().includes("gnu tar")?Vme.which("tar"):""})}Kt.getGnuTarPathOnWindows=nyt;function iyt(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Kt.assertDefined=iyt;function oyt(t,e,r=!1){let A=t.slice();return e&&A.push(e),process.platform==="win32"&&!r&&A.push("windows-only"),A.push(Zmt),Wme.createHash("sha256").update(A.join("|")).digest("hex")}Kt.getCacheVersion=oyt;function ayt(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Kt.getRuntimeToken=ayt});var kr={};nc(kr,{__addDisposableResource:()=>Bye,__assign:()=>p2,__asyncDelegator:()=>lye,__asyncGenerator:()=>uye,__asyncValues:()=>gye,__await:()=>IQ,__awaiter:()=>sye,__classPrivateFieldGet:()=>fye,__classPrivateFieldIn:()=>Iye,__classPrivateFieldSet:()=>Cye,__createBinding:()=>y2,__decorate:()=>Xme,__disposeResources:()=>Qye,__esDecorate:()=>$me,__exportStar:()=>iye,__extends:()=>jme,__generator:()=>nye,__importDefault:()=>Eye,__importStar:()=>hye,__makeTemplateObject:()=>dye,__metadata:()=>Aye,__param:()=>Zme,__propKey:()=>tye,__read:()=>pJ,__rest:()=>Kme,__rewriteRelativeImportExtension:()=>pye,__runInitializers:()=>eye,__setFunctionName:()=>rye,__spread:()=>oye,__spreadArray:()=>cye,__spreadArrays:()=>aye,__values:()=>m2,default:()=>lyt});function jme(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");BJ(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Kme(t,e){var r={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(r[A]=t[A]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,A=Object.getOwnPropertySymbols(t);s<A.length;s++)e.indexOf(A[s])<0&&Object.prototype.propertyIsEnumerable.call(t,A[s])&&(r[A[s]]=t[A[s]]);return r}function Xme(t,e,r,A){var s=arguments.length,n=s<3?e:A===null?A=Object.getOwnPropertyDescriptor(e,r):A,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,A);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(s<3?i(n):s>3?i(e,r,n):i(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n}function Zme(t,e){return function(r,A){e(r,A,t)}}function $me(t,e,r,A,s,n){function i(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}for(var o=A.kind,a=o==="getter"?"get":o==="setter"?"set":"value",c=!e&&t?A.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,A.name):{}),l,g=!1,d=r.length-1;d>=0;d--){var E={};for(var C in A)E[C]=C==="access"?{}:A[C];for(var C in A.access)E.access[C]=A.access[C];E.addInitializer=function(I){if(g)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(I||null))};var Q=(0,r[d])(o==="accessor"?{get:u.get,set:u.set}:u[a],E);if(o==="accessor"){if(Q===void 0)continue;if(Q===null||typeof Q!="object")throw new TypeError("Object expected");(l=i(Q.get))&&(u.get=l),(l=i(Q.set))&&(u.set=l),(l=i(Q.init))&&s.unshift(l)}else(l=i(Q))&&(o==="field"?s.unshift(l):u[a]=l)}c&&Object.defineProperty(c,A.name,u),g=!0}function eye(t,e,r){for(var A=arguments.length>2,s=0;s<e.length;s++)r=A?e[s].call(t,r):e[s].call(t);return A?r:void 0}function tye(t){return typeof t=="symbol"?t:"".concat(t)}function rye(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function Aye(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function sye(t,e,r,A){function s(n){return Line truncated
${Hyt.sanitize({...this,request:{...this.request,agent:A},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};kw.RestError=x2;function Gyt(t){return t instanceof x2?!0:(0,_yt.isError)(t)&&t.name==="RestError"}});var Sf=h(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});U2.uint8ArrayToString=Yyt;U2.stringToUint8Array=qyt;function Yyt(t,e){return Buffer.from(t).toString(e)}function qyt(t,e){return Buffer.from(t,e)}});var Fw=h(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0});M2.logger=void 0;var Jyt=N2();M2.logger=(0,Jyt.createClientLogger)("ts-http-runtime")});var Jye=h(v2=>{"use strict";Object.defineProperty(v2,"__esModule",{value:!0});v2.getBodyLength=qye;v2.createNodeHttpClient=$yt;var WJ=(Fr(),_r(kr)),qJ=WJ.__importDefault(B("node:http")),JJ=WJ.__importDefault(B("node:https")),Oye=WJ.__importDefault(B("node:zlib")),Vyt=B("node:stream"),Hye=Rw(),Wyt=Vd(),Uw=BQ(),QQ=Fw(),zyt=Tw(),jyt={};function xw(t){return t&&typeof t.pipe=="function"}function Gye(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Yye(t){return t&&typeof t.byteLength=="number"}var L2=class extends Vyt.Transform{loadedBytes=0;progressCallback;_transform(e,r,A){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),A()}catch(s){A(s)}}constructor(e){super(),this.progressCallback=e}},VJ=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,A;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hye.AbortError("The operation was aborted. Request has already been canceled.");A=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",A)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new zyt.Sanitizer;QQ.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),i=n?.includes("gzip")||n?.includes("deflate"),o=typeof e.body=="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){let c=qye(o);c!==null&&e.headers.set("Content-Length",c)}let a;try{if(o&&e.onUploadProgress){let E=e.onUploadProgress,C=new L2(E);C.on("error",Q=>{QQ.logger.error("Error in upload progress",Q)}),xw(o)?o.pipe(C):C.end(o),o=C}let c=await this.makeRequest(e,r,o);s!==void 0&&clearTimeout(s);let u=Kyt(c),g={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),g;a=i?Xyt(c,u):c;let d=e.onDownloadProgress;if(d){let E=new L2(d);E.on("error",C=>{QQ.logger.error("Error in download progress",C)}),a.pipe(E),a=E}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(g.status)?g.readableStreamBody=a:g.bodyAsText=await Zyt(a),g}finally{if(e.abortSignal&&A){let c=Promise.resolve();xw(o)&&(c=Gye(o));let u=Promise.resolve();xw(a)&&(u=Gye(a)),Promise.all([c,u]).then(()=>{A&&e.abortSignal?.removeEventListener("abort",A)}).catch(l=>{QQ.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,A){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let o={agent:e.agent??this.getOrCreateAgent(e,n),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((a,c)=>{let u=n?qJ.default.request(o,a):JJ.default.request(o,a);u.once("error",l=>{c(new Uw.RestError(l.message,{code:l.code??Uw.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hye.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),A&&xw(A)?A.pipe(u):A?typeof A=="string"||Buffer.isBuffer(A)?u.end(A):Yye(A)?u.end(ArrayBuffer.isView(A)?Buffer.from(A.buffer):Buffer.from(A)):(QQ.logger.error("Unrecognized body type",A),c(new Uw.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let A=e.disableKeepAlive;if(r)return A?qJ.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new qJ.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(A&&!e.tlsSettings)return JJ.default.globalAgent;let s=e.tlsSettings??jyt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!A||(QQ.logger.info("No cached TLS Agent exist, creating a new Agent"),n=new JJ.default.Agent({keepAlive:!A,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function Kyt(t){let e=(0,Wyt.createHttpHeaders)();for(let r of Object.keys(t.headers)){let A=t.headers[r];Array.isArray(A)?A.length>0&&e.set(r,A[0]):A&&e.set(r,A)}return e}function Xyt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let A=Oye.default.createGunzip();return t.pipe(A),A}else if(r==="deflate"){let A=Oye.default.createInflate();return t.p Line truncated
`.trim())}};c7.exports=nR});var WB=I((cht,g7)=>{"use strict";var l7=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:QNe}=et(),bNe=_h();h7()===void 0&&d7(new bNe);function d7(t){if(!t||typeof t.dispatch!="function")throw new QNe("Argument agent must implement Agent");Object.defineProperty(globalThis,l7,{value:t,writable:!0,enumerable:!1,configurable:!1})}function h7(){return globalThis[l7]}g7.exports={setGlobalDispatcher:d7,getGlobalDispatcher:h7}});var zB=I((lht,f7)=>{"use strict";f7.exports=class{#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 m7=I((dht,p7)=>{"use strict";var wNe=NB();p7.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new wNe(r,o,n,i);return r(a,A)}}});var C7=I((hht,E7)=>{"use strict";var NNe=vB();E7.exports=t=>e=>function(s,n){return e(s,new NNe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var B7=I((ght,I7)=>{"use strict";var SNe=Oe(),{InvalidArgumentError:TNe,RequestAbortedError:xNe}=et(),DNe=zB(),iR=class extends DNe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new TNe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,n){let o=SNe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new xNe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function RNe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new iR({maxSize:i},n);return e(s,o)}}I7.exports=RNe});var b7=I((fht,Q7)=>{"use strict";var{isIP:kNe}=N("node:net"),{lookup:FNe}=N("node:dns"),MNe=zB(),{InvalidArgumentError:Kh,InformationalError:UNe}=et(),y7=Math.pow(2,31)-1,oR=class{#e=0;#t=0;#s=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.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new UNe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){FNe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===y7?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===y7?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new aR(this,e,r)}},aR=class extends MNe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${o}`;return}if(My(e,n,zDe)){KDe(e,i)&&(r.retry=e.toString("utf8",i));return}if(My(e,n,WDe)){jDe(e,i)&&(r.id=e.toString("utf8",i));return}if(My(e,n,VDe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&HDe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&GDe(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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 s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,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),s=this.peekBufferedByte(2);return r===void 0?(e===cg[0]||(this.checkBOM=!1),!0):s===void 0?e===cg[0]&&r===cg[1]?!0:(this.checkBOM=!1,!1):(e===cg[0]&&r===cg[1]&&s===cg[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};rK.exports={EventSourceStream:jR}});var lK=I((Vht,uK)=>{"use strict";var{pipeline:XDe}=N("node:stream"),{fetching:ZDe}=Dm(),{makeRequest:$De}=Zh(),{webidl:nA}=Yr(),{EventSourceStream:e2e}=sK(),{parseMIMEType:t2e}=ks(),{createFastMessageEvent:r2e}=ng(),{isNetworkError:nK}=Tm(),{delay:s2e}=zR(),{kEnumerableProperty:hl}=Oe(),{environmentSettingsObject:iK}=ln(),oK=!1,aK=3e3,qm=0,AK=1,Jm=2,n2e="anonymous",i2e="use-credentials",ug=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qm;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),nA.util.markAsUncloneable(this);let s="EventSource constructor";nA.argumentLengthCheck(arguments,1,s),oK||(oK=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=nA.converters.USVString(e,s,"url"),r=nA.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:aK};let n=iK,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=n2e;r.withCredentials&&(o=i2e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=iK.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=$De(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Jm)return;this.#r=qm;let e={request:this.#i,dispatcher:this.#a},r=s=>{nK(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(nK(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?t2e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=AK,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new e2e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(r2e(A.type,A.options))}});XDe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=ZDe(e)}async#c(){this.#r!==Jm&&(this.#r=qm,this.dispatchEvent(new Event("error") Line truncated
%s`,k,k,C,s);var M=C.type==="*"?qk:C.type==="?"?Yk:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+k}f(),i&&(s+="\\\\");var q=!1;switch(s.charAt(0)){case"[":case".":case"(":q=!0}for(var v=a.length-1;v>-1;v--){var O=a[v],ye=s.slice(0,O.reStart),Re=s.slice(O.reStart,O.reEnd-8),Ce=s.slice(O.reEnd-8,O.reEnd),me=s.slice(O.reEnd);Ce+=me;var ke=ye.split("(").length-1,Lt=me;for(p=0;p<ke;p++)Lt=Lt.replace(/\)[+*?]?/,"");me=Lt;var _t="";me===""&&e!==sQ&&(_t="$");var Vi=ye+Re+me+_t+Ce;s=Vi}if(s!==""&&n&&(s="(?=.)"+s),q&&(s=d+s),e===sQ)return[s,n];if(!n)return iFe(t);var Wi=r.nocase?"i":"";try{var Pp=new RegExp("^"+s+"$",Wi)}catch{return new RegExp("$.")}return Pp._glob=t,Pp._src=s,Pp}yn.makeRe=function(t,e){return new gr(t,e||{}).makeRe()};gr.prototype.makeRe=nFe;function nFe(){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?qk:e.dot?jke:Xke,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Bl?r:typeof o=="string"?oFe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}yn.match=function(t,e,r){r=r||{};var s=new gr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};gr.prototype.match=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 s=this.options;sE.sep!=="/"&&(e=e.split(sE.sep).join("/")),e=e.split(iX),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};gr.prototype.matchOne=function(t,e,r){return e.indexOf(Bl)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};gr.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Bl){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Bl){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],C=0,w=[0],T=0;T<c.length;T++){var k=c[T];k===Bl?(w.push(C),m=[[],0],E.push(m)):(m[0].push(k),C++)}for(var M=E.length-1,q=t.length-d,v=0;v<E.length;v++)E[v][1]=q-(w[M--]+E[v][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!d)};gr.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};gr.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Bl)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function iFe(t){return t.replace(/\\(.)/g,"$1")}function oFe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Cg=I((jft,dX)=>{"use strict";var gFe="2.0.0",fFe=Number.MAX_SAFE_INTEGER||9007199254740991,pFe=16,mFe=250,EFe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pFe,MAX_SAFE_BUILD_LENGTH:mFe,MAX_SAFE_INTEGER:fFe,RELEASE_TYPES:EFe,SEMVER_SPEC_VERSION:gFe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var aE=I((Xft,hX)=>{"use strict";var CFe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};hX.exports=CFe});var Ig=I((Ho,gX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Vk,MAX_SAFE_BUILD_LENGTH:IFe,MAX_LENGTH:BFe}=Cg(),yFe=aE();Ho=gX.exports={};var QFe=Ho.re=[],bFe=Ho.safeRe=[],X=Ho.src=[],wFe=Ho.safeSrc=[],Z=Ho.t={},NFe=0,Wk="[a-zA-Z0-9-]",SFe=[["\\s",1],["\\d",BFe],[Wk,IFe]],TFe=t=>{for(let[e,r]of SFe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+n),t.push(s+"m+"+W2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=uwt()+e+" "+t[0]}function uwt(){return ms.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lwt(...t){return process.stderr.write(V2.formatWithOptions(ms.inspectOpts,...t)+`
`)}function gwt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function dwt(){return process.env.DEBUG}function hwt(t){t.inspectOpts={};let e=Object.keys(ms.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ms.inspectOpts[e[r]]}W2.exports=l6()(ms);var{formatters:hbe}=W2.exports;hbe.o=function(t){return this.inspectOpts.colors=this.useColors,V2.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};hbe.O=function(t){return this.inspectOpts.colors=this.useColors,V2.inspect(t,this.inspectOpts)}});var z2=h((oDr,h6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?h6.exports=abe():h6.exports=Ebe()});var Ibe=h(hi=>{"use strict";var Ewt=hi&&hi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),fwt=hi&&hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fbe=hi&&hi.__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)&&Ewt(e,t,r);return fwt(e,t),e};Object.defineProperty(hi,"__esModule",{value:!0});hi.req=hi.json=hi.toBuffer=void 0;var Cwt=fbe(B("http")),Iwt=fbe(B("https"));async function Cbe(t){let e=0,r=[];for await(let A of t)e+=A.length,r.push(A);return Buffer.concat(r,e)}hi.toBuffer=Cbe;async function Bwt(t){let r=(await Cbe(t)).toString("utf8");try{return JSON.parse(r)}catch(A){let s=A;throw s.message+=` (input: ${r})`,s}}hi.json=Bwt;function Qwt(t,e={}){let A=((typeof t=="string"?t:t.href).startsWith("https:")?Iwt:Cwt).request(t,e),s=new Promise((n,i)=>{A.once("response",n).once("error",i).end()});return A.then=s.then.bind(s),A}hi.req=Qwt});var f6=h(oo=>{"use strict";var Qbe=oo&&oo.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pwt=oo&&oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pbe=oo&&oo.__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)&&Qbe(e,t,r);return pwt(e,t),e},mwt=oo&&oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qbe(e,t,r)};Object.defineProperty(oo,"__esModule",{value:!0});oo.Agent=void 0;var ywt=pbe(B("net")),Bbe=pbe(B("http")),bwt=B("https");mwt(Ibe(),oo);var Su=Symbol("AgentBaseInternalState"),E6=class extends Bbe.Agent{constructor(e){super(e),this[Su]={}}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(A=>A.indexOf("(https.js:")!==-1||A.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 ywt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let A=this.sockets[e],s=A.indexOf(r);s!==-1&&(A.splice(s,1),this.totalSocketCount--,A.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?bwt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,A){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),i=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(this.decrementSockets(n,i),o instanceof Bbe.Agent)try{return o.addRequest(e,s)}catch(a){return A(a)}this[Su].currentSocket=o,super.createSocket(e,r,A)},o=>{this.decrementSockets(n,i),A(o)})}createConnection(){let e=this[Su].currentSocket;if(this[Su].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Su].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Su]&&(this[Su].defaultPort=e)}get protocol(){return this[Su].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Su]&&(this[Su].protocol=e)}};oo.Agent=E6});var mbe=h(FQ=>{"use strict";var wwt=FQ&&FQ.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FQ,"__esModule",{value:!0});FQ.parseProxyResponse=void 0;var Dwt=wwt(z2()),j2=(0,Dwt.default)("https-proxy-agent:parse-proxy-response");function Nwt(t){return new Promise((e,r)=>{let A=0,s=[];function n(){let u=t.read();u?c(u):t.once("readable",n)}function i(){t.removeListener("end",o),t.removeListener("error",a),t.removeListener("readable",n)}function o(){i(),j2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function a(u){i(),j2("onerror %o",u),r(u)}function c(u){s.push(u),A+=u.length;let l=Buffer.concat(s,A),g=l.indexOf(`\r
`+i),t.push(n+"m+"+qQ.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fve()+e+" "+t[0]}function fve(){return Dr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function pve(...t){return process.stderr.write(YQ.formatWithOptions(Dr.inspectOpts,...t)+`
`)}function mve(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Eve(){return process.env.DEBUG}function Cve(t){t.inspectOpts={};let e=Object.keys(Dr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dr.inspectOpts[e[r]]}qQ.exports=LF()(Dr);var{formatters:Y$}=qQ.exports;Y$.o=function(t){return this.inspectOpts.colors=this.useColors,YQ.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Y$.O=function(t){return this.inspectOpts.colors=this.useColors,YQ.inspect(t,this.inspectOpts)}});var JQ=I((SEt,OF)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?OF.exports=v$():OF.exports=q$()});var W$=I(_s=>{"use strict";var Ive=_s&&_s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Bve=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J$=_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)&&Ive(e,t,r);return Bve(e,t),e};Object.defineProperty(_s,"__esModule",{value:!0});_s.req=_s.json=_s.toBuffer=void 0;var yve=J$(N("http")),Qve=J$(N("https"));async function V$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}_s.toBuffer=V$;async function bve(t){let r=(await V$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}_s.json=bve;function wve(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Qve:yve).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}_s.req=wve});var HF=I(wn=>{"use strict";var K$=wn&&wn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Nve=wn&&wn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),j$=wn&&wn.__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)&&K$(e,t,r);return Nve(e,t),e},Sve=wn&&wn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K$(e,t,r)};Object.defineProperty(wn,"__esModule",{value:!0});wn.Agent=void 0;var Tve=j$(N("net")),z$=j$(N("http")),xve=N("https");Sve(W$(),wn);var qo=Symbol("AgentBaseInternalState"),_F=class extends z$.Agent{constructor(e){super(e),this[qo]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 Tve.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?xve.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof z$.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[qo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[qo].currentSocket;if(this[qo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qo]&&(this[qo].defaultPort=e)}get protocol(){return this[qo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qo]&&(this[qo].protocol=e)}};wn.Agent=_F});var X$=I(xg=>{"use strict";var Dve=xg&&xg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xg,"__esModule",{value:!0});xg.parseProxyResponse=void 0;var Rve=Dve(JQ()),VQ=(0,Rve.default)("https-proxy-agent:parse-proxy-response");function kve(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),VQ("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),VQ("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
\r
`);if(g===-1){j2("have not received end of HTTP headers yet..."),n();return}let d=l.slice(0,g).toString("ascii").split(`\r
`),E=d.shift();if(!E)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let C=E.split(" "),Q=+C[1],I=C.slice(2).join(" "),p={};for(let w of d){if(!w)continue;let k=w.indexOf(":");if(k===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let J=w.slice(0,k).toLowerCase(),j=w.slice(k+1).trimStart(),H=p[J];typeof H=="string"?p[J]=[H,j]:Array.isArray(H)?H.push(j):p[J]=j}j2("got proxy server response: %o %o",E,p),i(),e({connect:{statusCode:Q,statusText:I,headers:p},buffered:l})}t.on("error",a),t.on("end",o),n()})}FQ.parseProxyResponse=Nwt});var Rbe=h(ua=>{"use strict";var Rwt=ua&&ua.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),Swt=ua&&ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dbe=ua&&ua.__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)&&Rwt(e,t,r);return Swt(e,t),e},Nbe=ua&&ua.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.HttpsProxyAgent=void 0;var K2=Dbe(B("net")),ybe=Dbe(B("tls")),Twt=Nbe(B("assert")),kwt=Nbe(z2()),Fwt=f6(),xwt=B("url"),Uwt=mbe(),vw=(0,kwt.default)("https-proxy-agent"),bbe=t=>t.servername===void 0&&t.host&&!K2.isIP(t.host)?{...t,servername:t.host}:t,X2=class extends Fwt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xwt.URL(e):e,this.proxyHeaders=r?.headers??{},vw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let A=(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?wbe(r,"headers"):null,host:A,port:s}}async connect(e,r){let{proxy:A}=this;if(!r.host)throw new TypeError('No "host" provided');let s;A.protocol==="https:"?(vw("Creating `tls.Socket`: %o",this.connectOpts),s=ybe.connect(bbe(this.connectOpts))):(vw("Creating `net.Socket`: %o",this.connectOpts),s=K2.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=K2.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(A.username||A.password){let g=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}n.Host=`${i}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(n))o+=`${g}: ${n[g]}\r
`;let a=(0,Uwt.parseProxyResponse)(s);s.write(`${o}\r
`);let{connect:c,buffered:u}=await a;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Mwt),r.secureEndpoint?(vw("Upgrading socket connection to TLS"),ybe.connect({...wbe(bbe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new K2.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{vw("Replaying proxy buffer for failed request"),(0,Twt.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};X2.protocols=["http","https"];ua.HttpsProxyAgent=X2;function Mwt(t){t.resume()}function wbe(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var kbe=h(la=>{"use strict";var Lwt=la&&la.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),vwt=la&&la.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tbe=la&&la.__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)&&Lwt(e,t,r);return vwt(e,t),e},_wt=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.HttpProxyAgent=void 0;var Pwt=Tbe(B("net")),Owt=Tbe(B("tls")),Hwt=_wt(z2()),Gwt=B("events"),Ywt=f6(),Sbe=B("url"),xQ=(0,Hwt.default)("http-proxy-agent"),Z2=class extends Ywt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Sbe.URL(e):e,this.proxyHeaders=r?.headers??{},xQ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let A=(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?qwt(r,"headers"):null,host:A,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:A}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",i=`${s}//${n}`,o=new Sbe.URL(e.path,i);r.port!==80&&(o.port=String(r.port)),e.path=String(o);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(A.username||A.password){let c=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(a)){let u=a[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let A,s;xQ("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xQ("Patching connection write() output buffer with updated header"),A=e.outputData[0].data,s=A.indexOf(`\r
`);if(d===-1){VQ("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),E=+p[1],m=p.slice(2).join(" "),C={};for(let w of h){if(!w)continue;let T=w.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let k=w.slice(0,T).toLowerCase(),M=w.slice(T+1).trimStart(),q=C[k];typeof q=="string"?C[k]=[q,M]:Array.isArray(q)?q.push(M):C[k]=M}VQ("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:E,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}xg.parseProxyResponse=kve});var see=I(ci=>{"use strict";var Fve=ci&&ci.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Mve=ci&&ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tee=ci&&ci.__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)&&Fve(e,t,r);return Mve(e,t),e},ree=ci&&ci.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ci,"__esModule",{value:!0});ci.HttpsProxyAgent=void 0;var WQ=tee(N("net")),Z$=tee(N("tls")),Uve=ree(N("assert")),Lve=ree(JQ()),vve=HF(),Pve=N("url"),Ove=X$(),BE=(0,Lve.default)("https-proxy-agent"),$$=t=>t.servername===void 0&&t.host&&!WQ.isIP(t.host)?{...t,servername:t.host}:t,zQ=class extends vve.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Pve.URL(e):e,this.proxyHeaders=r?.headers??{},BE("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?eee(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(BE("Creating `tls.Socket`: %o",this.connectOpts),n=Z$.connect($$(this.connectOpts))):(BE("Creating `net.Socket`: %o",this.connectOpts),n=WQ.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=WQ.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Ove.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",_ve),r.secureEndpoint?(BE("Upgrading socket connection to TLS"),Z$.connect({...eee($$(r),"host","path","port"),socket:n})):n;n.destroy();let l=new WQ.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{BE("Replaying proxy buffer for failed request"),(0,Uve.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};zQ.protocols=["http","https"];ci.HttpsProxyAgent=zQ;function _ve(t){t.resume()}function eee(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var oee=I(ui=>{"use strict";var Hve=ui&&ui.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Gve=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iee=ui&&ui.__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)&&Hve(e,t,r);return Gve(e,t),e},Yve=ui&&ui.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ui,"__esModule",{value:!0});ui.HttpProxyAgent=void 0;var qve=iee(N("net")),Jve=iee(N("tls")),Vve=Yve(JQ()),Wve=N("events"),zve=HF(),nee=N("url"),Dg=(0,Vve.default)("http-proxy-agent"),KQ=class extends zve.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new nee.URL(e):e,this.proxyHeaders=r?.headers??{},Dg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Kve(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new nee.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Dg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Dg("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+A.substring(s),xQ("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(xQ("Creating `tls.Socket`: %o",this.connectOpts),n=Owt.connect(this.connectOpts)):(xQ("Creating `net.Socket`: %o",this.connectOpts),n=Pwt.connect(this.connectOpts)),await(0,Gwt.once)(n,"connect"),n}};Z2.protocols=["http","https"];la.HttpProxyAgent=Z2;function qwt(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var C6=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.globalNoProxyList=ga.proxyPolicyName=void 0;ga.loadNoProxy=Lbe;ga.getDefaultProxySettings=eDt;ga.proxyPolicy=rDt;var Jwt=Rbe(),Vwt=kbe(),Wwt=Fw(),zwt="HTTPS_PROXY",jwt="HTTP_PROXY",Kwt="ALL_PROXY",Xwt="NO_PROXY";ga.proxyPolicyName="proxyPolicy";ga.globalNoProxyList=[];var Ube=!1,Zwt=new Map;function $2(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function Mbe(){if(!process)return;let t=$2(zwt),e=$2(Kwt),r=$2(jwt);return t||e||r}function $wt(t,e,r){if(e.length===0)return!1;let A=new URL(t).hostname;if(r?.has(A))return r.get(A);let s=!1;for(let n of e)n[0]==="."?(A.endsWith(n)||A.length===n.length-1&&A===n.slice(1))&&(s=!0):A===n&&(s=!0);return r?.set(A,s),s}function Lbe(){let t=$2(Xwt);return Ube=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function eDt(t){if(!t&&(t=Mbe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function tDt(){let t=Mbe();return t?new URL(t):void 0}function Fbe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function xbe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Wwt.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let n=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Vwt.HttpProxyAgent(r,{headers:n})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Jwt.HttpsProxyAgent(r,{headers:n})),t.agent=e.httpsProxyAgent)}function rDt(t,e){Ube||ga.globalNoProxyList.push(...Lbe());let r=t?Fbe(t):tDt(),A={};return{name:ga.proxyPolicyName,async sendRequest(s,n){return!s.proxySettings&&r&&!$wt(s.url,e?.customNoProxyList??ga.globalNoProxyList,e?.customNoProxyList?void 0:Zwt)?xbe(s,A,r):s.proxySettings&&xbe(s,A,Fbe(s.proxySettings)),n(s)}}}});var I6=h(UQ=>{"use strict";Object.defineProperty(UQ,"__esModule",{value:!0});UQ.agentPolicyName=void 0;UQ.agentPolicy=ADt;UQ.agentPolicyName="agentPolicy";function ADt(t){return{name:UQ.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var B6=h(MQ=>{"use strict";Object.defineProperty(MQ,"__esModule",{value:!0});MQ.tlsPolicyName=void 0;MQ.tlsPolicy=sDt;MQ.tlsPolicyName="tlsPolicy";function sDt(t){return{name:MQ.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var _w=h(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.isNodeReadableStream=vbe;Ff.isWebReadableStream=_be;Ff.isBinaryBody=nDt;Ff.isReadableStream=Pbe;Ff.isBlob=iDt;function vbe(t){return!!(t&&typeof t.pipe=="function")}function _be(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function nDt(t){return t!==void 0&&(t instanceof Uint8Array||Pbe(t)||typeof t=="function"||t instanceof Blob)}function Pbe(t){return vbe(t)||_be(t)}function iDt(t){return typeof t.stream=="function"}});var Gbe=h(p6=>{"use strict";Object.defineProperty(p6,"__esModule",{value:!0});p6.concat=uDt;var Q6=B("stream"),oDt=_w();async function*Obe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function aDt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=Obe.bind(t)),t.values||(t.values=Obe.bind(t))}function Hbe(t){return t instanceof ReadableStream?(aDt(t),Q6.Readable.fromWeb(t)):t}function cDt(t){return t instanceof Uint8Array?Q6.Readable.from(Buffer.from(t)):(0,oDt.isBlob)(t)?Hbe(t.stream()):Hbe(t)}async function uDt(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(cDt);return Q6.Readable.from((async function*(){for(let r of e)for await(let A of r)yield A})())}}});var m6=h(vQ=>{"use strict";Object.defineProperty(vQ,"__esModule",{value:!0});vQ.multipartPolicyName=void 0;vQ.multipartPolicy=mDt;var LQ=Sf(),lDt=_w(),gDt=S2(),dDt=Gbe();function hDt(){return`----AzSDKFormBoundary${(0,gDt.randomUUID)()}`}function EDt(t){let e="";for(let[r,A]of t)e+=`${r}: ${A}\r
`;return e}function fDt(t){return t instanceof Uint8Array?t.byteLength:(0,lDt.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function CDt(t){let e=0;for(let r of t){let A=fDt(r);if(A===void 0)return;e+=A}return e}async function IDt(t,e,r){let A=[(0,LQ.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(n=>[(0,LQ.stringToUint8Array)(`\r
`,"utf-8"),(0,LQ.stringToUint8Array)(EDt(n.headers),"utf-8"),(0,LQ.stringToUint8Array)(`\r
`,"utf-8"),n.body,(0,LQ.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,LQ.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=CDt(A);s&&t.headers.set("Content-Length",s),t.body=await(0,dDt.concat)(A)}vQ.multipartPolicyName="multipartPolicy";var BDt=70,QDt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pDt(t){if(t.length>BDt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!QDt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function mDt(){return{name:vQ.multipartPolicyName,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,A=t.headers.get("Content-Type")??"multipart/mixed",s=A.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${A}`);let[,n,i]=s;if(i&&r&&i!==r)throw new Error(`Multipart boundary was specified as ${i} in the header, but got ${r} in the request body`);return r??=i,r?pDt(r):r=hDt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await IDt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var Jbe=h(y6=>{"use strict";Object.defineProperty(y6,"__esModule",{value:!0});y6.createPipelineFromOptions=xDt;var yDt=KJ(),bDt=_J(),wDt=XJ(),DDt=e6(),NDt=t6(),RDt=c6(),SDt=u6(),Ybe=Lw(),TDt=C6(),kDt=I6(),FDt=B6(),qbe=m6();function xDt(t){let e=(0,bDt.createEmptyPipeline)();return Ybe.isNodeLike&&(t.agent&&e.addPolicy((0,kDt.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,FDt.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,TDt.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,NDt.decompressResponsePolicy)())),e.addPolicy((0,SDt.formDataPolicy)(),{beforePolicies:[qbe.multipartPolicyName]}),e.addPolicy((0,DDt.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,qbe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,RDt.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),Ybe.isNodeLike&&e.addPolicy((0,wDt.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,yDt.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var Vbe=h(_Q=>{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.apiVersionPolicyName=void 0;_Q.apiVersionPolicy=UDt;_Q.apiVersionPolicyName="ApiVersionPolicy";function UDt(t){return{name:_Q.apiVersionPolicyName,sendRequest:(e,r)=>{let A=new URL(e.url);return!A.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(A.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var Wbe=h(PQ=>{"use strict";Object.defineProperty(PQ,"__esModule",{value:!0});PQ.isOAuth2TokenCredential=MDt;PQ.isBearerTokenCredential=LDt;PQ.isBasicCredential=vDt;PQ.isApiKeyCredential=_Dt;function MDt(t){return"getOAuth2Token"in t}function LDt(t){return"getBearerToken"in t}function vDt(t){return"username"in t&&"password"in t}function _Dt(t){return"key"in t}});var Pw=h(b6=>{"use strict";Object.defineProperty(b6,"__esModule",{value:!0});b6.ensureSecureConnection=GDt;var PDt=Fw(),zbe=!1;function ODt(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function HDt(){let t="Sending token over insecure transport. Assume any token issued is compromised.";PDt.logger.warning(t),typeof process?.emitWarning=="function"&&!zbe&&(zbe=!0,process.emitWarning(t))}function GDt(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(ODt(t,e))HDt();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var jbe=h(OQ=>{"use strict";Object.defineProperty(OQ,"__esModule",{value:!0});OQ.apiKeyAuthenticationPolicyName=void 0;OQ.apiKeyAuthenticationPolicy=qDt;var YDt=Pw();OQ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function qDt(t){return{name:OQ.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,YDt.ensureSecureConnection)(e,t);let A=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!A)return r(e);if(A.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${A.apiKeyLocation}`);return e.headers.set(A.name,t.credential.key),r(e)}}}});var Xbe=h(HQ=>{"use strict";Object.defineProperty(HQ,"__esModule",{value:!0});HQ.basicAuthenticationPolicyName=void 0;HQ.basicAuthenticationPolicy=VDt;var Kbe=Sf(),JDt=Pw();HQ.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function VDt(t){return{name:HQ.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,JDt.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(o=>o.kind==="http"&&o.scheme==="basic"))return r(e);let{username:s,password:n}=t.credential,i=(0,Kbe.uint8ArrayToString)((0,Kbe.stringToUint8Array)(`${s}:${n}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${i}`),r(e)}}}});var Zbe=h(GQ=>{"use strict";Object.defineProperty(GQ,"__esModule",{value:!0});GQ.bearerAuthenticationPolicyName=void 0;GQ.bearerA Line truncated
`).join(""))}return e(t)}}}});var VDe=h(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.auxiliaryAuthenticationHeaderPolicyName=void 0;Lf.auxiliaryAuthenticationHeaderPolicy=S1t;var D1t=DV(),N1t=Gw();Lf.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var JDe="x-ms-authorization-auxiliary";async function R1t(t){let{scopes:e,getAccessToken:r,request:A}=t,s={abortSignal:A.abortSignal,tracingOptions:A.tracingOptions};return(await r(e,s))?.token??""}function S1t(t){let{credentials:e,scopes:r}=t,A=t.logger||N1t.logger,s=new WeakMap;return{name:Lf.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(n,i){if(!n.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return A.info(`${Lf.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),i(n);let o=[];for(let c of e){let u=s.get(c);u||(u=(0,D1t.createTokenCycler)(c),s.set(c,u)),o.push(R1t({scopes:Array.isArray(r)?r:[r],request:n,getAccessToken:u,logger:A}))}let a=(await Promise.all(o)).filter(c=>!!c);return a.length===0?(A.warning(`None of the auxiliary tokens are valid. ${JDe} header will not be set.`),i(n)):(n.headers.set(JDe,a.map(c=>`Bearer ${c}`).join(", ")),i(n))}}}});var ls=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.createFileFromStream=Ae.createFile=Ae.agentPolicyName=Ae.agentPolicy=Ae.auxiliaryAuthenticationHeaderPolicyName=Ae.auxiliaryAuthenticationHeaderPolicy=Ae.ndJsonPolicyName=Ae.ndJsonPolicy=Ae.bearerTokenAuthenticationPolicyName=Ae.bearerTokenAuthenticationPolicy=Ae.formDataPolicyName=Ae.formDataPolicy=Ae.tlsPolicyName=Ae.tlsPolicy=Ae.userAgentPolicyName=Ae.userAgentPolicy=Ae.defaultRetryPolicy=Ae.tracingPolicyName=Ae.tracingPolicy=Ae.retryPolicy=Ae.throttlingRetryPolicyName=Ae.throttlingRetryPolicy=Ae.systemErrorRetryPolicyName=Ae.systemErrorRetryPolicy=Ae.redirectPolicyName=Ae.redirectPolicy=Ae.getDefaultProxySettings=Ae.proxyPolicyName=Ae.proxyPolicy=Ae.multipartPolicyName=Ae.multipartPolicy=Ae.logPolicyName=Ae.logPolicy=Ae.setClientRequestIdPolicyName=Ae.setClientRequestIdPolicy=Ae.exponentialRetryPolicyName=Ae.exponentialRetryPolicy=Ae.decompressResponsePolicyName=Ae.decompressResponsePolicy=Ae.isRestError=Ae.RestError=Ae.createPipelineRequest=Ae.createHttpHeaders=Ae.createDefaultHttpClient=Ae.createPipelineFromOptions=Ae.createEmptyPipeline=void 0;var T1t=M6();Object.defineProperty(Ae,"createEmptyPipeline",{enumerable:!0,get:function(){return T1t.createEmptyPipeline}});var k1t=RDe();Object.defineProperty(Ae,"createPipelineFromOptions",{enumerable:!0,get:function(){return k1t.createPipelineFromOptions}});var F1t=SDe();Object.defineProperty(Ae,"createDefaultHttpClient",{enumerable:!0,get:function(){return F1t.createDefaultHttpClient}});var x1t=TDe();Object.defineProperty(Ae,"createHttpHeaders",{enumerable:!0,get:function(){return x1t.createHttpHeaders}});var U1t=kDe();Object.defineProperty(Ae,"createPipelineRequest",{enumerable:!0,get:function(){return U1t.createPipelineRequest}});var WDe=px();Object.defineProperty(Ae,"RestError",{enumerable:!0,get:function(){return WDe.RestError}});Object.defineProperty(Ae,"isRestError",{enumerable:!0,get:function(){return WDe.isRestError}});var zDe=nV();Object.defineProperty(Ae,"decompressResponsePolicy",{enumerable:!0,get:function(){return zDe.decompressResponsePolicy}});Object.defineProperty(Ae,"decompressResponsePolicyName",{enumerable:!0,get:function(){return zDe.decompressResponsePolicyName}});var jDe=xDe();Object.defineProperty(Ae,"exponentialRetryPolicy",{enumerable:!0,get:function(){return jDe.exponentialRetryPolicy}});Object.defineProperty(Ae,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return jDe.exponentialRetryPolicyName}});var KDe=uV();Object.defineProperty(Ae,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return KDe.setClientRequestIdPolicy}});Object.defineProperty(Ae,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return KDe.setClientRequestIdPolicyName}});var XDe=q6();Object.defineProperty(Ae,"logPolicy",{enumerable:!0,get:function(){return XDe.logPolicy}});Object.defineProperty(Ae,"logPolicyName",{enumerable:!0,get:function(){return XDe.logPolicyName}});var ZDe=sV();Object.defineProperty(Ae,"multipartPolicy",{enumerable:!0,get:function(){return ZDe.multipartPolicy}});Object.defineProperty(Ae,"multipartPolicyName",{enumerable:!0,get:function(){return ZDe.multipartPolicyName}});var NV=cV();Object.defineProperty(Ae,"proxyPolicy",{enumerable:!0,get:function(){return NV.proxyPolicy}});Object.defineProperty(Ae,"proxyPolicyName",{enumerable:!0,get:function(){return NV.proxyPolicyName}});Object.defineProperty(Ae,"getDefaultProxySettings",{enumerable:!0,get:function(){return NV.getDefaultProxySettings}});var $De=J6();Object.defineProperty(Ae,"redirectPolicy",{enumerable:!0,get:function(){return $De.redirectPolicy Line truncated
`&&m[v]!=="\r";v++)Z+=m[v];if(Z=Z.trim(),Z[Z.length-1]==="/"&&(Z=Z.substring(0,Z.length-1),v--),!n(Z)){let tt;return tt=Z.trim().length===0?"Invalid space after '<'.":"Tag '"+Z+"' is an invalid name.",I("InvalidTag",tt,w(m,v))}let he=d(m,v);if(he===!1)return I("InvalidAttr","Attributes for '"+Z+"' have open quote.",w(m,v));let It=he.value;if(v=he.index,It[It.length-1]==="/"){let tt=v-It.length;It=It.substring(0,It.length-1);let St=C(It,y);if(St!==!0)return I(St.err.code,St.err.msg,w(m,tt+St.err.line));G=!0}else if(V){if(!he.tagClosed)return I("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",w(m,v));if(It.trim().length>0)return I("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",w(m,W));if(x.length===0)return I("InvalidTag","Closing tag '"+Z+"' has not been opened.",w(m,W));{let tt=x.pop();if(Z!==tt.tagName){let St=w(m,tt.tagStartPos);return I("InvalidTag","Expected closing tag '"+tt.tagName+"' (opened in line "+St.line+", col "+St.col+") instead of closing tag '"+Z+"'.",w(m,W))}x.length==0&&(U=!0)}}else{let tt=C(It,y);if(tt!==!0)return I(tt.err.code,tt.err.msg,w(m,v-It.length+tt.err.line));if(U===!0)return I("InvalidXml","Multiple possible root nodes found.",w(m,v));y.unpairedTags.indexOf(Z)!==-1||x.push({tagName:Z,tagStartPos:W}),G=!0}for(v++;v<m.length;v++)if(m[v]==="<"){if(m[v+1]==="!"){v++,v=u(m,v);continue}if(m[v+1]!=="?")break;if(v=c(m,++v),v.err)return v}else if(m[v]==="&"){let tt=Q(m,v);if(tt==-1)return I("InvalidChar","char '&' is not expected.",w(m,v));v=tt}else if(U===!0&&!a(m[v]))return I("InvalidXml","Extra text at the end",w(m,v));m[v]==="<"&&v--}}}return G?x.length==1?I("InvalidTag","Unclosed tag '"+x[0].tagName+"'.",w(m,x[0].tagStartPos)):!(x.length>0)||I("InvalidXml","Invalid '"+JSON.stringify(x.map((v=>v.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):I("InvalidXml","Start tag expected.",1)}function a(m){return m===" "||m===" "||m===`
`||m==="\r"}function c(m,y){let x=y;for(;y<m.length;y++)if(!(m[y]!="?"&&m[y]!=" ")){let G=m.substr(x,y-x);if(y>5&&G==="xml")return I("InvalidXml","XML declaration allowed only at the start of the document.",w(m,y));if(m[y]=="?"&&m[y+1]==">"){y++;break}}return y}function u(m,y){if(m.length>y+5&&m[y+1]==="-"&&m[y+2]==="-"){for(y+=3;y<m.length;y++)if(m[y]==="-"&&m[y+1]==="-"&&m[y+2]===">"){y+=2;break}}else if(m.length>y+8&&m[y+1]==="D"&&m[y+2]==="O"&&m[y+3]==="C"&&m[y+4]==="T"&&m[y+5]==="Y"&&m[y+6]==="P"&&m[y+7]==="E"){let x=1;for(y+=8;y<m.length;y++)if(m[y]==="<")x++;else if(m[y]===">"&&(x--,x===0))break}else if(m.length>y+9&&m[y+1]==="["&&m[y+2]==="C"&&m[y+3]==="D"&&m[y+4]==="A"&&m[y+5]==="T"&&m[y+6]==="A"&&m[y+7]==="["){for(y+=8;y<m.length;y++)if(m[y]==="]"&&m[y+1]==="]"&&m[y+2]===">"){y+=2;break}}return y}let l='"',g="'";function d(m,y){let x="",G="",U=!1;for(;y<m.length;y++){if(m[y]===l||m[y]===g)G===""?G=m[y]:G!==m[y]||(G="");else if(m[y]===">"&&G===""){U=!0;break}x+=m[y]}return G===""&&{value:x,index:y,tagClosed:U}}let E=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function C(m,y){let x=s(m,E),G={};for(let U=0;U<x.length;U++){if(x[U][1].length===0)return I("InvalidAttr","Attribute '"+x[U][2]+"' has no space in starting.",k(x[U]));if(x[U][3]!==void 0&&x[U][4]===void 0)return I("InvalidAttr","Attribute '"+x[U][2]+"' is without value.",k(x[U]));if(x[U][3]===void 0&&!y.allowBooleanAttributes)return I("InvalidAttr","boolean attribute '"+x[U][2]+"' is not allowed.",k(x[U]));let v=x[U][2];if(!p(v))return I("InvalidAttr","Attribute '"+v+"' is an invalid name.",k(x[U]));if(G.hasOwnProperty(v))return I("InvalidAttr","Attribute '"+v+"' is repeated.",k(x[U]));G[v]=1}return!0}function Q(m,y){if(m[++y]===";")return-1;if(m[y]==="#")return(function(G,U){let v=/\d/;for(G[U]==="x"&&(U++,v=/[\da-fA-F]/);U<G.length;U++){if(G[U]===";")return U;if(!G[U].match(v))break}return-1})(m,++y);let x=0;for(;y<m.length;y++,x++)if(!(m[y].match(/\w/)&&x<20)){if(m[y]===";")break;return-1}return y}function I(m,y,x){return{err:{code:m,msg:y,line:x.line||x,col:x.col}}}function p(m){return n(m)}function w(m,y){let x=m.substring(0,y).split(/\r?\n/);return{line:x.length,col:x[x.length-1].length+1}}function k(m){return m.startIndex+m[1].length}let J={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(m,y,x){return m},captureMetaData:!1},j;j=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class H{constructor(y){this.tagname=y,this.child=[],this[":@"]={}}add(y,x){y==="__proto__"&&(y="#__proto__"),this.child.push({[y]:x})}addChild(y,x){y.tagname==="__proto__"&&(y.tagname="#__proto__"),y[":@"]&&Object.keys(y[":@"]).length>0?this.child.push({[y.tagname]:y.child,":@":y[":@"]}):this.child.push({[y.tagname]:y.child}),x!==void 0&&(this.child[this.child.length-1][j]={startIndex:x})}static getMetaDataSymbol(){return j}}function $(m,y){let x={};if(m[y+3]!=="O"||m[y+4]!=="C"||m[y+5]!=="T"||m[y+6]!=="Y"||m[y+7]!=="P"||m[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let G=1,U=!1,v=!1,W="";for(;y<m.length;y++)if(m[y]!=="<"||v)if(m[y]===">"){if(v?m[y-1]==="-"&&m[y-2]==="-"&&(v=!1,G--):G--,G===0)break}else m[y]==="["?U=!0:W+=m[y];else{if(U&&Ne(m,y)){let V,Z;y+=7,[V,Z,y]=oe(m,y+1),Z.indexOf("&")===-1&&(x[Wt(V)]={regx:RegExp(`&${V};`,"g"),val:Z})}else if(U&&K(m,y))y+=8;else if(U&&le(m,y))y+=8;else if(U&&Pe(m,y))y+=9;else{if(!pe)throw new Error("Invalid DOCTYPE");v=!0}G++,W=""}if(G!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:y}}function oe(m,y){let x="";for(;y<m.length&&m[y]!=="'"&&m[y]!=='"';y++)x+=m[y];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");let G=m[y++],U="";for(;y<m.length&&m[y]!==G;y++)U+=m[y];return[x,U,y]}function pe(m,y){return m[y+1]==="!"&&m[y+2]==="-"&&m[y+3]==="-"}function Ne(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="N"&&m[y+4]==="T"&&m[y+5]==="I"&&m[y+6]==="T"&&m[y+7]==="Y"}function K(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="L"&&m[y+4]==="E"&&m[y+5]==="M"&&m[y+6]==="E"&&m[y+7]==="N"&&m[y+8]==="T"}function le(m,y){return m[y+1]==="!"&&m[y+2]==="A"&&m[y+3]==="T"&&m[y+4]==="T"&&m[y+5]==="L"&&m[y+6]==="I"&&m[y+7]==="S"&&m[y+8]==="T"}function Pe(m,y){return m[y+1]==="!"&&m[y+2]==="N"&&m[y+3]==="O"&&m[y+4]==="T"&&m[y+5]==="A"&&m[y+6]==="T"&&m[y+7]==="I"&&m[y+8]==="O"&&m[y+9]==="N"}function Wt(m){if(n(m))return m;throw new Error(`Invalid entity name ${m}`)}let Ht=/^[-+]?0x[a-fA-Line truncated
`);let y=new H("!xml"),x=y,G="",U="";for(let v=0;v<m.length;v++)if(m[v]==="<")if(m[v+1]==="/"){let W=bE(m,">",v,"Closing Tag is not closed."),V=m.substring(v+2,W).trim();if(this.options.removeNSPrefix){let It=V.indexOf(":");It!==-1&&(V=V.substr(It+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&(G=this.saveTextToParentTag(G,x,U));let Z=U.substring(U.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${V}>`);let he=0;Z&&this.options.unpairedTags.indexOf(Z)!==-1?(he=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop()):he=U.lastIndexOf("."),U=U.substring(0,he),x=this.tagsNodeStack.pop(),G="",v=W}else if(m[v+1]==="?"){let W=OG(m,v,!1,"?>");if(!W)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,x,U),!(this.options.ignoreDeclaration&&W.tagName==="?xml"||this.options.ignorePiTags)){let V=new H(W.tagName);V.add(this.options.textNodeName,""),W.tagName!==W.tagExp&&W.attrExpPresent&&(V[":@"]=this.buildAttributesMap(W.tagExp,U,W.tagName)),this.addChild(x,V,U,v)}v=W.closeIndex+1}else if(m.substr(v+1,3)==="!--"){let W=bE(m,"-->",v+4,"Comment is not closed.");if(this.options.commentPropName){let V=m.substring(v+4,W-2);G=this.saveTextToParentTag(G,x,U),x.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}v=W}else if(m.substr(v+1,2)==="!D"){let W=$(m,v);this.docTypeEntities=W.entities,v=W.i}else if(m.substr(v+1,2)==="!["){let W=bE(m,"]]>",v,"CDATA is not closed.")-2,V=m.substring(v+9,W);G=this.saveTextToParentTag(G,x,U);let Z=this.parseTextData(V,x.tagname,U,!0,!1,!0,!0);Z==null&&(Z=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):x.add(this.options.textNodeName,Z),v=W+2}else{let W=OG(m,v,this.options.removeNSPrefix),V=W.tagName,Z=W.rawTagName,he=W.tagExp,It=W.attrExpPresent,tt=W.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&G&&x.tagname!=="!xml"&&(G=this.saveTextToParentTag(G,x,U,!1));let St=x;St&&this.options.unpairedTags.indexOf(St.tagname)!==-1&&(x=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."))),V!==y.tagname&&(U+=U?"."+V:V);let Kr=v;if(this.isItStopNode(this.options.stopNodes,U,V)){let os="";if(he.length>0&&he.lastIndexOf("/")===he.length-1)V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),v=W.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)v=W.closeIndex;else{let Zc=this.readStopNodeData(m,Z,tt+1);if(!Zc)throw new Error(`Unexpected end of ${Z}`);v=Zc.i,os=Zc.tagContent}let Po=new H(V);V!==he&&It&&(Po[":@"]=this.buildAttributesMap(he,U,V)),os&&(os=this.parseTextData(os,V,U,!0,It,!0,!0)),U=U.substr(0,U.lastIndexOf(".")),Po.add(this.options.textNodeName,os),this.addChild(x,Po,U,Kr)}else{if(he.length>0&&he.lastIndexOf("/")===he.length-1){V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));let os=new H(V);V!==he&&It&&(os[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,os,U,Kr),U=U.substr(0,U.lastIndexOf("."))}else{let os=new H(V);this.tagsNodeStack.push(x),V!==he&&It&&(os[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,os,U,Kr),x=os}G="",v=tt}}else G+=m[v];return y.child};function A7e(m,y,x,G){this.options.captureMetaData||(G=void 0);let U=this.options.updateTag(y.tagname,x,y[":@"]);U===!1||(typeof U=="string"&&(y.tagname=U),m.addChild(y,G))}let s7e=function(m){if(this.options.processEntities){for(let y in this.docTypeEntities){let x=this.docTypeEntities[y];m=m.replace(x.regx,x.val)}for(let y in this.lastEntities){let x=this.lastEntities[y];m=m.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let y in this.htmlEntities){let x=this.htmlEntities[y];m=m.replace(x.regex,x.val)}m=m.replace(this.ampEntity.regex,this.ampEntity.val)}return m};function n7e(m,y,x,G){return m&&(G===void 0&&(G=y.child.length===0),(m=this.parseTextData(m,y.tagname,x,!1,!!y[":@"]&&Object.keys(y[":@"]).length!==0,G))!==void 0&&m!==""&&y.add(this.options.textNodeName,m),m=""),m}function i7e(m,y,x){let G="*."+x;for(let U in m){let v=m[U];if(G===v||y===v)return!0}return!1}function bE(m,y,x,G){let U=m.indexOf(y,x);if(U===-1)throw new Error(G);return U+y.length-1}function OG(m,y,x,G=">"){let U=(function(tt,St,Kr=">"){let os,Po="";for(let Zc=St;Zc<tt.length;Zc++){let Ad=tt[Zc];if(os)Ad===os&&(os="");else if(Ad==='"'||Ad==="'")os=Ad;else if(Ad===Kr[0]){if(!Kr[1])return{data:Po,index:Zc};if(tt[Zc+1]===Kr[1])return{data:Po,index:Zc}}else Ad===" "&&(Ad=" ");Po+=Ad}})(m,y+1,G);if(!U)return;let v=U.data,W=U.index,V=v.search(/\s/),Z=v,he=!0;V!==-1&&(Z=v.substring(0,V),v=v.substring(V+1).trimStart());let It=Z;if(x){let tt=Z.indexOf(":");tt!==-1&&(Z=Z.substr(tt+1),he=Z!==U.data.substr(tt+1))}return{tagName:Z,tagExp:v,closeIndex:W,attrExpPresent:he,rawTagName:It}}function o7e(m,y,x){let G=x,U=1;for(;x<m.leLine truncated
`),vie(m,y,"",x)}function vie(m,y,x,G){let U="",v=!1;for(let W=0;W<m.length;W++){let V=m[W],Z=h7e(V);if(Z===void 0)continue;let he="";if(he=x.length===0?Z:`${x}.${Z}`,Z===y.textNodeName){let Kr=V[Z];E7e(he,y)||(Kr=y.tagValueProcessor(Z,Kr),Kr=Pie(Kr,y)),v&&(U+=G),U+=Kr,v=!1;continue}if(Z===y.cdataPropName){v&&(U+=G),U+=`<![CDATA[${V[Z][0][y.textNodeName]}]]>`,v=!1;continue}if(Z===y.commentPropName){U+=G+`<!--${V[Z][0][y.textNodeName]}-->`,v=!0;continue}if(Z[0]==="?"){let Kr=_ie(V[":@"],y),os=Z==="?xml"?"":G,Po=V[Z][0][y.textNodeName];Po=Po.length!==0?" "+Po:"",U+=os+`<${Z}${Po}${Kr}?>`,v=!0;continue}let It=G;It!==""&&(It+=y.indentBy);let tt=G+`<${Z}${_ie(V[":@"],y)}`,St=vie(V[Z],y,he,It);y.unpairedTags.indexOf(Z)!==-1?y.suppressUnpairedNode?U+=tt+">":U+=tt+"/>":St&&St.length!==0||!y.suppressEmptyNode?St&&St.endsWith(">")?U+=tt+`>${St}${G}</${Z}>`:(U+=tt+">",St&&G!==""&&(St.includes("/>")||St.includes("</"))?U+=G+y.indentBy+St+G:U+=St,U+=`</${Z}>`):U+=tt+"/>",v=!0}return U}function h7e(m){let y=Object.keys(m);for(let x=0;x<y.length;x++){let G=y[x];if(m.hasOwnProperty(G)&&G!==":@")return G}}function _ie(m,y){let x="";if(m&&!y.ignoreAttributes)for(let G in m){if(!m.hasOwnProperty(G))continue;let U=y.attributeValueProcessor(G,m[G]);U=Pie(U,y),U===!0&&y.suppressBooleanAttributes?x+=` ${G.substr(y.attributeNamePrefix.length)}`:x+=` ${G.substr(y.attributeNamePrefix.length)}="${U}"`}return x}function E7e(m,y){let x=(m=m.substr(0,m.length-y.textNodeName.length-1)).substr(m.lastIndexOf(".")+1);for(let G in y.stopNodes)if(y.stopNodes[G]===m||y.stopNodes[G]==="*."+x)return!0;return!1}function Pie(m,y){if(m&&m.length>0&&y.processEntities)for(let x=0;x<y.entities.length;x++){let G=y.entities[x];m=m.replace(G.regex,G.val)}return m}let f7e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},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};function rd(m){this.options=Object.assign({},f7e,m),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=vo(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=B7e),this.processTextOrObjNode=C7e,this.options.format?(this.indentate=I7e,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function C7e(m,y,x,G){let U=this.j2x(m,x+1,G.concat(y));return m[this.options.textNodeName]!==void 0&&Object.keys(m).length===1?this.buildTextValNode(m[this.options.textNodeName],y,U.attrStr,x):this.buildObjectNode(U.val,y,U.attrStr,x)}function I7e(m){return this.options.indentBy.repeat(m)}function B7e(m){return!(!m.startsWith(this.options.attributeNamePrefix)||m===this.options.textNodeName)&&m.substr(this.attrPrefixLen)}rd.prototype.build=function(m){return this.options.preserveOrder?d7e(m,this.options):(Array.isArray(m)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(m={[this.options.arrayNodeName]:m}),this.j2x(m,0,[]).val)},rd.prototype.j2x=function(m,y,x){let G="",U="",v=x.join(".");for(let W in m)if(Object.prototype.hasOwnProperty.call(m,W))if(m[W]===void 0)this.isAttribute(W)&&(U+="");else if(m[W]===null)this.isAttribute(W)||W===this.options.cdataPropName?U+="":W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(m[W]instanceof Date)U+=this.buildTextValNode(m[W],W,"",y);else if(typeof m[W]!="object"){let V=this.isAttribute(W);if(V&&!this.ignoreAttributesFn(V,v))G+=this.buildAttrPairStr(V,""+m[W]);else if(!V)if(W===this.options.textNodeName){let Z=this.options.tagValueProcessor(W,""+m[W]);U+=this.replaceEntitiesValue(Z)}else U+=this.buildTextValNode(m[W],W,"",y)}else if(Array.isArray(m[W])){let V=m[W].length,Z="",he="";for(let It=0;It<V;It++){let tt=m[W][It];if(tt!==void 0)if(tt===null)W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(typeof tt=="object")if(this.options.oneListGroup){let St=this.j2x(tt,y+1,x.concat(W));Z+=St.val,this.options.attributesGroupName&&tt.hasOwnProperty(this.options.attributesGroupName)&&(he+=St.attrStr)}else Z+=this.processTextOrObjNode(tt,W,y,x);else if(this.options.oneListGroup){let St=this.options.tagValueProcessor(W,tt);St=this.replaceEntitiesValue(St),Z+=St}else Z+=this.buildTextValNode(tt,W,"",y)}this.options.oneListGroup&&(Z=this.buildObjectNode(Z,W,he,y)),U+=Z}else if(this.options.attributesGroupName&&W===this.options.attributesGroupName){let V=Object.keys(m[W]),Z=V.length;for(let he=0;he<Z;he++)G+=this.buildAttrPairStr(V[he],""+m[W][V[he]])}else U+=this.processTextOrObjNode(m[W],W,y,x);return{attrStr:G,val:U}},rd.prototype.buildAttrPairStr=function(m,y){return y=this.options.attributeValueProcessor(m,""+y),y=this.replaceEntitiesValue(y),this.options.suppressBooleanAttributes&&y==="true"?" "+m:" "+m+'="'+y+'"'},rd.prototype.buildObjectNode=function(m,y,x,G){if(m==="")return y[0]==="?"?this.indentate(G)+"<"+y+x+"?"+this.tagEndChar:this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar;{let U="</"+y+this.tagEndChar,v="";return y[0]==="?"&&(v="?",U=""),!x&&x!==""||m.indexOf("<")!==-1?this.options.commentPropName!==!1&&y===this.options.commentPropName&&v.length===0?this.indentate(G)+`<!--${m}-->`+this.newLine:this.indentate(G)+"<"+y+x+v+this.tagEndChar+m+this.indentate(G)+U:this.indentate(G)+"<"+y+x+v+">"+m+U}},rd.prototype.closeTag=function(m){let y="";return this.options.unpairedTags.indexOf(m)!==-1?this.options.suppressUnpairedNode||(y="/"):y=this.options.suppressEmptyNode?"/":`></${m}`,y},rd.prototype.buildTextValNode=function(m,y,x,G){if(this.options.cdataPropName!==!1&&y===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${m}]]>`+this.newLine;if(this.options.commentPropName!==!1&&y===this.options.commentPropName)return this.indentate(G)+`<!--${m}-->`+this.newLine;if(y[0]==="?")return this.indentate(G)+"<"+y+x+"?"+this.tagEndChar;{let U=this.options.tagValueProcessor(y,m);return U=this.replaceEntitiesValue(U),U===""?this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar:this.indentate(G)+"<"+y+x+">"+U+"</"+y+this.tagEndChar}},rd.prototype.replaceEntitiesValue=function(m){if(m&&m.length>0&&this.options.processEntities)for(let y=0;y<this.options.entities.length;y++){let x=this.options.entities[y];m=m.replace(x.regex,x.val)}return m};let Q7e={validate:o};cRe.exports=e})()});var $V=h(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.XML_CHARKEY=up.XML_ATTRKEY=void 0;up.XML_ATTRKEY="$";up.XML_CHARKEY="_"});var dRe=h(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.stringifyXML=Jkt;Yx.parseXML=Vkt;var eW=uRe(),lRe=$V();function gRe(t){var e;return{attributesGroupName:lRe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:lRe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ykt(t={}){var e,r;return Object.assign(Object.assign({},gRe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function qkt(t={}){return Object.assign(Object.assign({},gRe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodesLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),A=this.factory.computeHMACSHA256(r);return e.headers.set(an.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${A}`),e}getHeaderValueToSign(e,r){let A=e.headers.get(r);return!A||r===an.HeaderConstants.CONTENT_LENGTH&&A==="0"?"":A}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(an.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,n)=>(0,vFt.compareHeader)(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,i)=>!(n>0&&s.name.toLowerCase()===i[n-1].name.toLowerCase()));let A="";return r.forEach(s=>{A+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),A}getCanonicalizedResourceString(e){let r=(0,URe.getURLPath)(e.url)||"/",A="";A+=`/${this.factory.accountName}${r}`;let s=(0,URe.getURLQueries)(e.url),n={};if(s){let i=[];for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o)){let a=o.toLowerCase();n[a]=s[o],i.push(a)}i.sort();for(let o of i)A+=`
${o}:${decodeURIComponent(n[o])}`}return A}};sU.StorageSharedKeyCredentialPolicy=IW});var MRe=h(nU=>{"use strict";Object.defineProperty(nU,"__esModule",{value:!0});nU.StorageSharedKeyCredential=void 0;var _Ft=B("node:crypto"),PFt=BW(),OFt=rU(),QW=class extends OFt.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new PFt.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,_Ft.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};nU.StorageSharedKeyCredential=QW});var LRe=h(iU=>{"use strict";Object.defineProperty(iU,"__esModule",{value:!0});iU.AbortError=void 0;var pW=class extends Error{constructor(e){super(e),this.name="AbortError"}};iU.AbortError=pW});var mW=h(oU=>{"use strict";Object.defineProperty(oU,"__esModule",{value:!0});oU.AbortError=void 0;var HFt=LRe();Object.defineProperty(oU,"AbortError",{enumerable:!0,get:function(){return HFt.AbortError}})});var yW=h(aU=>{"use strict";Object.defineProperty(aU,"__esModule",{value:!0});aU.logger=void 0;var GFt=xf();aU.logger=(0,GFt.createClientLogger)("storage-common")});var bW=h(cU=>{"use strict";Object.defineProperty(cU,"__esModule",{value:!0});cU.StorageRetryPolicyType=void 0;var vRe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vRe||(cU.StorageRetryPolicyType=vRe={}))});var PRe=h(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.StorageRetryPolicy=void 0;ED.NewRetryPolicyFactory=JFt;var YFt=mW(),qFt=hD(),_Re=ig(),wW=_f(),$d=yW(),DW=bW();function JFt(t){return{create:(e,r)=>new uU(e,r,t)}}var eh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:DW.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},VFt=new YFt.AbortError("The operation was aborted."),uU=class extends qFt.BaseRequestPolicy{retryOptions;constructor(e,r,A=eh){super(e,r),this.retryOptions={retryPolicyType:A.retryPolicyType?A.retryPolicyType:eh.retryPolicyType,maxTries:A.maxTries&&A.maxTries>=1?Math.floor(A.maxTries):eh.maxTries,tryTimeoutInMs:A.tryTimeoutInMs&&A.tryTimeoutInMs>=0?A.tryTimeoutInMs:eh.tryTimeoutInMs,retryDelayInMs:A.retryDelayInMs&&A.retryDelayInMs>=0?Math.min(A.retryDelayInMs,A.maxRetryDelayInMs?A.maxRetryDelayInMs:eh.maxRetryDelayInMs):eh.retryDelayInMs,maxRetryDelayInMs:A.maxRetryDelayInMs&&A.maxRetryDelayInMs>=0?A.maxRetryDelayInMs:eh.maxRetryDelayInMs,secondaryHost:A.secondaryHost?A.secondaryHost:eh.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,A){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||A%2===1;n||(s.url=(0,wW.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,wW.setURLParameter)(s.url,_Re.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if($d.logger.info(`RetryPolicy: =====> Try=${A} ${n?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,A,i))return i;r=r||!n&&i.status===404}catch(o){if($d.logger.error(`RetryPolicy: Caught error, message: ${o.message}, code: ${o.code}`),!this.shouldRetry(n,A,i,o))throw o}return await this.delay(n,A,e.abortSignal),this.attemptSendRequest(e,r,++A)}shouldRetry(e,r,A,s){if(r>=this.retryOptions.maxTries)return $d.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of n)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return $d.logger.info(`RetryPolicy: Network error ${i} found, will retry.`),!0}if(A||s){let i=A?A.status:s?s.statusCode:0;if(!e&&i===404)return $d.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return $d.logger.info(`RetryPolicy: Will retry for status code ${i}.`),!0}if(A&&A?.status>=400){let i=A.headers.get(_Re.HeaderConstants.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($d.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,A){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case DW.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case DW.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $d.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,wW.delay)(s,A,VFt)}};ED.StorageRetryPolicy=uU});var SW=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.StorageRet Line truncated
`)+`
`+A(n)+s(n),o=(0,s2t.createHmac)("sha256",t.accountKey).update(i,"utf8").digest("base64");n.headers.set(cn.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${o}`)}function r(n,i){let o=n.headers.get(i);return!o||i===cn.HeaderConstants.CONTENT_LENGTH&&o==="0"?"":o}function A(n){let i=[];for(let[a,c]of n.headers)a.toLowerCase().startsWith(cn.HeaderConstants.PREFIX_FOR_STORAGE)&&i.push({name:a,value:c});i.sort((a,c)=>(0,n2t.compareHeader)(a.name.toLowerCase(),c.name.toLowerCase())),i=i.filter((a,c,u)=>!(c>0&&a.name.toLowerCase()===u[c-1].name.toLowerCase()));let o="";return i.forEach(a=>{o+=`${a.name.toLowerCase().trimRight()}:${a.value.trimLeft()}
`}),o}function s(n){let i=(0,JRe.getURLPath)(n.url)||"/",o="";o+=`/${t.accountName}${i}`;let a=(0,JRe.getURLQueries)(n.url),c={};if(a){let u=[];for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let g=l.toLowerCase();c[g]=a[l],u.push(g)}u.sort();for(let l of u)o+=`
${l}:${decodeURIComponent(c[l])}`}return o}return{name:Cp.storageSharedKeyCredentialPolicyName,async sendRequest(n,i){return e(n),i(n)}}}});var WRe=h(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.storageRequestFailureDetailsParserPolicyName=void 0;Ip.storageRequestFailureDetailsParserPolicy=o2t;Ip.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function o2t(){return{name:Ip.storageRequestFailureDetailsParserPolicyName,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}}}}});var zRe=h(lU=>{"use strict";Object.defineProperty(lU,"__esModule",{value:!0});lU.UserDelegationKeyCredential=void 0;var a2t=B("node:crypto"),xW=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,a2t.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};lU.UserDelegationKeyCredential=xW});var mc=h(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.BaseRequestPolicy=bA.getCachedDefaultHttpClient=void 0;var un=(Fr(),_r(kr));un.__exportStar(IRe(),bA);var c2t=BRe();Object.defineProperty(bA,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return c2t.getCachedDefaultHttpClient}});un.__exportStar(pRe(),bA);un.__exportStar(FRe(),bA);un.__exportStar(xRe(),bA);un.__exportStar(rU(),bA);un.__exportStar(MRe(),bA);un.__exportStar(SW(),bA);var u2t=hD();Object.defineProperty(bA,"BaseRequestPolicy",{enumerable:!0,get:function(){return u2t.BaseRequestPolicy}});un.__exportStar(dW(),bA);un.__exportStar($x(),bA);un.__exportStar(ORe(),bA);un.__exportStar(HRe(),bA);un.__exportStar(qRe(),bA);un.__exportStar(BW(),bA);un.__exportStar(VRe(),bA);un.__exportStar(WRe(),bA);un.__exportStar(zRe(),bA)});var ao=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.PathStylePorts=Te.BlobDoesNotUseCustomerSpecifiedEncryption=Te.BlobUsesCustomerSpecifiedEncryptionMsg=Te.StorageBlobLoggingAllowedQueryParameters=Te.StorageBlobLoggingAllowedHeaderNames=Te.DevelopmentConnectionString=Te.EncryptionAlgorithmAES25=Te.HTTP_VERSION_1_1=Te.HTTP_LINE_ENDING=Te.BATCH_MAX_PAYLOAD_IN_BYTES=Te.BATCH_MAX_REQUEST=Te.SIZE_1_MB=Te.ETagAny=Te.ETagNone=Te.HeaderConstants=Te.HTTPURLConnection=Te.URLConstants=Te.StorageOAuthScopes=Te.REQUEST_TIMEOUT=Te.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=Te.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=Te.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=Te.BLOCK_BLOB_MAX_BLOCKS=Te.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=Te.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=Te.SERVICE_VERSION=Te.SDK_VERSION=void 0;Te.SDK_VERSION="12.31.0";Te.SERVICE_VERSION="2026-02-06";Te.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;Te.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;Te.BLOCK_BLOB_MAX_BLOCKS=5e4;Te.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;Te.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;Te.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;Te.REQUEST_TIMEOUT=100*1e3;Te.StorageOAuthScopes="https://storage.azure.com/.default";Te.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};Te.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};Te.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};Te.ETagNone="";Te.ETagAny="*";Te.SIZE_1_MB=1*1024*1024;Te.BATCH_MAX_REQUEST=256;Te.BATCH_MAX_PAYLOAD_IN_BYTES=4*Te.SIZE_1_MB;Te.HTTP_LINE_ENDING=`\r
`;Te.HTTP_VERSION_1_1="HTTP/1.1";Te.EncryptionAlgorithmAES25="AES256";Te.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";Te.StorageBlobLoggingAllowedHeaderNames=["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"];Te.StorageBlobLoggingAllowedQueryParameters=["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"];Te.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";Te.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";Te.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var th=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.Pipeline=Uu.StorageOAuthScopes=void 0;Uu.isPipelineLike=g2t;Uu.newPipeline=d2t;Uu.getCoreClientOptions=E2t;Uu.getCredentialFromPipeline=$Re;var ZRe=Gx(),jRe=ls(),KRe=ku(),XRe=tW(),UW=np(),l2t=Jx(),co=mc(),fD=ao();Object.defineProperty(Uu,"StorageOAuthScopes",{enumerable:!0,get:function(){return fD.StorageOAuthScopes}});function g2t(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var gU=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Uu.Pipeline=gU;function d2t(t,e={}){t||(t=new co.AnonymousCredential);let r=new gU([],e);return r._credential=t,r}function h2t(t){let e=[f2t,eSe,C2t,I2t,B2t,Q2t,m2t];if(t.factories.length){let r=t.factories.filter(A=>!e.some(s=>s(A)));if(r.length){let A=r.some(s=>p2t(s));return{wrappedPolicies:(0,ZRe.createRequestPolicyFactoryPolicy)(r),afterRetry:A}}}}function E2t(t){let{httpClient:e,...r}=t.options,A=t._coreHttpClient;A||(A=e?(0,ZRe.convertHttpClient)(e):(0,co.getCachedDefaultHttpClient)(),t._coreHttpClient=A);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${fD.SDK_VERSION}`,i=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=(0,KRe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:fD.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:fD.StorageBlobLoggingAllowedQueryParameters,logger:l2t.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:XRe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializ Line truncated
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new qf.SASQueryParameters(t.version,n,A,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}}function xUt(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function UUt(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function MUt(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function LUt(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function vUt(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function _Ut(t,e){if(t=Vf(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(t.version,i,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:n}}function Jf(t,e,r){let A=[`/blob/${t}/${e}`];return r&&A.push(`/${r}`),A.join("")}function Vf(t){let e=t.version?t.version:PSe.SERVICE_VERSION;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}});var LU=h(MU=>{"use strict";Object.defineProperty(MU,"__esModule",{value:!0});MU.BlobLeaseClient=void 0;var PUt=rA(),Lu=ao(),ID=Of(),UU=ha(),Az=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let A=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=A.container):(this._isContainer=!1,this._containerOrBlobOperation=A.blob),r||(r=(0,PUt.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Lu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async A=>(0,UU.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:A.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Lu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async A=>{let s=(0,UU.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:A.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Lu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,UU.assertResponse)(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!==Lu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.if Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${i1e.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=i(c,r);if(l!==void 0)return{response:await e(l).catch(n1e({state:r,stateProxy:A,isOperationError:o})),status:u}}return{response:c,status:u}}async function dMt(t){let{poll:e,state:r,stateProxy:A,options:s,getOperationStatus:n,getResourceLocation:i,getOperationLocation:o,isOperationError:a,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:g,updateState:d,setDelay:E,isDone:C,setErrorAsResult:Q}=t,{operationLocation:I}=r.config;if(I!==void 0){let{response:p,status:w}=await gMt({poll:e,getOperationStatus:n,state:r,stateProxy:A,operationLocation:I,getResourceLocation:i,isOperationError:a,options:s});if(o1e({status:w,response:p,state:r,stateProxy:A,isDone:C,processResult:l,getError:g,setErrorAsResult:Q}),!i1e.terminalStates.includes(w)){let k=u?.(p);k&&E(k);let J=o?.(p,r);if(J!==void 0){let j=I!==J;r.config.operationLocation=J,c?.(J,j)}else c?.(I,!1)}d?.(r,p)}}ch.pollOperation=dMt});var Dz=h(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.pollHttpOperation=DA.isOperationError=DA.getResourceLocation=DA.getOperationStatus=DA.getOperationLocation=DA.initHttpOperation=DA.getStatusFromInitialResponse=DA.getErrorFromResponse=DA.parseRetryAfter=DA.inferLroMode=void 0;var a1e=jU(),yz=WU();function c1e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function u1e(t){return t.headers.location}function l1e(t){return t.headers["operation-location"]}function g1e(t){return t.headers["azure-asyncoperation"]}function hMt(t){var e;let{location:r,requestMethod:A,requestPath:s,resourceLocationConfig:n}=t;switch(A){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=i())!==null&&e!==void 0?e:s;default:return i()}function i(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function d1e(t){let{rawResponse:e,requestMethod:r,requestPath:A,resourceLocationConfig:s}=t,n=l1e(e),i=g1e(e),o=c1e({operationLocation:n,azureAsyncOperation:i}),a=u1e(e),c=r?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:hMt({requestMethod:c,location:a,requestPath:A,resourceLocationConfig:s})}:a!==void 0?{mode:"ResourceLocation",operationLocation:a}:c==="PUT"&&A?{mode:"Body",operationLocation:A}:void 0}DA.inferLroMode=d1e;function h1e(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 bz(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 yz.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function EMt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return h1e({status:r,statusCode:t.statusCode})}function fMt(t){var e,r;let{properties:A,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=A?.provisioningState)!==null&&r!==void 0?r:s;return h1e({status:n,statusCode:t.statusCode})}function bz(t){return t===202?"running":t<300?"succeeded":"failed"}function E1e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?CMt(new Date(e)):r*1e3}}DA.parseRetryAfter=E1e;function f1e(t){let e=B1e(t,"error");if(!e){yz.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){yz.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}DA.getErrorFromResponse=f1e;function CMt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function C1e(t){let{response:e,state:r,operationLocation:A}=t;function s(){var i;switch((i=r.config.metadata)===null||i===void 0?void 0:i.mode){case void 0:return bz(e.rawResponse.statusCode);case"Body":return wz(e,r);default:return"running"}}let n=s();return n==="running"&&A===void 0?"succeeded":n}DA.getStatusFromInitialResponse=C1e;async function IMt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:A,lro:s,setErrorAsResult:n}=t;return(0,a1e.initOperation)({init:async()=>{let i=await s.sendInitialRequest(),o=d1e({rawResponse:i.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:i,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:A?({flatResponse:i},o)=>A(i,o):({flatResponse:i})=>i,getOperationStatus:C1e,setErrorAsResult:n})}DA.initHttpOperation=IMt;function I1e({rawResponse:t},e){var r;switch((r=Line truncated
`):i=[e.accountName,A,s,n,t.startsOn?(0,TM.truncatedISO8061Date)(t.startsOn,!1):"",(0,TM.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,W1e.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let o=e.computeHMACSHA256(i);return{sasQueryParameters:new wLt.SASQueryParameters(r,o,A.toString(),s,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}});var $1e=h(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.BlobServiceClient=void 0;var RLt=np(),SLt=ls(),j1e=rA(),mD=th(),TLt=Xz(),FM=ha(),Kf=mc(),Hu=ha(),Gu=Of(),kLt=pM(),FLt=wU(),K1e=DM(),X1e=rj(),Z1e=SM(),Aj=class t extends FLt.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let A=(0,FM.extractConnectionStringParts)(e);if(A.kind==="AccountConnString")if(j1e.isNodeLike){let s=new Kf.StorageSharedKeyCredential(A.accountName,A.accountKey);r.proxyOptions||(r.proxyOptions=(0,SLt.getDefaultProxySettings)(A.proxyUri));let n=(0,mD.newPipeline)(s,r);return new t(A.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(A.kind==="SASConnString"){let s=(0,mD.newPipeline)(new Kf.AnonymousCredential,r);return new t(A.url+"?"+A.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,A){let s;(0,mD.isPipelineLike)(r)?s=r:j1e.isNodeLike&&r instanceof Kf.StorageSharedKeyCredential||r instanceof Kf.AnonymousCredential||(0,RLt.isTokenCredential)(r)?s=(0,mD.newPipeline)(r,A):s=(0,mD.newPipeline)(new Kf.AnonymousCredential,A),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new TLt.ContainerClient((0,FM.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-createContainer",r,async A=>{let s=this.getContainerClient(e),n=await s.create(A);return{containerClient:s,containerCreateResponse:n}})}async deleteContainer(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async A=>this.getContainerClient(e).delete(A))}async undeleteContainer(e,r,A={}){return Gu.tracingClient.withSpan("BlobServiceClient-undeleteContainer",A,async s=>{let n=this.getContainerClient(A.destinationContainerName||e),i=n.storageClientContext.container,o=(0,Hu.assertResponse)(await i.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:n,containerUndeleteResponse:o}})}async getProperties(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-setProperties",r,async A=>(0,Hu.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:A.tracingOptions})))}async getStatistics(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async A=>(0,Hu.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:A.tracingOptions})))}async findBlobsByTagsSegment(e,r,A={}){return Gu.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",A,async s=>{let n=(0,Hu.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:A.abortSignal,where:e,marker:r,maxPageSize:A.maxPageSize,tracingOptions:s.tracingOptions}));return{...n,_response:n._response,blobs:n.blobs.map(o=>{let a="";return o.tags?.blobTagSet.length===1&&(a=o.tags.blobTagSet[0].value),{...o,tags:(0,FM.toTags)(o.tags),tagValue:a}})}})}async*findBlobsByTagsSegments(e,r,A={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,A),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let A;for await(let s of this.findBlobsByTagsSegments(e,A,r))yield*s.blobs}findBlobsByTags(e,r={}){let A={...r},s=this.findBlobsByTagsItems(e,A);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(e,n.continuationToken,{maxPageSize:n.maxPageSize,...A})}}async*listSegments(e,r={}){let A;if(e||e===void 0)do A=await this.listContainersSegment(e,r),A.containerItems=A.containerItems||[],e=A.continuationToken,yield await A;while(e)}async*listItems(e={}){let r;for await(let A of this.listSegments(r,e))yield*A.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.incl 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"}};Ii.NetworkError=vM;vM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _M=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};Ii.UsageError=_M;_M.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var sTe=h(Bi=>{"use strict";var vLt=Bi&&Bi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),_Lt=Bi&&Bi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PLt=Bi&&Bi.__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)&&vLt(e,t,r);return _Lt(e,t),e},OLt=Bi&&Bi.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.uploadCacheArchiveSDK=Bi.UploadProgress=void 0;var uj=PLt(no()),HLt=sj(),GLt=cj(),PM=class{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),A=Date.now()-this.startTime,s=(e/(1024*1024)/(A/1e3)).toFixed(1);uj.info(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};Bi.UploadProgress=PM;function YLt(t,e,r){var A;return OLt(this,void 0,void 0,function*(){let s=new HLt.BlobClient(t),n=s.getBlockBlobClient(),i=new PM((A=r?.archiveSizeBytes)!==null&&A!==void 0?A:0),o={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),uj.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let a=yield n.uploadFile(e,o);if(a._response.status>=400)throw new GLt.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${a._response.status}`);return a}catch(a){throw uj.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${a.message}`),a}finally{i.stopDisplayTimer()}})}Bi.uploadCacheArchiveSDK=YLt});var gj=h(RA=>{"use strict";var qLt=RA&&RA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),JLt=RA&&RA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VLt=RA&&RA.__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)&&qLt(e,t,r);return JLt(e,t),e},HM=RA&&RA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(RA,"__esModule",{value:!0});RA.retryHttpClientResponse=RA.retryTypedResponse=RA.retry=RA.isRetryableStatusCode=RA.isServerErrorStatusCode=RA.isSuccessStatusCode=void 0;var nTe=VLt(no()),OM=mf(),xp=EQ();function WLt(t){return t?t>=200&&t<300:!1}RA.isSuccessStatusCode=WLt;function iTe(t){return t?t>=500:!0}RA.isServerErrorStatusCode=iTe;function oTe(t){return t?[OM.HttpCodes.BadGateway,OM.HttpCodes.ServiceUnavailable,OM.HttpCodes.GatewayTimeout].includes(t):!1}RA.isRetryableStatusCode=oTe;function zLt(t){return HM(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function lj(t,e,r,A=xp.DefaultRetryAttempts,s=xp.DefaultRetryDelay,n=void 0){return HM(this,void 0,void 0,function*(){let i="",o=1;for(;o<=A;){let a,c,u=!1;try{a=yield e()}catch(l){n&&(a=n(l)),u=!0,i=l.message}if(a&&(c=r(a),!iTe(c)))return a;if(c&&(u=oTe(c),i=`Cache service responded with ${c}`),nTe.debug(`${t} - Attempt ${o} of ${A} fai Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])go.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function kvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A=new yvt.URL(t),s=(0,Bj.getDownloadOptions)(r);A.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,JM.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,JM.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,JM.downloadCacheHttpClient)(t,e):yield(0,JM.downloadCacheHttpClient)(t,e)})}Ns.downloadCache=kvt;function Fvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A=Qj(),s=Lp.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,dh.retryTypedResponse)("reserveCache",()=>Qi(this,void 0,void 0,function*(){return A.postJson(RD("caches"),n)}))})}Ns.reserveCache=Fvt;function BTe(t,e){return`bytes ${t}-${e}/*`}function xvt(t,e,r,A,s){return Qi(this,void 0,void 0,function*(){go.debug(`Uploading chunk of size ${s-A+1} bytes at offset ${A} with content range: ${BTe(A,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":BTe(A,s)},i=yield(0,dh.retryHttpClientResponse)(`uploadChunk (start: ${A}, end: ${s})`,()=>Qi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!(0,dh.isSuccessStatusCode)(i.message.statusCode))throw new Error(`Cache service responded with ${i.message.statusCode} during upload chunk.`)})}function Uvt(t,e,r,A){return Qi(this,void 0,void 0,function*(){let s=Lp.getArchiveFileSizeInBytes(r),n=RD(`caches/${e.toString()}`),i=Cj.openSync(r,"r"),o=(0,Bj.getUploadOptions)(A),a=Lp.assertDefined("uploadConcurrency",o.uploadConcurrency),c=Lp.assertDefined("uploadChunkSize",o.uploadChunkSize),u=[...new Array(a).keys()];go.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Qi(this,void 0,void 0,function*(){for(;l<s;){let g=Math.min(s-l,c),d=l,E=l+g-1;l+=c,yield xvt(t,n,()=>Cj.createReadStream(r,{fd:i,start:d,end:E,autoClose:!1}).on("error",C=>{throw new Error(`Cache upload failed because file read failed with ${C.message}`)}),d,E)}})))}finally{Cj.closeSync(i)}})}function Mvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A={size:r};return yield(0,dh.retryTypedResponse)("commitCache",()=>Qi(this,void 0,void 0,function*(){return t.postJson(RD(`caches/${e.toString()}`),A)}))})}function Lvt(t,e,r,A){return Qi(this,void 0,void 0,function*(){if((0,Bj.getUploadOptions)(A).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,bvt.uploadCacheArchiveSDK)(r,e,A)}else{let n=Qj();go.debug("Upload cache"),yield Uvt(n,t,e,A),go.debug("Commiting cache");let i=Lp.getArchiveFileSizeInBytes(e);go.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let o=yield Mvt(n,t,i);if(!(0,dh.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);go.info("Cache saved successfully")}})}Ns.saveCache=Lvt});var VM=h(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.isJsonObject=vp.typeofJsonValue=void 0;function vvt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}vp.typeofJsonValue=vvt;function _vt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}vp.isJsonObject=_vt});var zM=h(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.base64encode=_p.base64decode=void 0;var ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WM=[];for(let t=0;t<ug.length;t++)WM[ug[t].charCodeAt(0)]=t;WM[45]=ug.indexOf("+");WM[95]=ug.indexOf("/");function Pvt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),A=0,s=0,n,i=0;for(let o=0;o<t.length;o++){if(n=WM[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:i=n,s=1;break;case 1:r[A++]=i<<2|(n&48)>>4,i=n,s=2;break;case 2:r[A++]=(i&15)<<4|(n&60)>>2,i=n,s=3;break;case 3:r[A++]=(i&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,A)}_p.base64decode=Pvt;function Ovt(t){let e="",r=0,A,s=0;for(let n=0;n<t.length;n++)switch(A=t[n],r){case 0:e+=ug[A>>2],s=(A&3)<<4,r=1;break;case 1:e+=ug[s|A>>4],s=(A&15)<<2,r=2;break;case 2:e+=ug[s|A>>6],e+=ug[A&63],r=0;break}return r&&(e+=ug[s],e+="=",r==1&&(e+="=")),e}_p.base64encode=Ovt});var pTe=h(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.utf8read=void 0;var pj=t=>String.fromCharCode.apply(String,t);function Hvt(t){if(t.length<1)return"";let e=0,r=[],A=[],s=0,n,i=t.length;for(;e<i;)n=t[e++],n<128?A[s++]=n:n>191&&n<224?A[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,A[s++]=55296+(n>>10),A[s++]=56320+(n&1023)):A[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(pj(A)),s=0);return r.length?(s&&r.push(pj(A.slice(0,s))),r.join("")):pj(A.slice(0,s))}jM.utf8read=Hvt});var SD=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.WireType=Yu.mergeBinaryOptions=Yu.UnknownFieldHandler=void 0;var Gvt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,A,s,n,i)=>{(e(A)?A[t.symbol]:A[t.symbol]=[]).push({no:s,wireType:n,data:i})},t.onWrite=(r,A,s)=>{for(let{no:n,wireType:i,data:o}of t.list(A))s.tag(n,i).raw(o)},t.list=(r,A)=>{if(e(r)){let s=r[t.symbol];return A?s.filter(n=>n.no==A):s}return[]},t.last=(r,A)=>t.list(r,A).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Gvt=Yu.UnknownFieldHandler||(Yu.UnknownFieldHandler={}));function Yvt(t,e){return Object.assign(Object.assign({},t),e)}Yu.mergeBinaryOptions=Yvt;var qvt;(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"})(qvt=Yu.WireType||(Yu.WireType={}))});var XM=h(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.varint32read=pi.varint32write=pi.int64toString=pi.int64fromString=pi.varint64write=pi.varint64read=void 0;function Jvt(){let t=0,e=0;for(let A=0;A<28;A+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<A,(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 A=3;A<=31;A+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<A,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}pi.varint64read=Jvt;function Vvt(t,e,r){for(let n=0;n<28;n=n+7){let i=t>>>n,o=!(!(i>>>7)&&e==0),a=(o?i|128:i)&255;if(r.push(a),!o)return}let A=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?A|128:A)&255),!!s){for(let n=3;n<31;n=n+7){let i=e>>>n,o=!!(i>>>7),a=(o?i|128:i)&255;if(r.push(a),!o)return}r.push(e>>>31&1)}}pi.varint64write=Vvt;var KM=65536*65536;function Wvt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,A=0,s=0;function n(i,o){let a=Number(t.slice(i,o));s*=r,A=A*r+a,A>=KM&&(s=s+(A/KM|0),A=A%KM)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,A,s]}pi.int64fromString=Wvt;function zvt(t,e){if(e>>>0<=2097151)return""+(KM*e+(t>>>0));let r=t&16777215,A=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+A*6777216+s*6710656,i=A+s*8147497,o=s*2,a=1e7;n>=a&&(i+=Math.floor(n/a),n%=a),i>=a&&(o+=Math.floor(i/a),i%=a);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(o,0)+c(i,o)+c(n,1)}pi.int64toString=zvt;function jvt(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)}}pi.varint32write=jvt;function Kvt(){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}pi.varint32read=Kvt});var Eh=h(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.PbLong=hh.PbULong=hh.detectBi=void 0;var TD=XM(),Dr;function mTe(){let t=new DataView(new ArrayBuffer(8));Dr=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}hh.detectBi=mTe;mTe();function yTe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var bTe=/^-?[0-9]+$/,$M=4294967296,ZM=2147483648,eL=c Line truncated
`)}};bL.RpcError=zj});var Kj=h(DL=>{"use strict";Object.defineProperty(DL,"__esModule",{value:!0});DL.mergeRpcOptions=void 0;var eke=qA();function IPt(t,e){if(!e)return t;let r={};wL(t,r),wL(e,r);for(let A of Object.keys(e)){let s=e[A];switch(A){case"jsonOptions":r.jsonOptions=eke.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=eke.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wL(t.meta,r.meta),wL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}DL.mergeRpcOptions=IPt;function wL(t,e){if(!t)return;let r=e;for(let[A,s]of Object.entries(t))s instanceof Date?r[A]=new Date(s.getTime()):Array.isArray(s)?r[A]=s.concat():r[A]=s}});var Zj=h($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.Deferred=$f.DeferredState=void 0;var Vu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vu=$f.DeferredState||($f.DeferredState={}));var Xj=class{constructor(e=!0){this._state=Vu.PENDING,this._promise=new Promise((r,A)=>{this._resolve=r,this._reject=A}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vu.PENDING)throw new Error(`cannot resolve ${Vu[this.state].toLowerCase()}`);this._resolve(e),this._state=Vu.RESOLVED}reject(e){if(this.state!==Vu.PENDING)throw new Error(`cannot reject ${Vu[this.state].toLowerCase()}`);this._reject(e),this._state=Vu.REJECTED}resolvePending(e){this._state===Vu.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vu.PENDING&&this.reject(e)}};$f.Deferred=Xj});var e7=h(NL=>{"use strict";Object.defineProperty(NL,"__esModule",{value:!0});NL.RpcOutputStreamController=void 0;var tke=Zj(),eC=qA(),$j=class{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 A=r.indexOf(e);A>=0&&r.splice(A,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,A){eC.assert((e?1:0)+(r?1:0)+(A?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),A&&this.notifyComplete()}notifyMessage(e){eC.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){eC.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(){eC.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:()=>{let e=this._itState;eC.assert(e,"bad state"),eC.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 tke.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let A=r.p;eC.assert(A.state==tke.DeferredState.PENDING,"iterator contract broken"),"value"in e?A.resolve(e):A.reject(e),delete r.p}else r.q.push(e)}};NL.RpcOutputStreamController=$j});var r7=h(Jp=>{"use strict";var BPt=Jp&&Jp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.UnaryCall=void 0;var t7=class{constructor(e,r,A,s,n,i,o){this.method=e,this.requestHeaders=r,this.request=A,this.headers=s,this.response=n,this.status=i,this.trailers=o}then(e,r){return this.promiseFinished().then(A=>e?Promise.resolve(e(A)):A,A=>r?Promise.resolve(r(A)):Promise.reject(A))}promiseFinished(){return BPt(this,void 0,void 0,function*(){let[e,r,A,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:A,trailers:s}})}};Jp.UnaryCall=t7});var s7=h(Vp=>{"use strict";var QPt=Vp&&Vp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.ServerStreamingCall=void 0;var A7=class{constructor(e Line truncated
`));let A=yield D7(r,"create");yield N7(A,t)})}ln.createTar=hOt});var WD=h(rs=>{"use strict";var EOt=rs&&rs.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),fOt=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JD=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)&&EOt(e,t,r);return fOt(e,t),e},a0=rs&&rs.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(rs,"__esModule",{value:!0});rs.saveCache=rs.restoreCache=rs.isFeatureAvailable=rs.ReserveCacheError=rs.ValidationError=void 0;var pt=JD(no()),ML=JD(B("path")),nA=JD(CQ()),i0=JD(QTe()),pke=JD(Cke()),VD=YM(),Ih=Qke(),COt=EQ(),mTr=mf(),Bh=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};rs.ValidationError=Bh;var qD=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};rs.ReserveCacheError=qD;function mke(t){if(!t||t.length===0)throw new Bh("Path Validation Error: At least one directory or file path is required")}function R7(t){if(t.length>512)throw new Bh(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Bh(`Key Validation Error: ${t} cannot contain commas.`)}function IOt(){return(0,VD.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}rs.isFeatureAvailable=IOt;function BOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){let n=(0,VD.getCacheServiceVersion)();return pt.debug(`Cache service version: ${n}`),mke(t),n==="v2"?yield pOt(t,e,r,A,s):yield QOt(t,e,r,A,s)})}rs.restoreCache=BOt;function QOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){r=r||[];let n=[e,...r];if(pt.debug("Resolved Keys:"),pt.debug(JSON.stringify(n)),n.length>10)throw new Bh("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of n)R7(a);let i=yield nA.getCompressionMethod(),o="";try{let a=yield i0.getCacheEntry(n,t,{compressionMethod:i,enableCrossOsArchive:s});if(!a?.archiveLocation)return;if(A?.lookupOnly)return pt.info("Lookup only - skipping download"),a.cacheKey;o=ML.join(yield nA.createTempDirectory(),nA.getCacheFileName(i)),pt.debug(`Archive Path: ${o}`),yield i0.downloadCache(a.archiveLocation,o,A),pt.isDebug()&&(yield(0,Ih.listTar)(o,i));let c=nA.getArchiveFileSizeInBytes(o);return pt.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,Ih.extractTar)(o,i),pt.info("Cache restored successfully"),new o0(a.cacheKey,c)}finally{try{yield nA.unlinkFile(o)}catch(a){pt.debug(`Failed to delete archive: ${a}`)}}})}function pOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){A=Object.assign(Object.assign({},A),{useAzureSdk:!0}),r=r||[];let n=[e,...r];if(pt.debug("Resolved Keys:"),pt.debug(JSON.stringify(n)),n.length>10)throw new Bh("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)R7(o);let i="";try{let o=pke.internalCacheTwirpClient(),a=yield nA.getCompressionMethod(),c={key:e,restoreKeys:r,version:nA.getCacheVersion(t,a,s)},u=yield o.GetCacheEntryDownloadURL(c);if(!u.ok){pt.debug(`Cache not found for version ${c.version} of keys: ${n.join(", ")}`);return}if(c.key!==u.matchedKey?pt.info(`Cache hit for restore-key: ${u.matchedKey}`):pt.info(`Cache hit for: ${u.matchedKey}`),A?.lookupOnly)return pt.info("Lookup only - skipping download"),u.matchedKey;i=ML.join(yield nA.createTempDirectory(),nA.getCacheFileName(a)),pt.debug(`Archive path: ${i}`),pt.debug(`Starting download of archive to: ${i}`),yield i0.downloadCache(u.signedDownloadUrl,i,A);let g=nA.getArchiveFileSizeInBytes(i);return pt.info(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),pt.isDebug()&&(yield(0,Ih.listTar)(i,a)),yield(0,Ih.extractTar)(i,a),pt.info("Cache restored successfully"),new o0(u.matchedKey,g)}finally{try{i&&(yield nA.unlinkFile(i))}catch(o){pt.debug(`Failed to delete archive: ${o}`)}}})}function mOt(t,e,r,A=!1){return a0(this,void 0,void 0,function*(){let s=(0,VD.getCacheServiceVersion)();return pt.debug(`Cache service version: ${s}`),mke(t),R7(e),s==="v2"?yield bOt(t,e,r,A):yield yOt(t,e,r,A)})}rs.saveCache=mOt;function yOt(t,e,r,A=!1){var s,n,i,o,a;return a0(this,void 0,void 0,function*(){let c=yield nA.getCompressionMethod(),u=-1,l=yield nA.resolvePaths(t);if(pt.debug("Cache P Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function c8t(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(WGt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function u8t(){return"allowed"}function l8t(){return"success"}function g8t(){return"success"}function d8t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function h8t(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&&NK(t.origin)&&!NK(oN(t))&&(e=null);break;case"same-origin":uv(t,oN(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function y0(t,e){return t}function E8t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:y0(t.domainLookupStartTime,r),domainLookupEndTime:y0(t.domainLookupEndTime,r),connectionStartTime:y0(t.connectionStartTime,r),connectionEndTime:y0(t.connectionEndTime,r),secureConnectionStartTime:y0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function f8t(t){return y0(ZGt.now(),t)}function C8t(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}}function U2e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function I8t(t){return{referrerPolicy:t.referrerPolicy}}function B8t(t){let e=t.referrerPolicy;aC(e);let r=null;if(t.referrer==="client"){let o=R2e();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=DK(r),s=DK(r,!0);A.toString().length>4096&&(A=s);let n=uv(t,A),i=iN(A)&&!iN(t.url);switch(e){case"origin":return s??DK(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=oN(t);return uv(A,o)?A:iN(A)&&!iN(o)?"no-referrer":s}default:return i?"no-referrer":s}}function DK(t,e){return aC(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)}function iN(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function Q8t(t,e){if(cv===void 0)return!0;let r=M2e(e);if(r==="no metadata"||r.length===0)return!0;let A=m8t(r),s=y8t(r,A);for(let n of s){let i=n.algo,o=n.hash,a=cv.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),b8t(a,o))return!0}return!1}var p8t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function M2e(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=p8t.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();T2e.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function m8t(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function y8t(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function b8t(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}function w8t(t){}function uv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function D8t(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function N8t(t){return t.controller.state==="aborted"}function R8t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function S8t(t){return t8t[t.toLowerCase()]??t}function T8t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aC(typeof e=="string"),e}var k8t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function L2e(t,e,r=0,A=1){class s{ Line truncated
`);function o3t(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function a3t(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function c3t(t,e){gv(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&dv(t,n3t,n)||n.position===t.length-4&&dv(t,i3t,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=u3t(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let E=t.indexOf(A.subarray(2),n.position);if(E===-1)return"failure";g=t.subarray(n.position,E-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",o3t(u)||(u=""),d=new A3t([g],c,{type:u})):d=Z8t(Buffer.from(g)),gv(z2e(a)),gv(typeof d=="string"&&z2e(d)||e3t(d)),s.push(t3t(a,d,c))}}function u3t(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=w0(o=>o!==10&&o!==13&&o!==58,t,e);if(i=UK(i,!0,!0,o=>o===9||o===32),!$8t.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,w0(o=>o===32||o===9,t,e),X8t(i)){case"content-disposition":{if(r=A=null,!dv(t,s3t,e)||(e.position+=17,r=X2e(t,e),r===null))return"failure";if(dv(t,K2e,e)){let o=e.position+K2e.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=X2e(t,e),A===null))return"failure"}break}case"content-type":{let o=w0(a=>a!==10&&a!==13,t,e);o=UK(o,!1,!0,a=>a===9||a===32),s=j2e(o);break}case"content-transfer-encoding":{let o=w0(a=>a!==10&&a!==13,t,e);o=UK(o,!1,!0,a=>a===9||a===32),n=j2e(o);break}default:w0(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function X2e(t,e){gv(t[e.position-1]===34);let r=w0(A=>A!==10&&A!==13&&A!==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)}function w0(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function UK(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function dv(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}Z2e.exports={multipartFormDataParser:c3t,validateBoundary:a3t}});var R0=h((Ckr,cxe)=>{"use strict";var uN=Nt(),{ReadableStreamFrom:l3t,isBlobLike:exe,isReadableStreamLike:g3t,readableStreamClose:d3t,createDeferredPromise:h3t,fullyReadBody:E3t,extractMimeType:f3t,utf8DecodeBytes:Axe}=Eo(),{FormData:txe}=cN(),{kState:N0}=mh(),{webidl:C3t}=Ws(),{Blob:I3t}=B("node:buffer"),MK=B("node:assert"),{isErrored:sxe,isDisturbed:B3t}=B("node:stream"),{isArrayBuffer:Q3t}=B("node:util/types"),{serializeAMimeType:p3t}=yi(),{multipartFormDataParser:m3t}=$2e(),LK;try{let t=B("node:crypto");LK=e=>t.randomInt(0,e)}catch{LK=t=>Math.floor(Math.random(t))}var hv=new TextEncoder;function y3t(){}var nxe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ixe;nxe&&(ixe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!B3t(e)&&!sxe(e)&&e.cancel("Response object has been garbage collected").catch(y3t)}));function oxe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:exe(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?hv.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>d3t(a))},start(){},type:"bytes"}),MK(g3t(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(Q3t(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(uN.isFormDataLike(t)){let a=`----formdata-undici-0${`${LK(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=hv.encode(c+`; name="${u(l(Q))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=hv.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=hv.encode(`--${a}--\r
`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(exe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(uN.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:l3t(t)}if((typeof s=="string"||uN.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!sxe(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:r,source:s,length:n},i]}function b3t(t,e=!1){return t instanceof ReadableStream&&(MK(!uN.isDisturbed(t),"The body has already been consumed."),MK(!t.locked,"The stream is locked.")),oxe(t,e)}function w3t(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function D3t(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function N3t(t){return{blob(){return D0(this,r=>{let A=rxe(this);return A===null?A="":A&&(A=p3t(A)),new I3t([r],{type:A})},t)},arrayBuffer(){return D0(this,r=>new Uint8Array(r).buffer,t)},text(){return D0(this,Axe,t)},json(){return D0(this,S3t,t)},formData(){return D0(this,r=>{let A=rxe(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=m3t(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new txe;return n[N0]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new txe;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return D0(this,r=>new Uint8Array(r),t)}}}function R3t(t){Object.assign(t.prototype,N3t(t))}async function D0(t,e,r){if(C3t.brandCheck(t,r),axe(t))throw new TypeError("Body is unusable: Body has already been read");D3t(t[N0]);let A=h3t(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[N0].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await E3t(t[N0].body,n,s),A.promise)}function axe(t){let e=t[N0].body;return e!=null&&(e.stream.locked||uN.isDisturbed(e.stream))}function S3t(t){return JSON.parse(Axe(t))}function rxe(t){let e=t[N0].headersList,r=f3t(e);return r==="failure"?null:r}cxe.exports={extractBody:oxe,safelyExtractBody:b3t,cloneBody:w3t,mixinBody:R3t,streamRegistry:ixe,hasFinalizationRegistry:nxe,bodyUnusable:axe}});var Qxe=h((Ikr,Bxe)=>{"use strict";var Ke=B("node:assert"),ct=Nt(),{channels:uxe}=E0(),vK=IK(),{RequestContentLengthMismatchError:cC,ResponseContentLengthMismatchError:T3t,RequestAbortedError:fxe,HeadersTimeoutError:k3t,HeadersOverflowError:F3t,SocketError:Qv,InformationalError:S0,BodyTimeoutError:x3t,HTTPParserError:U3t,ResponseExceededMaxSizeError:M3t}=er(),{kUrl:Cxe,kReset:bi,kClient:HK,kParser:FA,kBlocking:dN,kRunning:gn,kPending:L3t,kSize:lxe,kWriting:bh,kQueue:Sc,kNoRef:lN,kKeepAliveDefaultTimeout:v3t,kHostHeader:_3t,kPendingIdx:P3t,kRunningIdx:wa,kError:Da,kPipelining:Iv,kSocket:T0,kKeepAliveTimeoutValue:pv,kMaxHeadersSize:_K,kKeepAliveMaxTimeout:O3t,kKeepAliveTimeoutThreshold:H3t,kHeadersTimeout:G3t,kBodyTimeout:Y3t,kStrictContentLength:GK,kMaxRequests:gxe,kCounter:q3t,kMaxResponseSize:J3t,kOnError:V3t,kResume:yh,kHTTPContext:Ixe}=iA(),Ku=i2e(),W3t=Buffer.alloc(0),Ev=Buffer[Symbol.species],fv=ct.addListener,z3t=ct.removeAllListeners,PK;async function j3t(){let t=process.env.JEST_WORKER_ID?pK():void 0,e;try{e=await WebAssembly.compile(c2e())}catch{e=await WebAssembly.compile(t||pK())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onStatus(new Ev(Xu.buffer,n,s))||0},wasm_on_message_begin:r=>(Ke(hs.ptr===r),hs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onHeaderField(new Ev(Xu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onHeaderValue(new Ev(Xu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Ke(hs.ptr===r),hs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onBody(new Ev(Xu.buffer,n,s))||0},wasm_on_message_complete:r=>(Ke(hs.ptr===r),hs.onMessageComplete()||0)}})}var OK=null,YK=j3t();YK.catch();var hs=null,Xu=null,Cv=0,Zu=null,K3t=0,gN=1,k0=2|gN,Bv=4|gN,qK=8|K3t,JK=class{constructor(e,r,{exports:A}){Ke(Number.isFinite(e[_K])&&e[_K]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Ku.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?C+=`host: ${s}\r
`:C+=t[_3t],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[Iv]&&!d[bi]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return uxe.sendHeaders.hasSubscribers&&uxe.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?hxe(E,null,t,e,d,u,C,l):ct.isBuffer(a)?hxe(E,a,t,e,d,u,C,l):ct.isBlobLike(a)?typeof a.stream=="function"?Exe(E,a.stream(),t,e,d,u,C,l):rYt(E,a,t,e,d,u,C,l):ct.isStream(a)?tYt(E,a,t,e,d,u,C,l):ct.isIterable(a)?Exe(E,a,t,e,d,u,C,l):Ke(!1),!0}function tYt(t,e,r,A,s,n,i,o){Ke(n!==0||r[gn]===0,"stream body cannot be pipelined");let a=!1,c=new mv({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ct.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new fxe;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,Ke(s.destroyed||s[bh]&&r[gn]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ct.destroy(e,E):ct.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function hxe(t,e,r,A,s,n,i,o){try{e?ct.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[bi]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(Ke(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[yh]()}catch(a){t(a)}}async function rYt(t,e,r,A,s,n,i,o){Ke(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new cC;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[bi]=!0),r[yh]()}catch(a){t(a)}}async function Exe(t,e,r,A,s,n,i,o){Ke(n!==0||r[gn]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ke(a===null),s[Da]?d(s[Da]):a=g});s.on("close",c).on("drain",c);let l=new mv({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Da])throw s[Da];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var mv=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[bh]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Da])throw r[Da];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[GK])throw new cC;process.emitWarning(new cC)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[bi]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[FA].timeout&&r[FA].timeoutType===k0&&r[FA].timeout.refresh&&r[FA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[bh]=!1,e[Da])throw e[Da];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[GK])throw new cC;process.emitWarning(new cC)}e[FA].timeout&&e[FA].timeoutType===k0&&e[FA].timeout.refresh&&e[FA].timeout.refresh(),A[yh]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[bh]=!1,e&&(Ke(A[gn]<=1,"pipeline should only contain this request"),s(e))}};Bxe.exports=X3t});var Rxe=h((Bkr,Nxe)=>{"use strict";var Na=B("node:assert"),{pipeline:AYt}=B("node:stream"),Lt=Nt(),{RequestContentLengthMismatchError:VK,RequestAbortedError:pxe,SocketError:hN,InformationalError:WK}=er(),{kUrl:yv,kReset:wv,kClient:F0,kRunning:Dv,kPending:sYt,kQueue:wh,kPendingIdx:zK,kRunningIdx:Tc,kError:Fc,kSocket:ks,kStrictContentLength:nYt,kOnError:jK,kMaxConcurrentStreams:Dxe,kHTTP2Session:kc,kResume:Dh,kSize:iYt,kHTTPContext:oYt}=iA(),pg=Symbol("open streams"),mxe,yxe=!1,bv;try{bv=B("node:http2")}catch{bv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:aYt,HTTP2_HEADER_METHOD:cYt,HTTP2_HEADER_PATH:uYt,HTTP2_HEADER_SCHEME:lYt,HTTP2_HEADER_CONTENT_LENGTH:gYt,HTTP2_HEADER_EXPECT:dYt,HTTP2_HEADER_STATUS:hYt}}=bv;function EYt(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function fYt(t,e){t[ks]=e,yxe||(yxe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=bv.connect(t[yv],{createConnection:()=>e,peerMaxConcurrentStreams:t[Dxe]});r[pg]=0,r[F0]=t,r[ks]=e,Lt.addListener(r,"error",IYt),Lt.addListener(r,"frameError",BYt),Lt.addListener(r,"end",QYt),Lt.addListener(r,"goaway",pYt),Lt.addListener(r,"close",function(){let{[F0]:s}=this,{[ks]:n}=s,i=this[ks][Fc]||this[Fc]||new hN("closed",Lt.getSocketInfo(n));if(s[kc]=null,s.destroyed){Na(s[sYt]===0);let o=s[wh].splice(s[Tc]);for(let a=0;a<o.length;a++){let c=o[a];Lt.errorRequest(s,c,i)}}}),r.unref(),t[kc]=r,e[kc]=r,Lt.addListener(e,"error",function(s){Na(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Fc]=s,this[F0][jK](s)}),Lt.addListener(e,"end",function(){Lt.destroy(this,new hN("other side closed",Lt.getSocketInfo(this)))}),Lt.addListener(e,"close",function(){let s=this[Fc]||new hN("closed",Lt.getSocketInfo(this));t[ks]=null,this[kc]!=null&&this[kc].destroy(s),t[zK]=t[Tc],Na(t[Dv]===0),t.emit("disconnect",t[yv],[t],s),t[Dh]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return yYt(t,...s)},resume(){CYt(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function CYt(t){let e=t[ks];e?.destroyed===!1&&(t[iYt]===0&&t[Dxe]===0?(e.unref(),t[kc].unref()):(e.ref(),t[kc].ref()))}function IYt(t){Na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ks][Fc]=t,this[F0][jK](t)}function BYt(t,e,r){if(r===0){let A=new WK(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ks][Fc]=A,this[F0][jK](A)}}function QYt(){let t=new hN("other side closed",Lt.getSocketInfo(this[ks]));this.destroy(t),Lt.destroy(this[ks],t)}function pYt(t){let e=this[Fc]||new hN(`HTTP/2: "GOAWAY" frame received with code ${t}`,Lt.getSocketInfo(this)),r=this[F0];if(r[ks]=null,r[oYt]=null,this[kc]!=null&&(this[kc].destroy(e),this[kc]=null),Lt.destroy(this[ks],e),r[Tc]<r[wh].length){let A=r[wh][r[Tc]];r[wh][r[Tc]++]=null,Lt.errorRequest(r,A,e),r[zK]=r[Tc]}Na(r[Dv]===0),r.emit("disconnect",r[yv],[r],e),r[Dh]()}function mYt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function yYt(t,e){let r=t[kc],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:E}=t[yv];l[aYt]=n||`${d}${E?`:${E}`:""}`,l[cYt]=A;let C=k=>{e.aborted||e.completed||(k=k||new pxe,Lt.errorRequest(t,e,k),g!=null&&Lt.destroy(g,k),Lt.destroy(u,k),t[wh][t[Tc]++]=null,t[Dh]())};try{e.onConnect(C)}catch(k){Lt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[pg],t[wh][t[Tc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[pg],t[wh][t[Tc]++]=null}),g.once("close",()=>{r[pg]-=1,r[pg]===0&&r.unref()}),!0;l[uYt]=s,l[lYt]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let I=Lt.bodyLength(u);if(Lt.isFormDataLike(u)){mxe??=R0().extractBody;let[k,J]=mxe(u);l["content-type"]=J,u=k.stream,I=k.length}if(I==null&&(I=e.contentLength),(I===0||!Q)&&(I=null),mYt(A)&&I>0&&e.contentLength!=null&&e.contentLength!==I){if(t[nYt])return Lt.errorRequest(t,e,new VK),!1;process.emitWarning(new VK)}I!=null&&(Na(u,"no body must not have content length"),l[gYt]=`${I}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[dYt]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[jYt]=a??3e5,this[zYt]=s??3e5,this[KYt]=p??!0,this[XYt]=k,this[$K]=j,this[Rh]=null,this[r4t]=$>-1?$:-1,this[s4t]=Ne??100,this[VA]=null,this[xc]=[],this[yg]=0,this[Uc]=0,this[IN]=le=>tX(this,le),this[A4t]=le=>Oxe(this,le)}get pipelining(){return this[Tv]}set pipelining(e){this[Tv]=e,this[IN](!0)}get[pN](){return this[xc].length-this[Uc]}get[QN](){return this[Uc]-this[yg]}get[BN](){return this[xc].length-this[yg]}get[HYt](){return!!this[VA]&&!this[U0]&&!this[VA].destroyed}get[ZK](){return!!(this[VA]?.busy(null)||this[BN]>=(Pxe(this)||1)||this[pN]>0)}[OYt](e){Hxe(this),this.once("connect",e)}[t4t](e,r){let A=e.origin||this[el].origin,s=new UYt(A,e,r);return this[xc].push(s),this[lC]||(uC.bodyLength(s.body)==null&&uC.isIterable(s.body)?(this[lC]=1,queueMicrotask(()=>tX(this))):this[IN](!0)),this[lC]&&this[Sh]!==2&&this[ZK]&&(this[Sh]=2),this[Sh]<2}async[$Yt](){return new Promise(e=>{this[BN]?this[Rh]=e:e(null)})}async[e4t](e){return new Promise(r=>{let A=this[xc].splice(this[Uc]);for(let n=0;n<A.length;n++){let i=A[n];uC.errorRequest(this,i,e)}let s=()=>{this[Rh]&&(this[Rh](),this[Rh]=null),r(null)};this[VA]?(this[VA].destroy(e,s),this[VA]=null):queueMicrotask(s),this[IN]()})}},o4t=Sv();function Oxe(t,e){if(t[QN]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mg(t[Uc]===t[yg]);let r=t[xc].splice(t[yg]);for(let A=0;A<r.length;A++){let s=r[A];uC.errorRequest(t,s,e)}mg(t[BN]===0)}}async function Hxe(t){mg(!t[U0]),mg(!t[VA]);let{host:e,hostname:r,protocol:A,port:s}=t[el];if(r[0]==="["){let n=r.indexOf("]");mg(n!==-1);let i=r.substring(1,n);mg(_xe.isIP(i)),r=i}t[U0]=!0,x0.beforeConnect.hasSubscribers&&x0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN]});try{let n=await new Promise((i,o)=>{t[fN]({host:e,hostname:r,protocol:A,port:s,servername:t[Nh],localAddress:t[CN]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){uC.destroy(n.on("error",Lxe),new vYt);return}mg(n);try{t[VA]=n.alpnProtocol==="h2"?await i4t(t,n):await n4t(t,n)}catch(i){throw n.destroy().on("error",Lxe),i}t[U0]=!1,n[ZYt]=0,n[$K]=t[$K],n[PYt]=t,n[YYt]=null,x0.connected.hasSubscribers&&x0.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN],socket:n}),t.emit("connect",t[el],[t])}catch(n){if(t.destroyed)return;if(t[U0]=!1,x0.connectError.hasSubscribers&&x0.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mg(t[QN]===0);t[pN]>0&&t[xc][t[Uc]].servername===t[Nh];){let i=t[xc][t[Uc]++];uC.errorRequest(t,i,n)}else Oxe(t,n);t.emit("connectionError",t[el],[t],n)}t[IN]()}function vxe(t){t[Sh]=0,t.emit("drain",t[el],[t])}function tX(t,e){t[lC]!==2&&(t[lC]=2,a4t(t,e),t[lC]=0,t[yg]>256&&(t[xc].splice(0,t[yg]),t[Uc]-=t[yg],t[yg]=0))}function a4t(t,e){for(;;){if(t.destroyed){mg(t[pN]===0);return}if(t[Rh]&&!t[BN]){t[Rh](),t[Rh]=null;return}if(t[VA]&&t[VA].resume(),t[ZK])t[Sh]=2;else if(t[Sh]===2){e?(t[Sh]=1,queueMicrotask(()=>vxe(t))):vxe(t);continue}if(t[pN]===0||t[QN]>=(Pxe(t)||1))return;let r=t[xc][t[Uc]];if(t[el].protocol==="https:"&&t[Nh]!==r.servername){if(t[QN]>0)return;t[Nh]=r.servername,t[VA]?.destroy(new LYt("servername changed"),()=>{t[VA]=null,tX(t)})}if(t[U0])return;if(!t[VA]){Hxe(t);return}if(t[VA].destroyed||t[VA].busy(r))return;!r.aborted&&t[VA].write(r)?t[Uc]++:t[xc].splice(t[Uc],1)}}Gxe.exports=eX});var rX=h((bkr,Yxe)=>{"use strict";var kv=class{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)}};Yxe.exports=class{constructor(){this.head=this.tail=new kv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new kv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Jxe=h((wkr,qxe)=>{var{kFree:c4t,kConnected:u4t,kPending:l4t,kQueued:g4t,kRunning:d4t,kSize:h4t}=iA(),gC=Symbol("pool"),AX=class{constructor(e){this[gC]=e}get connected(){return this[gC][u4t]}get free(){return this[gC][c4t]}get pending(){return this[gC][l4t]}get queued(){return this[gC][g4t]}get running(){return this[gC][d4t]}get size(){return this[gC][h4t]}};qxe.exports=AX});var cX=h((Dkr,tUe)=>{"use strict";var E4t=B0(),f4t=rX(),{kConnected:sX,kSize:Vxe,kRunning:Wxe,kPending:zxe,kQueued:mN,kBusy:C4t,kFree:I4t,kUrl:B4t,kClose:Q4t,kDestroy:p4t,kDispatch:m4t}=iA(),y4t=Jxe(),wi=Symbol("clients"),_n=Symbol("needDrain"),yN=Symbol("queue"),nX=Symbol("closed resolve"),iX=Symbol("onDrain"),jxe=Symbol("onConnect"),Kxe=Symbol("onDisconnect"),Xxe=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};oLe.exports=cZ});var jv=h((eFr,gLe)=>{"use strict";var cLe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:j5t}=er(),K5t=v0();lLe()===void 0&&uLe(new K5t);function uLe(t){if(!t||typeof t.dispatch!="function")throw new j5t("Argument agent must implement Agent");Object.defineProperty(globalThis,cLe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function lLe(){return globalThis[cLe]}gLe.exports={setGlobalDispatcher:uLe,getGlobalDispatcher:lLe}});var Kv=h((rFr,dLe)=>{"use strict";dLe.exports=class{#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 ELe=h((AFr,hLe)=>{"use strict";var X5t=Rv();hLe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new X5t(r,i,s,n);return r(o,a)}}});var CLe=h((sFr,fLe)=>{"use strict";var Z5t=Pv();fLe.exports=t=>e=>function(A,s){return e(A,new Z5t({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var BLe=h((nFr,ILe)=>{"use strict";var $5t=Nt(),{InvalidArgumentError:e9t,RequestAbortedError:t9t}=er(),r9t=Kv(),uZ=class extends r9t{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new e9t("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=$5t.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new t9t(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function A9t({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new uZ({maxSize:n},s);return e(A,i)}}ILe.exports=A9t});var mLe=h((iFr,pLe)=>{"use strict";var{isIP:s9t}=B("node:net"),{lookup:n9t}=B("node:dns"),i9t=Kv(),{InvalidArgumentError:W0,InformationalError:o9t}=er(),QLe=Math.pow(2,31)-1,lZ=class{#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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={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,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new o9t("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){n9t(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===QLe?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===QLe?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new gZ(this,e,r)}},gZ=class extends i9t{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":tPe(n)&&(r[s]=n);break;case"id":rPe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&tPe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&rPe(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,event:void 0,id:void 0,retry:void 0}}};APe.exports={EventSourceStream:XZ}});var gPe=h((vFr,lPe)=>{"use strict";var{pipeline:EWt}=B("node:stream"),{fetching:fWt}=LN(),{makeRequest:CWt}=K0(),{webidl:Rg}=Ws(),{EventSourceStream:IWt}=sPe(),{parseMIMEType:BWt}=yi(),{createFastMessageEvent:QWt}=rm(),{isNetworkError:nPe}=UN(),{delay:pWt}=jZ(),{kEnumerableProperty:NC}=Nt(),{environmentSettingsObject:iPe}=Eo(),oPe=!1,aPe=3e3,zN=0,cPe=1,jN=2,mWt="anonymous",yWt="use-credentials",om=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=zN;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Rg.util.markAsUncloneable(this);let A="EventSource constructor";Rg.argumentLengthCheck(arguments,1,A),oPe||(oPe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Rg.converters.USVString(e,A,"url"),r=Rg.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:aPe};let s=iPe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=mWt;r.withCredentials&&(i=yWt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=iPe.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=CWt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===jN)return;this.#A=zN;let e={request:this.#s,dispatcher:this.#o},r=A=>{nPe(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(nPe(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?BWt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=cPe,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new IWt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(QWt(a.type,a.options))}});EWt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=fWt(e)}async#c(){this.#A!==jN&&(this.#A=zN,this.dispatchEvent(new Event("error")),await pWt(this.#i.reconnectionTime),this.#A===zN&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Rg.brandCheck(this,t),this.#A!==jN&&(this.#A=jN,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},uPe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:zN,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:cPe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:jN,writable:!1}};Object.defineProperties(om,uPe);Object.defineProperties(om.prototype,uPe);Object.defineProperties(om.prototype,{close:NC,onerror:NC,onmessage:NC,onopen:NC,readyState:NC,url:NC,withCredentials:NC});Rg.converters.EventSourceInitDict=Rg.dictionaryConverter([{key:"withCredentials",converter:Rg.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Rg.converters.any}]);lPe.exports={EventSource:om,defaultReconnectionTime:aPe}});var ZZ=h((_Fr,$e)=>{"use strict";var bWt=M0(),dPe=eN(),wWt=L0(),DWt=uUe(),NWt=v0(),RWt=mX(),SWt=UUe(),TWt=OUe(),hPe=er(),__=Nt(),{InvalidArgumentError:v_}=hPe,am=DMe(),kWt=rN(),FWt=AZ(),xWt=aLe(),UWt=iZ(),MWt=qX(),LWt=Pv(),{getGlobalDispatcher:EPe,setGlobalDispatcher:vWt}=jv(),_Wt=Kv(),PWt=Rv(),OWt=Sv();Object.assign(dPe.prototype,am);$e.exports.Dispatcher=dPe;$e.exports.Client=bWt;$e.exports.Pool=wWt;$e.exports.BalancedPool=DWt;$e.exports.Agent=NWt;$e.exports.ProxyAgent=RWt;$e.exports.EnvHttpProxyAgent=SWt;$e.exports Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Dg("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Dg("Creating `tls.Socket`: %o",this.connectOpts),i=Jve.connect(this.connectOpts)):(Dg("Creating `net.Socket`: %o",this.connectOpts),i=qve.connect(this.connectOpts)),await(0,Wve.once)(i,"connect"),i}};KQ.protocols=["http","https"];ui.HttpProxyAgent=KQ;function Kve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dee=I(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});ab.state=void 0;ab.state={instrumenterImplementation:void 0}});var Wee=I(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.state=void 0;db.state={operationRequestMap:new WeakMap}});var Fse=I((xFt,D_e)=>{D_e.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Use=I((DFt,Mse)=>{var R_e=Fse();Mse.exports={version:R_e.version}});var Yw=I(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.isJsonObject=af.typeofJsonValue=void 0;function __e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}af.typeofJsonValue=__e;function H_e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}af.isJsonObject=H_e});var Jw=I(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.base64encode=Af.base64decode=void 0;var SA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qw=[];for(let t=0;t<SA.length;t++)qw[SA[t].charCodeAt(0)]=t;qw[45]=SA.indexOf("+");qw[95]=SA.indexOf("/");function G_e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=qw[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Af.base64decode=G_e;function Y_e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=SA[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=SA[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=SA[n|s>>6],e+=SA[s&63],r=0;break}return r&&(e+=SA[n],e+="=",r==1&&(e+="=")),e}Af.base64encode=Y_e});var _se=I(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.utf8read=void 0;var JP=t=>String.fromCharCode.apply(String,t);function q_e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(JP(s)),n=0);return r.length?(n&&r.push(JP(s.slice(0,n))),r.join("")):JP(s.slice(0,n))}Vw.utf8read=q_e});var b0=I(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.WireType=ga.mergeBinaryOptions=ga.UnknownFieldHandler=void 0;var J_e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(J_e=ga.UnknownFieldHandler||(ga.UnknownFieldHandler={}));function V_e(t,e){return Object.assign(Object.assign({},t),e)}ga.mergeBinaryOptions=V_e;var W_e;(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"})(W_e=ga.WireType||(ga.WireType={}))});var zw=I(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.varint32read=Ks.varint32write=Ks.int64toString=Ks.int64fromString=Ks.varint64write=Ks.varint64read=void 0;function z_e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ks.varint64read=z_e;function K_e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ks.varint64write=K_e;var Ww=65536*65536;function j_e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=Ww&&(n=n+(s/Ww|0),s=s%Ww)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ks.int64fromString=j_e;function X_e(t,e){if(e>>>0<=2097151)return""+(Ww*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ks.int64toString=X_e;function Z_e(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)}}Ks.varint32write=Z_e;function $_e(){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}Ks.varint32read=$_e});var Kc=I(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.PbLong=zc.PbULong=zc.detectBi=void 0;var w0=zw(),ft;function Hse(){let t=new DataView(new ArrayBuffer(8));ft=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}zc.detectBi=Hse;Hse();function Gse(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Yse=/^-?[0-9]+$/,jw=4294967296,Kw=2147483648,Xw=c Line truncated
`)}};B1.RpcError=E3});var I3=I(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});Q1.mergeRpcOptions=void 0;var Cne=Ar();function B5e(t,e){if(!e)return t;let r={};y1(t,r),y1(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Cne.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cne.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},y1(t.meta,r.meta),y1(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Q1.mergeRpcOptions=B5e;function y1(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var y3=I($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.Deferred=$l.DeferredState=void 0;var ma;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ma=$l.DeferredState||($l.DeferredState={}));var B3=class{constructor(e=!0){this._state=ma.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ma.PENDING)throw new Error(`cannot resolve ${ma[this.state].toLowerCase()}`);this._resolve(e),this._state=ma.RESOLVED}reject(e){if(this.state!==ma.PENDING)throw new Error(`cannot reject ${ma[this.state].toLowerCase()}`);this._reject(e),this._state=ma.REJECTED}resolvePending(e){this._state===ma.PENDING&&this.resolve(e)}rejectPending(e){this._state===ma.PENDING&&this.reject(e)}};$l.Deferred=B3});var b3=I(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.RpcOutputStreamController=void 0;var Ine=y3(),ed=Ar(),Q3=class{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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){ed.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){ed.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){ed.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(){ed.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:()=>{let e=this._itState;ed.assert(e,"bad state"),ed.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 Ine.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;ed.assert(s.state==Ine.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};b1.RpcOutputStreamController=Q3});var N3=I(ff=>{"use strict";var y5e=ff&&ff.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(ff,"__esModule",{value:!0});ff.UnaryCall=void 0;var w3=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return y5e(this,void 0,void 0,function*(){let[e,r,s,n]=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:s,trailers:n}})}};ff.UnaryCall=w3});var T3=I(pf=>{"use strict";var Q5e=pf&&pf.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(pf,"__esModule",{value:!0});pf.ServerStreamingCall=void 0;var S3=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var h4e=h(d4e=>{"use strict";var cre=Pg().Buffer;d4e._dbcs=Og;var js=-1,g4e=-2,Va=-10,qn=-1e3,vm=new Array(256),VR=-1;for(UO=0;UO<256;UO++)vm[UO]=js;var UO;function Og(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=vm.slice(0),this.decodeTableSeq=[];for(var A=0;A<r.length;A++)this._addDecodeChunk(r[A]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(vm.slice(0));var n=this.decodeTables.length;this.decodeTables.push(vm.slice(0));for(var i=this.decodeTables[0],A=129;A<=254;A++)for(var o=this.decodeTables[qn-i[A]],a=48;a<=57;a++){if(o[a]===js)o[a]=qn-s;else if(o[a]>qn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[qn-o[a]],u=129;u<=254;u++){if(c[u]===js)c[u]=qn-n;else{if(c[u]===qn-n)continue;if(c[u]>qn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[qn-c[u]],g=48;g<=57;g++)l[g]===js&&(l[g]=g4e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var A=0;A<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zor(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let A=e.length;A!==0;A--){let s=e[A-1].trim();if(xor.has(s)){r=s;break}}return r}function jor(t,e){let r=zor(e);r!==""&&(t.referrerPolicy=r)}function Kor(){return"allowed"}function Xor(){return"success"}function Zor(){return"success"}function $or(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ear(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&&yAe(t.origin)&&!yAe($C(t))&&(e=null);break;case"same-origin":rS(t,$C(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function qm(t,e){return t}function tar(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:qm(t.domainLookupStartTime,r),domainLookupEndTime:qm(t.domainLookupEndTime,r),connectionStartTime:qm(t.connectionStartTime,r),connectionEndTime:qm(t.connectionEndTime,r),secureConnectionStartTime:qm(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function rar(t){return qm(vor.now(),t)}function Aar(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}}function q5e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function sar(t){return{referrerPolicy:t.referrerPolicy}}function nar(t){let e=t.referrerPolicy;AS(e);let r=null;if(t.referrer==="client"){let n=P5e();if(!n||n.origin==="null")return"no-referrer";r=new URL(n)}else nE.is.URL(t.referrer)&&(r=t.referrer);let A=mAe(r),s=mAe(r,!0);switch(A.toString().length>4096&&(A=s),e){case"no-referrer":return"no-referrer";case"origin":return s??mAe(r,!0);case"unsafe-url":return A;case"strict-origin":{let n=$C(t);return ZC(A)&&!ZC(n)?"no-referrer":s}case"strict-origin-when-cross-origin":{let n=$C(t);return rS(A,n)?A:ZC(A)&&!ZC(n)?"no-referrer":s}case"same-origin":return rS(t,A)?A:"no-referrer";case"origin-when-cross-origin":return rS(t,A)?A:s;case"no-referrer-when-downgrade":{let n=$C(t);return ZC(A)&&!ZC(n)?"no-referrer":A}}}function mAe(t,e=!1){return AS(nE.is.URL(t)),t=new URL(t),z5e(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var iar=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),oar=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function J5e(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),oar(t)):iar(t)}function aar(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||J5e(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function ZC(t){return nE.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:aar(t.origin):!1}function car(t){}function rS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function uar(t){return t.controller.state==="aborted"}function lar(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function gar(t){return Por[t.toLowerCase()]??t}var dar=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function V5e(t,e,r=0,A=1){class s{#e;#t;#r;constructor(i,o){this.#e=i,this.#t=o,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let i=this.#r,o=e(this.#e),a=o.length;if(i>=a)return{value:void 0,done:!0};let{[r]:c,[A]:u}=o[i];this.#r=i+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,dar),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(n,i){return new s(n,i)}}function har(t,e,r,A=0,s=1){let n=V5e(t,r,A,s),i={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return nE.brandCheck(this,e),n(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return nE.brandCheck(this,e),n(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let i=ja(o=>FAe(o)&&o!==59,t,e);n=TAe.decode(i)}return{name:A,value:n}}function Par(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Mi("header name is null");return{name:r,filename:A,contentType:s,encoding:n}}let i=ja(o=>o!==10&&o!==13&&o!==58,t,e);if(i=kAe(i,!0,!0,o=>o===9||o===32),!Tar.test(i.toString()))throw Mi("header name does not match the field-name token production");if(t[e.position]!==58)throw Mi("expected :");switch(e.position++,ja(o=>o===32||o===9,t,e),Sar(i)){case"content-disposition":{if(r=A=null,ja(a=>FAe(a),t,e).toString("ascii").toLowerCase()!=="form-data")throw Mi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let a=_ar(t,e);if(!a)break;a.name==="name"?r=a.value:a.name==="filename"&&(A=a.value)}if(r===null)throw Mi("name attribute is required in content-disposition header");break}case"content-type":{let o=ja(a=>a!==10&&a!==13,t,e);o=kAe(o,!1,!0,a=>a===9||a===32),s=e9e(o);break}case"content-transfer-encoding":{let o=ja(a=>a!==10&&a!==13,t,e);o=kAe(o,!1,!0,a=>a===9||a===32),n=e9e(o);break}default:ja(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Mi("expected CRLF");e.position+=2}}function ja(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function kAe(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function Oar(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}function Mi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Har(t){return t<=31||t===127}function Gar(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function FAe(t){return t<=127&&t!==32&&t!==9&&!Har(t)&&!Gar(t)}t9e.exports={multipartFormDataParser:Lar,validateBoundary:Mar}});var sS=h((fOr,A9e)=>{"use strict";function Yar(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}A9e.exports={createDeferredPromise:Yar}});var Wm=h((COr,a9e)=>{"use strict";var MAe=ut(),{ReadableStreamFrom:qar,readableStreamClose:Jar,fullyReadBody:Var,extractMimeType:War}=No(),{FormData:s9e,setFormDataState:zar}=sH(),{webidl:qc}=Ks(),xAe=B("node:assert"),{isErrored:UAe,isDisturbed:jar}=B("node:stream"),{isUint8Array:Kar}=B("node:util/types"),{serializeAMimeType:Xar}=za(),{multipartFormDataParser:Zar}=r9e(),{createDeferredPromise:$ar}=sS(),{parseJSONFromBytes:ecr}=Yg(),{utf8DecodeBytes:tcr}=$R(),{runtimeFeatures:rcr}=qg(),Acr=rcr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),nH=new TextEncoder;function scr(){}var ncr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!jar(e)&&!UAe(e)&&e.cancel("Response object has been garbage collected").catch(scr)});function i9e(t,e=!1){let r=null,A=null;qc.is.ReadableStream(t)?r=t:qc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){A=c},cancel(){},type:"bytes"}),xAe(qc.is.ReadableStream(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(qc.is.URLSearchParams(t))n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(qc.is.BufferSource(t))n=qc.util.getCopyOfBytesHeldByBufferSource(t);else if(qc.is.FormData(t)){let c=`----formdata-undici-0${`${Acr(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],E=new Uint8Array([13,10]);i=0;let C=!1;for(let[I,p]of t)if(typeof p=="string"){let w=nH.encode(u+`; name="${l(g(I))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var YAe=I(GAe=>{"use strict";var NO=OA().Buffer;GAe._dbcs=_A;var zr=-1,HAe=-2,Ui=-10,ws=-1e3,Wf=new Array(256),wC=-1;for(tS=0;tS<256;tS++)Wf[tS]=zr;var tS;function _A(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Wf.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Wf.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Wf.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[ws-o[s]],A=48;A<=57;A++){if(a[A]===zr)a[A]=ws-n;else if(a[A]>ws)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ws-a[A]],u=129;u<=254;u++){if(c[u]===zr)c[u]=ws-i;else{if(c[u]===ws-i)continue;if(c[u]>ws)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ws-c[u]],d=48;d<=57;d++)l[d]===zr&&(l[d]=HAe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Vje(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(Rje.has(n)){r=n;break}}return r}function Wje(t,e){let r=Vje(e);r!==""&&(t.referrerPolicy=r)}function zje(){return"allowed"}function Kje(){return"success"}function jje(){return"success"}function Xje(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Zje(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&&J6(t.origin)&&!J6(Rd(t))&&(e=null);break;case"same-origin":UC(t,Rd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Zf(t,e){return t}function $je(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Zf(t.domainLookupStartTime,r),domainLookupEndTime:Zf(t.domainLookupEndTime,r),connectionStartTime:Zf(t.connectionStartTime,r),connectionEndTime:Zf(t.connectionEndTime,r),secureConnectionStartTime:Zf(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function eXe(t){return Zf(Uje.now(),t)}function tXe(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}}function Ele(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function rXe(t){return{referrerPolicy:t.referrerPolicy}}function sXe(t){let e=t.referrerPolicy;LC(e);let r=null;if(t.referrer==="client"){let i=hle();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Eu.is.URL(t.referrer)&&(r=t.referrer);let s=q6(r),n=q6(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??q6(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Rd(t);return Dd(s)&&!Dd(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Rd(t);return UC(s,i)?s:Dd(s)&&!Dd(i)?"no-referrer":n}case"same-origin":return UC(t,s)?s:"no-referrer";case"origin-when-cross-origin":return UC(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Rd(t);return Dd(s)&&!Dd(i)?"no-referrer":s}}}function q6(t,e=!1){return LC(Eu.is.URL(t)),t=new URL(t),yle(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var nXe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),iXe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Cle(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),iXe(t)):nXe(t)}function oXe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Cle(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Dd(t){return Eu.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:oXe(t.origin):!1}function aXe(t){}function UC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function AXe(t){return t.controller.state==="aborted"}function cXe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uXe(t){return vje[t.toLowerCase()]??t}var lXe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ile(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,lXe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function dXe(t,e,r,s=0,n=1){let i=Ile(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Eu.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Eu.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Pi(a=>e_(a)&&a!==59,t,e);i=Z6.decode(o)}return{name:s,value:i,extended:n}}function LXe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw sn("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Pi(a=>a!==10&&a!==13&&a!==58,t,e);if(o=$6(o,!0,!0,a=>a===9||a===32),!TXe.test(o.toString()))throw sn("header name does not match the field-name token production");if(t[e.position]!==58)throw sn("expected :");switch(e.position++,Pi(a=>a===32||a===9,t,e),SXe(o)){case"content-disposition":{r=s=null;let a=!1;if(Pi(c=>e_(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw sn("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=UXe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw sn("name attribute is required in content-disposition header");break}case"content-type":{let a=Pi(A=>A!==10&&A!==13,t,e);a=$6(a,!1,!0,A=>A===9||A===32),n=Tle(a);break}case"content-transfer-encoding":{let a=Pi(A=>A!==10&&A!==13,t,e);a=$6(a,!1,!0,A=>A===9||A===32),i=Tle(a);break}default:Pi(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw sn("expected CRLF");e.position+=2}}function Pi(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function $6(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function vXe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function sn(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function PXe(t){return t<=31||t===127}function OXe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function e_(t){return t<=127&&t!==32&&t!==9&&!PXe(t)&&!OXe(t)}xle.exports={multipartFormDataParser:MXe,validateBoundary:FXe}});var vC=I((H4t,Rle)=>{"use strict";function _Xe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}Rle.exports={createDeferredPromise:_Xe}});var tp=I((G4t,Lle)=>{"use strict";var s_=Ne(),{ReadableStreamFrom:HXe,readableStreamClose:GXe,fullyReadBody:YXe,extractMimeType:qXe}=Hn(),{FormData:kle,setFormDataState:JXe}=NS(),{webidl:Qo}=Kr(),t_=N("node:assert"),{isErrored:r_,isDisturbed:VXe}=N("node:stream"),{isUint8Array:WXe}=N("node:util/types"),{serializeAMimeType:zXe}=vi(),{multipartFormDataParser:KXe}=Dle(),{createDeferredPromise:jXe}=vC(),{parseJSONFromBytes:XXe}=YA(),{utf8DecodeBytes:ZXe}=IS(),{runtimeFeatures:$Xe}=qA(),eZe=$Xe.has("crypto")?N("node:crypto").randomInt:t=>Math.floor(Math.random()*t),SS=new TextEncoder;function tZe(){}var rZe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!VXe(e)&&!r_(e)&&e.cancel("Response object has been garbage collected").catch(tZe)});function Mle(t,e=!1){let r=null,s=null;Qo.is.ReadableStream(t)?r=t:Qo.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),t_(Qo.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Qo.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Qo.is.BufferSource(t))i=Qo.util.getCopyOfBytesHeldByBufferSource(t);else if(Qo.is.FormData(t)){let c=`----formdata-undici-0${`${eZe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let w=SS.encode(u+`; name="${l(d(m))}"\r
\r
${g(p)}\r
`);d.push(w),i+=w.byteLength}else{let w=nH.encode(`${u}; name="${l(g(I))}"`+(p.name?`; filename="${l(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(w),o+=w.byteLength}else{let w=SS.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);d.push(w,p,E),typeof p.size=="number"?i+=w.byteLength+p.size+E.byteLength:C=!0}let Q=nH.encode(`--${c}--\r
`);d.push(Q),i+=Q.byteLength,C&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(qc.is.Blob(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(MAe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=qc.is.ReadableStream(t)?t:qar(t)}return(typeof n=="string"||Kar(n))&&(s=()=>(i=typeof n=="string"?Buffer.byteLength(n):n.length,n)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(UAe(r))break;l.length&&A.enqueue(new Uint8Array(l))}else c?.length&&!UAe(r)&&A.enqueue(typeof c=="string"?nH.encode(c):new Uint8Array(c));queueMicrotask(()=>Jar(A))})(),[{stream:r,source:n,length:i},o]}function icr(t,e=!1){return qc.is.ReadableStream(t)&&(xAe(!MAe.isDisturbed(t),"The body has already been consumed."),xAe(!t.locked,"The stream is locked.")),i9e(t,e)}function ocr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function acr(t,e){return{blob(){return Vm(this,A=>{let s=n9e(e(this));return s===null?s="":s&&(s=Xar(s)),new Blob([A],{type:s})},t,e)},arrayBuffer(){return Vm(this,A=>new Uint8Array(A).buffer,t,e)},text(){return Vm(this,tcr,t,e)},json(){return Vm(this,ecr,t,e)},formData(){return Vm(this,A=>{let s=n9e(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Zar(A,s),i=new s9e;return zar(i,n),i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(A.toString()),i=new s9e;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Vm(this,A=>new Uint8Array(A),t,e)}}}function ccr(t,e){Object.assign(t.prototype,acr(t,e))}function Vm(t,e,r,A){try{qc.brandCheck(t,r)}catch(o){return Promise.reject(o)}if(t=A(t),o9e(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=$ar(),n=s.reject,i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t.body==null?(i(Buffer.allocUnsafe(0)),s.promise):(Var(t.body,i,n),s.promise)}function o9e(t){let e=t.body;return e!=null&&(e.stream.locked||MAe.isDisturbed(e.stream))}function n9e(t){let e=t.headersList,r=War(e);return r==="failure"?null:r}a9e.exports={extractBody:i9e,safelyExtractBody:icr,cloneBody:ocr,mixinBody:ccr,streamRegistry:ncr,bodyUnusable:o9e}});var B9e=h((IOr,I9e)=>{"use strict";var et=B("node:assert"),At=ut(),{channels:c9e}=AE(),LAe=pre(),{RequestContentLengthMismatchError:eI,ResponseContentLengthMismatchError:ucr,RequestAbortedError:E9e,HeadersTimeoutError:lcr,HeadersOverflowError:gcr,SocketError:oS,InformationalError:zm,BodyTimeoutError:dcr,HTTPParserError:hcr,ResponseExceededMaxSizeError:Ecr}=Ct(),{kUrl:f9e,kReset:Li,kClient:YAe,kParser:MA,kBlocking:aS,kRunning:pn,kPending:fcr,kSize:u9e,kWriting:oE,kQueue:Jc,kNoRef:nS,kKeepAliveDefaultTimeout:Ccr,kHostHeader:Icr,kPendingIdx:Bcr,kRunningIdx:Ka,kError:Xa,kPipelining:aH,kSocket:jm,kKeepAliveTimeoutValue:uH,kMaxHeadersSize:Qcr,kKeepAliveMaxTimeout:pcr,kKeepAliveTimeoutThreshold:mcr,kHeadersTimeout:ycr,kBodyTimeout:bcr,kStrictContentLength:PAe,kMaxRequests:l9e,kCounter:wcr,kMaxResponseSize:Dcr,kOnError:Ncr,kResume:iE,kHTTPContext:C9e,kClosed:OAe}=yr(),dl=a5e(),Rcr=Buffer.alloc(0),iH=Buffer[Symbol.species],Scr=At.removeAllListeners,vAe;function Tcr(){let t=process.env.JEST_WORKER_ID?cAe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(l5e())}catch{}return e||(e=new WebAssembly.Module(t||cAe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(A,s,n)=>0,wasm_on_status:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onStatus(new iH(hl.buffer,i,n))},wasm_on_message_begin:A=>(et(fs.ptr===A),fs.onMessageBegin()),wasm_on_header_field:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onHeaderField(new iH(hl.buffer,i,n))},wasm_on_header_value:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onHeaderValue(new iH(hl.buffer,i,n))},wasm_on_headers_complete:(A,s,n,i)=>(et(fs.ptr===A),fs.onHeadersComplete(s,n===1,i===1)),wasm_on_body:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onBody(new iH(hl.buffer,i,n))},wasm_on_message_complete:A=>(et(fs.ptr===A),fs.onMessageComplete())}})}var _Ae=null,fs=null,hl=null,oH=0,El=null,kcr=0,iS=1,Km=2|iS,cH=4|iS,HAe=8|kcr,GAe=class{constructor(e,r,{exports:A}){this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(dl.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Qcr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?C+=`host: ${s}\r
`:C+=t[Icr],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[aH]&&!d[Li]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return c9e.sendHeaders.hasSubscribers&&c9e.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?d9e(E,null,t,e,d,u,C,l):At.isBuffer(a)?d9e(E,a,t,e,d,u,C,l):At.isBlobLike(a)?typeof a.stream=="function"?h9e(E,a.stream(),t,e,d,u,C,l):Gcr(E,a,t,e,d,u,C,l):At.isStream(a)?Hcr(E,a,t,e,d,u,C,l):At.isIterable(a)?h9e(E,a,t,e,d,u,C,l):et(!1),!0}function Hcr(t,e,r,A,s,n,i,o){et(n!==0||r[pn]===0,"stream body cannot be pipelined");let a=!1,c=new lH({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){At.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new E9e;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,et(s.destroyed||s[oE]&&r[pn]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?At.destroy(e,E):At.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(d,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(d,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function d9e(t,e,r,A,s,n,i,o){try{e?At.isBuffer(e)&&(et(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);h.push(w,C,f),typeof C.size=="number"?o+=w.byteLength+C.size+f.byteLength:p=!0}let E=SS.encode(`--${c}--\r
`);h.push(E),o+=E.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Qo.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(s_.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Qo.is.ReadableStream(t)?t:HXe(t)}return(typeof i=="string"||WXe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(r_(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!r_(r)&&s.enqueue(typeof c=="string"?SS.encode(c):new Uint8Array(c));queueMicrotask(()=>GXe(s))})(),[{stream:r,source:i,length:o},a]}function sZe(t,e=!1){return Qo.is.ReadableStream(t)&&(t_(!s_.isDisturbed(t),"The body has already been consumed."),t_(!t.locked,"The stream is locked.")),Mle(t,e)}function nZe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function iZe(t,e){return{blob(){return ep(this,s=>{let n=Fle(e(this));return n===null?n="":n&&(n=zXe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return ep(this,s=>new Uint8Array(s).buffer,t,e)},text(){return ep(this,ZXe,t,e)},json(){return ep(this,XXe,t,e)},formData(){return ep(this,s=>{let n=Fle(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=KXe(s,n),o=new kle;return JXe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new kle;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return ep(this,s=>new Uint8Array(s),t,e)}}}function oZe(t,e){Object.assign(t.prototype,iZe(t,e))}function ep(t,e,r,s){try{Qo.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Ule(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=jXe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(YXe(t.body,o,i),n.promise)}function Ule(t){let e=t.body;return e!=null&&(e.stream.locked||s_.isDisturbed(e.stream))}function Fle(t){let e=t.headersList,r=qXe(e);return r==="failure"?null:r}Lle.exports={extractBody:Mle,safelyExtractBody:sZe,cloneBody:nZe,mixinBody:oZe,streamRegistry:rZe,bodyUnusable:Ule}});var Xle=I((Y4t,jle)=>{"use strict";var ge=N("node:assert"),oe=Ne(),{channels:vle}=pu(),n_=PO(),{RequestContentLengthMismatchError:kd,ResponseContentLengthMismatchError:Ple,RequestAbortedError:Vle,InvalidArgumentError:aZe,HeadersTimeoutError:AZe,HeadersOverflowError:cZe,SocketError:Fd,InformationalError:rp,BodyTimeoutError:uZe,HTTPParserError:lZe,ResponseExceededMaxSizeError:dZe}=Be(),{kUrl:Wle,kReset:nn,kClient:kS,kParser:St,kBlocking:_C,kRunning:mr,kPending:l_,kSize:Ole,kWriting:Cu,kQueue:bo,kNoRef:PC,kKeepAliveDefaultTimeout:hZe,kHostHeader:gZe,kPendingIdx:fZe,kRunningIdx:Oi,kError:Ns,kPipelining:DS,kSocket:Md,kKeepAliveTimeoutValue:FS,kMaxHeadersSize:pZe,kKeepAliveMaxTimeout:mZe,kKeepAliveTimeoutThreshold:EZe,kHeadersTimeout:CZe,kBodyTimeout:IZe,kStrictContentLength:a_,kMaxRequests:_le,kCounter:BZe,kMaxResponseSize:yZe,kOnError:Hle,kResume:VA,kHTTPContext:zle,kClosed:A_}=At(),Gn=Lue(),Gle=Buffer.alloc(0),TS=Buffer[Symbol.species],QZe=oe.removeAllListeners,Ud=Symbol("kIdleSocketValidation"),sp=Symbol("kIdleSocketValidationTimeout"),d_=Symbol("kSocketUsed"),i_;function bZe(){let t=process.env.JEST_WORKER_ID?R6():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(Oue())}catch{}return e||(e=new WebAssembly.Module(t||R6())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onStatus(new TS(Na.buffer,o,i))},wasm_on_message_begin:s=>(ge(Xt.ptr===s),Xt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onHeaderField(new TS(Na.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onHeaderValue(new TS(Na.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(ge(Xt.ptr===s),Xt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onBody(new TS(Na.buffer,o,i))},wasm_on_message_complete:s=>(ge(Xt.ptr===s),Xt.onMessageComplete())}})}var o_=null,Xt=null,Na=null,xS=0,Sa=null,wZe=0,OC=1,np=2|OC,RS=4|OC,c_=8|wZe,u_=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Gn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[pZe],this.shouldKeepAliv Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[gZe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[DS]&&!h[nn]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],C=c[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${m}: ${C[w]}\r
`;else p+=`${m}: ${C}\r
`}return vle.sendHeaders.hasSubscribers&&vle.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?qle(f,null,t,e,h,u,p,l):oe.isBuffer(A)?qle(f,A,t,e,h,u,p,l):oe.isBlobLike(A)?typeof A.stream=="function"?Jle(f,A.stream(),t,e,h,u,p,l):vZe(f,A,t,e,h,u,p,l):oe.isStream(A)?LZe(f,A,t,e,h,u,p,l):oe.isIterable(A)?Jle(f,A,t,e,h,u,p,l):ge(!1),!0}function LZe(t,e,r,s,n,i,o,a){ge(i!==0||r[mr]===0,"stream body cannot be pipelined");let A=!1,c=new MS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){oe.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Vle;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ge(n.destroyed||n[Cu]&&r[mr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?oe.destroy(e,f):oe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function qle(t,e,r,s,n,i,o,a){try{e?oe.isBuffer(e)&&(ge(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Li]=!0)):n===0?s.write(`${i}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[nn]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(et(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[iE]()}catch(a){t(a)}}async function Gcr(t,e,r,A,s,n,i,o){et(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new eI;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(ge(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[VA]()}catch(A){t(A)}}async function vZe(t,e,r,s,n,i,o,a){ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new kd;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Li]=!0),r[iE]()}catch(a){t(a)}}async function h9e(t,e,r,A,s,n,i,o){et(n!==0||r[pn]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{et(a===null),s[Xa]?d(s[Xa]):a=g});s.on("close",c).on("drain",c);let l=new lH({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Xa])throw s[Xa];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var lH=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[oE]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Xa])throw r[Xa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[PAe])throw new eI;process.emitWarning(new eI)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Li]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[nn]=!0),r[VA]()}catch(A){t(A)}}async function Jle(t,e,r,s,n,i,o,a){ge(i!==0||r[mr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{ge(A===null),n[Ns]?h(n[Ns]):A=d});n.on("close",c).on("drain",c);let l=new MS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Ns])throw n[Ns];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var MS=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Cu]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Ns])throw r[Ns];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[a_])throw new kd;process.emitWarning(new kd)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[nn]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[MA].timeout&&r[MA].timeoutType===Km&&r[MA].timeout.refresh&&r[MA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[oE]=!1,e[Xa])throw e[Xa];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[St].timeout&&r[St].timeoutType===np&&r[St].timeout.refresh&&r[St].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Cu]=!1,e[Ns])throw e[Ns];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[PAe])throw new eI;process.emitWarning(new eI)}e[MA].timeout&&e[MA].timeoutType===Km&&e[MA].timeout.refresh&&e[MA].timeout.refresh(),A[iE]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[oE]=!1,e&&(et(A[pn]<=1,"pipeline should only contain this request"),s(e))}};I9e.exports=Fcr});var R9e=h((BOr,N9e)=>{"use strict";var $a=B("node:assert"),{pipeline:Ycr}=B("node:stream"),mt=ut(),{RequestContentLengthMismatchError:WAe,RequestAbortedError:qcr,SocketError:gS,InformationalError:aE,InvalidArgumentError:Jcr}=Ct(),{kUrl:lS,kReset:EH,kClient:Ro,kRunning:dS,kPending:Vcr,kQueue:cE,kPendingIdx:jAe,kRunningIdx:Vc,kError:So,kSocket:CA,kStrictContentLength:Wcr,kOnError:Xm,kMaxConcurrentStreams:dH,kPingInterval:Q9e,kHTTP2Session:Vg,kHTTP2InitialWindowSize:zcr,kHTTP2ConnectionWindowSize:jcr,kResume:fl,kSize:Kcr,kHTTPContext:KAe,kClosed:zAe,kBodyTimeout:Xcr,kEnableConnectProtocol:cS,kRemoteSettings:uS,kHTTP2Stream:gH,kHTTP2SessionState:XAe}=yr(),{channels:p9e}=AE(),Za=Symbol("open streams"),m9e,hH;try{hH=B("node:http2")}catch{hH={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Zcr,HTTP2_HEADER_METHOD:y9e,HTTP2_HEADER_PATH:b9e,HTTP2_HEADER_SCHEME:qAe,HTTP2_HEADER_CONTENT_LENGTH:$cr,HTTP2_HEADER_EXPECT:eur,HTTP2_HEADER_STATUS:JAe,HTTP2_HEADER_PROTOCOL:tur,NGHTTP2_REFUSED_STREAM:rur,NGHTTP2_CANCEL:Aur}}=hH;function VAe(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}function sur(t,e){t[CA]=e;let r=t[zcr],A=t[jcr],s=hH.connect(t[lS],{createConnection:()=>e,peerMaxConcurrentStreams:t[dH],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[CA]=e,s[Za]=0,s[Ro]=t,s[CA]=e,s[XAe]={ping:{interval:t[Q9e]===0?null:setInterval(aur,t[Q9e],s).unref()}},s[cS]=!1,s[uS]=!1,A&&mt.addListener(s,"connect",iur.bind(s,A)),mt.addListener(s,"error",cur),mt.addListener(s,"frameError",uur),mt.addListener(s,"end",lur),mt.addListener(s,"goaway",gur),mt.addListener(s,"close",dur),mt.addListener(s,"remoteSettings",our),s.unref(),t[Vg]=s,e[Vg]=s,mt.addListener(e,"error",Eur),mt.addListener(e,"end",fur),mt.addListener(e,"close",hur),e[zAe]=!1,e.on("close",Cur),{version:"h2",defaultPipelining:1/0,write(n){return Bur(t,n)},resume(){nur(t)},destroy(n,i){e[zAe]?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){if(n!=null)if(t[dS]>0){if(n.idempotent===!1||(n.upgrade==="websocket"||n.method==="CONNECT")&&s[uS]===!1||mt.bodyLength(n.body)!==0&&(mt.isStream(n.body)||mt.isAsyncIterable(n.body)||mt.isFormDataLike(n.body)))return!0}else return(n.upgrade==="websocket"||n.method==="CONNECT")&&s[uS]===!1;return!1}}}function nur(t){let e=t[CA];e?.destroyed===!1&&(t[Kcr]===0||t[dH]===0?(e.unref(),t[Vg].unref()):(e.ref(),t[Vg].ref()))}function iur(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function our(t){if(this[Ro][dH]=t.maxConcurrentStreams??this[Ro][dH],this[uS]===!0&&this[cS]===!0&&t.enableConnectProtocol===!1){let e=new aE("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[CA][So]=e,this[Ro][Xm](e);return}this[cS]=t.enableConnectProtocol??this[cS],this[uS]=!0,this[Ro][fl]()}function aur(t){let e=t[XAe];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(A,s){let n=this[Ro],i=this[Ro];if(A!=null){let o=new aE(`HTTP/2: "PING" errored - type ${A.message}`);i[So]=o,n[Xm](o)}else n.emit("ping",s)}}function cur(t){$a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[CA][So]=t,this[Ro][Xm](t)}function uur(t,e,r){if(r===0){let A=new aE(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[CA][So]=A,this[Ro][Xm](A)}}function lur(){let t=new gS("other side closed",mt.getSocketInfo(this[CA]));this.destroy(t),mt.destroy(this[CA],t)}function gur(t){let e=this[So]||new gS(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this[CA])),r=this[Ro];if(r[CA]=null,r[KAe]=null,this.close(),this[Vg]=null,mt.destroy(this[CA],e),r[Vc]<r[cE].length){let A=r[cE][r[Vc]];r[cE][r[Vc]++]=null,mt.errorRequest(r,A,e),r[jAe]=r[Vc]}$a(r[dS]===0),r.emit("disconnect",r[lS],[r],e),r.emit("connectionError",r[lS],[r],e),r[fl]()}function dur(){let{[Ro]:t,[XAe]:e}=this,{[CA]:r}=t,A=this[CA][So]||this[So]||new gS("closed",mt.getSocketInfo(r));if(t[CA]=null,t[KAe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){$a(t[Vcr]===0);let s=t[cE].splice(t[Vc]);for(let n=0;n<s.length;n++){let i=s[n];mt.errorRequest(t,i,A)}}}function hur(){let t=this[So]||new gS("closed",mt.getSocketInfo(this)),e=this[Vg][Ro];e[CA]=null,e[KAe]=null,this[Vg]!==null&&this[Vg].destroy(t),e[jAe]=e[Vc],$a(e[dS]===0),e.emit("disconnect",e[lS],[e],t),e[fl]()}function Eur(t){$a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[So]=t,this[Ro][Xm](t)}function fur(){mt.destroy(this,new gS("other side closed",mt.getSock Line truncated
`;p9e.sendHeaders.publish({request:e,headers:H,socket:A[CA]})}let k=s==="GET"||s==="HEAD"||g===null;a?(d[eur]="100-continue",E=A.request(d,{endStream:k,signal:c}),E[gH]=!0,E.once("continue",j)):(E=A.request(d,{endStream:k,signal:c}),E[gH]=!0,j()),++A[Za],E.setTimeout(r);let J=!1;return E.once("response",H=>{let{[JAe]:$,...oe}=H;if(e.onResponseStarted(),J=!0,e.aborted){E.removeAllListeners("data");return}e.onHeaders(Number($),VAe(oe),E.resume.bind(E),"")===!1&&E.pause()}),E.on("data",H=>{e.onData(H)===!1&&E.pause()}),E.once("end",()=>{E.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),t[cE][t[Vc]++]=null,t[fl]()):(I(new aE("HTTP/2: stream half-closed (remote)")),t[cE][t[Vc]++]=null,t[jAe]=t[Vc],t[fl]())}),E.once("close",()=>{E.removeAllListeners("data"),A[Za]-=1,A[Za]===0&&A.unref()}),E.once("error",function(H){E.removeAllListeners("data"),I(H)}),E.once("frameError",(H,$)=>{E.removeAllListeners("data"),I(new aE(`HTTP/2: "frameError" received - type ${H}, code ${$}`))}),E.on("aborted",()=>{E.removeAllListeners("data")}),E.on("timeout",()=>{let H=new aE(`HTTP/2: "stream timeout after ${r}"`);E.removeAllListeners("data"),A[Za]-=1,A[Za]===0&&A.unref(),I(H)}),E.once("trailers",H=>{e.aborted||e.completed||e.onComplete(H)}),!0;function j(){!g||w===0?w9e(I,E,null,t,e,t[CA],w,p):mt.isBuffer(g)?w9e(I,E,g,t,e,t[CA],w,p):mt.isBlobLike(g)?typeof g.stream=="function"?D9e(I,E,g.stream(),t,e,t[CA],w,p):pur(I,E,g,t,e,t[CA],w,p):mt.isStream(g)?Qur(I,t[CA],p,E,g,t,e,w):mt.isIterable(g)?D9e(I,E,g,t,e,t[CA],w,p):$a(!1)}}function w9e(t,e,r,A,s,n,i,o){try{r!=null&&mt.isBuffer(r)&&($a(i===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),o||(n[EH]=!0),s.onRequestSent(),A[fl]()}catch(a){t(a)}}function Qur(t,e,r,A,s,n,i,o){$a(o!==0||n[dS]===0,"stream body cannot be pipelined");let a=Ycr(s,A,u=>{u?(mt.destroy(a,u),t(u)):(mt.removeAllListeners(a),i.onRequestSent(),r||(e[EH]=!0),n[fl]())});mt.addListener(a,"data",c);function c(u){i.onBodySent(u)}}async function pur(t,e,r,A,s,n,i,o){$a(i===r.size,"blob body must have content length");try{if(i!=null&&i!==r.size)throw new WAe;let a=Buffer.from(await r.arrayBuffer());e.cork(),e.write(a),e.uncork(),e.end(),s.onBodySent(a),s.onRequestSent(),o||(n[EH]=!0),A[fl]()}catch(a){t(a)}}async function D9e(t,e,r,A,s,n,i,o){$a(i!==0||A[dS]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let l=a;a=null,l()}}let u=()=>new Promise((l,g)=>{$a(a===null),n[So]?g(n[So]):a=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(n[So])throw n[So];let g=e.write(l);s.onBodySent(l),g||await u()}e.end(),s.onRequestSent(),o||(n[EH]=!0),A[fl]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}N9e.exports=sur});var hE=h((QOr,v9e)=>{"use strict";var Wg=B("node:assert"),x9e=B("node:net"),hS=B("node:http"),tI=ut(),{ClientStats:mur}=zre(),{channels:Zm}=AE(),yur=Kqe(),bur=Gm(),{InvalidArgumentError:jr,InformationalError:wur,ClientDestroyedError:Dur}=Ct(),Nur=Ym(),{kUrl:Cl,kServerName:dE,kClient:Rur,kBusy:ZAe,kConnect:Sur,kResuming:rI,kRunning:IS,kPending:BS,kSize:ES,kQueue:Wc,kConnected:Tur,kConnecting:$m,kNeedDrain:lE,kKeepAliveDefaultTimeout:S9e,kHostHeader:kur,kPendingIdx:zc,kRunningIdx:zg,kError:Fur,kPipelining:fH,kKeepAliveTimeoutValue:xur,kMaxHeadersSize:Uur,kKeepAliveMaxTimeout:Mur,kKeepAliveTimeoutThreshold:Lur,kHeadersTimeout:vur,kBodyTimeout:_ur,kStrictContentLength:Pur,kConnector:fS,kMaxRequests:$Ae,kCounter:Our,kClose:Hur,kDestroy:Gur,kDispatch:Yur,kLocalAddress:CS,kMaxResponseSize:qur,kOnError:Jur,kHTTPContext:zA,kMaxConcurrentStreams:Vur,kHTTP2InitialWindowSize:Wur,kHTTP2ConnectionWindowSize:zur,kResume:gE,kPingInterval:jur}=yr(),Kur=B9e(),Xur=R9e(),uE=Symbol("kClosedResolve"),Zur=hS&&hS.maxHeaderSize&&Number.isInteger(hS.maxHeaderSize)&&hS.maxHeaderSize>0?()=>hS.maxHeaderSize:()=>{throw new jr("http module not available or http.maxHeaderSize invalid")},T9e=()=>{};function U9e(t){return t[fH]??t[zA]?.defaultPipelining??1}var ese=class extends bur{constructor(e,{maxHeaderSize:r,headersTimeout:A,socketTimeout:s,requestTimeout:n,connectTimeout:i,bodyTimeout:o,idleTimeout:a,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:d,socketPath:E,pipelining:C,tls:Q,strictContentLength:I,maxCachedSessions:p,connect:w,maxRequestsPerClient:k,localAddress:J,maxResponseSize:j,autoSelectFamily:H,autoSelectFamilyAttemptTimeout:$,maxConcurrentStreams:oe,allowH2:pe,useH2c:Ne,initialWindowSize:K,connectionWindowSize:le,pingInterval:Pe}={}){if(c!==void 0)throw new jr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new jr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(n!==void 0)throw new jr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new jr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new jr("unsupported maxKeepAliveTimeout, use keepAliveM Line truncated
`,this[_ur]=o??3e5,this[vur]=A??3e5,this[Pur]=I??!0,this[$Ae]=k,this[uE]=null,this[qur]=j>-1?j:-1,this[zA]=null,this[Vur]=oe??100,this[Wur]=K??262144,this[zur]=le??524288,this[jur]=Pe??6e4,this[Wc]=[],this[zg]=0,this[zc]=0,this[gE]=Wt=>tse(this,Wt),this[Jur]=Wt=>M9e(this,Wt)}get pipelining(){return this[fH]}set pipelining(e){this[fH]=e,this[gE](!0)}get stats(){return new mur(this)}get[BS](){return this[Wc].length-this[zc]}get[IS](){return this[zc]-this[zg]}get[ES](){return this[Wc].length-this[zg]}get[Tur](){return!!this[zA]&&!this[$m]&&!this[zA].destroyed}get[ZAe](){return!!(this[zA]?.busy(null)||this[ES]>=(U9e(this)||1)||this[BS]>0)}[Sur](e){L9e(this),this.once("connect",e)}[Yur](e,r){let A=new yur(this[Cl].origin,e,r);return this[Wc].push(A),this[rI]||(tI.bodyLength(A.body)==null&&tI.isIterable(A.body)?(this[rI]=1,queueMicrotask(()=>tse(this))):this[gE](!0)),this[rI]&&this[lE]!==2&&this[ZAe]&&(this[lE]=2),this[lE]<2}[Hur](){return new Promise(e=>{this[ES]?this[uE]=e:e(null)})}[Gur](e){return new Promise(r=>{let A=this[Wc].splice(this[zc]);for(let n=0;n<A.length;n++){let i=A[n];tI.errorRequest(this,i,e)}let s=()=>{this[uE]&&(this[uE](),this[uE]=null),r(null)};this[zA]?(this[zA].destroy(e,s),this[zA]=null):queueMicrotask(s),this[gE]()})}};function M9e(t,e){if(t[IS]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wg(t[zc]===t[zg]);let r=t[Wc].splice(t[zg]);for(let A=0;A<r.length;A++){let s=r[A];tI.errorRequest(t,s,e)}Wg(t[ES]===0)}}function L9e(t){Wg(!t[$m]),Wg(!t[zA]);let{host:e,hostname:r,protocol:A,port:s}=t[Cl];if(r[0]==="["){let n=r.indexOf("]");Wg(n!==-1);let i=r.substring(1,n);Wg(x9e.isIPv6(i)),r=i}t[$m]=!0,Zm.beforeConnect.hasSubscribers&&Zm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS]}),t[fS]({host:e,hostname:r,protocol:A,port:s,servername:t[dE],localAddress:t[CS]},(n,i)=>{if(n){k9e(t,n,{host:e,hostname:r,protocol:A,port:s}),t[gE]();return}if(t.destroyed){tI.destroy(i.on("error",T9e),new Dur),t[gE]();return}Wg(i);try{t[zA]=i.alpnProtocol==="h2"?Xur(t,i):Kur(t,i)}catch(o){i.destroy().on("error",T9e),k9e(t,o,{host:e,hostname:r,protocol:A,port:s}),t[gE]();return}t[$m]=!1,i[Our]=0,i[$Ae]=t[$Ae],i[Rur]=t,i[Fur]=null,Zm.connected.hasSubscribers&&Zm.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS],socket:i}),t.emit("connect",t[Cl],[t]),t[gE]()})}function k9e(t,e,{host:r,hostname:A,protocol:s,port:n}){if(!t.destroyed){if(t[$m]=!1,Zm.connectError.hasSubscribers&&Zm.connectError.publish({connectParams:{host:r,hostname:A,protocol:s,port:n,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wg(t[IS]===0);t[BS]>0&&t[Wc][t[zc]].servername===t[dE];){let i=t[Wc][t[zc]++];tI.errorRequest(t,i,e)}else M9e(t,e);t.emit("connectionError",t[Cl],[t],e)}}function F9e(t){t[lE]=0,t.emit("drain",t[Cl],[t])}function tse(t,e){t[rI]!==2&&(t[rI]=2,$ur(t,e),t[rI]=0,t[zg]>256&&(t[Wc].splice(0,t[zg]),t[zc]-=t[zg],t[zg]=0))}function $ur(t,e){for(;;){if(t.destroyed){Wg(t[BS]===0);return}if(t[uE]&&!t[ES]){t[uE](),t[uE]=null;return}if(t[zA]&&t[zA].resume(),t[ZAe])t[lE]=2;else if(t[lE]===2){e?(t[lE]=1,queueMicrotask(()=>F9e(t))):F9e(t);continue}if(t[BS]===0||t[IS]>=(U9e(t)||1))return;let r=t[Wc][t[zc]];if(t[Cl].protocol==="https:"&&t[dE]!==r.servername){if(t[IS]>0)return;t[dE]=r.servername,t[zA]?.destroy(new wur("servername changed"),()=>{t[zA]=null,tse(t)})}if(t[$m])return;if(!t[zA]){L9e(t);return}if(t[zA].destroyed||t[zA].busy(r))return;!r.aborted&&t[zA].write(r)?t[zc]++:t[Wc].splice(t[zc],1)}}v9e.exports=ese});var rse=h((mOr,_9e)=>{"use strict";var CH=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};_9e.exports=class{constructor(){this.head=this.tail=new CH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var IH=h((yOr,W9e)=>{"use strict";var{PoolStats:elr}=zre(),tlr=Gm(),rlr=rse(),{kConnected:Ase,kSize:P9e,kRunning:O9e,kPending:H9e,kQueued:QS,kBusy:Alr,kFree:slr,kUrl:nlr,kClose:ilr,kDestroy:olr,kDispatch:alr}=yr(),_s=Symbol("clients"),Jn=Symbol("needDrain"),pS=Symbol("queue"),sse=Symbol("closed resolve"),nse=Symbol("onDrain"),G9e=Symbol("onConnect"),Y9e=Symbol("onDisconnect"),q9e=Symbol("onConnectionError"),ise=Symbol("get dispatcher"),J9e=Symbol("add client"),V9e=Symbol("remove client"),ose=class extends tlr{[pS]=new rlr;[QS]=0;[_s]=[];[Jn]=!1;[nse](e,r,A){let s=this[pS],n=!1;for(;!n;){let i=s.sh Line truncated
`,"latin1"),r!==null&&n!==r){if(s[a_])throw new kd;process.emitWarning(new kd)}e[St].timeout&&e[St].timeoutType===np&&e[St].timeout.refresh&&e[St].timeout.refresh(),s[VA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Cu]=!1,e&&(ge(s[mr]<=1,"pipeline should only contain this request"),n(e))}};jle.exports=NZe});var ode=I((q4t,ide)=>{"use strict";var Hi=N("node:assert"),{pipeline:PZe}=N("node:stream"),Le=Ne(),{RequestContentLengthMismatchError:p_,RequestAbortedError:OZe,SocketError:VC,InformationalError:Iu,InvalidArgumentError:_Ze,HeadersTimeoutError:HZe,BodyTimeoutError:GZe}=Be(),{kUrl:JC,kReset:vS,kClient:Yn,kRunning:WC,kPending:YZe,kQueue:GC,kPendingIdx:Ld,kRunningIdx:Ta,kError:qn,kSocket:Ot,kStrictContentLength:qZe,kOnError:ip,kMaxConcurrentStreams:m_,kPingInterval:Zle,kHTTP2Session:WA,kHTTP2InitialWindowSize:JZe,kHTTP2ConnectionWindowSize:VZe,kResume:xa,kSize:WZe,kHTTPContext:C_,kClosed:E_,kBodyTimeout:zZe,kHeadersTimeout:KZe,kEnableConnectProtocol:YC,kRemoteSettings:qC,kHTTP2Stream:US,kHTTP2SessionState:I_}=At(),{channels:$le}=pu(),_i=Symbol("open streams"),ede,LS;try{LS=N("node:http2")}catch{LS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jZe,HTTP2_HEADER_METHOD:tde,HTTP2_HEADER_PATH:rde,HTTP2_HEADER_SCHEME:h_,HTTP2_HEADER_CONTENT_LENGTH:XZe,HTTP2_HEADER_EXPECT:ZZe,HTTP2_HEADER_STATUS:g_,HTTP2_HEADER_PROTOCOL:$Ze,NGHTTP2_REFUSED_STREAM:e$e,NGHTTP2_CANCEL:t$e}}=LS;function f_(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function r$e(t,e){t[Ot]=e;let r=t[JZe],s=t[VZe],n=LS.connect(t[JC],{createConnection:()=>e,peerMaxConcurrentStreams:t[m_],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Ot]=e,n[_i]=0,n[Yn]=t,n[Ot]=e,n[I_]={ping:{interval:t[Zle]===0?null:setInterval(o$e,t[Zle],n).unref()}},n[YC]=!1,n[qC]=!1,s&&Le.addListener(n,"connect",n$e.bind(n,s)),Le.addListener(n,"error",a$e),Le.addListener(n,"frameError",A$e),Le.addListener(n,"end",c$e),Le.addListener(n,"goaway",u$e),Le.addListener(n,"close",l$e),Le.addListener(n,"remoteSettings",i$e),n.unref(),t[WA]=n,e[WA]=n,Le.addListener(e,"error",h$e),Le.addListener(e,"end",g$e),Le.addListener(e,"close",d$e),e[E_]=!1,e.on("close",f$e),{version:"h2",defaultPipelining:1/0,write(i){return m$e(t,i)},resume(){s$e(t)},destroy(i,o){e[E_]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[WC]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[qC]===!1||Le.bodyLength(i.body)!==0&&(Le.isStream(i.body)||Le.isAsyncIterable(i.body)||Le.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[qC]===!1;return!1}}}function s$e(t){let e=t[Ot];e?.destroyed===!1&&(t[WZe]===0?(e.unref(),t[WA].unref()):(e.ref(),t[WA].ref()))}function n$e(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function i$e(t){if(this[Yn][m_]=t.maxConcurrentStreams??this[Yn][m_],this[qC]===!0&&this[YC]===!0&&t.enableConnectProtocol===!1){let e=new Iu("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Ot][qn]=e,this[Yn][ip](e);return}this[YC]=t.enableConnectProtocol??this[YC],this[qC]=!0,this[Yn][xa]()}function o$e(t){let e=t[I_];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[Yn],o=this[Yn];if(s!=null){let a=new Iu(`HTTP/2: "PING" errored - type ${s.message}`);o[qn]=a,i[ip](a)}else i.emit("ping",n)}}function a$e(t){Hi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ot][qn]=t,this[Yn][ip](t)}function A$e(t,e,r){if(r===0){let s=new Iu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ot][qn]=s,this[Yn][ip](s)}}function c$e(){let t=new VC("other side closed",Le.getSocketInfo(this[Ot]));this.destroy(t),Le.destroy(this[Ot],t)}function HC(t,e,r=!1){let s=t[GC],n=t[Ta];if(n<t[Ld]&&s[n]===e){s[n]=null,t[Ta]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[Ld]||(s.splice(i,1),t[Ld]--,r&&t[Ld]<t[Ta]&&(t[Ld]=t[Ta]))}function u$e(t){let e=this[qn]||new VC(`HTTP/2: "GOAWAY" frame received with code ${t}`,Le.getSocketInfo(this[Ot])),r=this[Yn];if(r[Ot]=null,r[C_]=null,this.close(),this[WA]=null,Le.destroy(this[Ot],e),r[Ta]<r[GC].length){let s=r[GC][r[Ta]];r[GC][r[Ta]++]=null,s!=null&&Le.errorRequest(r,s,e),r[Ld]=r[Ta]}Hi(r[WC]===0),r.emit("disconnect",r[JC],[r],e),r.emit("connectionError",r[JC],[r],e),r[xa]()}function l$e(){let{[Yn]:t,[I_]:e}=this,{[Ot]:r}=t,s=this[Ot][qn]||this[qn]||new VC("closed",Le.getSocketInfo(r));if(t[Ot]=null,t[C_]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hi(t[YZe]===0);let n=t[GC].splice(t[Ta]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Le.errorRequest(t,o,s)}}}function d$e(){let t=this[qn]||new VC("closed",Le.getSocketInfo(this)),e=this[WA][Yn];e[Ot]=null,e[C_]=null,this[WA]!==null&&this[ Line truncated
`;$le.sendHeaders.publish({request:e,headers:v,socket:n[Ot]})}let k=i==="GET"||i==="HEAD"||h===null;c?(f[ZZe]="100-continue",p=n.request(f,{endStream:k,signal:u}),p[US]=!0,p.once("continue",q)):(p=n.request(f,{endStream:k,signal:u}),p[US]=!0,q()),++n[_i],p.setTimeout(r);let M=!1;return p.once("response",v=>{let{[g_]:O,...ye}=v;if(e.onResponseStarted(),M=!0,p.setTimeout(s),e.aborted){p.removeAllListeners("data");return}e.onHeaders(Number(O),f_(ye),p.resume.bind(p),"")===!1&&p.pause(),p.on("data",Re=>{e.aborted||e.completed||e.onData(Re)===!1&&p.pause()})}),p.once("end",()=>{p.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),HC(t,e),t[xa]()):(C(new Iu("HTTP/2: stream half-closed (remote)")),HC(t,e,!0),t[xa]())}),p.once("close",()=>{p.removeAllListeners("data"),n[_i]-=1,n[_i]===0&&n.unref(),!e.aborted&&!e.completed&&C(new Iu("HTTP/2: stream closed before the response was complete"))}),p.once("error",function(v){p.removeAllListeners("data"),C(v)}),p.once("frameError",(v,O)=>{p.removeAllListeners("data"),C(new Iu(`HTTP/2: "frameError" received - type ${v}, code ${O}`))}),p.on("aborted",()=>{p.removeAllListeners("data")}),p.on("timeout",()=>{let v=M?new GZe(`HTTP/2: "body timeout after ${s}"`):new HZe(`HTTP/2: "headers timeout after ${r}"`);p.removeAllListeners("data"),n[_i]-=1,n[_i]===0&&n.unref(),C(v)}),p.once("trailers",v=>{e.aborted||e.completed||(p.removeAllListeners("data"),e.onComplete(v))}),!0;function q(){!h||T===0?sde(C,p,null,t,e,t[Ot],T,w):Le.isBuffer(h)?sde(C,p,h,t,e,t[Ot],T,w):Le.isBlobLike(h)?typeof h.stream=="function"?nde(C,p,h.stream(),t,e,t[Ot],T,w):C$e(C,p,h,t,e,t[Ot],T,w):Le.isStream(h)?E$e(C,t[Ot],w,p,h,t,e,T):Le.isIterable(h)?nde(C,p,h,t,e,t[Ot],T,w):Hi(!1)}}function sde(t,e,r,s,n,i,o,a){try{r!=null&&Le.isBuffer(r)&&(Hi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[vS]=!0),n.onRequestSent(),s[xa]()}catch(A){t(A)}}function E$e(t,e,r,s,n,i,o,a){Hi(a!==0||i[WC]===0,"stream body cannot be pipelined");let A=PZe(n,s,u=>{u?(Le.destroy(A,u),t(u)):(Le.removeAllListeners(A),o.onRequestSent(),r||(e[vS]=!0),i[xa]())});Le.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function C$e(t,e,r,s,n,i,o,a){Hi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new p_;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[vS]=!0),s[xa]()}catch(A){t(A)}}async function nde(t,e,r,s,n,i,o,a){Hi(o!==0||s[WC]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Hi(A===null),i[qn]?d(i[qn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[qn])throw i[qn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[vS]=!0),s[xa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}ide.exports=r$e});var bu=I((J4t,gde)=>{"use strict";var zA=N("node:assert"),ude=N("node:net"),zC=N("node:http"),vd=Ne(),{ClientStats:I$e}=h6(),{channels:op}=pu(),B$e=bue(),y$e=Sd(),{InvalidArgumentError:Tt,InformationalError:Q$e,ClientDestroyedError:b$e}=Be(),w$e=Td(),{kUrl:Da,kServerName:Qu,kClient:N$e,kBusy:y_,kConnect:S$e,kResuming:Pd,kRunning:ZC,kPending:$C,kSize:KC,kQueue:wo,kConnected:T$e,kConnecting:ap,kNeedDrain:yu,kKeepAliveDefaultTimeout:ade,kHostHeader:x$e,kPendingIdx:No,kRunningIdx:jA,kError:D$e,kPipelining:PS,kKeepAliveTimeoutValue:R$e,kMaxHeadersSize:k$e,kKeepAliveMaxTimeout:F$e,kKeepAliveTimeoutThreshold:M$e,kHeadersTimeout:U$e,kBodyTimeout:L$e,kStrictContentLength:v$e,kConnector:jC,kMaxRequests:Q_,kCounter:P$e,kClose:O$e,kDestroy:_$e,kDispatch:H$e,kLocalAddress:XC,kMaxResponseSize:G$e,kOnError:Y$e,kHTTPContext:ur,kMaxConcurrentStreams:q$e,kHTTP2InitialWindowSize:J$e,kHTTP2ConnectionWindowSize:V$e,kResume:KA,kPingInterval:W$e}=At(),z$e=Xle(),K$e=ode(),Bu=Symbol("kClosedResolve"),j$e=zC&&zC.maxHeaderSize&&Number.isInteger(zC.maxHeaderSize)&&zC.maxHeaderSize>0?()=>zC.maxHeaderSize:()=>{throw new Tt("http module not available or http.maxHeaderSize invalid")},Ade=()=>{};function lde(t){return t[PS]??t[ur]?.defaultPipelining??1}var b_=class extends y$e{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:E,strictContentLength:m,maxCachedSessions:C,connect:w,maxRequestsPerClient:T,localAddress:k,maxResponseSize:M,autoSelectFamily:q,autoSelectFamilyAttemptTimeout:v,maxConcurrentStreams:O,allowH2:ye,useH2c:Re,initialWindowSize:Ce,connectionWindowSize:me,pingInterval:ke,webSocket:Lt}={}){if(c!==void 0)throw new Tt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Tt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Tt("unsupported requestTimeout, use headersTim Line truncated
`,this[L$e]=a??3e5,this[U$e]=s??3e5,this[v$e]=m??!0,this[Q_]=T,this[Bu]=null,this[G$e]=M>-1?M:-1,this[ur]=null,this[q$e]=O??100,this[J$e]=Ce??262144,this[V$e]=me??524288,this[W$e]=ke??6e4,this[wo]=[],this[jA]=0,this[No]=0,this[KA]=_t=>w_(this,_t),this[Y$e]=_t=>dde(this,_t)}get pipelining(){return this[PS]}set pipelining(e){this[PS]=e,this[KA](!0)}get stats(){return new I$e(this)}get[$C](){return this[wo].length-this[No]}get[ZC](){return this[No]-this[jA]}get[KC](){return this[wo].length-this[jA]}get[T$e](){return!!this[ur]&&!this[ap]&&!this[ur].destroyed}get[y_](){return!!(this[ur]?.busy(null)||this[KC]>=(lde(this)||1)||this[$C]>0)}[S$e](e){hde(this),this.once("connect",e)}[H$e](e,r){let s=new B$e(this[Da].origin,e,r);return this[wo].push(s),this[Pd]||(vd.bodyLength(s.body)==null&&vd.isIterable(s.body)?(this[Pd]=1,queueMicrotask(()=>w_(this))):this[KA](!0)),this[Pd]&&this[yu]!==2&&this[y_]&&(this[yu]=2),this[yu]<2}[O$e](){return new Promise(e=>{this[KC]?this[Bu]=e:e(null)})}[_$e](e){return new Promise(r=>{let s=this[wo].splice(this[No]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&vd.errorRequest(this,o,e)}let n=()=>{this[Bu]&&(this[Bu](),this[Bu]=null),r(null)};this[ur]?(this[ur].destroy(e,n),this[ur]=null):queueMicrotask(n),this[KA]()})}};function dde(t,e){if(t[ZC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zA(t[No]===t[jA]);let r=t[wo].splice(t[jA]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&vd.errorRequest(t,n,e)}zA(t[KC]===0)}}function hde(t){zA(!t[ap]),zA(!t[ur]);let{host:e,hostname:r,protocol:s,port:n}=t[Da];if(r[0]==="["){let i=r.indexOf("]");zA(i!==-1);let o=r.substring(1,i);zA(ude.isIPv6(o)),r=o}t[ap]=!0,op.beforeConnect.hasSubscribers&&op.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC]});try{t[jC]({host:e,hostname:r,protocol:s,port:n,servername:t[Qu],localAddress:t[XC]},(i,o)=>{if(i){B_(t,i,{host:e,hostname:r,protocol:s,port:n}),t[KA]();return}if(t.destroyed){vd.destroy(o.on("error",Ade),new b$e),t[KA]();return}zA(o);try{t[ur]=o.alpnProtocol==="h2"?K$e(t,o):z$e(t,o)}catch(a){o.destroy().on("error",Ade),B_(t,a,{host:e,hostname:r,protocol:s,port:n}),t[KA]();return}t[ap]=!1,o[P$e]=0,o[Q_]=t[Q_],o[N$e]=t,o[D$e]=null,op.connected.hasSubscribers&&op.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC],socket:o}),t.emit("connect",t[Da],[t]),t[KA]()})}catch(i){B_(t,i,{host:e,hostname:r,protocol:s,port:n}),t[KA]()}}function B_(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ap]=!1,op.connectError.hasSubscribers&&op.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zA(t[ZC]===0);t[$C]>0&&t[wo][t[No]].servername===t[Qu];){let o=t[wo][t[No]++];vd.errorRequest(t,o,e)}else dde(t,e);t.emit("connectionError",t[Da],[t],e)}}function cde(t){t[yu]=0,t.emit("drain",t[Da],[t])}function w_(t,e){t[Pd]!==2&&(t[Pd]=2,X$e(t,e),t[Pd]=0,t[jA]>256&&(t[wo].splice(0,t[jA]),t[No]-=t[jA],t[jA]=0))}function X$e(t,e){for(;;){if(t.destroyed){zA(t[$C]===0);return}if(t[Bu]&&!t[KC]){t[Bu](),t[Bu]=null;return}if(t[ur]&&t[ur].resume(),t[y_])t[yu]=2;else if(t[yu]===2){e?(t[yu]=1,queueMicrotask(()=>cde(t))):cde(t);continue}if(t[$C]===0||t[ZC]>=(lde(t)||1))return;let r=t[wo][t[No]];if(r===null)return;if(t[Da].protocol==="https:"&&t[Qu]!==r.servername){if(t[ZC]>0)return;t[Qu]=r.servername,t[ur]?.destroy(new Q$e("servername changed"),()=>{t[ur]=null,w_(t)})}if(t[ap])return;if(!t[ur]){hde(t);return}if(t[ur].destroyed||t[ur].busy(r))return;!r.aborted&&t[ur].write(r)?t[No]++:t[wo].splice(t[No],1)}}gde.exports=b_});var N_=I((W4t,fde)=>{"use strict";var OS=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};fde.exports=class{constructor(){this.head=this.tail=new OS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var _S=I((z4t,bde)=>{"use strict";var{PoolStats:Z$e}=h6(),$$e=Sd(),eet=N_(),{kConnected:S_,kSize:pde,kRunning:mde,kPending:Ede,kQueued:eI,kBusy:tet,kFree:ret,kUrl:set,kClose:net,kDestroy:iet,kDispatch:oet}=At(),Gr=Symbol("clients"),Ss=Symbol("needDrain"),tI=Symbol("queue"),T_=Symbol("closed resolve"),x_=Symbol("onDrain"),Cde=Symbol("onConnect"),Ide=Symbol("onDisconnect"),Bde=Symbol("onConnectionError"),D_=Symbol("get dispatcher"),yde=Symbol("add client"),Qde=Symbol("remove client"),R_=class extends $$e{[tI]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";var{InvalidArgumentError:Hdr}=Ct(),{runtimeFeatures:Gdr}=qg();function Ydr(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:A=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(n=>s?n:n.toLowerCase())),exclude:new Set(r.map(n=>s?n:n.toLowerCase())),match:new Set(A.map(n=>s?n:n.toLowerCase()))}}var AVe=Gdr.has("crypto")?B("node:crypto"):null,qdr=AVe?.hash?t=>AVe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function nVe(t){return Array.isArray(t)&&(t.length&1)===0}function Jdr(t=[]){return t.length===0?()=>!1:function(r){let A;for(let s of t)if(typeof s=="string"){if(A||(A=r.toLowerCase()),A.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Vdr(t){let e={};if(!t)return e;if(nVe(t)){for(let r=0;r<t.length;r+=2){let A=t[r],s=t[r+1];if(A&&s!==void 0){let n=Buffer.isBuffer(A)?A.toString():A,i=Buffer.isBuffer(s)?s.toString():s;e[n.toLowerCase()]=i}}return e}if(t&&typeof t=="object")for(let[r,A]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(A)?A.join(", "):String(A));return e}var sVe=["record","playback","update"];function Wdr(t){if(!sVe.includes(t))throw new Hdr(`Invalid snapshot mode: ${t}. Must be one of: ${sVe.join(", ")}`)}iVe.exports={createHeaderFilters:Ydr,hashId:qdr,isUndiciHeaders:nVe,normalizeHeaders:Vdr,isUrlExcludedFactory:Jdr,validateSnapshotMode:Wdr}});var EVe=h((ZOr,hVe)=>{"use strict";var{writeFile:zdr,readFile:jdr,mkdir:Kdr}=B("node:fs/promises"),{dirname:Xdr,resolve:oVe}=B("node:path"),{setTimeout:Zdr,clearTimeout:aVe}=B("node:timers"),{InvalidArgumentError:cVe,UndiciError:$dr}=Ct(),{hashId:ehr,isUrlExcludedFactory:thr,normalizeHeaders:uVe,createHeaderFilters:lVe}=pne();function xS(t,e,r={}){let A=new URL(t.path,t.origin),s=t._normalizedHeaders||uVe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?A.toString():`${A.origin}${A.pathname}`,headers:gVe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function gVe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{ignore:n,exclude:i,match:o}=e;for(let[a,c]of Object.entries(t)){let u=A?a:a.toLowerCase();i.has(u)||n.has(u)||o.size!==0&&!o.has(u)||(s[u]=c)}return s}function dVe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{exclude:n}=e;for(let[i,o]of Object.entries(t)){let a=A?i:i.toLowerCase();n.has(a)||(s[a]=o)}return s}function US(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let A=Object.keys(t.headers).sort();for(let s of A){let n=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let i of n.sort())e.push(String(i))}}e.push(t.body);let r=e.join("|");return ehr(r)}var mne=class{#e;#t;#r=new Map;#A;#s=1/0;#n=!1;#o;constructor(e={}){this.#A=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#o=lVe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=thr(e.excludeUrls),this.#n&&this.#A&&this.#i()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let A=xS(e,this.#o,this.matchOptions),s=US(A),n=uVe(r.headers),i={statusCode:r.statusCode,headers:dVe(n,this.#o,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#s&&!this.#r.has(s)){let a=this.#r.keys().next().value;this.#r.delete(a)}let o=this.#r.get(s);o&&o.responses?(o.responses.push(i),o.timestamp=new Date().toISOString()):this.#r.set(s,{request:A,responses:[i],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#A&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=xS(e,this.#o,this.matchOptions),A=US(r),s=this.#r.get(A);if(!s)return;let n=s.callCount||0,i=Math.min(n,s.responses.length-1);return s.callCount=n+1,{...s,response:s.responses[i]}}async loadSnapshots(e){let r=e||this.#A;if(!r)throw new cVe("Snapshot path is required");try{let A=await jdr(oVe(r),"utf8"),s=JSON.parse(A);if(Array.isArray(s)){this.#r.clear();for(let{hash:n,snapshot:i}of s)this.#r.set(n,i)}else this.#r=new Map(Object.entries(s))}catch(A){if(A.code==="ENOENT")this.#r.clear();else throw new $dr(`Failed to load snapshots from ${r}`,{cause:A})}}async saveSnapshots(e){let r=e||this.#A;if(!r)throw new cVe("Snapshot path is required");let A=oVe(r);await Kdr(Xdr(A),{recursive:!0});let s=Array.from(this.#r.entries()).map(([n,i])=>({hash:n,snapshot:i}));await zdr(A,JS Line truncated
${e.format(r)}`.trim())}};Kge.exports=KH});var XH=I((wOt,$ge)=>{"use strict";var{InvalidArgumentError:nst}=Be(),{runtimeFeatures:ist}=qA();function ost(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var jge=ist.has("crypto")?N("node:crypto"):null,ast=jge?.hash?t=>jge.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Zge(t){return Array.isArray(t)&&(t.length&1)===0}function Ast(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function cst(t){let e={};if(!t)return e;if(Zge(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Xge=["record","playback","update"];function ust(t){if(!Xge.includes(t))throw new nst(`Invalid snapshot mode: ${t}. Must be one of: ${Xge.join(", ")}`)}$ge.exports={createHeaderFilters:ost,hashId:ast,isUndiciHeaders:Zge,normalizeHeaders:cst,isUrlExcludedFactory:Ast,validateSnapshotMode:ust}});var Afe=I((NOt,afe)=>{"use strict";var{writeFile:lst,readFile:dst,mkdir:hst}=N("node:fs/promises"),{dirname:gst,resolve:efe}=N("node:path"),{setTimeout:fst,clearTimeout:tfe}=N("node:timers"),{InvalidArgumentError:rfe,UndiciError:pst}=Be(),{hashId:mst,isUrlExcludedFactory:Est,normalizeHeaders:sfe,createHeaderFilters:nfe}=XH();function gI(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||sfe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:ife(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ife(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function ofe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function fI(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return mst(r)}var ZH=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=nfe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Est(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=gI(e,this.#a,this.matchOptions),n=fI(s),i=sfe(r.headers),o={statusCode:r.statusCode,headers:ofe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=gI(e,this.#a,this.matchOptions),s=fI(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new rfe("Snapshot path is required");try{let s=await dst(efe(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new pst(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new rfe("Snapshot path is required");let s=efe(r);await hst(gst(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await lst(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Fo} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Vn} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,9 +133,9 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Fo}_getValuesQuery ON cacheInterceptorV${Fo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Fo}_deleteByUrlQuery ON cacheInterceptorV${Fo}(deleteAt);
`),this.#A=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vn}_getValuesQuery ON cacheInterceptorV${Vn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vn}_deleteByUrlQuery ON cacheInterceptorV${Vn}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
body,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Fo}
FROM cacheInterceptorV${Vn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Fo} SET
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${Vn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Fo} (
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${Vn} (
url,
method,
body,
@@ -331,124 +182,132 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#i=this.#r.prepare(`DELETE FROM cacheInterceptorV${Fo} WHERE url = ?`),this.#a=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Fo}`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Fo} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Fo}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${Vn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${Vn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${Vn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Fo}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vn}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){qne(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){qne(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,i.id):(this.#u(),this.#n.run(A,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){qne(e),MEr(r);let A=0,s=[],n=this;return new UEr({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#l(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!LEr(s[l],u[l])){c=!1;break}}if(c)return a}}};function LEr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,A)=>r===e[A]):t===e}});var gI=h((QHr,QWe)=>{"use strict";var{kConstruct:vEr}=yr(),{kEnumerableProperty:hy}=ut(),{iteratorMixin:_Er,isValidHeaderName:_S,isValidHeaderValue:EWe}=No(),{webidl:Ot}=Ks(),Vne=B("node:assert"),jH=B("node:util");function hWe(t){return t===10||t===13||t===9||t===32}function fWe(t){let e=0,r=t.length;for(;r>e&&hWe(t.charCodeAt(r-1));)--r;for(;r>e&&hWe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function CWe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Ot.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});Wne(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)Wne(t,r[A],e[r[A]])}else throw Ot.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Wne(t,e,r){if(r=fWe(r),_S(e)){if(!EWe(r))throw Ot.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Ot.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(BWe(t)==="immutable")throw new TypeError("immutable");return XH(t).append(e,r,!1)}function PEr(t){let e=XH(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function IWe(t,e){return t[0]<e[0]?-1:1}var KH=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${n}`;break;case"retry":Dje(n)&&(r[s]=n);break;case"id":Nje(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&Dje(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nje(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,event:void 0,id:void 0,retry:void 0}}};Rje.exports={EventSourceStream:Sie}});var vje=h((JHr,Lje)=>{"use strict";var{pipeline:tQr}=B("node:stream"),{fetching:rQr}=YS(),{makeRequest:AQr}=fy(),{webidl:Wn}=Ks(),{EventSourceStream:sQr}=Sje(),{parseMIMEType:nQr}=za(),{createFastMessageEvent:iQr}=mG(),{isNetworkError:Tje}=OS(),{kEnumerableProperty:QI}=ut(),{environmentSettingsObject:kje}=No(),Fje=!1,xje=3e3,jS=0,Uje=1,KS=2,oQr="anonymous",aQr="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=jS;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Wn.util.markAsUncloneable(this);let A="EventSource constructor";Wn.argumentLengthCheck(arguments,1,A),Fje||(Fje=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wn.converters.USVString(e),r=Wn.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=kje,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=oQr;r.withCredentials===!0&&(i=aQr,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=kje.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=AQr(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===KS)return;this.#A=jS;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Tje(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Tje(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?nQr(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=Uje,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new sQr({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(iQr(a.type,a.options))}});tQr(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rQr(e)}#c(){this.#A!==KS&&(this.#A=jS,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===jS&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){Wn.brandCheck(this,t),this.#A!==KS&&(this.#A=KS,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Mje={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jS,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Uje,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KS,writable:!1}};Object.defineProperties(Dy,Mje);Object.defineProperties(Dy.prototype,Mje);Object.defineProperties(Dy.prototype,{close:QI,onerror:QI,onmessage:QI,onopen:QI,readyState:QI,url:QI,withCredentials:QI});Wn.converters.EventSourceInitDict=Wn.dictionaryConverter([{key:"withCredentials",converter:Wn.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wn.converters.any},{key:"node",converter:Wn.dictionaryConverter([{key:"reconnectionTime",converter:Wn.converters["unsigned long"],defaultValue:()=>xje},{key:"dispatcher",converter:Wn.converters.any}]),defaultValue:()=>({})}]);Lje.exports={EventSource:Dy,defaultReconnectionTime:xje}});var Yje=h((VHr,Ee)=>{"use strict";var cQr=hE(),Pje=KR(),uQr=ey(),lQr=tJe(),gQr=nJe(),dQr=nI(),hQr=bse(),EQr=SJe(),fQr=MJe(),CQr=_Je(),Oje=Ct(),LG=ut(),{InvalidArgumentError:MG}=Oje,Ny=B6e(),IQr=Ym(),BQr=ane(),{MockCallHistory:QQr,Mock Line truncated
`)}close(){this.#s.close()}get(e){S5(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){S5(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){S5(e),yit(r);let s=0,n=[],i=this;return new Bit({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Qit(n[l],u[l])){c=!1;break}}if(c)return A}}};function Qit(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var nh=I((zOt,kpe)=>{"use strict";var{kConstruct:bit}=At(),{kEnumerableProperty:Qp}=Ne(),{iteratorMixin:wit,isValidHeaderName:II,isValidHeaderValue:Spe}=Hn(),{webidl:Ke}=Kr(),x5=N("node:assert"),ET=N("node:util");function Npe(t){return t===10||t===13||t===9||t===32}function Tpe(t){let e=0,r=t.length;for(;r>e&&Npe(t.charCodeAt(r-1));)--r;for(;r>e&&Npe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function xpe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});D5(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)D5(t,r[s],e[r[s]])}else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function D5(t,e,r){if(r=Tpe(r),II(e)){if(!Spe(r))throw Ke.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Ke.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Rpe(t)==="immutable")throw new TypeError("immutable");return IT(t).append(e,r,!1)}function Nit(t){let e=IT(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function Dpe(t,e){return t[0]<e[0]?-1:1}var CT=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(sx(e,n,Wct)){zct(e,i)&&(r.retry=e.toString("utf8",i));return}if(sx(e,n,Vct)){Kct(e,i)&&(r.id=e.toString("utf8",i));return}if(sx(e,n,Jct)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&_ct(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Hct(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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 s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,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),s=this.peekBufferedByte(2);return r===void 0?(e===Up[0]||(this.checkBOM=!1),!0):s===void 0?e===Up[0]&&r===Up[1]?!0:(this.checkBOM=!1,!1):(e===Up[0]&&r===Up[1]&&s===Up[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};vEe.exports={EventSourceStream:pG}});var VEe=I((C6t,JEe)=>{"use strict";var{pipeline:jct}=N("node:stream"),{fetching:Xct}=wI(),{makeRequest:Zct}=wp(),{webidl:xs}=Kr(),{EventSourceStream:$ct}=PEe(),{parseMIMEType:eut}=vi(),{createFastMessageEvent:tut}=JT(),{isNetworkError:OEe}=yI(),{kEnumerableProperty:dh}=Ne(),{environmentSettingsObject:_Ee}=Hn(),HEe=!1,GEe=3e3,kI=0,YEe=1,FI=2,rut="anonymous",sut="use-credentials",Lp=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=kI;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),xs.util.markAsUncloneable(this);let s="EventSource constructor";xs.argumentLengthCheck(arguments,1,s),HEe||(HEe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=xs.converters.USVString(e),r=xs.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=_Ee,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=rut;r.withCredentials===!0&&(o=sut,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=_Ee.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Zct(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===FI)return;this.#r=kI;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!OEe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(OEe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?eut(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=YEe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new $ct({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(tut(A.type,A.options))}});jct(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Xct(e)}#c(){this.#r!==FI&&(this.#r=kI,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${n}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return kQr(e,r).catch(A=>{throw _je?Gje(A,_je):A&&typeof A=="object"&&Error.captureStackTrace(A,Ee.exports.fetch),A})};Ee.exports.Headers=gI().Headers;Ee.exports.Response=OS().Response;Ee.exports.Request=fy().Request;Ee.exports.FormData=sH().FormData;var{setGlobalOrigin:FQr,getGlobalOrigin:xQr}=gAe();Ee.exports.setGlobalOrigin=FQr;Ee.exports.getGlobalOrigin=xQr;var{CacheStorage:UQr}=yze(),{kConstruct:MQr}=yr();Ee.exports.caches=new UQr(MQr);var{deleteCookie:LQr,getCookies:vQr,getSetCookies:_Qr,setCookie:PQr,parseCookie:OQr}=Lze();Ee.exports.deleteCookie=LQr;Ee.exports.getCookies=vQr;Ee.exports.getSetCookies=_Qr;Ee.exports.setCookie=PQr;Ee.exports.parseCookie=OQr;var{parseMIMEType:HQr,serializeAMimeType:GQr}=za();Ee.exports.parseMIMEType=HQr;Ee.exports.serializeAMimeType=GQr;var{CloseEvent:YQr,ErrorEvent:qQr,MessageEvent:JQr}=mG(),{WebSocket:VQr,ping:WQr}=Eje();Ee.exports.WebSocket=VQr;Ee.exports.CloseEvent=YQr;Ee.exports.ErrorEvent=qQr;Ee.exports.MessageEvent=JQr;Ee.exports.ping=WQr;Ee.exports.WebSocketStream=yje().WebSocketStream;Ee.exports.WebSocketError=bie().WebSocketError;Ee.exports.request=XS(Ny.request);Ee.exports.stream=XS(Ny.stream);Ee.exports.pipeline=XS(Ny.pipeline);Ee.exports.connect=XS(Ny.connect);Ee.exports.upgrade=XS(Ny.upgrade);Ee.exports.MockClient=BQr;Ee.exports.MockCallHistory=QQr;Ee.exports.MockCallHistoryLog=pQr;Ee.exports.MockPool=yQr;Ee.exports.MockAgent=mQr;Ee.exports.SnapshotAgent=bQr;Ee.exports.mockErrors=wQr;var{EventSource:zQr}=vje();Ee.exports.EventSource=zQr;function jQr(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=jQr});var ZS=h(yE=>{"use strict";yE.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");yE.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");yE.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";yE.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);yE.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);yE.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());yE.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let A=t[e];if(++e,A==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Jje=h((jHr,qje)=>{"use strict";var{asciiLowercase:vG,solelyContainsHTTPTokenCodePoints:KQr,soleyContainsHTTPQuotedStringTokenCodePoints:XQr}=ZS();qje.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=vG(String(e)),this._map.get(e)}has(e){return e=vG(String(e)),this._map.has(e)}set(e,r){if(e=vG(String(e)),r=String(r),!KQr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!XQr(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=vG(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zje=h((KHr,Wje)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ZQr,removeTrailingHTTPWhitespace:Vje,isHTTPWhitespaceChar:$Qr,solelyContainsHTTPTokenCodePoints:Tie,soleyContainsHTTPQuotedStringTokenCodePoints:epr,asciiLowercase:kie,collectAnHTTPQuotedString:tpr}=ZS();Wje.exports=t=>{t=ZQr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Tie(r)||e>=t.length)return null;++e;let A="";for(;e<t.length&&t[e]!==";";)A+=t[e],++e;if(A=Vje(A),A.length===0||!Tie(A))return null;let s={type:kie(r),subtype:kie(A),parameters:new Map};for(;e<t.length;){for(++e;$Qr(t[e]);)++e;let n="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)n+=t[e],++e;if(n=kie(n),e<t.length){if(t[e]===";")continue;++e}let i=null;if(t[e]==='"')for([i,e]=tpr(t,e);e<t.length&&t[e]!==";";)++e;else{for(i="";e<t.length&&t[e]!==";";)i+=t[e],++e;if(i=Vje(i),i==="")continue}n.length>0&&Tie(n)&&epr(i)&&!s.parameters.has(n)&&s.parameters.set(n,i)}return s}});var Kje=h((XHr,jje)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:rpr}=ZS();jje.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,A]of t.parameters)e+=";",e+=r,e+="=",(!rpr(A)||A.length===0)&&(A=A.replace(/(["\\])/ug,"\\$1"),A=`"${A}"`),e+=A;return e}});var e7e=h(($Hr,$je)=>{"use strict";var Apr=Jje(),spr=zje(),npr=Kje(),{asciiLowercase:Xje,solelyContainsHTTPTokenCodePoints:Zje}=ZS();$je.exports=class{constructor(e){e=String(e);let r=spr(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Apr(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Xje(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zje(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Xje(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zje(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return npr(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as Gie from"os";function Nl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function GG(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function wE(t,e,r){let A=new YG(t,e,r);process.stdout.write(A.toString()+Gie.EOL)}function qG(t,e=""){wE(t,{},e)}var Hie="::",YG=class{constructor(e,r,A){e||(e="missing.command"),this.command=e,this.properties=r,this.message=A}toString(){let e=Hie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let A in this.pLine truncated
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}function nk(t){process.exitCode=b4.Failure,xEe(t)}function $E(){return process.env.RUNNER_DEBUG==="1"}function jt(t){wE("debug",{},t)}function xEe(t,e={}){wE("error",GG(e),t instanceof Error?t.toString():t)}function BA(t,e={}){wE("warning",GG(e),t instanceof Error?t.toString():t)}function me(t){process.stdout.write(t+FEe.EOL)}function mct(t){qG("group",t)}function yct(){qG("endgroup")}function Dd(t,e){return pct(this,void 0,void 0,function*(){mct(t);let r;try{r=yield e()}finally{yct()}return r})}function ef(t,e){if(process.env.GITHUB_STATE||"")return JG("STATE",VG(t,e));wE("save-state",{name:t},Nl(e))}function jo(t){return process.env[`STATE_${t}`]||""}var Tke=zt(WD(),1),wOt="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",DOt="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",NOt="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",ROt="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.";var yke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",SOt="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",bke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",kke="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",Fke="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",LL=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=wOt;this.cacheCleanupMessage=bke}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Tke.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=DOt){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setDisabled(e=NOt){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setWriteOnly(e=ROt){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=SOt}setCacheCleanupDisabled(e=bke){this.cacheCleanupMessage=e}entry(e){for(let A of this.cacheEntries)if(A.entryName===e)return A;let r=new vL(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),A=r.cacheEntries;for(let s=0;s<A.length;s++){let n=A[s];A[s]=Object.assign(new vL(n.entryName),n)}return r}},vL=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,A){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=A,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,A){return this.savedKey=e,this.savedSize=r,this.savedTime=A,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function xke(t){let e=t.cacheEntries;return`
<details>
<summary><h4>Caching for Gradle actions was ${t.cacheStatus} - expand for details</h4></summary>
${i}`:n.stack}j.exports.fetch=function(e,r=void 0){return Sut(e,r).catch(s=>{throw WEe?XEe(s,WEe):s&&typeof s=="object"&&Error.captureStackTrace(s,j.exports.fetch),s})};j.exports.Headers=nh().Headers;j.exports.Response=yI().Response;j.exports.Request=wp().Request;j.exports.FormData=NS().FormData;var{setGlobalOrigin:Tut,getGlobalOrigin:xut}=M6();j.exports.setGlobalOrigin=Tut;j.exports.getGlobalOrigin=xut;var{CacheStorage:Dut}=Ume(),{kConstruct:Rut}=At();j.exports.caches=new Dut(Rut);var{deleteCookie:kut,getCookies:Fut,getSetCookies:Mut,setCookie:Uut,parseCookie:Lut}=Wme();j.exports.deleteCookie=kut;j.exports.getCookies=Fut;j.exports.getSetCookies=Mut;j.exports.setCookie=Uut;j.exports.parseCookie=Lut;var{parseMIMEType:vut,serializeAMimeType:Put}=vi();j.exports.parseMIMEType=vut;j.exports.serializeAMimeType=Put;var{CloseEvent:Out,ErrorEvent:_ut,MessageEvent:Hut}=JT(),{WebSocket:Gut,ping:Yut}=NEe();j.exports.WebSocket=Gut;j.exports.CloseEvent=Out;j.exports.ErrorEvent=_ut;j.exports.MessageEvent=Hut;j.exports.ping=Yut;j.exports.WebSocketStream=MEe().WebSocketStream;j.exports.WebSocketError=lG().WebSocketError;j.exports.request=MI(vp.request);j.exports.stream=MI(vp.stream);j.exports.pipeline=MI(vp.pipeline);j.exports.connect=MI(vp.connect);j.exports.upgrade=MI(vp.upgrade);j.exports.MockClient=fut;j.exports.MockCallHistory=put;j.exports.MockCallHistoryLog=mut;j.exports.MockPool=Cut;j.exports.MockAgent=Eut;j.exports.SnapshotAgent=Iut;j.exports.mockErrors=But;var{EventSource:qut}=VEe();j.exports.EventSource=qut;function Jut(){globalThis.fetch=j.exports.fetch,globalThis.Headers=j.exports.Headers,globalThis.Response=j.exports.Response,globalThis.Request=j.exports.Request,globalThis.FormData=j.exports.FormData,globalThis.WebSocket=j.exports.WebSocket,globalThis.CloseEvent=j.exports.CloseEvent,globalThis.ErrorEvent=j.exports.ErrorEvent,globalThis.MessageEvent=j.exports.MessageEvent,globalThis.EventSource=j.exports.EventSource}j.exports.install=Jut});var UI=I(vu=>{"use strict";vu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");vu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");vu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";vu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);vu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);vu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());vu.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var e0e=I((Q6t,$Ee)=>{"use strict";var{asciiLowercase:ox,solelyContainsHTTPTokenCodePoints:Vut,soleyContainsHTTPQuotedStringTokenCodePoints:Wut}=UI();$Ee.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=ox(String(e)),this._map.get(e)}has(e){return e=ox(String(e)),this._map.has(e)}set(e,r){if(e=ox(String(e)),r=String(r),!Vut(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Wut(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=ox(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var s0e=I((b6t,r0e)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:zut,removeTrailingHTTPWhitespace:t0e,isHTTPWhitespaceChar:Kut,solelyContainsHTTPTokenCodePoints:mG,soleyContainsHTTPQuotedStringTokenCodePoints:jut,asciiLowercase:EG,collectAnHTTPQuotedString:Xut}=UI();r0e.exports=t=>{t=zut(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!mG(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=t0e(s),s.length===0||!mG(s))return null;let n={type:EG(r),subtype:EG(s),parameters:new Map};for(;e<t.length;){for(++e;Kut(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=EG(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Xut(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=t0e(o),o==="")continue}i.length>0&&mG(i)&&jut(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var i0e=I((w6t,n0e)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Zut}=UI();n0e.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!Zut(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var c0e=I((S6t,A0e)=>{"use strict";var $ut=e0e(),elt=s0e(),tlt=i0e(),{asciiLowercase:o0e,solelyContainsHTTPTokenCodePoints:a0e}=UI();A0e.exports=class{constructor(e){e=String(e);let r=elt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new $ut(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=o0e(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!a0e(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=o0e(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!a0e(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return tlt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as LG from"os";function nc(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function PI(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function ic(t,e,r){let s=new Bx(t,e,r);process.stdout.write(s.toString()+LG.EOL)}function yx(t,e=""){ic(t,{},e)}var UG="::",Bx=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=UG+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)ifLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function uk(t){process.exitCode=Ak.Failure,ml(t)}function Nc(){return process.env.RUNNER_DEBUG==="1"}function L(t){ic("debug",{},t)}function ml(t,e={}){ic("error",PI(e),t instanceof Error?t.toString():t)}function at(t,e={}){ic("warning",PI(e),t instanceof Error?t.toString():t)}function DK(t,e={}){ic("notice",PI(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+xK.EOL)}function RK(t){yx("group",t)}function kK(){yx("endgroup")}function jm(t,e){if(process.env.GITHUB_STATE||"")return PG("STATE",OG(t,e));ic("save-state",{name:t},nc(e))}function Sc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as lRe,existsSync as dRe}from"fs";import{EOL as hRe}from"os";var dg=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(dRe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(lRe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${hRe}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 gk=we(vK(),1),PK=we(vy(),1),NRe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function OK(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}`}function _K(t){return new gk.HttpClient().getAgent(t)}function SRe(t){return new gk.HttpClient().getAgentDispatcher(t)}function HK(t){let e=SRe(t);return(s,n)=>NRe(this,void 0,void 0,function*(){return(0,PK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function GK(){return process.env.GITHUB_API_URL||"https://api.github.com"}function fk(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function Tc(){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>"}function Xy(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>Xy.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function YK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function qK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var JK=Function.bind,VK=JK.bind(JK);function WK(t,e,r){let s=VK(qK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=VK(YK,null).apply(null,i)})}function xRe(){let t=Symbol("Singular"),e={registry:{}},r=Xy.bind(null,e,t);return WK(r,e,t),r}function DRe(){let t={registry:{}},e=Xy.bind(null,t);return WK(e,t),e}var zK={Singular:xRe,Collection:DRe};var RRe="0.0.0-development",kRe=`octokit-endpoint.js/${RRe} ${Tc()}`,FRe={method:"GET",baseUrl:"https://api.github.com",hea Line truncated
`+s.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(yk(m))u.push("null"),f.first=!1,f.index++;else{let C=m!==null&&typeof m=="object",w=Qk(m);if(C&&!w){if(h.has(m))throw new TypeError("Converting circular structure to JSON");h.add(m),d.push({parent:f.val,key:String(f.index),val:m,isArray:Array.isArray(m),keys:Array.isArray(m)?null:Object.keys(m),index:0,first:!0}),f.first=!1,f.index++}else u.push(xc(m)),f.first=!1,f.index++}}else p=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let w=f.val[m],T=o(f.val,m,w);if(yk(T))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+xc(m)+": "):u.push(xc(m)+":");let k=T!==null&&typeof T=="object",M=Qk(T);if(k&&!M){if(h.has(T))throw new TypeError("Converting circular structure to JSON");h.add(T),d.push({parent:f.val,key:m,val:T,isArray:Array.isArray(T),keys:Array.isArray(T)?null:Object.keys(T),index:0,first:!0}),f.first=!1;break}else u.push(xc(T)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(p=!0)}p&&(l--,!f.first&&s&&u.push(`
`+s.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},hj=(t,e,r)=>{try{return"rawJSON"in JSON?xc(t,(a,A)=>typeof A=="bigint"?JSON.rawJSON(A.toString()):typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r):t?xc(t,(a,A)=>typeof A=="string"&&$y.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(Aj,"$1$2$3").replace(cj,"$1$2$3"):xc(t,e,r)}catch(s){if(s instanceof RangeError){let n=KRe(t,e,r);return n===void 0?void 0:"rawJSON"in JSON?n:n.replace(Aj,"$1$2$3").replace(cj,"$1$2$3")}throw s}},Zy=new Map,jRe=()=>{let t=JSON.parse.toString();if(Zy.has(t))return Zy.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return Zy.set(t,e),e}catch{return Zy.set(t,!1),!1}},XRe=(t,e,r,s)=>typeof e=="string"&&dj.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&$y.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,ZRe=(t,e)=>JSON.parse(t,(r,s,n)=>{let i=typeof s=="number",o=s>Number.MAX_SAFE_INTEGER||s<Number.MIN_SAFE_INTEGER,a=i&&o,A=n&&zRe.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),gj=Number.MAX_SAFE_INTEGER.toString(),uj=gj.length,$Re=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,eke=/^"-?\d+n+"$/,tke=(t,e)=>{let r={"":t},s=[{parent:r,key:"",visited:!1}];for(;s.length>0;){let n=s[s.length-1];if(n.visited){let{parent:i,key:o}=n,a=i[o];typeof a=="string"&&(dj.test(a)?a=BigInt(a.slice(0,-1)):$y.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,s.pop()}else{n.visited=!0;let i=n.parent[n.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let A=a.length-1;A>=0;A--)s.push({parent:i,key:a[A],visited:!1})}}}return r[""]},lj=t=>t.replace($Re,(e,r,s,n)=>{let i=e[0]==='"';if(i&&eke.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<uj||r.length===uj&&r<=gj);return i||a||A?e:'"'+e+'n"'}),fj=(t,e)=>{if(!t)return Bk(t,e);try{if(jRe())return ZRe(t,e);let r=lj(t);return Bk(r,(s,n,i)=>XRe(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=lj(t),n=Bk(s);return tke(n,e)}throw r}};var El=class extends Error{name;status;request;response;constructor(e,r,s){super(e,{cause:s.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in s&&(this.response=s.response);let n=Object.assign({},s.request);s.request.headers.authorization&&(n.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}};var rke="10.0.16",ske={headers:{"user-agent":`octokit-request.js/${rke} ${Tc()}`}};function nke(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var pj=()=>"";async function mj(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,s=t.request?.parseSuccessResponseBody!==!1,n=nke(t.body)||Array.isArray(t.body)?hj(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:n,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new El(d,500,{request:t});throw h.cause=l,h}let a=o.status,A=o.url,c={};for(let[l,d]of o.headers)c[l]=d;let u={url:A,status:a,headers:c,data:""};if("deprecation"in c){let l=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new El(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await bk(o),new El("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await bk(o),new El(oke(u.data),a,{response:u,request:t});return u.data=s?await bk(o):o.body,u}async function bk(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(pj);let r=nj(e);if(ike(r)){let s="";try{return s=await t.text(),fj(s)}catch{return s}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-stream"?t.text().catch( Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var cke=class extends Error{constructor(t,e,r){super(Ake(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)}request;headers;response;name="GraphqlResponseError";errors;data},uke=["method","baseUrl","url","headers","request","query","mediaType","operationName"],lke=["query","method","url"],Ej=/\/api\/v3\/?$/;function dke(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 o in r)if(lke.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>uke.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Ej.test(i)&&(n.url=i.replace(Ej,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new cke(n,a,o.data)}return o.data.data})}function Nk(t,e){let r=t.defaults(e);return Object.assign((n,i)=>dke(r,n,i),{defaults:Nk.bind(null,r),endpoint:r.endpoint})}var jgt=Nk($m,{headers:{"user-agent":`octokit-graphql.js/${ake} ${Tc()}`},method:"POST",url:"/graphql"});function Cj(t){return Nk(t,{method:"POST",url:"/graphql"})}var Sk="(?:[a-zA-Z0-9_-]+)",Ij="\\.",Bj=new RegExp(`^${Sk}${Ij}${Sk}${Ij}${Sk}$`),hke=Bj.test.bind(Bj);async function gke(t){let e=hke(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function fke(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function pke(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=fke(t),e(n)}var yj=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(gke.bind(null,e),{hook:pke.bind(null,e)})};var Tk="7.0.8";var Qj=()=>{},mke=console.warn.bind(console),Eke=console.error.bind(console);function Cke(t={}){return typeof t.debug!="function"&&(t.debug=Qj),typeof t.info!="function"&&(t.info=Qj),typeof t.warn!="function"&&(t.warn=mke),typeof t.error!="function"&&(t.error=Eke),t}var bj=`octokit-core.js/${Tk} ${Tc()}`,eQ=class{static VERSION=Tk;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new zK.Collection,s={baseUrl:$m.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${bj}`:bj,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$m.defaults(s),this.graphql=Cj(this.request).defaults(s),this.log=Cke(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=yj(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var xk="17.0.0";var Ike={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrg Line truncated
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
`)}
`:`${Rj(t.status,e)}
${TOt(e)}
${Lk[t.status]}
`}function vj(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Rj(t,e){if(!vj(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function Dke(t){return t?Tke[t]:void 0}function Rke(t){return t?xke[t]:void 0}function kke(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${gs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Ske}) for terms of use and opt-out instructions.`:`**[Basic Caching](${gs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${gs}#enhanced-caching)** provider.`}function Fke(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=Pj(e)?`Entries: ${r} restored (${tQ(e,u=>u.restoredSize)}Mb), ${s} saved (${tQ(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?Dke(t.cleanup):void 0,o=Rke(t.projectCache),a=Mke(t.entries),A=`<pre>
${Uke(t.entries)}</pre>`,c=[Lk[t.status],i,o,a,A].filter(Boolean).join(`
<h5>Cache Entry Details</h5>
<pre>
${kOt(t)}
</pre>
</details>
`}function TOt(t){return`
<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</tr>
`);return`<details>
<summary>${n}</summary>
${c}
</details>`}function Pj(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Mke(t){return Pj(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${wke(t,e=>e.restoredSize)}</td>
<td>${Dke(t,e=>e.restoredSize)}</td>
<td>${Nke(t,e=>e.restoredTime)}</td>
<td>${kj(t,e=>e.restoredSize)}</td>
<td>${tQ(t,e=>e.restoredSize)}</td>
<td>${Fj(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${wke(t,e=>e.savedSize)}</td>
<td>${Dke(t,e=>e.savedSize)}</td>
<td>${Nke(t,e=>e.savedTime)}</td>
<td>${kj(t,e=>e.savedSize)}</td>
<td>${tQ(t,e=>e.savedSize)}</td>
<td>${Fj(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function kOt(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function Uke(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Rke(e.restoredSize)}
Time: ${Ske(e.restoredTime)}
${FOt(e,t.cacheWriteOnly)}
Size: ${Mj(e.restoredSize)}
Time: ${Uj(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Rke(e.savedSize)}
Time: ${Ske(e.savedTime)}
${xOt(e,t.cacheReadOnly)}
Size: ${Mj(e.savedSize)}
Time: ${Uj(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function FOt(t,e){return t.notRestored?`(Entry not restored: ${t.notRestored})`:e?"(Entry not restored: cache is write-only)":t.requestedKey===void 0?"(Entry not restored: not requested)":t.restoredKey===void 0?"(Entry not restored: no match found)":t.restoredKey===t.requestedKey?"(Entry restored: exact match found)":"(Entry restored: partial match found)"}function xOt(t,e){return t.notSaved?`(Entry not saved: ${t.notSaved})`:t.savedKey===void 0?e?"(Entry not saved: cache is read-only)":t.notRestored?"(Entry not saved: not restored)":"(Entry not saved: reason unknown)":t.savedSize===0?"(Entry not saved: entry with key already exists)":"(Entry saved)"}function wke(t,e){return t.filter(r=>e(r)).length}function Dke(t,e){let r=t.map(A=>e(A)??0).reduce((A,s)=>A+s,0);return Math.round(r/(1024*1024))}function Nke(t,e){return t.map(r=>e(r)??0).reduce((r,A)=>r+A,0)}function Rke(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Ske(t){return t===void 0||t===0?"":`${t} ms`}import*as l0 from"fs";function S7(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,jt(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,jt(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,jt(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,jt(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,jt(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as OL from"path";import*as c0 from"path";import tC from"assert";var Qh=process.platform==="win32";function hg(t){if(t=dg(t),Qh&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=c0.dirname(t);return Qh&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=dg(e)),e}function _L(t,e){if(tC(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),tC(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),zD(e))return e;if(Qh){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return tC(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Nc(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return tC(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return tC(zD(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Qh&&t.endsWith("\\")||(t+=c0.sep),t+e}function zD(t){return tC(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Nc(t),Qh?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function jD(t){return tC(t,"isRooted parameter 'itemPath' must not be empty"),t=Nc(t),Qh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Nc(t){return t=t||"",Qh?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function dg(t){return t?(t=Nc(t),!t.endsWith(c0.sep)||t===c0.sep||Qh&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Rc;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Rc||(Rc={}));var Uke=process.platform==="win32";function k7(t){t=t.filter(A=>!A.negate);let e={};for(let A of t){let s=Uke?A.searchPath.toUpperCase():A.searchPath;e[s]="candidate"}let r=[];for(let A of t){let s=Uke?A.searchPath.toUpperCase():A.searchPath;if(e[s]==="included")continue;let n=!1,i=s,o=hg(i);for(;o!==i;){if(e[o]){n=!0;break}i=o,o=hg(i)}n||(r.push(A.searchPath),e[s]="included")}return r}function Mke(t,e){let r=Rc.None;for(let A of t)A.negate?r&=~A.match(e):r|=A.match(e);return r}function Lke(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as vke from"os";import*as u0 from"path";var _ke=zt(rJ(),1);import sC from"assert";import*as rC from"path";import KD from"assert";var LOt=process.platform==="win32",AC=class{constructor(e){if(this.segments=[],typeof e=="string")if(KD(e,"Parameter 'itemPath' must not be empty"),e=dg(e),!jD(e))this.segments=e.split(rC.sep);else{let r=e,A=hg(r);for(;A!==r;){let s=rC.basename(r);this.segments.unshift(s),r=A,A=hg(r)}this.segments.unshift(r)}else{KD(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];KD(A,"Parameter 'itemPath' must not contain any empty segments"),A=Nc(e[r]),r===0&&jD(A)?(A=dg(A),KD(A===hg(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)) Line truncated
`)}function kj(t,e){return t.filter(r=>e(r)).length}function tQ(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function Fj(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function Mj(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Uj(t){return t===void 0||t===0?"":`${t} ms`}import*as O0 from"path";import*as Eg from"fs";function vk(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,L(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,L(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,L(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,L(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,L(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as oQ from"path";import*as pg from"path";import Il from"assert";var Dc=process.platform==="win32";function uA(t){if(t=cA(t),Dc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=pg.dirname(t);return Dc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=cA(e)),e}function rQ(t,e){if(Il(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Il(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),eE(e))return e;if(Dc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Il(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(io(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Il(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Il(eE(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Dc&&t.endsWith("\\")||(t+=pg.sep),t+e}function eE(t){return Il(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=io(t),Dc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function tE(t){return Il(t,"isRooted parameter 'itemPath' must not be empty"),t=io(t),Dc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function io(t){return t=t||"",Dc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function cA(t){return t?(t=io(t),!t.endsWith(pg.sep)||t===pg.sep||Dc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var oo;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(oo||(oo={}));var Oj=process.platform==="win32";function Ok(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Oj?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=Oj?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=uA(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=uA(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function _j(t,e){let r=oo.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function Hj(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as cX from"os";import*as mg from"path";var uX=we(AX(),1);import bl from"assert";import*as yl from"path";import nE from"assert";var aFe=process.platform==="win32",Ql=class{constructor(e){if(this.segments=[],typeof e=="string")if(nE(e,"Parameter 'itemPath' must not be empty"),e=cA(e),!tE(e))this.segments=e.split(yl.sep);else{let r=e,s=uA(r);for(;s!==r;){let n=yl.basename(r);this.segments.unshift(n),r=s,s=uA(r)}this.segments.unshift(r)}else{nE(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];nE(s,"Parameter 'itemPath' must not contain any empty segments"),s=io(e[r]),r===0&&tE(s)?(s=cA(s),nE(s===uA(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(nE(!s.includes(yl.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(yl.sep)||aFe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=yl.sep,e+=this.segments[s];return e}};var{Minimatch:AFe}=uX.default,lA=process.platform==="win32",iE=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],bl(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);bl(c&&eE(c),"Parameter 'segments' first element must be a root path"),i=new Ql(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new XD(n));return A.searchPaths.push(...k7(A.patterns)),A})}static stat(e,r,A){return F7(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield l0.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){jt(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield l0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield l0.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){jt(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};import*as x7 from"crypto";import*as HL from"fs";import*as Pke from"stream";import*as Oke from"util";import*as Hke from"path";var HOt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})},GOt=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={},A("next"),A("throw"),A("return"),r[Symbol.asyncIterator]=function(){return this},r);function A(n){r[n]=t[n]&&function(i){return new Promise(function(o,a){i=t[n](i),s(o,a,i.done,i.value)})}}function s(n,i,o,a){Promise.resolve(a).then(function(c){n({value:c,done:o})},i)}};function Gke(t,e){return HOt(this,arguments,void 0,function*(r,A,s=!1){var n,i,o,a,c;let u=s?me:jt,l=!1,g=A||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),d=x7.createHash("sha256"),E=0;try{for(var C=!0,Q=GOt(r.globGenerator()),I;I=yield Q.next(),n=I.done,!n;C=!0){a=I.value,C=!1;let p=a;if(u(p),!p.startsWith(`${g}${Hke.sep}`)){u(`Ignore '${p}' since it is not under GITHUB_WORKSPACE.`);continue}if(HL.statSync(p).isDirectory()){u(`Skip directory '${p}'.`);continue}let w=x7.createHash("sha256");yield Oke.promisify(Pke.pipeline)(HL.createReadStream(p),w),d.write(w.digest()),E++,l||(l=!0)}}catch(p){i={error:p}}finally{try{!C&&!n&&(o=Q.return)&&(yield o.call(Q))}finally{if(i)throw i.error}}return d.end(),l?(u(`Found ${E} files to hash.`),d.digest("hex")):(u("No matches found for glob"),"")})}var Yke=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function g0(t,e){return Yke(this,void 0,void 0,function*(){return yield PL.create(t,e)})}function qke(t){return Yke(this,arguments,void 0,function*(e,r="",A,s=!1){let n=!0;A&&typeof A.followSymbolicLinks=="boolean"&&(n=A.followSymbolicLinks);let i=yield g0(e,{followSymbolicLinks:n});return Gke(i,r,s)})}import Fg from"path";import Si from"fs";import{readFileSync as YOt,existsSync as qOt}from"fs";import{EOL as JOt}from"os";var d0=class{constructor(){var e,r,A;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(qOt(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(YOt(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${JOt}`)}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=(A=process.env.GITHUB_GRAPHQL_URL)!==null&&A!==void 0?A:"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 r$=zt(CPe(),1),IPe=zt(ZZ(),1),gzt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value) Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var ljt=class extends Error{constructor(t,e,r){super(ujt(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},gjt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],djt=["query","method","url"],eOe=/\/api\/v3\/?$/;function hjt(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 i in r)if(djt.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let A=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(A).reduce((i,o)=>gjt.includes(o)?(i[o]=A[o],i):(i.variables||(i.variables={}),i.variables[o]=A[o],i),{}),n=A.baseUrl||t.endpoint.DEFAULTS.baseUrl;return eOe.test(n)&&(s.url=n.replace(eOe,"/api/graphql")),t(s).then(i=>{if(i.data.errors){let o={};for(let a of Object.keys(i.headers))o[a]=i.headers[a];throw new ljt(s,o,i.data)}return i.data.data})}function E$(t,e){let r=t.defaults(e);return Object.assign((s,n)=>hjt(r,s,n),{defaults:E$.bind(null,r),endpoint:r.endpoint})}var A2r=E$(tOe.request,{headers:{"user-agent":`octokit-graphql.js/${cjt} ${Y_()}`},method:"POST",url:"/graphql"});function rOe(t){return E$(t,{method:"POST",url:"/graphql"})}var f$="(?:[a-zA-Z0-9_-]+)",AOe="\\.",sOe=new RegExp(`^${f$}${AOe}${f$}${AOe}${f$}$`),Ejt=sOe.test.bind(sOe);async function fjt(t){let e=Ejt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),A=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":A?"user-to-server":"oauth"}}function Cjt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Ijt(t,e,r,A){let s=e.endpoint.merge(r,A);return s.headers.authorization=Cjt(t),e(s)}var nOe=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(fjt.bind(null,e),{hook:Ijt.bind(null,e)})};var C$="7.0.6";var iOe=()=>{},Bjt=console.warn.bind(console),Qjt=console.error.bind(console);function pjt(t={}){return typeof t.debug!="function"&&(t.debug=iOe),typeof t.info!="function"&&(t.info=iOe),typeof t.warn!="function"&&(t.warn=Bjt),typeof t.error!="function"&&(t.error=Qjt),t}var oOe=`octokit-core.js/${C$} ${Y_()}`,W_=class{static VERSION=C$;static defaults(e){return class extends this{constructor(...A){let s=A[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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new RPe.Collection,A={baseUrl:I$.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(A.headers["user-agent"]=e.userAgent?`${e.userAgent} ${oOe}`:oOe,e.baseUrl&&(A.baseUrl=e.baseUrl),e.previews&&(A.mediaType.previews=e.previews),e.timeZone&&(A.headers["time-zone"]=e.timeZone),this.request=I$.request.defaults(A),this.graphql=rOe(this.request).defaults(A),this.log=pjt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...i}=e,o=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));r.wrap("request",o.hook),this.auth=o}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=nOe(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var B$="17.0.0";var mjt={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await Jjt()}`),A;zs(`Attempt to delete ${t} failed. Will try again.`),await qjt(1e3)}}}async function qjt(t){return new Promise(e=>setTimeout(e,t))}async function Jjt(){return(await wd("jps",["-lm"])).stdout}var Vjt="v1",Wjt="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",zjt="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",jjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",Kjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",Xjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",X_=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function U$(t,e){let s=`${`${process.env[Wjt]||""}${Z_(t,Vjt)}`}|${Zjt()}`,n=`${s}|${$jt()}`,i=`${n}[${e7t()}]`,o=`${i}-${t7t()}`;return e.isCacheStrictMatch()?new X_(o,[i]):new X_(o,[i,n,s])}function Z_(t,e){return`gradle-${t}-${e}`}function Zjt(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[zjt]||`${t}-${e}`}function $jt(){return process.env[jjt]||SC.job}function e7t(){let t=process.env[Kjt];if(t)return t;let e=SC.workflow,r=yOe();return x$([e,r])}function t7t(){return process.env[Xjt]||SC.sha}import Em from"path";import dR from"fs";import*as Ma from"fs";import*as kg from"path";var r8e=zt(YOe(),1),MC=zt(lP(),1);import*as hm from"fs";import*as XGe from"os";import*as UC from"path";var IP=zt(WD(),1);import{ok as IZt}from"assert";import*as nl from"path";import*as gP from"fs";import*as Gh from"path";var cZt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})},{chmod:uZt,copyFile:lZt,lstat:gZt,mkdir:xGe,open:Sxr,readdir:UGe,rename:dZt,rm:MGe,rmdir:Txr,stat:tee,symlink:hZt,unlink:EZt}=gP.promises,Hh=process.platform==="win32";var kxr=gP.constants.O_RDONLY;function LGe(t){if(t=fZt(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Hh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function ree(t,e){return cZt(this,void 0,void 0,function*(){let r;try{r=yield tee(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Hh){let s=Gh.extname(t).toUpperCase();if(e.some(n=>n.toUpperCase()===s))return t}else if(FGe(r))return t}let A=t;for(let s of e){t=A+s,r=void 0;try{r=yield tee(t)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}if(r&&r.isFile()){if(Hh){try{let n=Gh.dirname(t),i=Gh.basename(t).toUpperCase();for(let o of yield UGe(n))if(i===o.toUpperCase()){t=Gh.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else if(FGe(r))return t}}return""})}function fZt(t){return t=t||"",Hh?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function FGe(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var dP=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function vGe(t){return dP(this,void 0,void 0,function*(){if(Hh&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield MGe(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function Aee(t){return dP(this,void 0,void 0,function*(){IZt(t,"a path argument must be provided"),yield xGe(t,{recursive:!0})})}function lR(t,e){return dP(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let A=yield lR(t,!1);if(!A)throw Hh?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return A}let r=yield BZt(t);return r&&r.length>0?r[0]:""})}function BZt(t){return dP(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Hh&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(nl.delimiter))s&&e.push(s);if(LGe(t)){let s=yield ree(t,e);return s?[s]:[]}if(t.includes(nl.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(nl.delimiter))s&&r.push(s);let A=[];for(let s of r){let n=yield ree(nl.join(s,t),e);nLine truncated
`),r,[],s)?new hR(e,A,r):(me(`Did not restore ${e} with key ${r} to ${A}`),new hR(e,A,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zs(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let A=this.loadExtractedCacheEntries(),s=[];for(let n of r){let i=n.artifactType,o=n.pattern;if(n.notCacheableReason){e.entry(o).markNotSaved(n.notCacheableReason);continue}let c=await(await g0(o,{implicitDescendants:!1})).glob();if(c.length===0){zs(`No files found to cache for ${i}`);continue}if(n.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,i,o,n.uniqueFileNames,A,e.entry(o))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],i,u,n.uniqueFileNames,A,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,A,s,n,i){let o=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,A);n.find(c=>c.artifactType===r&&c.pattern===A)?.cacheKey===o?(zs(`No change to previously restored ${r}. Not saving.`),i.markNotSaved("contents unchanged")):await K_(A.split(`
`),o,i);for(let c of e)AR(c);return new hR(r,A,o)}createCacheKeyFromFileNames(e,r){let A=r.map(n=>Em.relative(this.gradleUserHome,n)),s=NOe(A);return zs(`Generating cache key for ${e} from file names: ${A}`),`${Z_(e,n8e)}-${s}`}async createCacheKeyFromFileContents(e,r){let A=await qke(r);return zs(`Generating cache key for ${e} from files matching: ${r}`),`${Z_(e,n8e)}-${A}`}async awaitForDebugging(e){return tR()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!dR.existsSync(e))return[];let r=dR.readFileSync(e,"utf-8");return zs(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new uee;r.entries=e.filter(s=>s.cacheKey!==void 0);let A=JSON.stringify(r);zs(`Saving cache metadata for ${this.extractorName}: ${A}`),dR.writeFileSync(this.getCacheMetadataFile(),A,"utf-8")}getCacheMetadataFile(){let e=Em.resolve(this.gradleUserHome,gm);return dR.mkdirSync(e,{recursive:!0}),Em.resolve(e,`${this.extractorName}-entry-metadata.json`)}},ER=class extends mP{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=Em.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await g0(e,{implicitDescendants:!1});for(let A of await r.glob())zs(`Deleting wrapper zip: ${A}`),await AR(A)}getExtractedCacheEntryDefinitions(){let e=(r,A,s)=>{let n=A.map(i=>{let o=i.endsWith("/"),a=Em.resolve(this.gradleUserHome,i);return o?`${a}/`:a}).join(`
`);return new pP(r,n,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},fR=class extends mP{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let A=this.loadExtractedCacheEntries();if(A.length>0){me(`Not restoring configuration-cache state, as ${r}`);for(let s of A)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){me("Not saving configuration-cache state, as no encryption key was provided");for(let A of r)e.entry(A.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,A])=>{let s=new pP("configuration-cache",r,!0).withNonUniqueFileNames();return A.find(n=>!Yh(n.gradleVersion,"8.6.0"))&&(me(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return QP().results.reduce((e,r)=>{let A=Em.resolve(r.rootProjectDir,".gradle/configuration-cache");return dR.existsSync(A)&&(e[A]||(e[A]=[]),e[A].push(r)),e},{})}};import i8e from"path";import JZt from"fs";import{fileURLToPath as VZt}from"url";function o8e(...t){let e=i8e.dirname(VZt(import.meta.url)),r=i8e.resolve(e,"..","..","..","sources","src","resources",...t);return JZt.readFileSync(r,"utf8")}function a8e(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
<type>jdk</type>
<provides>
<version>${e}</version>
</provides>
<configuration>
<jdkHome>${r}</jdkHome>
</configuration>
</toolchain>`).join(`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new iE(i));return s.searchPaths.push(...Ok(s.patterns)),s})}static stat(e,r,s){return Jk(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Eg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){L(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Eg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Eg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){L(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var dFe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function lX(t,e){return dFe(this,void 0,void 0,function*(){return yield iQ.create(t,e)})}var n$=we(r$(),1);import*as yQ from"crypto";import*as yg from"fs";import*as wl from"path";import*as i$ from"util";var dE;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dE||(dE={}));var ps;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ps||(ps={}));var Qn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Qn||(Qn={}));var CQ=2,IQ=5e3,dF=5e3,hF=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,s$=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,hE="cache.tar",gF="manifest.txt",Hpt=10*Math.pow(1024,3),BQ="cache read denied:";var Bg=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},BLe=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},yLe="1.0";function gE(){return Bg(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=wl.join(s,"actions","temp")}let r=wl.join(e,yQ.randomUUID());return yield Hy(r),r})}function Go(t){return yg.statSync(t).size}function fF(t){return Bg(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield lX(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=BLe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=wl.relative(a,n).replace(new RegExp(`\\${wl.sep}`,"g"),"/");L(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function fE(t){return Bg(this,void 0,void 0,function*(){return i$.promisify(yg.unlink)(t)})}function o$(t){return Bg(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),L(`Checking ${e} ${r.join(" ")}`);try{yield qy(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){L(n.message)}return s=s.trim(),L(s),s})}function pE(){return Bg(this,void 0,void 0,function*(){let t=yield o$("zstd",["--quiet"]),e=n$.clean(t);return L(`zstd version: ${e}`),t===""?ps.Gzip:ps.ZstdWithoutLong})}function Mc(t){return t===ps.Gzip?dE.Gzip:dE.Zstd}function a$(){return Bg(this,void 0,void 0,function*(){return yg.existsSync(hF)?hF:(yield o$("tar")).toLowerCase().includes("gnu tar")?aA("tar"):""})}function pF(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Qg(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(yLe),yQ.createHash("sha256").update(s.join("|")).digest("hex")}function A$(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as of from"fs";import{URL as k_e}from"url";var Yo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as QLe}from"node:os";import bLe from"node:util";import wLe from"node:process";function c$(t,...e){wLe.stderr.write(`${bLe.format(t,...e)}${QLe}`)}import mE from"node:process";function bQ(t){return mE.env[t]}var u$=typeof mE.versions.deno=="string"&&mE.versions.deno.length>0,l$=typeof mE.versions.bun=="string"&&mE.versions.bun.length>0,wQ=!0;var d$=bQ("DEBUG"),g$,mF=[],EF=[],NQ=[];d$&&CF(d$);var f$=Object.assign(t=>p$(t),{enable:CF,enabled:IF,disable:NLe,log:c$});function CF(t){g$=t,mF=[],EF=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?EF.push(r.substring(1)):mF.push(r);for(let r of NQ)r.enabled=IF(r.namespace)}function IF(t){if(t.endsWith("*"))return!0;for(let e of EF)if(h$(t,e))return!1;for(let e of mF)if(h$(t,e))return!0;return!1}function h$(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function NLe(){let t=g$||"";return CF(""),t}function p$(t){let e=Object.assign(r,{enabled:IF(t),destroy:SLe,log:f$.log,namespace:t,extend:TLe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return NQ.push(e),e}function SLe(){let t=NQ.indexOf(this);return t>=0?(NQ.splice(t,1),!0):!1}function TLe(t){let e=p$(`${this.namespace}:${t}`);return e.log=this.log,e}var bg=f$;var BF=["verbose","info","warning","error"],m$={verbose:400,info:300,warning:200,error:100};function E$(t,e){e.log=(...r)=>{t.log(...r)}}function C$(t){return BF.includes(t)}function SQ(t){let e=new Set,r=bQ(t.logLevelEnvVarName),s,n=bg(t.namespace);n.log=(...u)=>{bg.log(...u)};function i(u){if(u&&!C$(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${BF.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);bg.enable(l.join(","))}r&&(C$(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${BF.join(", ")}.`));function o(u){return!!(s&&m$[u.level]<=m$[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(E$(u,d),o(d)){let h=bg.disable();bg.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return E$(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var I$=SQ({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),xLe=I$.logger;function EE(t){return I$.createClientLogger(t)}function TQ(t){return t.toLowerCase()}function DLe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*RLe(t){for(let e of t.values())yield[e.name,e.value]}var yF=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(TQ(e),{name:e,value:DLe(r)})}get(e){return this._headersMap.get(TQ(e))?.value}has(e){return this._headersMap.has(TQ(e))}delete(e){this._ Line truncated
${ULe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function wg(t){return t instanceof ms?!0:Sl(t)&&t.name==="RestError"}function CE(t,e){return Buffer.from(t).toString(e)}function Es(t,e){return Buffer.from(t,e)}import NF from"node:http";import SF from"node:https";import Q$ from"node:zlib";import{Transform as LLe}from"node:stream";var Ps=EE("ts-http-runtime");var vLe={};function IE(t){return t&&typeof t.pipe=="function"}function b$(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function w$(t){return t&&typeof t.byteLength=="number"}var RQ=class extends LLe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},TF=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Yo("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new ao;Ps.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=HLe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new RQ(f);p.on("error",E=>{Ps.error("Error in upload progress",E)}),IE(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a),u=PLe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?OLe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new RQ(h);f.on("error",p=>{Ps.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await _Le(A),d}finally{if(n!==void 0&&clearTimeout(n),e.abortSignal&&s){let c=Promise.resolve();IE(a)&&(c=b$(a));let u=Promise.resolve();IE(A)&&(u=b$(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Ps.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?NF.request(a,A):SF.request(a,A);u.once("error",l=>{c(new ms(l.message,{code:l.code??ms.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Yo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&IE(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):w$(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(Ps.error("Unrecognized body type",s),c(new ms("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?NF.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NF.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return SF.globalAgent;let n=e.tlsSettings??vLe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ps.info("No cached TLS Agent exist, creating a new Agent"),i=new SF.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function PLe(t){let e=bn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function OLe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Q$.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Q$.createInflate();return t.pipe(s),s}return t}function _Le(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new ms(`Error reading response as text: ${n.message}`,{code:ms.PARSE_ERROR}))})})}function HLe(t){return t?Buffer.isBuffer(t)?t.length:IE(t)?null:w$(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function N$(){return new TF}function kQ(){return N$()}var xF="logPolicy";function FQ(t={}){let e=t.logger??Ps.info,r=new ao({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowed Line truncated
`;return e}function APe(t){return t instanceof Uint8Array?t.byteLength:yE(t)?t.size===-1?void 0:t.size:void 0}function cPe(t){let e=0;for(let r of t){let s=APe(r);if(s===void 0)return;e+=s}return e}async function uPe(t,e,r){let s=[Es(`--${r}`,"utf-8"),...e.flatMap(i=>[Es(`\r
`,"utf-8"),Es(aPe(i.headers),"utf-8"),Es(`\r
`,"utf-8"),i.body,Es(`\r
--${r}`,"utf-8")]),Es(`--\r
\r
`,"utf-8")],n=cPe(s);n&&t.headers.set("Content-Length",n),t.body=await Eee(s)}var QE="multipartPolicy",lPe=70,dPe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hPe(t){if(t.length>lPe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dPe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function rb(){return{name:QE,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,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?hPe(r):r=oPe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await uPe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function sb(){return DQ()}var Cee=SQ({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),YCt=Cee.logger;function li(t){return Cee.createClientLogger(t)}var Jo=li("core-rest-pipeline");function VF(t={}){return FQ({logger:Jo.info,...t})}var WF=eb;function zF(t={}){return tb(t)}import KF from"node:os";import vc from"node:process";function Iee(){return"User-Agent"}async function Bee(t){if(vc&&vc.versions){let e=`${KF.type()} ${KF.release()}; ${KF.arch()}`;vc.versions.bun?t.set("Bun",`${vc.versions.bun} (${e})`):vc.versions.deno?t.set("Deno",`${vc.versions.deno} (${e})`):vc.versions.node&&t.set("Node",`${vc.versions.node} (${e})`)}}var nb="1.25.0";function BPe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function yee(){return Iee()}async function ib(t){let e=new Map;e.set("core-rest-pipeline",nb),await Bee(e);let r=BPe(e);return t?`${t} ${r}`:r}var Qee=yee(),bee="userAgentPolicy";function jF(t={}){let e=ib(t.userAgentPrefix);return{name:bee,async sendRequest(r,s){return r.headers.has(Qee)||r.headers.set(Qee,await e),s(r)}}}var wee=Symbol("rawContent");function XF(t){return typeof t[wee]=="function"}function Nee(t){return XF(t)?t[wee]():t}var ob=QE;function ZF(){let t=rb();return{name:ob,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)XF(s.body)&&(s.body=Nee(s.body));return t.sendRequest(e,r)}}}var $F=ZQ;function eM(){return $Q()}function tM(t={}){return vQ(t)}function rM(){return PQ()}var Vr=class extends Error{constructor(e){super(e),this.name="AbortError"}};function sM(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Vr(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var DPe="The delay was aborted.";function Rg(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return sM(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??DPe})}function Pc(t){if(Sl(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}`}}function See(t){return Sl(t)}function kg(){return Nl()}var wt=wQ;function iM(t,e){return CE(t,e)}function oM(t,e){return Es(t,e)}function Oc(t){return YF(t)}function aM(t,e){return XQ(t,e)}var Tee="setClientRequestIdPolicy";function AM(t="x-ms-client-request-id"){return{name:Tee,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function cM(t){return OQ(t)}function uM(t){return _Q(t)}var Fg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function xee(t={}){let e=new lM(t.parentContext);return t.span&&(e=e.setValue(Fg.span,t.span)),t.namespace&&(e=e.setValue(Fg.namespace,t.namespace)),e}var lM=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Ree=we(Dee(),1),Ab=Ree.state;function RPe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function kPe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:RPe(),tracingContext:xee({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function bE(){return Ab.instrumenterImplementation||(Ab.instrumenterImplementation=kPe()),Ab.instrumenterImplementation}function wE(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=bE().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!t8e(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",ir("InvalidTag",l,Cs(t,i))}let c=j3e(t,i);if(c===!1)return ir("InvalidAttr","Attributes for '"+A+"' have open quote.",Cs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=dte(u,e);if(d===!0)s=!0;else return ir(d.err.code,d.err.msg,Cs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return ir("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Cs(t,o));if(r.length===0)return ir("InvalidTag","Closing tag '"+A+"' has not been opened.",Cs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Cs(t,l.tagStartPos);return ir("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Cs(t,o))}r.length==0&&(n=!0)}}else return ir("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Cs(t,i));else{let l=dte(u,e);if(l!==!0)return ir(l.err.code,l.err.msg,Cs(t,i-u.length+l.err.line));if(n===!0)return ir("InvalidXml","Multiple possible root nodes found.",Cs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=lte(t,i);continue}else if(t[i+1]==="?"){if(i=ute(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=$3e(t,i);if(l==-1)return ir("InvalidChar","char '&' is not expected.",Cs(t,i));i=l}else if(n===!0&&!Lg(t[i]))return ir("InvalidXml","Extra text at the end",Cs(t,i));t[i]==="<"&&i--}}else{if(Lg(t[i]))continue;return ir("InvalidChar","char '"+t[i]+"' is not expected.",Cs(t,i))}if(s){if(r.length==1)return ir("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Cs(t,r[0].tagStartPos));if(r.length>0)return ir("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ir("InvalidXml","Start tag expected.",1);return!0}function Lg(t){return t===" "||t===" "||t===`
`||t==="\r"}function ute(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return ir("InvalidXml","XML declaration allowed only at the start of the document.",Cs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function lte(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}var z3e='"',K3e="'";function j3e(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===z3e||t[e]===K3e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}function X3e(t){let e=[],r=t.length,s=0;for(;s<r;){let n=s;for(;s<r&&Lg(t[s]);)s++;if(s>=r)break;if(t[s]==="="){s=n+1;continue}let i=t.slice(n,s),o=s;for(;s<r&&!Lg(t[s])&&t[s]!=="=";)s++;let a=t.slice(o,s),A,c=s;for(;c<r&&Lg(t[c]);)c++;c<r&&t[c]==="="&&(A=t.slice(s,c+1),s=c+1);let u,l,d=s;for(;d<r&&Lg(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,p=t.indexOf(t[d],f);p!==-1&&(u=t[d],l=t.slice(f,p),s=p+1)}let h={startIndex:n};h[1]=i,h[2]=a,h[3]=A,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function dte(t,e){let r=X3e(t),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return ir("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",LE(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return ir("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",LE(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return ir("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",LE(r[n]));let i=r[n][2];if(!e8e(i))return ir("InvalidAttr","Attribute '"+i+"' is an invalid name.",LE(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return ir("InvalidAttr","Attribute '"+i+"' is repeated.",LE(r[n]))}return!0}function Z3e(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}function $3e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Z3e(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}function ir(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function e8e(t){return xM(t)}function t8e(t){return xM(t)}function Cs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function LE(t){return t.startIndex+t[1].length}var DM={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var vE={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},RM={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var vg=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),r8e=new Set("!?\\\\/[]$%{}^&*()<>|+");function hte(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(r8e.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function PE(...t){let e=Object.create(null);for(let r of t)if(r)for(let s of Object.keys(r)){let n=r[s];if(typeof n=="string")e[s]=n;else if(n&&typeof n=="object"&&n.val!==void 0){let i=n.val;typeof i=="string"&&(e[s]=i)}}return e}var Fl="external",Eb="base",kM="all";function s8e(t){return!t||t===Fl?new Set([Fl]):t===kM?new Set([kM]):t===Eb?new Set([Eb]):Array.isArray(t)?new Set(t):new Set([Fl])}var Hs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),n8e=new Set([9,10,13]);function i8e(t){if(!t)return{xmlVersion:1,onLevel:Hs.allow,nullLevel:Hs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Hs[t.onNCR]??Hs.allow,s=Hs[t.nullNCR]??Hs.remove,n=Math.max(s,Hs.remove);return{xmlVersion:e,onLevel:r,nullLevel:n}}var Pg=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:s=>s,this._limitTiers=s8e(this._limit.applyLimitsTo??Fl),this._numericAllowed=e.numericAllowed??!0,this._baseMap=PE(vE,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new Gs("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n=this.options,i=new _E(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=Yg(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=JM(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,n.captureMetaData&&r&&r.addEndIndex(u+1),s="",a=u}else if(c===63){let u=VM(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Gs(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),n.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Yg(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=Yg(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=VM(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=JM(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&n.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,w={},T;T=H8e(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(w=_8e(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let k=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let v=this.readStopNodeData(t,d,p+1);if(!v)throw new Error(`Unexpected end of ${d}`);a=v.i,M=v.tagContent}let q=new Gs(l);C&&(q[":@"]=C),q.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,q,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=JM(n.transformTagName,l,h,n));let M=new Gs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(p+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Gs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Gs(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),r=M}s="",a=p}}}else s+=t[a];return e.child};function W8e(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function z8e(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function K8e(t,e,Line truncated
`;function i4e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(ZM(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function kte(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function XM(t,e){let r="";e.format&&(r=n4e);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let A=e.stopNodes[a];typeof A=="string"?s.push(new Tn(A)):A instanceof Tn&&s.push(A)}let n=i4e(t,e),i=Cb("qName",{xmlVersion:n}),o=new zo;return Fte(t,e,r,o,s,i)}function Fte(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let A=Wr(t);return A=jM(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=ZM(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:kte(u,!1,e,s,i),h=o4e(c[":@"],e);s.push(d,h);let f=A4e(s,n);if(d===e.textNodeName){let w=c[u];f||(w=e.tagValueProcessor(d,w),w=jM(w,e)),w=Wr(w),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let w=c[u][0][e.textNodeName],T=bb(w);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let w=c[u][0][e.textNodeName],T=YE(w);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let w=Rte(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${w}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let E=Rte(c[":@"],e,f,s,i),m=r+`<${d}${E}`,C;f?C=Mte(c[u],e):C=Fte(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function o4e(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Ko(t[n]),s=!0}return s?r:null}function Mte(t,e){if(!Array.isArray(t))return t!=null?Wr(t):"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=ZM(n);if(i===e.textNodeName)r+=Wr(n[i]);else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=a4e(n[":@"],e),a=Mte(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function a4e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Ko(n)}"`}return r}function ZM(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Rte(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:kte(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=jM(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Ko(c)}"`}return i}function A4e(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}function jM(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function $M(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}var c4e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 qs(t){if(this.options=Object.assign({},c4e,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&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Tn(r)):r instanceof Tn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u4e(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function eU(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}qs.prototype.build=function(t){if(this.options.preserveOrder)return XM(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new zo,r=u4e(t,this.options),s=Cb("qName",{xmlVersion:r});return this.j2x(t,0,e,s).val}};qs.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:eU(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=eU(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,Wr(t[A]),a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,Wr(t[A]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Wr(t[A]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",h="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(p,e+1,r,s);r.pop(),d+=E.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,p);E=this.replaceEntitiesValue(E),E=Wr(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Wr(p);m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=eU(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,Wr(t[A][l[h]]),a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};qs.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Wr(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Ko(e)+'"'};function l4e(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}qs.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Ko(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Ko(t[s]),r=!0)}return r?e:null};qs.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.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Me.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE));r.sort((n,i)=>Pb(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=Ub(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=Lb(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Yt=class extends vl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new jE(e,r,this)}computeHMACSHA256(e){return R4e("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var yr=li("storage-common");var di;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(di||(di={}));var Yc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:di.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},k4e=new Vr("The operation was aborted."),XE=class extends jo{retryOptions;constructor(e,r,s=Yc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yc.maxRetryDelayInMs):Yc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=Mb(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Fb(n.url,KE.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yr.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(yr.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return yr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return yr.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return yr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Me.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(yr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case di.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case di.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return yr.info(`RetryPolicy: Delay for ${n}ms`),vb(n,s,k4e)}};var ZE=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new XE(e,r,this.retryOptions)}};var F4e="storageBrowserPolicy";function Wte(){return{name:F4e,async sendRequest(t,e){return e(t)}}}var M4e="StorageCorrectContentLengthPolicy";function zte(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Me.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:M4e,async sendRequest(e,r){return t(e),r(e)}}}var U4e="storageRetryPolicy",Vg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:di.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},L4e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],v4e=new Vr("The operation was aborted.");function Kte(t={}){let e=t.retryPolicyType??Vg.retryPolicyType,r=t.maxTries??Vg.maxTries,s=t.retryDelayInMs??Vg.retryDelayInMs,n=t.maxRetryDelayInMs??Vg.maxRetryDelayInMs,i=t.secondaryHost??Vg.secondaryHost,o=t.tryTimeoutInMs??Vg.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return yr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of L4e)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return yr.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return yr.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+s(i)+n(i),a=P4e("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Me.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Me.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Pb(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=Ub(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Lb(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:O4e,async sendRequest(i,o){return e(i),o(i)}}}var _4e="storageRequestFailureDetailsParserPolicy";function jte(){return{name:_4e,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as H4e}from"node:crypto";var Ob=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return H4e("sha256",this.key).update(e,"utf8").digest("base64")}};var _b="12.33.0",Hb="2026-06-06";var Gb="https://storage.azure.com/.default",fA={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ao="",cU="*",G4e=1*1024*1024;var Y4e=4*G4e;var Xte="AES256",Zte="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",$te=["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"],ere=["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"],tre="BlobUsesCustomerSpecifiedEncryption",rre="BlobDoesNotUseCustomerSpecifiedEncryption",sre=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pA(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var $E=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function or(t,e={}){t||(t=new Ft);let r=new $E([],e);return r._credential=t,r}function q4e(t){let e=[J4e,nre,V4e,W4e,z4e,K4e,X4e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>j4e(n));return{wrappedPolicies:SM(r),afterRetry:s}}}}function uU(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?TM(e):aU(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${_b}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=TE({...r,loggingOptions:{additionalAllowedHeaderNames:$te,additionalAllowedQueryParameters:ere,logger:Nb.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:wb,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:rU,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:$F}),n.addPolicy(zte()),n.addPolicy(Kte(r.retryOptions),{phase:"Retry"}),n.addPolicy(jte()),n.addPolicy(Wte());let a=q4e(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=lU(t);Nn(A)?n.addPolicy(Mg({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Fn(t.version,i,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:n}}function J6e(t,e){if(t=bA(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=Ei.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fn(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:i}}function V6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 Fn(t.version,a,i,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,void 0,void 0,void 0,void 0,n),stringToSign:o}}function W6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,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 Fn(t.version,a,i,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,void 0,void 0,void 0,n),stringToSign:o}}function z6e(t,e){if(t=bA(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=mi.parse(t.permissions.toString()).toString():n=Ei.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fn(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,e.userDelegationKey),stringToSign:i}}function K6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(t.version,a,i,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,void 0,void 0,void 0,void 0,n),stringToSign:o}}function j6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(t.version,a,i,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,void 0,void 0,void 0,n),stringToSign:o}}function X6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(t.version,a,i,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,void 0,void 0,n),stringToSign:o}}function Z6e(t,e){if(t=bA(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",s=t.snapshotTime,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,$6e(t.requestHeaders),e_e(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(t.version,a,i,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,use(t.requestHeaders),use(t.requestQueryParameters),n),stringToSign:o}}function $6e(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function e_e(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function use(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(s){r!==0&&(e=e+","),e=e+s,++r}),e}function QA(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function bA(t){let e=t.version?t.version:Hb;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}function tf(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var d0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=kg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ao||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ao||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 s=>Ae(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ao||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ao||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 s=>{let n=Ae(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ao||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ao||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=>Ae(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!==Ao||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ao||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-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};sf.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jl=class extends Error{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"}};jl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var I0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Q_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},PP=class{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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);pe(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Bse(t,e,r){return Q_e(this,void 0,void 0,function*(){var s;let n=new NA(t),i=n.getBlockBlobClient(),o=new PP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),L(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Lw(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw at(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Qse from"buffer";import*as ha from"fs";import*as bse from"stream";import*as wse from"util";var vw=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Pw(t){return t?t>=200&&t<300:!1}function b_e(t){return t?t>=500:!0}function w_e(t){return t?[Gt.BadGateway,Gt.ServiceUnavailable,Gt.GatewayTimeout].includes(t):!1}function N_e(t){return vw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function yse(t,e,r){return vw(this,arguments,void 0,function*(s,n,i,o=CQ,a=IQ,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!b_e(d)))return l;if(d&&(h=w_e(d),c=`Cache service responded with ${d}`),L(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){L(`${s} - Error is not retryable`);break}yield N_e(a),u++}throw Error(`${s} failed: ${c}`)})}function B0(t,e){return vw(this,arguments,void 0,function*(r,s,n=CQ,i=IQ){return yield yse(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Oo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function nf(t,e){return vw(this,arguments,void 0,function*(r,s,n=CQ,i=IQ){return yield yse(r,s,o=>o.message.statusCode,n,i)})}var Ci=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function S_e(t,e){return Ci(this,void 0,void 0,function*(){yield wse.promisify(bse.pipeline)(t.message,e)})}var Ow=class{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,L(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);pe(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])L(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function YP(t,e,r){return zs(this,void 0,void 0,function*(){let s=new k_e(t),n=xse(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Sse(t,e,n):n.concurrentBlobDownloads?yield Nse(t,e,n):yield _w(t,e):yield _w(t,e)})}function Ose(t,e,r){return zs(this,void 0,void 0,function*(){let s=GP(),n=Qg(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield B0("reserveCache",()=>zs(this,void 0,void 0,function*(){return s.postJson(Q0("caches"),i)}))})}function vse(t,e){return`bytes ${t}-${e}/*`}function L_e(t,e,r,s,n){return zs(this,void 0,void 0,function*(){L(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${vse(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":vse(s,n)},o=yield nf(`uploadChunk (start: ${s}, end: ${n})`,()=>zs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Pw(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function v_e(t,e,r,s){return zs(this,void 0,void 0,function*(){let n=Go(r),i=Q0(`caches/${e.toString()}`),o=of.openSync(r,"r"),a=OP(s),A=pF("uploadConcurrency",a.uploadConcurrency),c=pF("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];L("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>zs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield L_e(t,i,()=>of.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{of.closeSync(o)}})}function P_e(t,e,r){return zs(this,void 0,void 0,function*(){let s={size:r};return yield B0("commitCache",()=>zs(this,void 0,void 0,function*(){return t.postJson(Q0(`caches/${e.toString()}`),s)}))})}function qP(t,e,r,s){return zs(this,void 0,void 0,function*(){if(OP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bse(r,e,s)}else{let i=GP();L("Upload cache"),yield v_e(i,t,e,s),L("Commiting cache");let o=Go(e);pe(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield P_e(i,t,o);if(!Pw(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);pe("Cache saved successfully")}})}var Fne=we(Nne(),1),cr=we(Ar(),1),Un=we(Ar(),1),td=we(Ar(),1),rd=we(Ar(),1),sd=we(Ar(),1);var P3=we(Ar(),1),O3=we(Ar(),1),Dne=we(Ar(),1),Rne=we(Ar(),1),kne=we(Ar(),1);var U3=we(Ar(),1),L3=we(Ar(),1),Sne=we(Ar(),1),Tne=we(Ar(),1),xne=we(Ar(),1),v3=class extends xne.MessageType{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,Tne.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Sne.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?L3.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,U3.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,U3.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?L3.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},S1=new v3;var _3=class extends kne.MessageType{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:()=>S1}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Rne.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Dne.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(S1.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?O3.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,P3.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)S1.internalBinaryWrite(e.scope[i],r.tag(2,P3.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?O3.UnknownFieldHandler.onWrit Line truncated
`));let s=yield t8(r,"create");yield r8(s,t)})}var yf=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},fo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},nd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},i8="cache write denied:",D1=class t extends nd{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vne=BQ,R1=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},k1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pne(t){if(!t||t.length===0)throw new fo("Path Validation Error: At least one directory or file path is required")}function o8(t){if(t.length>512)throw new fo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new fo(`Key Validation Error: ${t} cannot contain commas.`)}function One(){return y0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _ne(t,e,r,s){return yf(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=y0();L(`Cache service version: ${c}`),Pne(n);let u=HP();if(!Rse(u)){pe(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),L(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield tGe(n,i,o,a,A):yield eGe(n,i,o,a,A)})}function eGe(t,e,r,s){return yf(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(L("Resolved Keys:"),L(JSON.stringify(u)),u.length>10)throw new fo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)o8(h);let l=yield pE(),d="";try{let h;try{h=yield Pse(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let E=(c=p?.message)!==null&&c!==void 0?c:"";throw E.includes(vne)?new R1(E):p}if(!h?.archiveLocation)return;if(a?.lookupOnly)return pe("Lookup only - skipping download"),h.cacheKey;d=O0.join(yield gE(),Mc(l)),L(`Archive Path: ${d}`),yield YP(h.archiveLocation,d,a),Nc()&&(yield P0(d,l));let f=Go(d);return pe(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield s8(d,l),pe("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===fo.name)throw h;f instanceof Oo&&typeof f.statusCode=="number"&&f.statusCode>=500?ml(`Failed to restore: ${h.message}`):at(`Failed to restore: ${h.message}`)}finally{try{yield fE(d)}catch(h){L(`Failed to delete archive: ${h}`)}}})}function tGe(t,e,r,s){return yf(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(L("Resolved Keys:"),L(JSON.stringify(u)),u.length>10)throw new fo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)o8(d);let l="";try{let d=e8(),h=yield pE(),f={key:i,restoreKeys:o,version:Qg(n,h,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(C){let w=(c=C?.message)!==null&&c!==void 0?c:"";throw w.includes(vne)?new R1(w):C}if(!p.ok){L(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?pe(`Cache hit for restore-key: ${p.matchedKey}`):pe(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return pe("Lookup only - skipping download"),p.matchedKey;l=O0.join(yield gE(),Mc(h)),L(`Archive path: ${l}`),L(`Starting download of archive to: ${l}`),yield YP(p.signedDownloadUrl,l,a);let m=Go(l);return pe(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Nc()&&(yield P0(l,h)),yield s8(l,h),pe("Cache restored successfully"),p.matchedKey}catch(d){let h=d;if(h.name===fo.name)throw d;h instanceof Oo&&typeof h.statusCode=="number"&&h.statusCode>=500?ml(`Failed to restore: ${d.message}`):at(`Failed to restore: ${d.message}`)}finally{try{l&&(yield fE(l))}catch(d){L(`Failed to delete archive: ${d}`)}}})}function Hne(t,e,r){return yf(this,arguments,void 0,function*(s,n,i,o=!1){let a=y0();L(`Cache service version: ${a}`),Pne(s),o8(n);let A=HP();return kse(A)?a==="v2"?yield sGe(s,n,i,o):yield rGe(s,n,i,o):(pe(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),L(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function rGe(t,e,r){return yf(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let h=yield pE(),f=-1,p=yield fF(s);if(L("Cache Paths:"),L(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield gE(),m=O0.join(E,Mc(h));L(`Archive Path: ${m}`);try{yield n8(E,p,h),Nc()&&(yield P0(m,h));let C=10*1024*1024*1024 Line truncated
${r.join(`
`)}
</toolchains>
`}function c8e(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var u8e="restored-cache-key",yP=class{constructor(e,r,A){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=A}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&ZE("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Fg.resolve(this.gradleUserHome,"caches");return Si.existsSync(e)?(zs(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),A=U$(this.cacheName,this.cacheConfig);zs(`Requesting ${this.cacheDescription} with
key:${A.key}
restoreKeys:[${A.restoreKeys}]`);let s=this.getCachePath(),n=await j_(s,A.key,A.restoreKeys,r);if(!n){me(`${this.cacheDescription} cache not found. Will initialize empty.`);return}ef(u8e,n.key);try{await this.afterRestore(e)}catch(i){BA(`Restore ${this.cacheDescription} failed in 'afterRestore': ${i}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new ER(this.gradleUserHome,this.cacheConfig).restore(e),await new fR(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=U$(this.cacheName,this.cacheConfig).key,A=jo(u8e),s=e.entry(this.cacheDescription);if(A&&r===A){me(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let i of e.cacheEntries)i===s?i.markNotSaved("cache key not changed"):i.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(i){BA(`Save ${this.cacheDescription} failed in 'beforeSave': ${i}`);return}let n=this.getCachePath();await K_(n,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new ER(this.gradleUserHome,this.cacheConfig).extract(e),new fR(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(A=>Fg.resolve(this.gradleUserHome,A));for(let A of r){zs(`Removing excluded path: ${A}`);let s=await g0(A,{implicitDescendants:!1});for(let n of await s.glob())zs(`Removing excluded file: ${n}`),await AR(n)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(gm);let r=e.map(A=>this.resolveCachePath(A));return zs(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Fg.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Fg.resolve(this.gradleUserHome,gm);Si.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),$E()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Fg.resolve(this.gradleUserHome,"init.d");Si.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let A of r){let s=o8e("init-scripts",A),n=Fg.resolve(e,A);Si.writeFileSync(n,s)}}registerToolchains(){let e=a8e();if(e==null)return;let r=Fg.resolve(this.userHome,".m2"),A=Fg.resolve(r,"toolchains.xml");if(!Si.existsSync(A))Si.mkdirSync(r,{recursive:!0}),Si.writeFileSync(A,e),me(`Wrote default JDK locations to ${A}`);else{let s=Si.readFileSync(A,"utf8"),n=c8e(s,e);Si.writeFileSync(A,n),me(`Merged default JDK locations into ${A}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Fg.resolve(this.gradleUserHome,"gradle.properties");if(Si.existsSync(r)){me(`Merged --info and --stacktrace into existing ${r} file`);let A=Si.readFileSync(r,"utf-8");Si.writeFileSync(r,`${e}
${A}`)}else me(`Created a new ${r} with --info and --stacktrace`),Si.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!tR()&&!$E()||!Si.existsSync(this.gradleUserHome))return;let r=await wd("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});me(`Gradle User Home (directories >5M): ${e}`),me(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(A=>` ${A}`).join(`
`)),me("-----------------------")}};import bP from"fs";import CR from"path";var wP=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return ef("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),A=jo("clean-timestamp");await this.forceCleanupFilesOlderThan(A,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&Yh(r,"8.11"))try{let A=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await aee(r,A)}catch{me(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await aee("8.11")}findGradleWrapperScript(e){try{let r=oee(e.rootProjectDir);return CR.resolve(e.rootProjectDir,r)}catch(r){return jt(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let A=CR.resolve(this.tmpDir,"dummy-cleanup-project");bP.mkdirSync(A,{recursive:!0}),bP.writeFileSync(CR.resolve(A,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),bP.writeFileSync(CR.resolve(A,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),bP.writeFileSync(CR.resolve(A,"build.gradle"),'task("noop") {}'),await Dd("Executing Gradle to clean up caches",async()=>{me(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,A)})}async executeCleanupBuild(e,r){let A=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await gu(e,A,{cwd:r})}};var WZt="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function l8e(t,e,r,A,s,n){if(n.isCacheDisabled()){me("Cache is disabled: will not save state for later builds.");return}if(!jo(WZt)){me("Cache will not be saved: not restored in main action step.");return}if(n.isCacheReadOnly()){me("Cache is read-only: will not save state for use in subsequent builds."),r.setReadOnly();return}await Dd("Stopping Gradle daemons",async()=>{await A.stopAllDaemons()}),n.isCacheCleanupEnabled()&&(s.anyConfigCacheHit()?(me("Not performing cache-cleanup due to config-cache reuse"),r.setCacheCleanupDisabled(Fke)):n.shouldPerformCacheCleanup(s.anyFailed())?(r.setCacheCleanupEnabled(),await zZt(e,s)):(me("Not performing cache-cleanup due to build failure"),r.setCacheCleanupDisabled(kke))),await Dd("Caching Gradle state",async()=>new yP(t,e,n).save(r))}async function zZt(t,e){let r=new wP(t,process.env.RUNNER_TEMP);try{await r.forceCleanup(e)}catch(A){BA(`Cache cleanup failed. Will continue. ${String(A)}`)}}async function d8e(t,e,r){let A=$Zt();if(A){jE.addRaw(A),await jE.write();return}let s=ZZt(t.results),n=t.anyFailed();r.shouldGenerateJobSummary(n)?(me("Generating Job Summary"),jE.addRaw(s),jE.addRaw(e),await jE.write()):(me("============================"),me(s),me("============================"),me(e),me("============================")),r.shouldAddPRComment(n)&&await KZt(s)}async function KZt(t){let e=SC;if(e.payload.pull_request==null){me("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;me(`Adding Job Summary as comment to PR #${r}.`);let A=`<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
`:""}function hGe(t){return`<details>
<summary>${h8.eol} ${Kne(t)}</summary>
<p>${jne(t)}</p>
<p>If you cannot upgrade, see the <a href="${Wne}">Gradle Security Subscription</a> for options.</p>
</details>`}async function rie(t,e,r,s){RK("Generating Job Summary");let n=sie(),i=mGe();if(i){oA.addRaw(n),oA.addRaw(i),await oA.write();return}let o=pGe(t),a=Lj(e,r),A=BGe(t);pe(o),pe("============================"),pe(a),s.shouldGenerateJobSummary(A)&&(oA.addRaw(n),oA.addRaw(o),oA.addRaw(a),await oA.write()),kK(),s.canAddPRComment()&&await NGe(),s.shouldAddPRComment(A)&&await gGe(o)}async function gGe(t){let e=fg;if(e.payload.pull_request==null){pe("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;pe(`Adding Job Summary as comment to PR #${r}.`);let s=`${nie(e)}
${sie()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=bOe(),n=BOe(s);try{await n.rest.issues.createComment({...e.repo,issue_number:r,body:A})}catch(i){if(i instanceof Error&&i.name==="HttpError")BA(XZt(i));else throw i}}function XZt(t){let e=`Failed to generate PR comment.
${t}`,n=l8(),i=Uk(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")at(fGe(o));else throw o}}function fGe(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function ZZt(t){return`${e$t()}
${r$t(t)}`}function $Zt(){let t=pOe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function e$t(){let t=QOe();return t.length===0?"":`
`:e}function pGe(t){return`${EGe()}
${IGe(t)}
${eie(t.map(e=>e.gradleVersion))}`}function sie(){let t=F1();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function mGe(){let t=qne();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function EGe(){let t=Yne();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${S$()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${F1()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${t$t(e)}</li>`).join("")}
${t.map(e=>`<li>${CGe(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function t$t(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function r$t(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function CGe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function IGe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -456,35 +315,67 @@ This job uses deprecated functionality from the <code>${S$()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>A$t(e)).join("")}
</table>
`}function A$t(t){return`
</tr>${t.map(e=>yGe(e)).join("")}
</table>`}function BGe(t){return t.some(e=>e.buildFailed)}function yGe(t){return`
<tr>
<td>${g8e(t.rootProjectName,30)}</td>
<td>${g8e(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${s$t(t)}</td>
<td>${n$t(t)}</td>
</tr>`}function s$t(t){return t.buildFailed?":x:":":white_check_mark:"}function n$t(t){return t.buildScanFailed?lee({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?lee({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):lee({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function lee({text:t,alt:e,color:r,logo:A,targetUrl:s}){let o=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${A?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${o}</a>`}function g8e(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var h8e=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let A=r.split(this.hostDelimiter);return{hostname:A[0],key:A[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as E8e from"fs";import*as f8e from"path";var DP=class{constructor(e){this.gradleHomes=e.uniqueGradleHomes()}async stopAllDaemons(){let e=[],r=["--stop"];for(let A of this.gradleHomes){let s=f8e.resolve(A,"bin","gradle");if(!E8e.existsSync(s)){BA(`Gradle executable not found at ${s}. Could not stop Gradle daemons.`);continue}me(`Stopping Gradle daemons for ${A}`),e.push(gu(s,r,{ignoreReturnCode:!0}))}await Promise.all(e)}};import*as p8e from"util";var d$t=zt(Q8e(),1);import*as gee from"fs";var WUr=p8e.promisify(gee.readdir);var E$t={_useHtmlParser2:!1};function fm(t,e){if(!t)return e??E$t;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Lee={};nc(Lee,{contains:()=>HP,extract:()=>cer,html:()=>ner,merge:()=>q8e,parseHTML:()=>oer,root:()=>aer,text:()=>HC,xml:()=>ier});var Wh={};nc(Wh,{DocumentPosition:()=>_a,append:()=>H$t,appendChild:()=>O$t,compareDocumentPosition:()=>O8e,existsOne:()=>_8e,filter:()=>pm,find:()=>vP,findAll:()=>J$t,findOne:()=>_P,findOneChild:()=>q$t,getAttributeValue:()=>L$t,getChildren:()=>Qm,getElementById:()=>j$t,getElements:()=>z$t,getElementsByClassName:()=>K$t,getElementsByTagName:()=>OC,getElementsByTagType:()=>X$t,getFeed:()=>Mee,getInnerHTML:()=>M$t,getName:()=>_$t,getOuterHTML:()=>L8e,getParent:()=>v8e,getSiblings:()=>xee,getText:()=>UP,hasAttrib:()=>v$t,hasChildren:()=>pr,innerText:()=>mR,isCDATA:()=>Cm,isComment:()=>PC,isDocument:()=>va,isTag:()=>we,isText:()=>Ti,nextElementSibling:()=>MP,prepend:()=>Y$t,prependChild:()=>G$t,prevElementSibling:()=>LP,removeElement:()=>Mg,removeSubsets:()=>Z$t,replaceElement:()=>P$t,testElement:()=>W$t,textContent:()=>Ug,uniqueSort:()=>Jh});var La={};nc(La,{CDATA:()=>pee,Comment:()=>Cee,Directive:()=>fee,Doctype:()=>mee,ElementType:()=>_t,Root:()=>hee,Script:()=>Iee,Style:()=>Bee,Tag:()=>Qee,Text:()=>Eee,isTag:()=>dee});var _t;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(_t||(_t={}));function dee(t){return t.type===_t.Tag||t.type===_t.Script||t.type===_t.Style}var hee=_t.Root,Eee=_t.Text,fee=_t.Directive,Cee=_t.Comment,Iee=_t.Script,Bee=_t.Style,Qee=_t.Tag,pee=_t.CDATA,mee=_t.Doctype;var NP=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Im(this,e)}},IR=class extends NP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},il=class extends IR{constructor(){super(...arguments),this.type=_t.Text}get nodeType(){return 3}},LC=class extends IR{constructor(){super(...arguments),this.type=_t.Comment}get nodeType(){return 8}},vC=class extends IR{constructor(e,r){super(r),this.name=e,this.type=_t.Directive}get nodeType(){return 1}},BR=class extends NP{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},QR=class extends BR{constructor(){super(...arguments),this.type=_t.CDATA}get nodeType(){return 4}},yo=class extends BR{constructor(){super(...arguments),this.type=_t.Root}get nodeType(){return 9}},_C=class e Line truncated
`:UP(t.children):Cm(t)?UP(t.children):Ti(t)?t.data:""}function Ug(t){return Array.isArray(t)?t.map(Ug).join(""):pr(t)&&!PC(t)?Ug(t.children):Ti(t)?t.data:""}function mR(t){return Array.isArray(t)?t.map(mR).join(""):pr(t)&&(t.type===_t.Tag||Cm(t))?mR(t.children):Ti(t)?t.data:""}function Qm(t){return pr(t)?t.children:[]}function v8e(t){return t.parent||null}function xee(t){let e=v8e(t);if(e!=null)return Qm(e);let r=[t],{prev:A,next:s}=t;for(;A!=null;)r.unshift(A),{prev:A}=A;for(;s!=null;)r.push(s),{next:s}=s;return r}function L$t(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function v$t(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _$t(t){return t.name}function MP(t){let{next:e}=t;for(;e!==null&&!we(e);)({next:e}=e);return e}function LP(t){let{prev:e}=t;for(;e!==null&&!we(e);)({prev:e}=e);return e}function Mg(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function P$t(t,e){let r=e.prev=t.prev;r&&(r.next=e);let A=e.next=t.next;A&&(A.prev=e);let s=e.parent=t.parent;if(s){let n=s.children;n[n.lastIndexOf(t)]=e,t.parent=null}}function O$t(t,e){if(Mg(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function H$t(t,e){Mg(e);let{parent:r}=t,A=t.next;if(e.next=A,e.prev=t,t.next=e,e.parent=r,A){if(A.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(A),0,e)}}else r&&r.children.push(e)}function G$t(t,e){if(Mg(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Y$t(t,e){Mg(e);let{parent:r}=t;if(r){let A=r.children;A.splice(A.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function pm(t,e,r=!0,A=1/0){return vP(t,Array.isArray(e)?e:[e],r,A)}function vP(t,e,r,A){let s=[],n=[Array.isArray(e)?e:[e]],i=[0];for(;;){if(i[0]>=n[0].length){if(i.length===1)return s;n.shift(),i.shift();continue}let o=n[0][i[0]++];if(t(o)&&(s.push(o),--A<=0))return s;r&&pr(o)&&o.children.length>0&&(i.unshift(0),n.unshift(o.children))}}function q$t(t,e){return e.find(t)}function _P(t,e,r=!0){let A=Array.isArray(e)?e:[e];for(let s=0;s<A.length;s++){let n=A[s];if(we(n)&&t(n))return n;if(r&&pr(n)&&n.children.length>0){let i=_P(t,n.children,!0);if(i)return i}}return null}function _8e(t,e){return(Array.isArray(e)?e:[e]).some(r=>we(r)&&t(r)||pr(r)&&_8e(t,r.children))}function J$t(t,e){let r=[],A=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=A[0].length){if(A.length===1)return r;A.shift(),s.shift();continue}let n=A[0][s[0]++];we(n)&&t(n)&&r.push(n),pr(n)&&n.children.length>0&&(s.unshift(0),A.unshift(n.children))}}var PP={tag_name(t){return typeof t=="function"?e=>we(e)&&t(e.name):t==="*"?we:e=>we(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ti(e)&&t(e.data):e=>Ti(e)&&e.data===t}};function Uee(t,e){return typeof e=="function"?r=>we(r)&&e(r.attribs[t]):r=>we(r)&&r.attribs[t]===e}function V$t(t,e){return r=>t(r)||e(r)}function P8e(t){let e=Object.keys(t).map(r=>{let A=t[r];return Object.prototype.hasOwnProperty.call(PP,r)?PP[r](A):Uee(r,A)});return e.length===0?null:e.reduce(V$t)}function W$t(t,e){let r=P8e(t);return r?r(e):!0}function z$t(t,e,r,A=1/0){let s=P8e(t);return s?pm(s,e,r,A):[]}function j$t(t,e,r=!0){return Array.isArray(e)||(e=[e]),_P(Uee("id",t),e,r)}function OC(t,e,r=!0,A=1/0){return pm(PP.tag_name(t),e,r,A)}function K$t(t,e,r=!0,A=1/0){return pm(Uee("class",t),e,r,A)}function X$t(t,e,r=!0,A=1/0){return pm(PP.tag_type(t),e,r,A)}function Z$t(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let A=r.parent;A;A=A.parent)if(t.includes(A)){t.splice(e,1);break}}return t}var _a;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(_a||(_a={}));function O8e(t,e){let r=[],A=[];if(t===e)return 0;let s=pr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=pr(e)?e:e.parent;s;)A.unshift(s),s=s.parent;let n=Math.min(r.length,A.length),i=0;for(;i<n&&r[i]===A[i];)i++;if(i===0)return _a.DISCONNECTED;let o=r[i-1],a=o.children,c=r[i],u=A[i];return a.indexOf(c)>a.indexOf(u)?o===e?_a.FOLLOWING|_a.CONTAINED_BY:_a.FOLLOWING:o===t?_a.PRECEDING|_a.CONTAINS:_a.PRECEDING}function Jh(t){return t=t.filter((e,r,A)=>!A.includes(e,r+1)),t.sort((e,r)=>{let A=O8e(e,r);return A&_a.PRECEDING?-1:A&_a.FOLLOWING?1:0}),t}function Mee(t){let e=OP(Aer,t);return e?e.name==="feed"?$$t(e):eer(e):null}function $$t(t){var e;let r=t.children,A={type:"atom",items:OC("entry",r).map(i=>{var o;let{children:a}=i,c={media:H8e(a)};ki(c,"id","id",a),ki(c,"title","title",a);let u=(o=OP("link",a))===null||o===void 0?void 0:o.attribs.href;u&&(c.link=u);let l=Vh("summary",a)||Vh(" Line truncated
<td>${tie(t.rootProjectName,30)}</td>
<td>${tie(t.requestedTasks,60)}</td>
<td align='center'>${QGe(t.gradleVersion)}</td>
<td align='center'>${bGe(t)}</td>
<td>${wGe(t)}</td>
</tr>`}function QGe(t){let e=Zne(t);return e?`${t} ${e}`:t}function bGe(t){return t.buildFailed?":x:":":white_check_mark:"}function wGe(t){return t.buildScanFailed?f8({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?f8({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):f8({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function f8({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function tie(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function NGe(){let t=fg;if(t.payload.pull_request==null){pe("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;pe(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=nie(t),s=Uk(l8()),{owner:n,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
comments(last: 100) {
nodes { id body isMinimized url }
}
}
}
}
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return at(`Failed to fetch comments: ${u}`)}let A=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>pe(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>at(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function nie(t){return`<!-- gradle-job-summary: ${M1.constructJobCorrelator(t.workflow,t.job,u8())} -->`}var iie=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let s=new Array,n=r.split(this.keyDelimiter);for(let[i,o]of n.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,n.length,`no '${this.hostDelimiter}' separator`);let A=o.substring(0,a),c=o.substring(a+1);if(!A)return this.warnBadlyFormed(i,n.length,"empty server name");if(!c)return this.warnBadlyFormed(i,n.length,"empty key");if(this.whitespace.test(A))return this.warnBadlyFormed(i,n.length,"whitespace in the server name");if(this.whitespace.test(c))return this.warnBadlyFormed(i,n.length,"whitespace in the key");s.push({hostname:A,key:c})}return new t(s)}static warnBadlyFormed(e,r,s){let n=r>1?`entry ${e+1} of ${r}`:"the value";return at(`Ignoring badly formed Develocity access key: ${s} in ${n}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as Qi from"fs";import*as xA from"path";function oie(){return Aie().map(e=>{let r=Qi.readFileSync(e,"utf8"),s=JSON.parse(r);return xGe(e,s),s})}function aie(){Aie().forEach(RGe)}function Aie(){let t=xA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Qi.existsSync(t)?Qi.readdirSync(t).map(e=>xA.resolve(t,e)).filter(e=>xA.extname(e)===".json"&&!DGe(e)):[]}function xGe(t,e){let r=xA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Qi.existsSync(r))return;let s=xA.resolve(r,xA.basename(t));if(Qi.existsSync(s)){let n=Qi.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function DGe(t){let e=`${t}.processed`;return Qi.existsSync(e)}function RGe(t){let e=`${t}.processed`;Qi.writeFileSync(e,"")}import*as Gie from"fs";import*as Yie from"path";import{pathToFileURL as X9e}from"url";import*as wf from"fs";function p8(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,L(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,L(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,L(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,L(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,L(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as Y1 from"path";import*as Qf from"path";import ad from"assert";var $c=process.platform==="win32";function RA(t){if(t=DA(t),$c&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Qf.dirname(t);return $c&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=DA(e)),e}function _1(t,e){if(ad(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),ad(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),G0(e))return e;if($c){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return ad(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(po(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return ad(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return ad(G0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||$c&&t.endsWith("\\")||(t+=Qf.sep),t+e}function G0(t){return ad(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=po(t),$c?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Y0(t){return ad(t,"isRooted parameter 'itemPath' must not be empty"),t=po(t),$c?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function po(t){return t=t||"",$c?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function DA(t){return t?(t=po(t),!t.endsWith(Qf.sep)||t===Qf.sep||$c&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var mo;(function(t){t[t.None=0]=" Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new z0(i));return s.searchPaths.push(...E8(s.patterns)),s})}static stat(e,r,s){return N8(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield wf.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){L(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield wf.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield wf.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){L(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as S8 from"crypto";import*as q1 from"fs";import*as kie from"stream";import*as Fie from"util";import*as Mie from"path";var q9e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},J9e=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Uie(t,e){return q9e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?pe:L,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=S8.createHash("sha256"),f=0;try{for(var p=!0,E=J9e(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${Mie.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(q1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let w=S8.createHash("sha256");yield Fie.promisify(kie.pipeline)(q1.createReadStream(C),w),h.write(w.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Lie=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function V9e(t,e){return Lie(this,void 0,void 0,function*(){return yield G1.create(t,e)})}function vie(t){return Lie(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield V9e(e,{followSymbolicLinks:i});return Uie(o,r,n)})}import*as T8 from"path";var z9e="Gradle User Home",Pie="BASIC_CACHE_PRIMARY_KEY",Oie="BASIC_CACHE_RESTORED_KEY",K9e="setup-java",_ie=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],J1=class{async restore(e,r){let s=Hie(e),n=await j9e();jm(Pie,n);try{let i=await _ne(s,n);i?(jm(Oie,i),pe(`Basic caching restored from cache key: ${i}`)):pe("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){at(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=Sc(Pie),i=Sc(Oie);if(s.readOnly)return{status:"read-only",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return pe(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Hie(e);try{return await Hne(o,n)===-1?(at(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(pe(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return at(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:i?"Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${_ie}], make sure you have checked out the target repository`);return`${K9e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Z9e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",$9e="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",eYe="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",W1=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,s){return{status:this.status,entries:[]}}};async function qie(t){return t.getCacheProvider()==="external"?(V1(eYe),new W1("external")):t.isCacheDisabled()?(V1("Cache is disabled: will not restore state from previous builds."),new W1("disabled")):t.getCacheProvider()==="basic"?(V1($9e),new J1):(V1(Z9e),tYe())}function Jie(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function tYe(){let t=rYe();return await import(X9e(t).href)}function rYe(){let t=import.meta.dirname,e=Yie.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Gie.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function V1(t){console.info(t)}import*as jie from"util";var cYe=we(Kie(),1);import*as x8 from"fs";var ELt=jie.promisify(x8.readdir);var lYe={_useHtmlParser2:!1};function Nf(t,e){if(!t)return e??lYe;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var $8={};zi($8,{contains:()=>AN,extract:()=>iqe,html:()=>tqe,merge:()=>Coe,parseHTML:()=>sqe,root:()=>nqe,text:()=>md,xml:()=>rqe});var ou={};zi(ou,{DocumentPosition:()=>Si,append:()=>vYe,appendChild:()=>LYe,compareDocumentPosition:()=>foe,existsOne:()=>hoe,filter:()=>Rf,find:()=>nN,findAll:()=>HYe,findOne:()=>iN,findOneChild:()=>_Ye,getAttributeValue:()=>kYe,getChildren:()=>Df,getElementById:()=>JYe,getElements:()=>qYe,getElementsByClassName:()=>VYe,getElementsByTagName:()=>pd,getElementsByTagType:()=>WYe,getFeed:()=>Z8,getInnerHTML:()=>RYe,getName:()=>MYe,getOuterHTML:()=>loe,getParent:()=>doe,getSiblings:()=>j8,getText:()=>tN,hasAttrib:()=>FYe,hasChildren:()=>ht,innerText:()=>tC,isCDATA:()=>Sf,isComment:()=>fd,isDocument:()=>Ni,isTag:()=>te,isText:()=>Zs,nextElementSibling:()=>rN,prepend:()=>OYe,prependChild:()=>PYe,prevElementSibling:()=>sN,removeElement:()=>UA,removeSubsets:()=>zYe,replaceElement:()=>UYe,testElement:()=>YYe,textContent:()=>MA,uniqueSort:()=>nu});var wi={};zi(wi,{CDATA:()=>P8,Comment:()=>M8,Directive:()=>F8,Doctype:()=>O8,ElementType:()=>We,Root:()=>R8,Script:()=>U8,Style:()=>L8,Tag:()=>v8,Text:()=>k8,isTag:()=>D8});var We;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(We||(We={}));function D8(t){return t.type===We.Tag||t.type===We.Script||t.type===We.Style}var R8=We.Root,k8=We.Text,F8=We.Directive,M8=We.Comment,U8=We.Script,L8=We.Style,v8=We.Tag,P8=We.CDATA,O8=We.Doctype;var z1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Tf(this,e)}},X0=class extends z1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Ca=class extends X0{constructor(){super(...arguments),this.type=We.Text}get nodeType(){return 3}},dd=class extends X0{constructor(){super(...arguments),this.type=We.Comment}get nodeType(){return 8}},hd=class extends X0{constructor(e,r){super(r),this.name=e,this.type=We.Directive}get nodeType(){return 1}},Z0=class extends z1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},$0=class extends Z0{constructor(){super(...arguments),this.type=We.CDATA}get nodeType(){return 4}},vn=class extends Z0{constructor(){super(...arguments),this.type=We.Root}get nodeType(){return 9}},gd=class extends Z0{constructor(e,r,s=[],n=e==="script"?We.Script:e==="style"?We.Style:We.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){ret Line truncated
`:tN(t.children):Sf(t)?tN(t.children):Zs(t)?t.data:""}function MA(t){return Array.isArray(t)?t.map(MA).join(""):ht(t)&&!fd(t)?MA(t.children):Zs(t)?t.data:""}function tC(t){return Array.isArray(t)?t.map(tC).join(""):ht(t)&&(t.type===We.Tag||Sf(t))?tC(t.children):Zs(t)?t.data:""}function Df(t){return ht(t)?t.children:[]}function doe(t){return t.parent||null}function j8(t){let e=doe(t);if(e!=null)return Df(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function kYe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function FYe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function MYe(t){return t.name}function rN(t){let{next:e}=t;for(;e!==null&&!te(e);)({next:e}=e);return e}function sN(t){let{prev:e}=t;for(;e!==null&&!te(e);)({prev:e}=e);return e}function UA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function UYe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function LYe(t,e){if(UA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function vYe(t,e){UA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function PYe(t,e){if(UA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function OYe(t,e){UA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Rf(t,e,r=!0,s=1/0){return nN(t,Array.isArray(e)?e:[e],r,s)}function nN(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ht(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function _Ye(t,e){return e.find(t)}function iN(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(te(i)&&t(i))return i;if(r&&ht(i)&&i.children.length>0){let o=iN(t,i.children,!0);if(o)return o}}return null}function hoe(t,e){return(Array.isArray(e)?e:[e]).some(r=>te(r)&&t(r)||ht(r)&&hoe(t,r.children))}function HYe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];te(i)&&t(i)&&r.push(i),ht(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var oN={tag_name(t){return typeof t=="function"?e=>te(e)&&t(e.name):t==="*"?te:e=>te(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Zs(e)&&t(e.data):e=>Zs(e)&&e.data===t}};function X8(t,e){return typeof e=="function"?r=>te(r)&&e(r.attribs[t]):r=>te(r)&&r.attribs[t]===e}function GYe(t,e){return r=>t(r)||e(r)}function goe(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(oN,r)?oN[r](s):X8(r,s)});return e.length===0?null:e.reduce(GYe)}function YYe(t,e){let r=goe(t);return r?r(e):!0}function qYe(t,e,r,s=1/0){let n=goe(t);return n?Rf(n,e,r,s):[]}function JYe(t,e,r=!0){return Array.isArray(e)||(e=[e]),iN(X8("id",t),e,r)}function pd(t,e,r=!0,s=1/0){return Rf(oN.tag_name(t),e,r,s)}function VYe(t,e,r=!0,s=1/0){return Rf(X8("class",t),e,r,s)}function WYe(t,e,r=!0,s=1/0){return Rf(oN.tag_type(t),e,r,s)}function zYe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Si;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Si||(Si={}));function foe(t,e){let r=[],s=[];if(t===e)return 0;let n=ht(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ht(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Si.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Si.FOLLOWING|Si.CONTAINED_BY:Si.FOLLOWING:a===t?Si.PRECEDING|Si.CONTAINS:Si.PRECEDING}function nu(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=foe(e,r);return s&Si.PRECEDING?-1:s&Si.FOLLOWING?1:0}),t}function Z8(t){let e=aN($Ye,t);return e?e.name==="feed"?KYe(e):jYe(e):null}function KYe(t){var e;let r=t.children,s={type:"atom",items:pd("entry",r).map(o=>{var a;let{children:A}=o,c={media:poe(A)};$s(c,"id","id",A),$s(c,"title","title",A);let u=(a=aN("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=iu("summary",A)||iu("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ha=zt(zh(),1);var Zee={};function $ee(t,e){return t===Ha.default.falseFunc?Ha.default.falseFunc:r=>e.isTag(r)&&t(r)}function ete(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let A=r.indexOf(t);return A<0||A===r.length-1?[]:r.slice(A+1).filter(e.isTag)}function Xee(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Kee=(t,e,r,A,s)=>{let n=s(e,Xee(r),A);return n===Ha.default.trueFunc?t:n===Ha.default.falseFunc?Ha.default.falseFunc:i=>n(i)&&t(i)},$P={is:Kee,matches:Kee,where:Kee,not(t,e,r,A,s){let n=s(e,Xee(r),A);return n===Ha.default.falseFunc?t:n===Ha.default.trueFunc?Ha.default.falseFunc:i=>!n(i)&&t(i)},has(t,e,r,A,s){let{adapter:n}=r,i=Xee(r);i.relativeSelector=!0;let o=e.some(u=>u.some(SR))?[Zee]:void 0,a=s(e,i,o);if(a===Ha.default.falseFunc)return Ha.default.falseFunc;let c=$ee(a,n);if(o&&a!==Ha.default.trueFunc){let{shouldTestNextSiblings:u=!1}=a;return l=>{if(!t(l))return!1;o[0]=l;let g=n.getChildren(l),d=u?[...g,...ete(l,n)]:g;return n.existsOne(c,d)}}return u=>t(u)&&n.existsOne(c,n.getChildren(u))}};function S3e(t,e,r,A,s){var n;let{name:i,data:o}=e;if(Array.isArray(o)){if(!(i in $P))throw new Error(`Unknown pseudo-class :${i}(${o})`);return $P[i](t,o,r,A,s)}let a=(n=r.pseudos)===null||n===void 0?void 0:n[i],c=typeof a=="string"?a:ZP[i];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);let u=(0,R3e.parse)(c);return $P.is(t,u,r,A,s)}if(typeof a=="function")return jee(a,i,o,1),u=>a(u,o)&&t(u);if(i in Tm)return Tm[i](t,o,r,A);if(i in kR){let u=kR[i];return jee(u,i,o,2),l=>u(l,r,o)&&t(l)}throw new Error(`Unknown pseudo-class :${i}`)}var Ga=zt(Rm(),1);function tte(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function T3e(t,e,r,A,s){let{adapter:n,equals:i}=r;switch(e.type){case Ga.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ga.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ga.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),b3e[e.action](t,e,r)}case Ga.SelectorType.Pseudo:return S3e(t,e,r,A,s);case Ga.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return n.getName(c)===o&&t(c)}}case Ga.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=tte(u,n);)if(t(u))return!0;return!1};let o=new WeakSet;return function(c){let u=c;for(;u=tte(u,n);)if(!o.has(u)){if(n.isTag(u)&&t(u))return!0;o.add(u)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=tte(c,n));return!1};case Ga.SelectorType.Parent:return function(a){return n.getChildren(a).some(c=>n.isTag(c)&&t(c))};case Ga.SelectorType.Child:return function(a){let c=n.getParent(a);return c!=null&&n.isTag(c)&&t(c)};case Ga.SelectorType.Sibling:return function(a){let c=n.getSiblings(a);for(let u=0;u<c.length;u++){let l=c[u];if(i(a,l))break;if(n.isTag(l)&&t(l))return!0}return!1};case Ga.SelectorType.Adjacent:return n.prevElementSibling?function(a){let c=n.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=n.getSiblings(a),u;for(let l=0;l<c.length;l++){let g=c[l];if(i(a,g))break;n.isTag(g)&&(u=g)}return!!u&&t(u)};case Ga.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function k3e(t,e,r){let A=eO(t,e,r);return $ee(A,e.adapter)}function eO(t,e,r){let A=typeof t=="string"?(0,Oc.parse)(t):t;return tO(A,e,r)}function F3e(t){return t.type===Oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(F3e)))}var zer={type:Oc.SelectorType.Descendant},jer={type:"_flexibleDescendant"},Ker={type:Oc.SelectorType.Pseudo,name:"scope",data:null};function Xer(t,{adapter:e},r){let A=!!r?.every(s=>{let n=e.isTag(s)&&e.getParent(s);return s===Z Line truncated
`)})):{name:s,value:n.replace(z3e,`\r
`)}}).toArray()}var Cte={};nc(Cte,{extract:()=>grr});function lrr(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function grr(t){let e={};for(let r in t){let A=t[r],s=Array.isArray(A),{selector:n,value:i}=lrr(s?A[0]:A),o=typeof i=="function"?i:typeof i=="string"?a=>this._make(a).prop(i):a=>this._make(a).extract(i);if(s)e[r]=this._findBySelector(n,Number.POSITIVE_INFINITY).map((a,c)=>o(c,r,e)).get();else{let a=this._findBySelector(n,1);e[r]=a.length>0?o(a[0],r,e):void 0}}return e}var Xh=class{constructor(e,r,A){if(this.length=0,this.options=A,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Xh.prototype.cheerio="[cheerio object]";Xh.prototype.splice=Array.prototype.splice;Xh.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Xh.prototype,qee,dte,hte,Ete,fte,Cte);function j3e(t,e){return function r(A,s,n=!0){if(A==null)throw new Error("cheerio.load() expects a string");let i=fm(s),o=t(A,i,n,null);class a extends Xh{_make(l,g){let d=c(l,g);return d.prevObject=this,d}_parse(l,g,d,E){return t(l,g,d,E)}_render(l){return e(l,this.options)}}function c(u,l,g=o,d){if(u&&Pa(u))return u;let E=fm(d,i),C=typeof g=="string"?[t(g,E,!1,null)]:"length"in g?g:[g],Q=Pa(C)?C:new a(C,null,E);if(Q._root=Q,!u)return new a(void 0,Q,E);let I=typeof u=="string"&&yR(u)?t(u,E,!1,null).children:drr(u)?[u]:Array.isArray(u)?u:void 0,p=new a(I,Q,E);if(I)return p;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,k=l?typeof l=="string"?yR(l)?new a([t(l,E,!1,null)],Q,E):(w=`${l} ${w}`,Q):Pa(l)?l:new a(Array.isArray(l)?l:[l],Q,E):Q;return k?k.find(w):p}return Object.assign(c,Lee,{load:r,_root:o,_options:i,fn:a.prototype,prototype:a.prototype}),c}}function drr(t){return!!t.name||t.type===La.Root||t.type===La.Text||t.type===La.Comment}var hrr=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),vr="\uFFFD",R;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(R||(R={}));var Yn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function oO(t){return t>=55296&&t<=57343}function K3e(t){return t>=56320&&t<=57343}function X3e(t,e){return(t-55296)*1024+9216+e}function aO(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function cO(t){return t>=64976&&t<=65007||hrr.has(t)}var q;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-pub Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Di=we(au(),1);var f4={};function p4(t,e){return t===Di.default.falseFunc?Di.default.falseFunc:r=>e.isTag(r)&&t(r)}function m4(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function g4(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var h4=(t,e,r,s,n)=>{let i=n(e,g4(r),s);return i===Di.default.trueFunc?t:i===Di.default.falseFunc?Di.default.falseFunc:o=>i(o)&&t(o)},IN={is:h4,matches:h4,where:h4,not(t,e,r,s,n){let i=n(e,g4(r),s);return i===Di.default.falseFunc?t:i===Di.default.trueFunc?Di.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=g4(r);o.relativeSelector=!0;let a=e.some(u=>u.some(AC))?[f4]:void 0,A=n(e,o,a);if(A===Di.default.falseFunc)return Di.default.falseFunc;let c=p4(A,i);if(a&&A!==Di.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...m4(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function nae(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in IN))throw new Error(`Unknown pseudo-class :${o}(${a})`);return IN[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:CN[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,sae.parse)(c);return IN.is(t,u,r,s,n)}if(typeof A=="function")return d4(A,o,a,1),u=>A(u,a)&&t(u);if(o in _f)return _f[o](t,a,r,s);if(o in uC){let u=uC[o];return d4(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Ri=we(Pf(),1);function E4(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function iae(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Ri.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ri.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ri.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),$oe[e.action](t,e,r)}case Ri.SelectorType.Pseudo:return nae(t,e,r,s,n);case Ri.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Ri.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=E4(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=E4(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=E4(c,i));return!1};case Ri.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Ri.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Ri.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Ri.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Ri.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function oae(t,e,r){let s=BN(t,e,r);return p4(s,e.adapter)}function BN(t,e,r){let s=typeof t=="string"?(0,Co.parse)(t):t;return yN(s,e,r)}function aae(t){return t.type===Co.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(aae)))}var qqe={type:Co.SelectorType.Descendant},Jqe={type:"_flexibleDescendant"},Vqe={type:Co.SelectorType.Pseudo,name:"scope",data:null};function Wqe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===f4||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Qae,`\r
`)}}).toArray()}var M4={};zi(M4,{extract:()=>AVe});function aVe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function AVe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=aVe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var uu=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};uu.prototype.cheerio="[cheerio object]";uu.prototype.splice=Array.prototype.splice;uu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(uu.prototype,a4,D4,R4,k4,F4,M4);function bae(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Nf(n),a=t(s,o,i,null);class A extends uu{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Ti(u))return u;let f=Nf(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=Ti(p)?p:new A(p,null,f);if(E._root=E,!u)return new A(void 0,E,f);let m=typeof u=="string"&&rC(u)?t(u,f,!1,null).children:cVe(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,E,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,T=l?typeof l=="string"?rC(l)?new A([t(l,f,!1,null)],E,f):(w=`${l} ${w}`,E):Ti(l)?l:new A(Array.isArray(l)?l:[l],E,f):E;return T?T.find(w):C}return Object.assign(c,$8,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function cVe(t){return!!t.name||t.type===wi.Root||t.type===wi.Text||t.type===wi.Comment}var uVe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Bt="\uFFFD",y;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(y||(y={}));var bs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function TN(t){return t>=55296&&t<=57343}function wae(t){return t>=56320&&t<=57343}function Nae(t,e){return(t-55296)*1024+9216+e}function xN(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function DN(t){return t>=64976&&t<=65007||uVe.has(t)}var F;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine 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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+189 -336
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var fMt=Object.create;var LP=Object.defineProperty;var pMt=Object.getOwnPropertyDescriptor;var mMt=Object.getOwnPropertyNames;var EMt=Object.getPrototypeOf,CMt=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var IMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},lTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of mMt(e))!CMt.call(t,s)&&s!==r&&LP(t,s,{get:()=>e[s],enumerable:!(n=pMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?fMt(EMt(t)):{},lTe(e||!t||!t.__esModule?LP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>lTe(LP({},"__esModule",{value:!0}),t);var ETe=f($y=>{"use strict";var Syn=B("net"),NMt=B("tls"),$K=B("http"),fTe=B("https"),SMt=B("events"),Ryn=B("assert"),RMt=B("util");$y.httpOverHttp=DMt;$y.httpsOverHttp=xMt;$y.httpOverHttps=TMt;$y.httpsOverHttps=kMt;function DMt(t){var e=new Pf(t);return e.request=$K.request,e}function xMt(t){var e=new Pf(t);return e.request=$K.request,e.createSocket=pTe,e.defaultPort=443,e}function TMt(t){var e=new Pf(t);return e.request=fTe.request,e}function kMt(t){var e=new Pf(t);return e.request=fTe.request,e.createSocket=pTe,e.defaultPort=443,e}function Pf(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=mTe(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}RMt.inherits(Pf,SMt.EventEmitter);Pf.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,mTe(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Pf.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Gm("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Gm("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Gm("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Gm("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Gm(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Pf.prototype.removeSocket=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)})}};function pTe(t,e){var r=this;Pf.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=NMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function mTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Gm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Gm=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)}:Gm=function(){};$y.debug=Gm});var qP=f((xyn,CTe)=>{CTe.exports=ETe()});var ps=f((Tyn,ITe)=>{ITe.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 tn=f((kyn,YTe)=>{"use strict";var BTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[BTe]===!0}[BTe]=!0},QTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{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[QTe]===!0}[QTe]=!0},yTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{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[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{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[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zLt(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(kLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jLt(){return"allowed"}function KLt(){return"success"}function XLt(){return"success"}function ZLt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function $Lt(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&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":c_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cb(t,e){return t}function eUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cb(t.domainLookupStartTime,r),domainLookupEndTime:cb(t.domainLookupEndTime,r),connectionStartTime:cb(t.connectionStartTime,r),connectionEndTime:cb(t.connectionEndTime,r),secureConnectionStartTime:cb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function tUt(t){return cb(ULt.now(),t)}function rUt(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}}function ike(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nUt(t){return{referrerPolicy:t.referrerPolicy}}function sUt(t){let e=t.referrerPolicy;oB(e);let r=null;if(t.referrer==="client"){let a=$1e();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=c_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=PT(t);return c_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return oB(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)}function UT(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"))}}function iUt(t,e){if(A_===void 0)return!0;let r=oke(e);if(r==="no metadata"||r.length===0)return!0;let n=aUt(r),s=AUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=A_.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),cUt(A,a))return!0}return!1}var oUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oke(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=oUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();tke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function aUt(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}function AUt(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}function cUt(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}function uUt(t){}function c_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function lUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function dUt(t){return t.controller.state==="aborted"}function hUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function gUt(t){return OLt[t.toLowerCase()]??t}function fUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return oB(typeof e=="string"),e}var pUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ake(t,e,r=0,n=1){class s{ Line truncated
`);function VUt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function WUt(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}function zUt(t,e){l_(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&d_(t,YUt,i)||i.position===t.length-4&&d_(t,JUt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=jUt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",VUt(u)||(u=""),h=new qUt([d],c,{type:u})):h=UUt(Buffer.from(d)),l_(Cke(A)),l_(typeof h=="string"&&Cke(h)||_Ut(h)),s.push(OUt(A,h,c))}}function jUt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=lb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!PUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,lb(a=>a===32||a===9,t,e),LUt(o)){case"content-disposition":{if(r=n=null,!d_(t,GUt,e)||(e.position+=17,r=Qke(t,e),r===null))return"failure";if(d_(t,Bke,e)){let a=e.position+Bke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Qke(t,e),n===null))return"failure"}break}case"content-type":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Ike(a);break}case"content-transfer-encoding":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Ike(a);break}default:lb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Qke(t,e){l_(t[e.position-1]===34);let r=lb(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)}function lb(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function d_(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}yke.exports={multipartFormDataParser:zUt,validateBoundary:WUt}});var gb=f((nbn,Mke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:KUt,isBlobLike:wke,isReadableStreamLike:XUt,readableStreamClose:ZUt,createDeferredPromise:$Ut,fullyReadBody:ePt,extractMimeType:tPt,utf8DecodeBytes:Rke}=Qc(),{FormData:Nke}=OT(),{kState:hb}=Ym(),{webidl:rPt}=Oo(),{Blob:nPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Dke,isDisturbed:sPt}=B("node:stream"),{isArrayBuffer:iPt}=B("node:util/types"),{serializeAMimeType:oPt}=yA(),{multipartFormDataParser:aPt}=bke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var h_=new TextEncoder;function APt(){}var xke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Tke;xke&&(Tke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sPt(e)&&!Dke(e)&&e.cancel("Response object has been garbage collected").catch(APt)}));function kke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:wke(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?h_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>ZUt(A))},start(){},type:"bytes"}),rZ(XUt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(iPt(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(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=h_.encode(c+`; name="${u(l(C))}"\r
var sHe=Object.create;var jU=Object.defineProperty;var iHe=Object.getOwnPropertyDescriptor;var oHe=Object.getOwnPropertyNames;var aHe=Object.getPrototypeOf,cHe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},gc=(t,e)=>{for(var r in e)jU(t,r,{get:e[r],enumerable:!0})},AHe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of oHe(e))!cHe.call(t,s)&&s!==r&&jU(t,s,{get:()=>e[s],enumerable:!(n=iHe(e,s))||n.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?sHe(aHe(t)):{},AHe(e||!t||!t.__esModule?jU(r,"default",{value:t,enumerable:!0}):r,t));var jte=C(c0=>{"use strict";var Xzt=Q("net"),gHe=Q("tls"),$U=Q("http"),Jte=Q("https"),pHe=Q("events"),Zzt=Q("assert"),mHe=Q("util");c0.httpOverHttp=EHe;c0.httpsOverHttp=CHe;c0.httpOverHttps=IHe;c0.httpsOverHttps=yHe;function EHe(t){var e=new el(t);return e.request=$U.request,e}function CHe(t){var e=new el(t);return e.request=$U.request,e.createSocket=Wte,e.defaultPort=443,e}function IHe(t){var e=new el(t);return e.request=Jte.request,e}function yHe(t){var e=new el(t);return e.request=Jte.request,e.createSocket=Wte,e.defaultPort=443,e}function el(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$U.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=zte(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}mHe.inherits(el,pHe.EventEmitter);el.prototype.addRequest=function(e,r,n,s){var i=this,o=eP({request:e},i.options,zte(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};el.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eP({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),kd("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){kd("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){kd("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return kd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kd(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};el.prototype.removeSocket=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)})}};function Wte(t,e){var r=this;el.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eP({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=gHe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function zte(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eP(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var kd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kd=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)}:kd=function(){};c0.debug=kd});var tP=C((ejt,Kte)=>{Kte.exports=jte()});var vr=C((tjt,Xte)=>{Xte.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 Vt=C((rjt,Bre)=>{"use strict";var Zte=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Zte]===!0}[Zte]=!0},$te=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),rP=class extends Fr{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[$te]===!0}[$te]=!0},ere=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),nP=class extends Fr{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[ere]===!0}[ere]=!0},tre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sP=class extends Fr{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[tre]===!0}[tre]=!0},rre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),iP=class extends Fr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[rre]===!0}[rre]=!0},nre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),oP=class extends Fr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function LGe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(yGe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function UGe(){return"allowed"}function PGe(){return"success"}function OGe(){return"success"}function HGe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function GGe(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&&XP(t.origin)&&!XP(rB(t))&&(e=null);break;case"same-origin":ZN(t,rB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function E0(t,e){return t}function qGe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:E0(t.domainLookupStartTime,r),domainLookupEndTime:E0(t.domainLookupEndTime,r),connectionStartTime:E0(t.connectionStartTime,r),connectionEndTime:E0(t.connectionEndTime,r),secureConnectionStartTime:E0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function YGe(t){return E0(SGe.now(),t)}function VGe(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}}function _ne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function JGe(t){return{referrerPolicy:t.referrerPolicy}}function WGe(t){let e=t.referrerPolicy;jf(e);let r=null;if(t.referrer==="client"){let a=Rne();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=KP(r),s=KP(r,!0);n.toString().length>4096&&(n=s);let i=ZN(t,n),o=tB(n)&&!tB(t.url);switch(e){case"origin":return s??KP(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=rB(t);return ZN(n,a)?n:tB(n)&&!tB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function KP(t,e){return jf(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)}function tB(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"))}}function zGe(t,e){if(XN===void 0)return!0;let r=Lne(e);if(r==="no metadata"||r.length===0)return!0;let n=KGe(r),s=XGe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=XN.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),ZGe(c,a))return!0}return!1}var jGe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Lne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=jGe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();kne.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function KGe(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}function XGe(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}function ZGe(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}function $Ge(t){}function ZN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function e9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function t9e(t){return t.controller.state==="aborted"}function r9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function n9e(t){return xGe[t.toLowerCase()]??t}function s9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return jf(typeof e=="string"),e}var i9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Une(t,e,r=0,n=1){class s{ Line truncated
`);function M9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function _9e(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}function L9e(t,e){eT(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&tT(t,v9e,i)||i.position===t.length-4&&tT(t,F9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=U9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",M9e(u)||(u=""),h=new D9e([d],A,{type:u})):h=S9e(Buffer.from(d)),eT(Kne(c)),eT(typeof h=="string"&&Kne(h)||T9e(h)),s.push(x9e(c,h,A))}}function U9e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=I0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sO(o,!0,!0,a=>a===9||a===32),!N9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,I0(a=>a===32||a===9,t,e),w9e(o)){case"content-disposition":{if(r=n=null,!tT(t,k9e,e)||(e.position+=17,r=$ne(t,e),r===null))return"failure";if(tT(t,Zne,e)){let a=e.position+Zne.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=$ne(t,e),n===null))return"failure"}break}case"content-type":{let a=I0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),s=Xne(a);break}case"content-transfer-encoding":{let a=I0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),i=Xne(a);break}default:I0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function $ne(t,e){eT(t[e.position-1]===34);let r=I0(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)}function I0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function sO(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function tT(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}ese.exports={multipartFormDataParser:L9e,validateBoundary:_9e}});var b0=C((Njt,lse)=>{"use strict";var iB=Ct(),{ReadableStreamFrom:P9e,isBlobLike:rse,isReadableStreamLike:O9e,readableStreamClose:H9e,createDeferredPromise:G9e,fullyReadBody:q9e,extractMimeType:Y9e,utf8DecodeBytes:ise}=ao(),{FormData:nse}=sB(),{kState:B0}=vd(),{webidl:V9e}=fs(),{Blob:J9e}=Q("node:buffer"),iO=Q("node:assert"),{isErrored:ose,isDisturbed:W9e}=Q("node:stream"),{isArrayBuffer:z9e}=Q("node:util/types"),{serializeAMimeType:j9e}=Qi(),{multipartFormDataParser:K9e}=tse(),oO;try{let t=Q("node:crypto");oO=e=>t.randomInt(0,e)}catch{oO=t=>Math.floor(Math.random(t))}var rT=new TextEncoder;function X9e(){}var ase=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,cse;ase&&(cse=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!W9e(e)&&!ose(e)&&e.cancel("Response object has been garbage collected").catch(X9e)}));function Ase(t,e=!1){let r=null;t instanceof ReadableStream?r=t:rse(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?rT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>H9e(c))},start(){},type:"bytes"}),iO(O9e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(z9e(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(iB.isFormDataLike(t)){let c=`----formdata-undici-0${`${oO(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=rT.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=h_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=rT.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=h_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(wke(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:KUt(t)}if((typeof s=="string"||HT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Dke(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function cPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),kke(t,e)}function uPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dPt(t){return{blob(){return db(this,r=>{let n=Ske(this);return n===null?n="":n&&(n=oPt(n)),new nPt([r],{type:n})},t)},arrayBuffer(){return db(this,r=>new Uint8Array(r).buffer,t)},text(){return db(this,Rke,t)},json(){return db(this,gPt,t)},formData(){return db(this,r=>{let n=Ske(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Nke;return i[hb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Nke;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return db(this,r=>new Uint8Array(r),t)}}}function hPt(t){Object.assign(t.prototype,dPt(t))}async function db(t,e,r){if(rPt.brandCheck(t,r),Fke(t))throw new TypeError("Body is unusable: Body has already been read");lPt(t[hb]);let n=$Ut(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[hb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await ePt(t[hb].body,i,s),n.promise)}function Fke(t){let e=t[hb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function gPt(t){return JSON.parse(Rke(t))}function Ske(t){let e=t[hb].headersList,r=tPt(e);return r==="failure"?null:r}Mke.exports={extractBody:kke,safelyExtractBody:cPt,cloneBody:uPt,mixinBody:hPt,streamRegistry:Tke,hasFinalizationRegistry:xke,bodyUnusable:Fke}});var Jke=f((sbn,Yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:vke}=tb(),sZ=_X(),{RequestContentLengthMismatchError:aB,ResponseContentLengthMismatchError:fPt,RequestAbortedError:Hke,HeadersTimeoutError:pPt,HeadersOverflowError:mPt,SocketError:C_,InformationalError:fb,BodyTimeoutError:EPt,HTTPParserError:CPt,ResponseExceededMaxSizeError:IPt}=tn(),{kUrl:qke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:BPt,kSize:Lke,kWriting:Vm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:QPt,kHostHeader:yPt,kPendingIdx:bPt,kRunningIdx:ku,kError:Fu,kPipelining:m_,kSocket:pb,kKeepAliveTimeoutValue:I_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:wPt,kKeepAliveTimeoutThreshold:NPt,kHeadersTimeout:SPt,kBodyTimeout:RPt,kStrictContentLength:cZ,kMaxRequests:Uke,kCounter:DPt,kMaxResponseSize:xPt,kOnError:TPt,kResume:Jm,kHTTPContext:Gke}=ps(),Qh=T1e(),kPt=Buffer.alloc(0),g_=Buffer[Symbol.species],f_=Yt.addListener,FPt=Yt.removeAllListeners,oZ;async function MPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(M1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onStatus(new g_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderField(new g_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderValue(new g_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onBody(new g_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var aZ=null,uZ=MPt();uZ.catch();var Hi=null,yh=null,p_=0,bh=null,vPt=0,GT=1,mb=2|GT,E_=4|GT,lZ=8|vPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[yPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=rT.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(rse(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:P9e(t)}if((typeof s=="string"||iB.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!ose(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function Z9e(t,e=!1){return t instanceof ReadableStream&&(iO(!iB.isDisturbed(t),"The body has already been consumed."),iO(!t.locked,"The stream is locked.")),Ase(t,e)}function $9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function eqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function tqe(t){return{blob(){return y0(this,r=>{let n=sse(this);return n===null?n="":n&&(n=j9e(n)),new J9e([r],{type:n})},t)},arrayBuffer(){return y0(this,r=>new Uint8Array(r).buffer,t)},text(){return y0(this,ise,t)},json(){return y0(this,nqe,t)},formData(){return y0(this,r=>{let n=sse(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=K9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new nse;return i[B0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new nse;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return y0(this,r=>new Uint8Array(r),t)}}}function rqe(t){Object.assign(t.prototype,tqe(t))}async function y0(t,e,r){if(V9e.brandCheck(t,r),use(t))throw new TypeError("Body is unusable: Body has already been read");eqe(t[B0]);let n=G9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[B0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await q9e(t[B0].body,i,s),n.promise)}function use(t){let e=t[B0].body;return e!=null&&(e.stream.locked||iB.isDisturbed(e.stream))}function nqe(t){return JSON.parse(ise(t))}function sse(t){let e=t[B0].headersList,r=Y9e(e);return r==="failure"?null:r}lse.exports={extractBody:Ase,safelyExtractBody:Z9e,cloneBody:$9e,mixinBody:rqe,streamRegistry:cse,hasFinalizationRegistry:ase,bodyUnusable:use}});var Nse=C((Tjt,Sse)=>{"use strict";var Pe=Q("node:assert"),qe=Ct(),{channels:dse}=u0(),aO=GP(),{RequestContentLengthMismatchError:Kf,ResponseContentLengthMismatchError:hse,RequestAbortedError:yse,InvalidArgumentError:sqe,HeadersTimeoutError:iqe,HeadersOverflowError:oqe,SocketError:Q0,InformationalError:w0,BodyTimeoutError:aqe,HTTPParserError:cqe,ResponseExceededMaxSizeError:Aqe}=Vt(),{kUrl:Bse,kReset:wi,kClient:oT,kParser:Ir,kBlocking:cB,kRunning:In,kPending:bse,kSize:fse,kWriting:Fd,kQueue:mc,kNoRef:oB,kKeepAliveDefaultTimeout:uqe,kHostHeader:lqe,kPendingIdx:dqe,kRunningIdx:aa,kError:Ks,kPipelining:aT,kSocket:Xf,kKeepAliveTimeoutValue:AT,kMaxHeadersSize:cO,kKeepAliveMaxTimeout:hqe,kKeepAliveTimeoutThreshold:fqe,kHeadersTimeout:gqe,kBodyTimeout:pqe,kStrictContentLength:lO,kMaxRequests:gse,kCounter:mqe,kMaxResponseSize:Eqe,kOnError:pse,kResume:ol,kHTTPContext:Qse}=vr(),co=cne(),mse=Buffer.alloc(0),nT=Buffer[Symbol.species],sT=qe.addListener,Cqe=qe.removeAllListeners,Zf=Symbol("kIdleSocketValidation"),S0=Symbol("kIdleSocketValidationTimeout"),gO=Symbol("kSocketUsed"),AO;async function Iqe(){let t=process.env.JEST_WORKER_ID?VP():void 0,e;try{e=await WebAssembly.compile(lne())}catch{e=await WebAssembly.compile(t||VP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onStatus(new nT(hA.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(jr.ptr===r),jr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onHeaderField(new nT(hA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onHeaderValue(new nT(hA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(jr.ptr===r),jr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onBody(new nT(hA.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(jr.ptr===r),jr.onMessageComplete()||0)}})}var uO=null,dO=Iqe();dO.catch();var jr=null,hA=null,iT=0,fA=null,yqe=0,aB=1,N0=2|aB,cT=4|aB,hO=8|yqe,fO=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[cO])&&e[cO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[lqe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[m_]&&!h[bA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return vke.sendHeaders.hasSubscribers&&vke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?_ke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?_ke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Oke(g,A.stream(),t,e,h,u,p,l):HPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?OPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Oke(g,A,t,e,h,u,p,l):xt(!1),!0}function OPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Hke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Vm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function _ke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Jm]()}catch(A){t(A)}}async function HPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new aB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Jm]()}catch(A){t(A)}}async function Oke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var B_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new aB;process.emitWarning(new aB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===mb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[cZ])throw new aB;process.emitWarning(new aB)}e[Js].timeout&&e[Js].timeoutType===mb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Jm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Yke.exports=LPt});var $ke=f((ibn,Zke)=>{"use strict";var Mu=B("node:assert"),{pipeline:qPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:Vke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:Q_,kReset:b_,kClient:Eb,kRunning:w_,kPending:GPt,kQueue:Wm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:YPt,kOnError:pZ,kMaxConcurrentStreams:Xke,kHTTP2Session:ud,kResume:zm,kSize:JPt,kHTTPContext:VPt}=ps(),Yf=Symbol("open streams"),Wke,zke=!1,y_;try{y_=B("node:http2")}catch{y_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:WPt,HTTP2_HEADER_METHOD:zPt,HTTP2_HEADER_PATH:jPt,HTTP2_HEADER_SCHEME:KPt,HTTP2_HEADER_CONTENT_LENGTH:XPt,HTTP2_HEADER_EXPECT:ZPt,HTTP2_HEADER_STATUS:$Pt}}=y_;function e_t(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}async function t_t(t,e){t[oo]=e,zke||(zke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=y_.connect(t[Q_],{createConnection:()=>e,peerMaxConcurrentStreams:t[Xke]});r[Yf]=0,r[Eb]=t,r[oo]=e,wr.addListener(r,"error",n_t),wr.addListener(r,"frameError",s_t),wr.addListener(r,"end",i_t),wr.addListener(r,"goaway",o_t),wr.addListener(r,"close",function(){let{[Eb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[GPt]===0);let a=s[Wm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Eb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[w_]===0),t.emit("disconnect",t[Q_],[t],s),t[zm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return A_t(t,...s)},resume(){r_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function r_t(t){let e=t[oo];e?.destroyed===!1&&(t[JPt]===0&&t[Xke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function n_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Eb][pZ](t)}function s_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Eb][pZ](n)}}function i_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function o_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Eb];if(r[oo]=null,r[VPt]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[Wm].length){let n=r[Wm][r[cd]];r[Wm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[w_]===0),r.emit("disconnect",r[Q_],[r],e),r[zm]()}function a_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function A_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[Q_];l[WPt]=i||`${h}${g?`:${g}`:""}`,l[zPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new Vke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Wm][t[cd]++]=null,t[zm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Yf],t[Wm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Yf],t[Wm][t[cd]++]=null}),d.once("close",()=>{r[Yf]-=1,r[Yf]===0&&r.unref()}),!0;l[jPt]=s,l[KPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Wke??=gb().extractBody;let[w,H]=Wke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),a_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[YPt])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[XPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[ZPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[M_t]=A??3e5,this[F_t]=s??3e5,this[v_t]=I??!0,this[L_t]=w,this[IZ]=z,this[Km]=null,this[H_t]=W>-1?W:-1,this[G_t]=oe??100,this[fi]=null,this[dd]=[],this[Vf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[q_t]=he=>l2e(this,he)}get pipelining(){return this[D_]}set pipelining(e){this[D_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Vf]}get[KT](){return this[dd].length-this[Vf]}get[N_t](){return!!this[fi]&&!this[Ib]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(u2e(this)||1)||this[ZT]>0)}[w_t](e){d2e(this),this.once("connect",e)}[O_t](e,r){let n=e.origin||this[Nh].origin,s=new C_t(n,e,r);return this[dd].push(s),this[cB]||(AB.bodyLength(s.body)==null&&AB.isIterable(s.body)?(this[cB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[cB]&&this[Xm]!==2&&this[CZ]&&(this[Xm]=2),this[Xm]<2}async[P_t](){return new Promise(e=>{this[KT]?this[Km]=e:e(null)})}async[__t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];AB.errorRequest(this,o,e)}let s=()=>{this[Km]&&(this[Km](),this[Km]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},V_t=R_();function l2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jf(t[hd]===t[Vf]);let r=t[dd].splice(t[Vf]);for(let n=0;n<r.length;n++){let s=r[n];AB.errorRequest(t,s,e)}Jf(t[KT]===0)}}async function d2e(t){Jf(!t[Ib]),Jf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Jf(i!==-1);let o=r.substring(1,i);Jf(c2e.isIP(o)),r=o}t[Ib]=!0,Cb.beforeConnect.hasSubscribers&&Cb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[jm],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){AB.destroy(i.on("error",a2e),new Q_t);return}Jf(i);try{t[fi]=i.alpnProtocol==="h2"?await J_t(t,i):await Y_t(t,i)}catch(o){throw i.destroy().on("error",a2e),o}t[Ib]=!1,i[U_t]=0,i[IZ]=t[IZ],i[b_t]=t,i[R_t]=null,Cb.connected.hasSubscribers&&Cb.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Ib]=!1,Cb.connectError.hasSubscribers&&Cb.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[jm];){let o=t[dd][t[hd]++];AB.errorRequest(t,o,i)}else l2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function A2e(t){t[Xm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[cB]!==2&&(t[cB]=2,W_t(t,e),t[cB]=0,t[Vf]>256&&(t[dd].splice(0,t[Vf]),t[hd]-=t[Vf],t[Vf]=0))}function W_t(t,e){for(;;){if(t.destroyed){Jf(t[ZT]===0);return}if(t[Km]&&!t[KT]){t[Km](),t[Km]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Xm]=2;else if(t[Xm]===2){e?(t[Xm]=1,queueMicrotask(()=>A2e(t))):A2e(t);continue}if(t[ZT]===0||t[XT]>=(u2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[jm]!==r.servername){if(t[XT]>0)return;t[jm]=r.servername,t[fi]?.destroy(new B_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Ib])return;if(!t[fi]){d2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}h2e.exports=BZ});var yZ=f((ubn,g2e)=>{"use strict";var x_=class{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)}};g2e.exports=class{constructor(){this.head=this.tail=new x_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new x_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var p2e=f((lbn,f2e)=>{var{kFree:z_t,kConnected:j_t,kPending:K_t,kQueued:X_t,kRunning:Z_t,kSize:$_t}=ps(),uB=Symbol("pool"),bZ=class{constructor(e){this[uB]=e}get connected(){return this[uB][j_t]}get free(){return this[uB][z_t]}get pending(){return this[uB][K_t]}get queued(){return this[uB][X_t]}get running(){return this[uB][Z_t]}get size(){return this[uB][$_t]}};f2e.exports=bZ});var xZ=f((dbn,N2e)=>{"use strict";var eOt=ib(),tOt=yZ(),{kConnected:wZ,kSize:m2e,kRunning:E2e,kPending:C2e,kQueued:$T,kBusy:rOt,kFree:nOt,kUrl:sOt,kClose:iOt,kDestroy:oOt,kDispatch:aOt}=ps(),AOt=p2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),I2e=Symbol("onConnect"),B2e=Symbol("onDisconnect"),Q2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};kMe.exports=x$});var z_=f((Obn,UMe)=>{"use strict";var MMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mqt}=tn(),vqt=yb();LMe()===void 0&&vMe(new vqt);function vMe(t){if(!t||typeof t.dispatch!="function")throw new Mqt("Argument agent must implement Agent");Object.defineProperty(globalThis,MMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function LMe(){return globalThis[MMe]}UMe.exports={setGlobalDispatcher:vMe,getGlobalDispatcher:LMe}});var j_=f((qbn,PMe)=>{"use strict";PMe.exports=class{#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 OMe=f((Gbn,_Me)=>{"use strict";var Lqt=S_();_Me.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new Lqt(r,o,s,i);return r(a,A)}}});var qMe=f((Ybn,HMe)=>{"use strict";var Uqt=P_();HMe.exports=t=>e=>function(n,s){return e(n,new Uqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var YMe=f((Jbn,GMe)=>{"use strict";var Pqt=mr(),{InvalidArgumentError:_qt,RequestAbortedError:Oqt}=tn(),Hqt=j_(),T$=class extends Hqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new _qt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Oqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function qqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}GMe.exports=qqt});var WMe=f((Vbn,VMe)=>{"use strict";var{isIP:Gqt}=B("node:net"),{lookup:Yqt}=B("node:dns"),Jqt=j_(),{InvalidArgumentError:Fb,InformationalError:Vqt}=tn(),JMe=Math.pow(2,31)-1,k$=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Vqt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Yqt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===JMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===JMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new F$(this,e,r)}},F$=class extends Jqt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":NUe(i)&&(r[s]=i);break;case"id":SUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&NUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&SUe(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,event:void 0,id:void 0,retry:void 0}}};RUe.exports={EventSourceStream:Eee}});var UUe=f((ywn,LUe)=>{"use strict";var{pipeline:eYt}=B("node:stream"),{fetching:tYt}=h1(),{makeRequest:rYt}=Lb(),{webidl:Xf}=Oo(),{EventSourceStream:nYt}=DUe(),{parseMIMEType:sYt}=yA(),{createFastMessageEvent:iYt}=qb(),{isNetworkError:xUe}=l1(),{delay:oYt}=pee(),{kEnumerableProperty:wB}=mr(),{environmentSettingsObject:TUe}=Qc(),kUe=!1,FUe=3e3,w1=0,MUe=1,N1=2,aYt="anonymous",AYt="use-credentials",Wb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Xf.util.markAsUncloneable(this);let n="EventSource constructor";Xf.argumentLengthCheck(arguments,1,n),kUe||(kUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xf.converters.USVString(e,n,"url"),r=Xf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:FUe};let s=TUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=aYt;r.withCredentials&&(o=AYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=TUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=rYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{xUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(xUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?sYt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=MUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new nYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(iYt(A.type,A.options))}});eYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=tYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await oYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Xf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},vUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:MUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(Wb,vUe);Object.defineProperties(Wb.prototype,vUe);Object.defineProperties(Wb.prototype,{close:wB,onerror:wB,onmessage:wB,onopen:wB,readyState:wB,url:wB,withCredentials:wB});Xf.converters.EventSourceInitDict=Xf.dictionaryConverter([{key:"withCredentials",converter:Xf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Xf.converters.any}]);LUe.exports={EventSource:Wb,defaultReconnectionTime:FUe}});var HUe=f((bwn,Mt)=>{"use strict";var cYt=Bb(),PUe=TT(),uYt=Qb(),lYt=v2e(),dYt=yb(),hYt=GZ(),gYt=iFe(),fYt=lFe(),_Ue=tn(),UO=mr(),{InvalidArgumentError:LO}=_Ue,zb=XFe(),pYt=FT(),mYt=b$(),EYt=FMe(),CYt=S$(),IYt=l$(),BYt=P_(),{getGlobalDispatcher:OUe,setGlobalDispatcher:QYt}=z_(),yYt=j_(),bYt=S_(),wYt=R_();Object.assign(PUe.prototype,zb);Mt.exports.Dispatcher=PUe;Mt.exports.Client=cYt;Mt.exports.Pool=uYt;Mt.exports.BalancedPool=lYt;Mt.exports.Agent=dYt;Mt.exports.ProxyAgent=hYt;Mt.exports.EnvHttpProxyAgent=gYt;Mt.expo Line truncated
\r
`),m6t=/\r\n/g,E6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function $b(t){OPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=_Pe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=_Pe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new f6t(p6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}g6t($b,OPe);$b.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};$b.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};$b.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};$b.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(m6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=E6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};HPe.exports=$b});var ate=f((pNn,YPe)=>{"use strict";var ote=B("node:stream").Writable,C6t=B("node:util").inherits,I6t=ste(),GPe=UPe(),B6t=qPe(),Q6t=45,y6t=Buffer.from("-"),b6t=Buffer.from(`\r
`),w6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new B6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}C6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new GPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(b6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new I6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",w6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===Q6t)++o,++this._dashes;else{this._dashes&&(s=y6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new GPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};YPe.exports=Ed});var KO=f((Ate,WPe)=>{"use strict";var JPe=new TextDecoder("utf-8"),VPe=new Map([["utf-8",JPe],["utf8",JPe]]);function N6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),VPe.has(Ate.toString()))try{return VPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function S6t(t,e,r){return t&&N6t(r)(t,e)}WPe.exports=S6t});var ute=f((mNn,ZPe)=>{"use strict";var XO=KO(),zPe=/%[a-fA-F0-9][a-fA-F0-9]/g,R6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function S9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(h9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R9t(){return"allowed"}function D9t(){return"success"}function x9t(){return"success"}function T9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function k9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":rH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function F9t(t){return p9t.now()}function M9t(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}}function v9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function L9t(t){return{referrerPolicy:t.referrerPolicy}}function U9t(t){let e=t.referrerPolicy;sw(e);let r=null;if(t.referrer==="client"){let a=f9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=rH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=P1(t);return rH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return sw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(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"))}}function P9t(t,e){if(tH===void 0)return!0;let r=w_e(e);if(r==="no metadata"||r.length===0)return!0;let n=O9t(r),s=H9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=tH.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),q9t(A,a))return!0}return!1}var _9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function w_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=_9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();B_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function O9t(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}function H9t(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}function q9t(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}function G9t(t){}function rH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Y9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J9t(t){return t.controller.state==="aborted"}function V9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function W9t(t){return Cte[t.toLowerCase()]??t}function z9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return sw(typeof e=="string"),e}var j9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function K9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,X9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,j9t),Object.setPrototypeOf({},s)}function X9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&k_e(t[n]);n++);if(r)for(;s>0&&k_e(t[s]);s--);return t.slice(n,s+1)}function F_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function pJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&F_e(t[n]);n++);if(r)for(;s>0&&F_e(t[s]);s--);return t.slice(n,s+1)}U_e.exports={dataURLProcessor:dJt,URLSerializer:M_e,collectASequenceOfCodePoints:iH,collectASequenceOfCodePointsFast:iw,stringPercentDecode:v_e,parseMIMEType:Bte,collectAnHTTPQuotedString:L_e,serializeAMimeType:fJt}});var oH=f((DNn,q_e)=>{"use strict";var{Blob:O_e,File:P_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:H_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Cd(),{kEnumerableProperty:__e}=qr(),CJt=new TextEncoder,_1=class t extends O_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=mJt(i),i==="failure"){i="";break e}i=EJt(i).toLowerCase()}o=n.lastModified}super(IJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:__e,lastModified:__e});fn.converters.Blob=fn.interfaceConverter(O_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(H_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function IJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=BJt(s)),r.push(CJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):H_e(n)&&r.push(n);return r}function BJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function QJt(t){return P_e&&t instanceof P_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}q_e.exports={File:_1,FileLike:yte,isFileLike:QJt}});var AH=f((xNn,W_e)=>{"use strict";var{isBlobLike:aH,toUSVString:yJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:V_e,FileLike:G_e,isFileLike:bJt}=oH(),{webidl:wn}=Ya(),{Blob:wJt,File:wte}=B("buffer"),Y_e=wte??V_e,ow=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=J_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?yJt(n):void 0;let s=J_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};ow.prototype[Symbol.iterator]=ow.prototype.entries;Object.defineProperties(ow.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function J_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(bJt(e)||(e=e instanceof wJt?new Y_e([e],"blob",{type:e.type}):new G_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof V_e?new Y_e([e],r,n):new G_e(e,r,n)}return{name:t,value:e}}W_e.exports={FormData:ow}});var O1=f((TNn,rOe)=>{"use strict";var NJt=l_e(),aw=qr(),{ReadableStreamFrom:SJt,isBlobLike:z_e,isReadableStreamLike:RJt,readableStreamClose:DJt,createDeferredPromise:xJt,fullyReadBody:TJt}=Hu(),{FormData:j_e}=AH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:Z_e,structuredClone:kJt}=dE(),{Blob:FJt,File:MJt}=B("buffer"),{kBodyUsed:vJt}=ts(),Ste=B("assert"),{isErrored:LJt}=qr(),{isUint8Array:$_e,isArrayBuffer:UJt}=B("util/types"),{File:PJt}=oH(),{parseMIMEType:_Jt,serializeAMimeType:OJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,K_e=MJt??PJt,cH=new TextEncoder,HJt=new TextDecoder;function eOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:z_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?cH.encode(s):s),queueMicrotask(()=>DJt(A))},start(){},type:void 0}),Ste(RJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(UJt(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(aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=cH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=cH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=cH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(z_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:SJt(t)}if((typeof s=="string"||aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):LJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function qJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),eOe(t,e)}function GJt(t){let[e,r]=t.stream.tee(),n=kJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*X_e(t){if(t)if($_e(t))yield t;else{let e=t.stream;if(aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[vJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new Z_e("The operation was aborted.","AbortError")}function YJt(t){return{blob(){return uH(this,r=>{let n=zJt(this);return n==="failure"?n="":n&&(n=OJt(n)),new FJt([r],{type:n})},t)},arrayBuffer(){return uH(this,r=>new Uint8Array(r).buffer,t)},text(){return uH(this,tOe,t)},json(){return uH(this,WJt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new j_e,i;try{i=new NJt({headers:n,preservePath:!0})}catch(a){throw new Z_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new K_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new K_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of X_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of X_e(this[ip].body)){if(!$_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new j_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function JJt(t){Object.assign(t.prototype,YJt(t))}async function uH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),VJt(t[ip].body))throw new TypeError("Body is unusable");let n=xJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await TJt(t[ip].body,i,s),n.promise)}function VJt(t){return t!=null&&(t.stream.locked||aw.isDisturbed(t.stream))}function tOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),HJt.decode(t))}function WJt(t){return JSON.parse(tOe(t))}function zJt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":_Jt(r)}rOe.exports={extractBody:eOe,safelyExtractBody:qJt,cloneBody:GJt,mixinBody:JJt}});var oOe=f((kNn,iOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:jJt}=Un(),op=B("assert"),{kHTTP2BuildRequest:KJt,kHTTP2CopyHeaders:XJt,kHTTP1BuildRequest:ZJt}=ts(),xA=qr(),nOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,sOe=/[^\t\x20-\x7e\x80-\xff]/,$Jt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),xi={},xte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[ZJt](e,r,n){return new t(e,r,n)}static[KJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[XJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",sOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(sOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new jJt("expect header not supported");if(nOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}iOe.exports=Tte});var lH=f((FNn,aOe)=>{"use strict";var eVt=B("events"),kte=class extends eVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};aOe.exports=kte});var G1=f((MNn,AOe)=>{"use strict";var tVt=lH(),{ClientDestroyedError:Fte,ClientClosedError:rVt,InvalidArgumentError:Aw}=Un(),{kDestroy:nVt,kClose:sVt,kDispatch:Mte,kInterceptors:MB}=ts(),cw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),uw=Symbol("onClosed"),dH=Symbol("Intercepted Dispatch"),vte=class extends tVt{constructor(){super(),this[cw]=!1,this[ap]=null,this[q1]=!1,this[uw]=[]}get destroyed(){return this[cw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new Aw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new Aw("invalid callback");if(this[cw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[uw]?this[uw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[uw].push(e);let r=()=>{let n=this[uw];this[uw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[sVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new Aw("invalid callback");if(this[cw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[cw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[nVt](e).then(()=>{queueMicrotask(n)})}[dH](e,r){if(!this[MB]||this[MB].length===0)return this[dH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[dH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Aw("handler must be an object");try{if(!e||typeof e!="object")throw new Aw("opts must be an object.");if(this[cw]||this[ap])throw new Fte;if(this[q1])throw new rVt;return this[dH](e,r)}catch(n){if(typeof r.onError!="function")throw new Aw("invalid onError method");return r.onError(n),!1}}};AOe.exports=vte});var Y1=f((UNn,lOe)=>{"use strict";var iVt=B("net"),cOe=B("assert"),uOe=qr(),{InvalidArgumentError:oVt,ConnectTimeoutError:aVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function AVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new oVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[ROe]=A??3e5,this[SOe]=s??3e5,this[K1]=I??!0,this[PVt]=w,this[X1]=z,this[gE]=null,this[xOe]=W>-1?W:-1,this[Uh]="h1",this[kc]=null,this[IH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[TOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[pE]}set pipelining(e){this[pE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[UVt](){return!!this[Ws]&&!this[dw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[gw])||this[LB]>=(this[pE]||1)||this[UB]>0}[LVt](e){vOe(this),this.once("connect",e)}[HVt](e,r){let n=e.origin||this[qo].origin,s=this[Uh]==="h2"?Yte[GVt](n,e,r):Yte[JVt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[fE]!==2&&this[Jte]&&(this[fE]=2),this[fE]<2}async[_Vt](){return new Promise(e=>{this[LB]?this[gE]=e:e(null)})}async[OVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[gE]&&(this[gE](),this[gE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[IH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function $Vt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,bH(this[Lh],t)}function eWt(t,e,r){let n=new vh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,bH(this[Lh],n))}function tWt(){ft.destroy(this,new hw("other side closed")),ft.destroy(this[Ws],new hw("other side closed"))}function rWt(t){let e=this[Lh],r=new vh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var kh=hOe(),nWt=fH(),sWt=Buffer.alloc(0);async function iWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(IOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onStatus(new pH(Fh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderField(new pH(Fh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderValue(new pH(Fh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onBody(new pH(Fh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=iWt();zte.catch();var Gi=null,Fh=null,mH=0,Mh=null,fw=1,CH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[EH])&&e[EH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(kh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[EH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[xOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(oWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===CH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||sWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>mH&&(Mh&&n.free(Mh),mH=Math.ceil(e.length/4096)*4096,Mh=n.malloc(mH)),new Uint8Array(n.memory.buffer,Mh,mH).set(e);try{let s;try{Fh=e,Gi=this,s=n.llhttp_execute(this.ptr,Mh,e.length)}catch(o){throw o}finally{Gi=null,Fh=null}let i=n.llhttp_get_error_pos(this.ptr)-Mh;if(s===kh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===kh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==kh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[bOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[pE]&&!h[Ja]?g+=`connection: keep-alive\r
`:t[aT]&&!h[wi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return dse.sendHeaders.hasSubscribers&&dse.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Cse(f,null,t,e,h,u,g,l):qe.isBuffer(c)?Cse(f,c,t,e,h,u,g,l):qe.isBlobLike(c)?typeof c.stream=="function"?Ise(f,c.stream(),t,e,h,u,g,l):Tqe(f,c,t,e,h,u,g,l):qe.isStream(c)?Nqe(f,c,t,e,h,u,g,l):qe.isIterable(c)?Ise(f,c,t,e,h,u,g,l):Pe(!1),!0}function Nqe(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"stream body cannot be pipelined");let c=!1,A=new uT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){qe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new yse;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Pe(s.destroyed||s[Fd]&&r[In]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?qe.destroy(e,f):qe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Cse(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[wi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?QH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):POe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?UOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?QH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function cWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[YVt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[IH];if(l[VVt]=o||t[TOe],l[WVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[zVt]=i,l[jVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),LOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[KVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[XVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[ZVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new vh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?QH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):POe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?UOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?QH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function UOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Uh]==="h2"){let p=function(C){n.onBodySent(C)},g=NVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function POe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Uh]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ol]()}catch(c){t(c)}}async function Tqe(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Kf;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function QH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[Go]?h(s[Go]):A=d});if(r[Uh]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var yH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[wi]=!0),r[ol]()}catch(c){t(c)}}async function Ise(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Pe(c===null),s[Ks]?h(s[Ks]):c=d});s.on("close",A).on("drain",A);let l=new uT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ks])throw s[Ks];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var uT=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Fd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ks])throw r[Ks];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[lO])throw new Kf;process.emitWarning(new Kf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[wi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===fw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ir].timeout&&r[Ir].timeoutType===N0&&r[Ir].timeout.refresh&&r[Ir].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fd]=!1,e[Ks])throw e[Ks];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===fw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}_Oe.exports=Wte});var HOe=f((VNn,OOe)=>{"use strict";var wH=class{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)}};OOe.exports=class{constructor(){this.head=this.tail=new wH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var GOe=f((WNn,qOe)=>{var{kFree:uWt,kConnected:lWt,kPending:dWt,kQueued:hWt,kRunning:gWt,kSize:fWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][lWt]}get free(){return this[PB][uWt]}get pending(){return this[PB][dWt]}get queued(){return this[PB][hWt]}get running(){return this[PB][gWt]}get size(){return this[PB][fWt]}};qOe.exports=$te});var ire=f((zNn,$Oe)=>{"use strict";var pWt=G1(),mWt=HOe(),{kConnected:ere,kSize:YOe,kRunning:JOe,kPending:VOe,kQueued:$1,kBusy:EWt,kFree:CWt,kUrl:IWt,kClose:BWt,kDestroy:QWt,kDispatch:yWt}=ts(),bWt=GOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),WOe=Symbol("onConnect"),zOe=Symbol("onDisconnect"),jOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),XOe=Symbol("add client"),ZOe=Symbol("remove client"),KOe=Symbol("stats"),sre=class extends pWt{constructor(){super(),this[ek]=new mWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[WOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[zOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[jOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[KOe]=new bWt(this)}get[EWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[CWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get[JOe](){let e=0;for(let{[JOe]:r}of this[TA])e+=r;return e}get[YOe](){let e=this[$1];for(let{[YOe]:r}of this[TA])e+=r;return e}get stats(){return this[KOe]}async[BWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[QWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[yWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[XOe](e){return e.on("drain",this[rre]).on("connect",this[WOe]).on("disconnect",this[zOe]).on("connectionError",this[jOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[IWt],[this,e])}),this}[ZOe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};$Oe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:XOe,kRemoveClient:ZOe,kGetDispatcher:nre}});var pw=f((jNn,rHe)=>{"use strict";var{PoolBase:wWt,kClients:NH,kNeedDrain:NWt,kAddClient:SWt,kGetDispatcher:RWt}=ire(),DWt=Z1(),{InvalidArgumentError:ore}=Un(),are=qr(),{kUrl:eHe,kInterceptors:xWt}=ts(),TWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),tHe=Symbol("factory");function kWt(t,e){return new DWt(t,e)}var ure=class extends wWt{constructor(e,{connections:r,factory:n=kWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=TWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[xWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[eHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[tHe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[lO])throw new Kf;process.emitWarning(new Kf)}e[Ir].timeout&&e[Ir].timeoutType===N0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[ol]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fd]=!1,e&&(Pe(n[In]<=1,"pipeline should only contain this request"),s(e))}};Sse.exports=Bqe});var Mse=C((xjt,Fse)=>{"use strict";var ca=Q("node:assert"),{pipeline:xqe}=Q("node:stream"),Nt=Ct(),{RequestContentLengthMismatchError:pO,RequestAbortedError:Tse,SocketError:AB,InformationalError:mO}=Vt(),{kUrl:lT,kReset:hT,kClient:T0,kRunning:fT,kPending:Rqe,kQueue:Md,kPendingIdx:EO,kRunningIdx:Ec,kError:Ic,kSocket:Wn,kStrictContentLength:Dqe,kOnError:CO,kMaxConcurrentStreams:vse,kHTTP2Session:Cc,kResume:_d,kSize:kqe,kHTTPContext:vqe}=vr(),al=Symbol("open streams"),xse,Rse=!1,dT;try{dT=Q("node:http2")}catch{dT={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Fqe,HTTP2_HEADER_METHOD:Mqe,HTTP2_HEADER_PATH:_qe,HTTP2_HEADER_SCHEME:Lqe,HTTP2_HEADER_CONTENT_LENGTH:Uqe,HTTP2_HEADER_EXPECT:Pqe,HTTP2_HEADER_STATUS:Oqe}}=dT;function Hqe(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}async function Gqe(t,e){t[Wn]=e,Rse||(Rse=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=dT.connect(t[lT],{createConnection:()=>e,peerMaxConcurrentStreams:t[vse]});r[al]=0,r[T0]=t,r[Wn]=e,Nt.addListener(r,"error",Yqe),Nt.addListener(r,"frameError",Vqe),Nt.addListener(r,"end",Jqe),Nt.addListener(r,"goaway",Wqe),Nt.addListener(r,"close",function(){let{[T0]:s}=this,{[Wn]:i}=s,o=this[Wn][Ic]||this[Ic]||new AB("closed",Nt.getSocketInfo(i));if(s[Cc]=null,s.destroyed){ca(s[Rqe]===0);let a=s[Md].splice(s[Ec]);for(let c=0;c<a.length;c++){let A=a[c];Nt.errorRequest(s,A,o)}}}),r.unref(),t[Cc]=r,e[Cc]=r,Nt.addListener(e,"error",function(s){ca(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ic]=s,this[T0][CO](s)}),Nt.addListener(e,"end",function(){Nt.destroy(this,new AB("other side closed",Nt.getSocketInfo(this)))}),Nt.addListener(e,"close",function(){let s=this[Ic]||new AB("closed",Nt.getSocketInfo(this));t[Wn]=null,this[Cc]!=null&&this[Cc].destroy(s),t[EO]=t[Ec],ca(t[fT]===0),t.emit("disconnect",t[lT],[t],s),t[_d]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jqe(t,...s)},resume(){qqe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function qqe(t){let e=t[Wn];e?.destroyed===!1&&(t[kqe]===0&&t[vse]===0?(e.unref(),t[Cc].unref()):(e.ref(),t[Cc].ref()))}function Yqe(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Wn][Ic]=t,this[T0][CO](t)}function Vqe(t,e,r){if(r===0){let n=new mO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Wn][Ic]=n,this[T0][CO](n)}}function Jqe(){let t=new AB("other side closed",Nt.getSocketInfo(this[Wn]));this.destroy(t),Nt.destroy(this[Wn],t)}function Wqe(t){let e=this[Ic]||new AB(`HTTP/2: "GOAWAY" frame received with code ${t}`,Nt.getSocketInfo(this)),r=this[T0];if(r[Wn]=null,r[vqe]=null,this[Cc]!=null&&(this[Cc].destroy(e),this[Cc]=null),Nt.destroy(this[Wn],e),r[Ec]<r[Md].length){let n=r[Md][r[Ec]];r[Md][r[Ec]++]=null,Nt.errorRequest(r,n,e),r[EO]=r[Ec]}ca(r[fT]===0),r.emit("disconnect",r[lT],[r],e),r[_d]()}function zqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function jqe(t,e){let r=t[Cc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Nt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let F=A[B+0],V=A[B+1];if(Array.isArray(V))for(let L=0;L<V.length;L++)l[F]?l[F]+=`,${V[L]}`:l[F]=V[L];else l[F]=V}let d,{hostname:h,port:f}=t[lT];l[Fqe]=i||`${h}${f?`:${f}`:""}`,l[Mqe]=n;let g=B=>{e.aborted||e.completed||(B=B||new Tse,Nt.errorRequest(t,e,B),d!=null&&Nt.destroy(d,B),Nt.destroy(u,B),t[Md][t[Ec]++]=null,t[_d]())};try{e.onConnect(g)}catch(B){Nt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[al],t[Md][t[Ec]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[al],t[Md][t[Ec]++]=null}),d.once("close",()=>{r[al]-=1,r[al]===0&&r.unref()}),!0;l[_qe]=s,l[Lqe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Nt.bodyLength(u);if(Nt.isFormDataLike(u)){xse??=b0().extractBody;let[B,F]=xse(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),zqe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Dqe])return Nt.errorRequest(t,e,new pO),!1;process.emitWarning(new pO)}m!=null&&(ca(u,"no body must not have content length"),l[Uqe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[Pqe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[yYe]=c??3e5,this[IYe]=s??3e5,this[BYe]=I??!0,this[bYe]=B,this[bO]=V,this[Ud]=null,this[TYe]=P>-1?P:-1,this[RYe]=Z??100,this[un]=null,this[yc]=[],this[Al]=0,this[Bc]=0,this[hB]=de=>wO(this,de),this[xYe]=de=>Wse(this,de)}get pipelining(){return this[ET]}set pipelining(e){this[ET]=e,this[hB](!0)}get[pB](){return this[yc].length-this[Bc]}get[gB](){return this[Bc]-this[Al]}get[fB](){return this[yc].length-this[Al]}get[hYe](){return!!this[un]&&!this[R0]&&!this[un].destroyed}get[BO](){return!!(this[un]?.busy(null)||this[fB]>=(Jse(this)||1)||this[pB]>0)}[dYe](e){zse(this),this.once("connect",e)}[NYe](e,r){let n=e.origin||this[pA].origin,s=new oYe(n,e,r);return this[yc].push(s),this[eg]||($f.bodyLength(s.body)==null&&$f.isIterable(s.body)?(this[eg]=1,queueMicrotask(()=>wO(this))):this[hB](!0)),this[eg]&&this[Pd]!==2&&this[BO]&&(this[Pd]=2),this[Pd]<2}async[wYe](){return new Promise(e=>{this[fB]?this[Ud]=e:e(null)})}async[SYe](e){return new Promise(r=>{let n=this[yc].splice(this[Bc]);for(let i=0;i<n.length;i++){let o=n[i];$f.errorRequest(this,o,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[un]?(this[un].destroy(e,s),this[un]=null):queueMicrotask(s),this[hB]()})}},vYe=mT();function Wse(t,e){if(t[gB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[Bc]===t[Al]);let r=t[yc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];$f.errorRequest(t,s,e)}cl(t[fB]===0)}}async function zse(t){cl(!t[R0]),cl(!t[un]);let{host:e,hostname:r,protocol:n,port:s}=t[pA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Vse.isIP(o)),r=o}t[R0]=!0,x0.beforeConnect.hasSubscribers&&x0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB]});try{let i=await new Promise((o,a)=>{t[lB]({host:e,hostname:r,protocol:n,port:s,servername:t[Ld],localAddress:t[dB]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){$f.destroy(i.on("error",qse),new AYe);return}cl(i);try{t[un]=i.alpnProtocol==="h2"?await kYe(t,i):await DYe(t,i)}catch(o){throw i.destroy().on("error",qse),o}t[R0]=!1,i[QYe]=0,i[bO]=t[bO],i[lYe]=t,i[gYe]=null,x0.connected.hasSubscribers&&x0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB],socket:i}),t.emit("connect",t[pA],[t])}catch(i){if(t.destroyed)return;if(t[R0]=!1,x0.connectError.hasSubscribers&&x0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gB]===0);t[pB]>0&&t[yc][t[Bc]].servername===t[Ld];){let o=t[yc][t[Bc]++];$f.errorRequest(t,o,i)}else Wse(t,i);t.emit("connectionError",t[pA],[t],i)}t[hB]()}function Yse(t){t[Pd]=0,t.emit("drain",t[pA],[t])}function wO(t,e){t[eg]!==2&&(t[eg]=2,FYe(t,e),t[eg]=0,t[Al]>256&&(t[yc].splice(0,t[Al]),t[Bc]-=t[Al],t[Al]=0))}function FYe(t,e){for(;;){if(t.destroyed){cl(t[pB]===0);return}if(t[Ud]&&!t[fB]){t[Ud](),t[Ud]=null;return}if(t[un]&&t[un].resume(),t[BO])t[Pd]=2;else if(t[Pd]===2){e?(t[Pd]=1,queueMicrotask(()=>Yse(t))):Yse(t);continue}if(t[pB]===0||t[gB]>=(Jse(t)||1))return;let r=t[yc][t[Bc]];if(t[pA].protocol==="https:"&&t[Ld]!==r.servername){if(t[gB]>0)return;t[Ld]=r.servername,t[un]?.destroy(new cYe("servername changed"),()=>{t[un]=null,wO(t)})}if(t[R0])return;if(!t[un]){zse(t);return}if(t[un].destroyed||t[un].busy(r))return;!r.aborted&&t[un].write(r)?t[Bc]++:t[yc].splice(t[Bc],1)}}jse.exports=QO});var SO=C((Fjt,Kse)=>{"use strict";var CT=class{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)}};Kse.exports=class{constructor(){this.head=this.tail=new CT}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CT),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zse=C((Mjt,Xse)=>{var{kFree:MYe,kConnected:_Ye,kPending:LYe,kQueued:UYe,kRunning:PYe,kSize:OYe}=vr(),tg=Symbol("pool"),NO=class{constructor(e){this[tg]=e}get connected(){return this[tg][_Ye]}get free(){return this[tg][MYe]}get pending(){return this[tg][LYe]}get queued(){return this[tg][UYe]}get running(){return this[tg][PYe]}get size(){return this[tg][OYe]}};Xse.exports=NO});var vO=C((_jt,cie)=>{"use strict";var HYe=f0(),GYe=SO(),{kConnected:TO,kSize:$se,kRunning:eie,kPending:tie,kQueued:mB,kBusy:qYe,kFree:YYe,kUrl:VYe,kClose:JYe,kDestroy:WYe,kDispatch:zYe}=vr(),jYe=Zse(),Si=Symbol("clients"),Xs=Symbol("needDrain"),EB=Symbol("queue"),xO=Symbol("closed resolve"),RO=Symbol("onDrain"),rie=Symbol("onConnect"),nie=Symbol("onDisconnect"),sie=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Mqe.exports=zre});var Hqe=f((ISn,Oqe)=>{"use strict";var{kProxy:Fjt,kClose:Mjt,kDestroy:vjt,kInterceptors:Ljt}=ts(),{URL:Lqe}=B("url"),Uqe=rk(),Ujt=pw(),Pjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:_jt}=Un(),Pqe=Y1(),ik=Symbol("proxy agent"),WH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Ojt=Symbol("proxy tls settings"),_qe=Symbol("connect endpoint function");function Hjt(t){return t==="https:"?443:80}function qjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Gjt(t,e){return new Ujt(t,e)}var Kre=class extends Pjt{constructor(e){if(super(e),this[Fjt]=qjt(e),this[ik]=new Uqe(e),this[Ljt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=Gjt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Ojt]=e.proxyTls,this[ok]=e.headers||{};let n=new Lqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Pqe({...e.proxyTls});this[_qe]=Pqe({...e.requestTls}),this[WH]=r(n,{connect:c}),this[ik]=new Uqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Hjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[WH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new _jt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[_qe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Lqe(e.origin),s=Yjt(e.headers);return Jjt(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Mjt](){await this[ik].close(),await this[WH].close()}async[vjt](){await this[ik].destroy(),await this[WH].destroy()}};function Yjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function Jjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}Oqe.exports=Kre});var Vqe=f((BSn,Jqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:qqe}=ts(),{RequestRetryError:zH}=Un(),{isDisturbed:Gqe,parseHeaders:Vjt,parseRangeHeader:Yqe}=qr();function Wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[qqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[qqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?Wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=Vjt(r);if(this.retryCount+=1,e>=300)return this.abort(new zH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Yqe(i["content-range"]);if(!a)return this.abort(new zH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new zH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return t3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,r3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,r3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Hw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var UZt=B("os"),qne=B("fs"),{access:PZt,appendFile:_Zt,writeFile:OZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield PZt(e,qne.constants.R_OK|qne.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(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?OZt:_Zt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(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(UZt.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(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).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:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).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()}},s3e=new Gne;LA.markdownSummary=s3e;LA.summary=s3e});var i3e=f(UA=>{"use strict";var HZt=UA&&UA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GZt=UA&&UA.__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)&&HZt(e,t,r);return qZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var YZt=GZt(B("path"));function JZt(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=JZt;function VZt(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=VZt;function WZt(t){return t.replace(/[/\\]/g,YZt.sep)}UA.toPlatformPath=WZt});var Vne=f(Ze=>{"use strict";var zZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=y3e.default.platform();Gr.arch=y3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function N$t(){return Yq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?y$t():Gr.isMacOS?b$t():w$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=N$t});var Oc=f(We=>{"use strict";var S$t=We&&We.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),R$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__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)&&S$t(e,t,r);return R$t(e,t),e},w3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=uPe(),ZB=hPe(),Gw=GO(),N3e=Xne(B("os")),D$t=Xne(B("path")),x$t=n3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function T$t(t,e){let r=(0,Gw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=T$t;function k$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=k$t;function F$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${D$t.delimiter}${process.env.PATH}`}We.addPath=F$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function M$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=M$t;function v$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=v$t;function L$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(N3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Gw.toCommandValue)(e))}We.setOutput=L$t;function U$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=U$t;function P$t(t){process.exitCode=Kne.Failure,S3e(t)}We.setFailed=P$t;function _$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=_$t;function O$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=O$t;function S3e(t,e={}){(0,zu.issueCommand)("error",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=S3e;function H$t(t,e={}){(0,zu.issueCommand)("warning",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=H$t;function q$t(t,e={}){(0,zu.issueCommand)("notice",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=q$t;function G$t(t){process.stdout.write(t+N3e.EOL)}We.info=G$t;function R3e(t){(0,zu.issue)("group",t)}We.startGroup=R3e;function D3e(){(0,zu.issue)("endgroup")}We.endGroup=D3e;function Y$t(t,e){return w3e(this,void 0,void 0,function*(){R3e(t);let r;try{r=yield e()}finally{D3e()}return r})}We.group=Y$t;function J$t(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Gw.toCommandValue)(e))}We.saveState=J$t;function V$t(t){return process.env[`STATE_${t}`]||""}We.getState=V$t;function W$t(t){return w3e(this,void 0,void 0,function*(){return yield x$t.OidcClient.getIDToken(t)})}We.getIDToken=W$t;var z$t=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return z$t.summary}});var j$t=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return j$t.markdownSummary}});var $ne=i3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(b3e())});var x3e=f(Jh=>{"use strict";var K$t=Jh&&Jh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),X$t=Jh&&Jh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z$t=Jh&&Jh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&K$t(e,t,r);return X$t(e,t),e};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.getOptions=void 0;var ese=Z$t(Oc());function $$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Jh.getOptions=$$t});var Vq=f(js=>{"use strict";var eer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ter=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rer=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&eer(e,t,r);return ter(e,t),e},ner=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Jq=rer(B("path")),$B=ner(B("assert")),bE=process.platform==="win32";function ser(t){if(t=rse(t),bE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Jq.dirname(t);return bE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ser;function ier(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(bE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==jq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===jq)return[n,s];if(!s)return Mer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Fer;function Fer(){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?ose:e.dot?wer:Ner,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?ver(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.prototype.match=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;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(K3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Mer(t){return t.replace(/\\(.)/g,"$1")}function ver(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e4e=f(ju=>{"use strict";var Ler=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Uer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$3e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ler(e,t,r);return Uer(e,t),e},Per=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=$3e(B("path")),NE=$3e(Vq()),wk=Per(B("assert")),_er=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=NE.safeTrimTrailingSeparator(e),!NE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=NE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=NE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=NE.normalizeSeparators(e[r]),r===0&&NE.hasRoot(n)?(n=NE.safeTrimTrailingSeparator(n),wk.default(n===NE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||_er&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var t4e=f(Ku=>{"use strict";var Oer=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Her=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Oer(e,t,r);return Her(e,t),e},qer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var Ger=dse(B("os")),Nk=dse(B("path")),qA=dse(Vq()),e0=qer(B("assert")),Yer=Ase(),use=Wq(),Xq=e4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Xq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Xq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Xq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new Yer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Xq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new i4e.Pattern(i));return n.searchPaths.push(...$q.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var A4e=f(Jw=>{"use strict";var Xer=Jw&&Jw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.create=void 0;var Zer=a4e();function $er(t,e){return Xer(this,void 0,void 0,function*(){return yield Zer.DefaultGlobber.create(t,e)})}Jw.create=$er});var g4e=f((Ot,h4e)=>{Ot=h4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,eG=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,etr=Dk-6,Vw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},l4e=0;function Er(t){ie[t]=l4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,etr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Vw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Vw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ttr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=_tr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=sG.relative(a,d).replace(new RegExp(`\\${sG.sep}`,"g"),"/");kk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=Wtr;function ztr(t){return jw(this,void 0,void 0,function*(){return Gtr.promisify(bse.unlink)(t)})}Zr.unlinkFile=ztr;function I4e(t,e=[]){return jw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Otr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function jtr(){return jw(this,void 0,void 0,function*(){let t=yield I4e("zstd",["--quiet"]),e=qtr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=jtr;function Ktr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=Ktr;function Xtr(){return jw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield I4e("tar")).toLowerCase().includes("gnu tar")?E4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Xtr;function Ztr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Ztr;function $tr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Ytr),C4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=$tr;function err(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=err});var Vn={};xu(Vn,{__addDisposableResource:()=>J4e,__assign:()=>iG,__asyncDelegator:()=>U4e,__asyncGenerator:()=>L4e,__asyncValues:()=>P4e,__await:()=>Xw,__awaiter:()=>x4e,__classPrivateFieldGet:()=>q4e,__classPrivateFieldIn:()=>Y4e,__classPrivateFieldSet:()=>G4e,__createBinding:()=>aG,__decorate:()=>y4e,__disposeResources:()=>V4e,__esDecorate:()=>w4e,__exportStar:()=>k4e,__extends:()=>B4e,__generator:()=>T4e,__importDefault:()=>H4e,__importStar:()=>O4e,__makeTemplateObject:()=>_4e,__metadata:()=>D4e,__param:()=>b4e,__propKey:()=>S4e,__read:()=>Sse,__rest:()=>Q4e,__rewriteRelativeImportExtension:()=>W4e,__runInitializers:()=>N4e,__setFunctionName:()=>R4e,__spread:()=>F4e,__spreadArray:()=>v4e,__spreadArrays:()=>M4e,__values:()=>oG,default:()=>nrr});function B4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Q4e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function y4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function b4e(t,e){return function(r,n){e(r,n,t)}}function w4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function N4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function S4e(t){return typeof t=="symbol"?t:"".concat(t)}function R4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function D4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function x4e(t,e,r,n){function s(i){re Line truncated
${Frr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=mG;function Mrr(t){return t instanceof mG?!0:(0,xrr.isError)(t)&&t.name==="RestError"}});var s0=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.uint8ArrayToString=vrr;EG.stringToUint8Array=Lrr;function vrr(t,e){return Buffer.from(t).toString(e)}function Lrr(t,e){return Buffer.from(t,e)}});var Uk=f(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.logger=void 0;var Urr=lG();CG.logger=(0,Urr.createClientLogger)("ts-http-runtime")});var mYe=f(BG=>{"use strict";Object.defineProperty(BG,"__esModule",{value:!0});BG.getBodyLength=pYe;BG.createNodeHttpClient=Jrr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),dYe=$se.__importDefault(B("node:zlib")),Prr=B("node:stream"),hYe=Fk(),_rr=DE(),_k=Zw(),$w=Uk(),Orr=vk(),Hrr={};function Pk(t){return t&&typeof t.pipe=="function"}function gYe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function fYe(t){return t&&typeof t.byteLength=="number"}var IG=class extends Prr.Transform{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}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new hYe.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Orr.Sanitizer;$w.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=pYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new IG(g);p.on("error",C=>{$w.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=qrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Grr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new IG(h);g.on("error",p=>{$w.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Yrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=gYe(a));let u=Promise.resolve();Pk(A)&&(u=gYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{$w.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new hYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):fYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):($w.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Hrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||($w.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function qrr(t){let e=(0,_rr.createHttpHeaders)();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}function Grr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dYe.default.createInflate Line truncated
`.trim())}};gae.exports=v3});var LT=C((uKt,Iae)=>{"use strict";var mae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:yWe}=Vt(),BWe=v0();Cae()===void 0&&Eae(new BWe);function Eae(t){if(!t||typeof t.dispatch!="function")throw new yWe("Argument agent must implement Agent");Object.defineProperty(globalThis,mae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Cae(){return globalThis[mae]}Iae.exports={setGlobalDispatcher:Eae,getGlobalDispatcher:Cae}});var UT=C((dKt,yae)=>{"use strict";yae.exports=class{#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 bae=C((hKt,Bae)=>{"use strict";var bWe=pT();Bae.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new bWe(r,o,s,i);return r(a,c)}}});var wae=C((fKt,Qae)=>{"use strict";var QWe=NT();Qae.exports=t=>e=>function(n,s){return e(n,new QWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Nae=C((gKt,Sae)=>{"use strict";var wWe=Ct(),{InvalidArgumentError:SWe,RequestAbortedError:NWe}=Vt(),TWe=UT(),F3=class extends TWe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new SWe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=wWe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new NWe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function xWe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new F3({maxSize:i},s);return e(n,o)}}Sae.exports=xWe});var Rae=C((pKt,xae)=>{"use strict";var{isIP:RWe}=Q("node:net"),{lookup:DWe}=Q("node:dns"),kWe=UT(),{InvalidArgumentError:G0,InformationalError:vWe}=Vt(),Tae=Math.pow(2,31)-1,M3=class{#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.#i}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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new vWe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){DWe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Tae?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Tae?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new _3(this,e,r)}},_3=class extends kWe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(Qx(e,s,JKe)){WKe(e,i)&&(r.retry=e.toString("utf8",i));return}if(Qx(e,s,VKe)){zKe(e,i)&&(r.id=e.toString("utf8",i));return}if(Qx(e,s,YKe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&PKe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&OKe(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===rE[0]||(this.checkBOM=!1),!0):n===void 0?e===rE[0]&&r===rE[1]?!0:(this.checkBOM=!1,!1):(e===rE[0]&&r===rE[1]&&n===rE[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};cue.exports={EventSourceStream:w8}});var mue=C((WKt,pue)=>{"use strict";var{pipeline:jKe}=Q("node:stream"),{fetching:KKe}=DB(),{makeRequest:XKe}=V0(),{webidl:hl}=fs(),{EventSourceStream:ZKe}=Aue(),{parseMIMEType:$Ke}=Qi(),{createFastMessageEvent:eXe}=X0(),{isNetworkError:uue}=xB(),{delay:tXe}=b8(),{kEnumerableProperty:mg}=Ct(),{environmentSettingsObject:lue}=ao(),due=!1,hue=3e3,VB=0,fue=1,JB=2,rXe="anonymous",nXe="use-credentials",nE=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=VB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hl.util.markAsUncloneable(this);let n="EventSource constructor";hl.argumentLengthCheck(arguments,1,n),due||(due=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hl.converters.USVString(e,n,"url"),r=hl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:hue};let s=lue,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=rXe;r.withCredentials&&(o=nXe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lue.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=XKe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JB)return;this.#r=VB;let e={request:this.#i,dispatcher:this.#a},r=n=>{uue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uue(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?$Ke(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=fue,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new ZKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(eXe(c.type,c.options))}});jKe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=KKe(e)}async#A(){this.#r!==JB&&(this.#r=VB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var V=I.type==="*"?g4:I.type==="?"?f4:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),ne=n.slice(k.reEnd-8,k.reEnd),ce=n.slice(k.reEnd);ne+=ce;var de=j.split("(").length-1,ke=ce;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");ce=ke;var ve="";ce===""&&e!==jx&&(ve="$");var rt=j+Z+ce+ve+ne;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===jx)return[n,s];if(!s)return V$e(t);var _t=r.nocase?"i":"";try{var Dt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Dt._glob=t,Dt._src=n,Dt}Io.makeRe=function(t,e){return new bn(t,e||{}).makeRe()};bn.prototype.makeRe=Y$e;function Y$e(){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?g4:e.dot?_$e:L$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===bg?r:typeof o=="string"?J$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Io.match=function(t,e,r){r=r||{};var n=new bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};bn.prototype.match=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;ob.sep!=="/"&&(e=e.split(ob.sep).join("/")),e=e.split(ode),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};bn.prototype.matchOne=function(t,e,r){return e.indexOf(bg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===bg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===bg){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var F=A[B];F===bg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var V=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};bn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};bn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===bg)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function V$e(t){return t.replace(/\\(.)/g,"$1")}function J$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var lE=C((r$t,hde)=>{"use strict";var eet="2.0.0",tet=Number.MAX_SAFE_INTEGER||9007199254740991,ret=16,net=250,set=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ret,MAX_SAFE_BUILD_LENGTH:net,MAX_SAFE_INTEGER:tet,RELEASE_TYPES:set,SEMVER_SPEC_VERSION:eet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ub=C((n$t,fde)=>{"use strict";var iet=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fde.exports=iet});var dE=C((QA,gde)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m4,MAX_SAFE_BUILD_LENGTH:oet,MAX_LENGTH:aet}=lE(),cet=ub();QA=gde.exports={};var Aet=QA.re=[],uet=QA.safeRe=[],ye=QA.src=[],det=QA.safeSrc=[],Be=QA.t={},het=0,E4="[a-zA-Z0-9-]",fet=[["\\s",1],["\\d",aet],[E4,oet]],get=t=>{for(let[e,r]of fet)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+TG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rsr()+e+" "+t[0]}function rsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nsr(...t){return process.stderr.write(xG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function ssr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function isr(){return process.env.DEBUG}function osr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}TG.exports=mie()(lo);var{formatters:OYe}=TG.exports;OYe.o=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};OYe.O=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts)}});var kG=f((ADn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=MYe():Iie.exports=HYe()});var YYe=f(YA=>{"use strict";var asr=YA&&YA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Asr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qYe=YA&&YA.__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)&&asr(e,t,r);return Asr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var csr=qYe(B("http")),usr=qYe(B("https"));async function GYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=GYe;async function lsr(t){let r=(await GYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=lsr;function dsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?usr:csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=dsr});var Qie=f(qc=>{"use strict";var VYe=qc&&qc.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hsr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WYe=qc&&qc.__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)&&VYe(e,t,r);return hsr(e,t),e},gsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var fsr=WYe(B("net")),JYe=WYe(B("http")),psr=B("https");gsr(YYe(),qc);var Wh=Symbol("AgentBaseInternalState"),Bie=class extends JYe.Agent{constructor(e){super(e),this[Wh]={}}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 fsr.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)?psr.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof JYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[Wh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Wh].currentSocket;if(this[Wh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Wh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Wh]&&(this[Wh].defaultPort=e)}get protocol(){return this[Wh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Wh]&&(this[Wh].protocol=e)}};qc.Agent=Bie});var zYe=f(lN=>{"use strict";var msr=lN&&lN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lN,"__esModule",{value:!0});lN.parseProxyResponse=void 0;var Esr=msr(kG()),FG=(0,Esr.default)("https-proxy-agent:parse-proxy-response");function Csr(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),FG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),FG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+LR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=nst()+e+" "+t[0]}function nst(){return jn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function sst(...t){return process.stderr.write(_R.formatWithOptions(jn.inspectOpts,...t)+`
`)}function ist(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ost(){return process.env.DEBUG}function ast(t){t.inspectOpts={};let e=Object.keys(jn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=jn.inspectOpts[e[r]]}LR.exports=a6()(jn);var{formatters:qfe}=LR.exports;qfe.o=function(t){return this.inspectOpts.colors=this.useColors,_R.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qfe.O=function(t){return this.inspectOpts.colors=this.useColors,_R.inspect(t,this.inspectOpts)}});var UR=C((vtr,u6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u6.exports=Lfe():u6.exports=Yfe()});var Wfe=C(vi=>{"use strict";var cst=vi&&vi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ast=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vfe=vi&&vi.__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)&&cst(e,t,r);return Ast(e,t),e};Object.defineProperty(vi,"__esModule",{value:!0});vi.req=vi.json=vi.toBuffer=void 0;var ust=Vfe(Q("http")),lst=Vfe(Q("https"));async function Jfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}vi.toBuffer=Jfe;async function dst(t){let r=(await Jfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}vi.json=dst;function hst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?lst:ust).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}vi.req=hst});var d6=C(bo=>{"use strict";var jfe=bo&&bo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fst=bo&&bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kfe=bo&&bo.__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)&&jfe(e,t,r);return fst(e,t),e},gst=bo&&bo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jfe(e,t,r)};Object.defineProperty(bo,"__esModule",{value:!0});bo.Agent=void 0;var pst=Kfe(Q("net")),zfe=Kfe(Q("http")),mst=Q("https");gst(Wfe(),bo);var NA=Symbol("AgentBaseInternalState"),l6=class extends zfe.Agent{constructor(e){super(e),this[NA]={}}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 pst.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)?mst.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof zfe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[NA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[NA].currentSocket;if(this[NA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[NA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[NA]&&(this[NA].defaultPort=e)}get protocol(){return this[NA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[NA]&&(this[NA].protocol=e)}};bo.Agent=l6});var Xfe=C(yE=>{"use strict";var Est=yE&&yE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yE,"__esModule",{value:!0});yE.parseProxyResponse=void 0;var Cst=Est(UR()),PR=(0,Cst.default)("https-proxy-agent:parse-proxy-response");function Ist(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),PR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),PR("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){FG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}FG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}lN.parseProxyResponse=Csr});var yie=f($u=>{"use strict";var Isr=$u&&$u.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bsr=$u&&$u.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZYe=$u&&$u.__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)&&Isr(e,t,r);return Bsr(e,t),e},$Ye=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.HttpsProxyAgent=void 0;var MG=ZYe(B("net")),jYe=ZYe(B("tls")),Qsr=$Ye(B("assert")),ysr=$Ye(kG()),bsr=Qie(),wsr=B("url"),Nsr=zYe(),qk=(0,ysr.default)("https-proxy-agent"),KYe=t=>t.servername===void 0&&t.host&&!MG.isIP(t.host)?{...t,servername:t.host}:t,vG=class extends bsr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wsr.URL(e):e,this.proxyHeaders=r?.headers??{},qk("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?XYe(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:"?(qk("Creating `tls.Socket`: %o",this.connectOpts),s=jYe.connect(KYe(this.connectOpts))):(qk("Creating `net.Socket`: %o",this.connectOpts),s=MG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=MG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){PR("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let F=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,V]:Array.isArray(L)?L.push(V):I[F]=V}PR("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}yE.parseProxyResponse=Ist});var nge=C(Ea=>{"use strict";var yst=Ea&&Ea.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bst=Ea&&Ea.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tge=Ea&&Ea.__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)&&yst(e,t,r);return Bst(e,t),e},rge=Ea&&Ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.HttpsProxyAgent=void 0;var OR=tge(Q("net")),Zfe=tge(Q("tls")),bst=rge(Q("assert")),Qst=rge(UR()),wst=d6(),Sst=Q("url"),Nst=Xfe(),Qb=(0,Qst.default)("https-proxy-agent"),$fe=t=>t.servername===void 0&&t.host&&!OR.isIP(t.host)?{...t,servername:t.host}:t,HR=class extends wst.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Sst.URL(e):e,this.proxyHeaders=r?.headers??{},Qb("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?ege(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:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),s=Zfe.connect($fe(this.connectOpts))):(Qb("Creating `net.Socket`: %o",this.connectOpts),s=OR.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=OR.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Nsr.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Ssr),r.secureEndpoint?(qk("Upgrading socket connection to TLS"),jYe.connect({...XYe(KYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new MG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{qk("Replaying proxy buffer for failed request"),(0,Qsr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};vG.protocols=["http","https"];$u.HttpsProxyAgent=vG;function Ssr(t){t.resume()}function XYe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var bie=f(el=>{"use strict";var Rsr=el&&el.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dsr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t5e=el&&el.__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)&&Rsr(e,t,r);return Dsr(e,t),e},xsr=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpProxyAgent=void 0;var Tsr=t5e(B("net")),ksr=t5e(B("tls")),Fsr=xsr(kG()),Msr=B("events"),vsr=Qie(),e5e=B("url"),dN=(0,Fsr.default)("http-proxy-agent"),LG=class extends vsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new e5e.URL(e):e,this.proxyHeaders=r?.headers??{},dN("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?Lsr(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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new e5e.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;dN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Nst.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Tst),r.secureEndpoint?(Qb("Upgrading socket connection to TLS"),Zfe.connect({...ege($fe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new OR.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Qb("Replaying proxy buffer for failed request"),(0,bst.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};HR.protocols=["http","https"];Ea.HttpsProxyAgent=HR;function Tst(t){t.resume()}function ege(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var oge=C(Ca=>{"use strict";var xst=Ca&&Ca.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rst=Ca&&Ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ige=Ca&&Ca.__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)&&xst(e,t,r);return Rst(e,t),e},Dst=Ca&&Ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.HttpProxyAgent=void 0;var kst=ige(Q("net")),vst=ige(Q("tls")),Fst=Dst(UR()),Mst=Q("events"),_st=d6(),sge=Q("url"),BE=(0,Fst.default)("http-proxy-agent"),GR=class extends _st.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new sge.URL(e):e,this.proxyHeaders=r?.headers??{},BE("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?Lst(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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new sge.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;BE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(BE("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),dN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(dN("Creating `tls.Socket`: %o",this.connectOpts),i=ksr.connect(this.connectOpts)):(dN("Creating `net.Socket`: %o",this.connectOpts),i=Tsr.connect(this.connectOpts)),await(0,Msr.once)(i,"connect"),i}};LG.protocols=["http","https"];el.HttpProxyAgent=LG;function Lsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var wie=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.globalNoProxyList=tl.proxyPolicyName=void 0;tl.loadNoProxy=o5e;tl.getDefaultProxySettings=Vsr;tl.proxyPolicy=zsr;var Usr=yie(),Psr=bie(),_sr=Uk(),Osr="HTTPS_PROXY",Hsr="HTTP_PROXY",qsr="ALL_PROXY",Gsr="NO_PROXY";tl.proxyPolicyName="proxyPolicy";tl.globalNoProxyList=[];var s5e=!1,Ysr=new Map;function UG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function i5e(){if(!process)return;let t=UG(Osr),e=UG(qsr),r=UG(Hsr);return t||e||r}function Jsr(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function o5e(){let t=UG(Gsr);return s5e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function Vsr(t){if(!t&&(t=i5e(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function Wsr(){let t=i5e();return t?new URL(t):void 0}function r5e(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function n5e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&_sr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Psr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Usr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function zsr(t,e){s5e||tl.globalNoProxyList.push(...o5e());let r=t?r5e(t):Wsr(),n={};return{name:tl.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!Jsr(s.url,e?.customNoProxyList??tl.globalNoProxyList,e?.customNoProxyList?void 0:Ysr)?n5e(s,n,r):s.proxySettings&&n5e(s,n,r5e(s.proxySettings)),i(s)}}}});var Nie=f(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.agentPolicyName=void 0;hN.agentPolicy=jsr;hN.agentPolicyName="agentPolicy";function jsr(t){return{name:hN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var Sie=f(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.tlsPolicyName=void 0;gN.tlsPolicy=Ksr;gN.tlsPolicyName="tlsPolicy";function Ksr(t){return{name:gN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Gk=f(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.isNodeReadableStream=a5e;a0.isWebReadableStream=A5e;a0.isBinaryBody=Xsr;a0.isReadableStream=c5e;a0.isBlob=Zsr;function a5e(t){return!!(t&&typeof t.pipe=="function")}function A5e(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Xsr(t){return t!==void 0&&(t instanceof Uint8Array||c5e(t)||typeof t=="function"||t instanceof Blob)}function c5e(t){return a5e(t)||A5e(t)}function Zsr(t){return typeof t.stream=="function"}});var d5e=f(Die=>{"use strict";Object.defineProperty(Die,"__esModule",{value:!0});Die.concat=rir;var Rie=B("stream"),$sr=Gk();async function*u5e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function eir(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=u5e.bind(t)),t.values||(t.values=u5e.bind(t))}function l5e(t){return t instanceof ReadableStream?(eir(t),Rie.Readable.fromWeb(t)):t}function tir(t){return t instanceof Uint8Array?Rie.Readable.from(Buffer.from(t)):(0,$sr.isBlob)(t)?l5e(t.stream()):l5e(t)}async function rir(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(tir);return Rie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var xie=f(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});pN.multipartPolicyName=void 0;pN.multipartPolicy=gir;var fN=s0(),nir=Gk(),sir=hG(),iir=d5e();function oir(){return`----AzSDKFormBoundary${(0,sir.randomUUID)()}`}function air(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Air(t){return t instanceof Uint8Array?t.byteLength:(0,nir.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function cir(t){let e=0;for(let r of t){let n=Air(r);if(n===void 0)return;e+=n}return e}async function uir(t,e,r){let n=[(0,fN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,fN.stringToUint8Array)(`\r
`,"utf-8"),(0,fN.stringToUint8Array)(air(i.headers),"utf-8"),(0,fN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,fN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,fN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=cir(n);s&&t.headers.set("Content-Length",s),t.body=await(0,iir.concat)(n)}pN.multipartPolicyName="multipartPolicy";var lir=70,dir=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hir(t){if(t.length>lir)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dir.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function gir(){return{name:pN.multipartPolicyName,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?hir(r):r=oir(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await uir(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var f5e=f(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.createPipelineFromOptions=wir;var fir=rie(),pir=Yse(),mir=nie(),Eir=oie(),Cir=aie(),Iir=fie(),Bir=pie(),h5e=Hk(),Qir=wie(),yir=Nie(),bir=Sie(),g5e=xie();function wir(t){let e=(0,pir.createEmptyPipeline)();return h5e.isNodeLike&&(t.agent&&e.addPolicy((0,yir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,bir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,Qir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Cir.decompressResponsePolicy)())),e.addPolicy((0,Bir.formDataPolicy)(),{beforePolicies:[g5e.multipartPolicyName]}),e.addPolicy((0,Eir.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,g5e.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,Iir.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),h5e.isNodeLike&&e.addPolicy((0,mir.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,fir.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var p5e=f(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.apiVersionPolicyName=void 0;mN.apiVersionPolicy=Nir;mN.apiVersionPolicyName="ApiVersionPolicy";function Nir(t){return{name:mN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var m5e=f(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.isOAuth2TokenCredential=Sir;EN.isBearerTokenCredential=Rir;EN.isBasicCredential=Dir;EN.isApiKeyCredential=xir;function Sir(t){return"getOAuth2Token"in t}function Rir(t){return"getBearerToken"in t}function Dir(t){return"username"in t&&"password"in t}function xir(t){return"key"in t}});var Yk=f(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ensureSecureConnection=Mir;var Tir=Uk(),E5e=!1;function kir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function Fir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";Tir.logger.warning(t),typeof process?.emitWarning=="function"&&!E5e&&(E5e=!0,process.emitWarning(t))}function Mir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(kir(t,e))Fir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var C5e=f(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.apiKeyAuthenticationPolicyName=void 0;CN.apiKeyAuthenticationPolicy=Lir;var vir=Yk();CN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Lir(t){return{name:CN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,vir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var B5e=f(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.basicAuthenticationPolicyName=void 0;IN.basicAuthenticationPolicy=Pir;var I5e=s0(),Uir=Yk();IN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function Pir(t){return{name:IN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,Uir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,I5e.uint8ArrayToString)((0,I5e.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var Q5e=f(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var f9e=f(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.auxiliaryAuthenticationHeaderPolicyName=void 0;l0.auxiliaryAuthenticationHeaderPolicy=ycr;var Icr=voe(),Bcr=Wk();l0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var g9e="x-ms-authorization-auxiliary";async function Qcr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function ycr(t){let{credentials:e,scopes:r}=t,n=t.logger||Bcr.logger,s=new WeakMap;return{name:l0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${l0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,Icr.createTokenCycler)(c),s.set(c,u)),a.push(Qcr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${g9e} header will not be set.`),o(i)):(i.headers.set(g9e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Ji=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var bcr=Gie();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return bcr.createEmptyPipeline}});var wcr=X6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return wcr.createPipelineFromOptions}});var Ncr=Z6e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return Ncr.createDefaultHttpClient}});var Scr=$6e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return Scr.createHttpHeaders}});var Rcr=e9e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return Rcr.createPipelineRequest}});var p9e=i8();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return p9e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return p9e.isRestError}});var m9e=hoe();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return m9e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return m9e.decompressResponsePolicyName}});var E9e=r9e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return E9e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return E9e.exponentialRetryPolicyName}});var C9e=Eoe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return C9e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return C9e.setClientRequestIdPolicyName}});var I9e=Zie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return I9e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return I9e.logPolicyName}});var B9e=doe();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return B9e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return B9e.multipartPolicyName}});var Loe=moe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Loe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Loe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Loe.getDefaultProxySettings}});var Q9e=$ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return Q9e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Me=h(Q,J);if(Me===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Me.value;if(J=Me.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Me.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=Ic(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Me=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Me=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Me=q.lastIndexOf("."),q=q.substring(0,Me),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=WI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=Ic(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=Ic(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=WI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Me=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Ys="";if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let Su=this.readStopNodeData(Q,Ee,bt+1);if(!Su)throw new Error(`Unexpected end of ${Ee}`);J=Su.i,Ys=Su.tagContent}let _a=new F(ae);ae!==Me&&zt&&(_a[":@"]=this.buildAttributesMap(Me,q,ae)),Ys&&(Ys=this.parseTextData(Ys,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),_a.add(this.options.textNodeName,Ys),this.addChild(P,_a,q,hn)}else{if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Ys=new F(ae);ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Ys=new F(ae);this.tagsNodeStack.push(P),ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),P=Ys}j="",J=bt}}else j+=Q[J];return b.child};function JI(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let VI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function Ic(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function WI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Ys,_a="";for(let Su=pr;Su<bt.length;Su++){let Bc=bt[Su];if(Ys)Bc===Ys&&(Ys="");else if(Bc==='"'||Bc==="'")Ys=Bc;else if(Bc===hn[0]){if(!hn[1])return{data:_a,index:Su};if(bt[Su+1]===hn[1])return{data:_a,index:Su}}else Bc===" "&&(Bc=" ");_a+=Bc}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Me=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Me=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Uf(Q,b,"",P)}function Uf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=BA(ae);if(Ee===void 0)continue;let Me="";if(Me=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];qm(Me,b)||(hn=b.tagValueProcessor(Ee,hn),hn=eB(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=QA(ae[":@"],b),Ys=Ee==="?xml"?"":j,_a=ae[Ee][0][b.textNodeName];_a=_a.length!==0?" "+_a:"",q+=Ys+`<${Ee}${_a}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${QA(ae[":@"],b)}`,pr=Uf(ae[Ee],b,Me,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function BA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function QA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=eB(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function qm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function eB(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?$I(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Me="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Me+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Me,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Me=0;Me<Ee;Me++)j+=this.buildAttrPairStr(ae[Me],""+Q[ue][ae[Me]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};TJe.exports=e})()});var cae=f(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.XML_CHARKEY=GN.XML_ATTRKEY=void 0;GN.XML_ATTRKEY="$";GN.XML_CHARKEY="_"});var vJe=f(S8=>{"use strict";Object.defineProperty(S8,"__esModule",{value:!0});S8.stringifyXML=_lr;S8.parseXML=Olr;var uae=kJe(),FJe=cae();function MJe(t){var e;return{attributesGroupName:FJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:FJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ulr(t={}){var e,r;return Object.assign(Object.assign({},MJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Plr(t={}){return Object.assign(Object.assign({},MJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ha.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ha.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ha.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,Tdr.compareHeader)(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=(0,rVe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,rVe.getURLQueries)(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};q8.StorageSharedKeyCredentialPolicy=Rae});var nVe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.StorageSharedKeyCredential=void 0;var kdr=B("node:crypto"),Fdr=Dae(),Mdr=O8(),xae=class extends Mdr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Fdr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,kdr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};G8.StorageSharedKeyCredential=xae});var sVe=f(Y8=>{"use strict";Object.defineProperty(Y8,"__esModule",{value:!0});Y8.AbortError=void 0;var Tae=class extends Error{constructor(e){super(e),this.name="AbortError"}};Y8.AbortError=Tae});var kae=f(J8=>{"use strict";Object.defineProperty(J8,"__esModule",{value:!0});J8.AbortError=void 0;var vdr=sVe();Object.defineProperty(J8,"AbortError",{enumerable:!0,get:function(){return vdr.AbortError}})});var Fae=f(V8=>{"use strict";Object.defineProperty(V8,"__esModule",{value:!0});V8.logger=void 0;var Ldr=A0();V8.logger=(0,Ldr.createClientLogger)("storage-common")});var Mae=f(W8=>{"use strict";Object.defineProperty(W8,"__esModule",{value:!0});W8.StorageRetryPolicyType=void 0;var iVe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(iVe||(W8.StorageRetryPolicyType=iVe={}))});var aVe=f(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.StorageRetryPolicy=void 0;I2.NewRetryPolicyFactory=_dr;var Udr=kae(),Pdr=C2(),oVe=Cp(),vae=h0(),LE=Fae(),Lae=Mae();function _dr(t){return{create:(e,r)=>new z8(e,r,t)}}var UE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Odr=new Udr.AbortError("The operation was aborted."),z8=class extends Pdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=UE){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:UE.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):UE.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:UE.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:UE.maxRetryDelayInMs):UE.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:UE.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:UE.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=(0,vae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,vae.setURLParameter)(s.url,oVe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(LE.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(LE.logger.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return LE.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return LE.logger.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return LE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return LE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(oVe.HeaderConstants.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(LE.logger.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 Lae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return LE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,vae.delay)(s,n,Odr)}};I2.StorageRetryPolicy=z8});var _ae=f(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,Zdr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ga.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ga.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ga.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,$dr.compareHeader)(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=(0,hVe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,hVe.getURLQueries)(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:KN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var fVe=f(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.storageRequestFailureDetailsParserPolicyName=void 0;XN.storageRequestFailureDetailsParserPolicy=thr;XN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function thr(){return{name:XN.storageRequestFailureDetailsParserPolicyName,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}}}}});var pVe=f(j8=>{"use strict";Object.defineProperty(j8,"__esModule",{value:!0});j8.UserDelegationKeyCredential=void 0;var rhr=B("node:crypto"),Gae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,rhr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};j8.UserDelegationKeyCredential=Gae});var bd=f(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.BaseRequestPolicy=Ks.getCachedDefaultHttpClient=void 0;var fa=(Wn(),$n(Vn));fa.__exportStar(OJe(),Ks);var nhr=HJe();Object.defineProperty(Ks,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return nhr.getCachedDefaultHttpClient}});fa.__exportStar(GJe(),Ks);fa.__exportStar(eVe(),Ks);fa.__exportStar(tVe(),Ks);fa.__exportStar(O8(),Ks);fa.__exportStar(nVe(),Ks);fa.__exportStar(_ae(),Ks);var shr=C2();Object.defineProperty(Ks,"BaseRequestPolicy",{enumerable:!0,get:function(){return shr.BaseRequestPolicy}});fa.__exportStar(yae(),Ks);fa.__exportStar(U8(),Ks);fa.__exportStar(AVe(),Ks);fa.__exportStar(cVe(),Ks);fa.__exportStar(dVe(),Ks);fa.__exportStar(Dae(),Ks);fa.__exportStar(gVe(),Ks);fa.__exportStar(fVe(),Ks);fa.__exportStar(pVe(),Ks)});var Gc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var PE=f(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.Pipeline=Zh.StorageOAuthScopes=void 0;Zh.isPipelineLike=ohr;Zh.newPipeline=ahr;Zh.getCoreClientOptions=chr;Zh.getCredentialFromPipeline=BVe;var IVe=N8(),mVe=Ji(),EVe=jh(),CVe=lae(),Yae=PN(),ihr=D8(),Yc=bd(),B2=Gc();Object.defineProperty(Zh,"StorageOAuthScopes",{enumerable:!0,get:function(){return B2.StorageOAuthScopes}});function ohr(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var K8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Zh.Pipeline=K8;function ahr(t,e={}){t||(t=new Yc.AnonymousCredential);let r=new K8([],e);return r._credential=t,r}function Ahr(t){let e=[uhr,QVe,lhr,dhr,hhr,ghr,phr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>fhr(s));return{wrappedPolicies:(0,IVe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function chr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,IVe.convertHttpClient)(e):(0,Yc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${B2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,EVe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:B2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:B2.StorageBlobLoggingAllowedQueryParameters,logger:ihr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:CVe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new C0.SASQueryParameters(t.version,i,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}}function Sfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Rfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Dfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function xfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function Tfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function kfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,E0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new C0.SASQueryParameters(t.version,o,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:i}}function I0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function B0(t){let e=t.version?t.version:aWe.SERVICE_VERSION;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}});var I3=f(C3=>{"use strict";Object.defineProperty(C3,"__esModule",{value:!0});C3.BlobLeaseClient=void 0;var Ffr=Bs(),eg=Gc(),y2=f0(),E3=nl(),hAe=class{_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=(0,Ffr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==eg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,E3.assertResponse)(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!==eg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,E3.assertResponse)(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!==eg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,E3.assertResponse)(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!==eg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${RWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(SWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function apr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await opr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(DWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!RWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}VE.pollOperation=apr});var LAe=f(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.pollHttpOperation=Zs.isOperationError=Zs.getResourceLocation=Zs.getOperationStatus=Zs.getOperationLocation=Zs.initHttpOperation=Zs.getStatusFromInitialResponse=Zs.getErrorFromResponse=Zs.parseRetryAfter=Zs.inferLroMode=void 0;var xWe=F3(),FAe=T3();function TWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function kWe(t){return t.headers.location}function FWe(t){return t.headers["operation-location"]}function MWe(t){return t.headers["azure-asyncoperation"]}function Apr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function vWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=FWe(e),o=MWe(e),a=TWe({operationLocation:i,azureAsyncOperation:o}),A=kWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Apr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Zs.inferLroMode=vWe;function LWe(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 MAe(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 FAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function cpr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return LWe({status:r,statusCode:t.statusCode})}function upr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return LWe({status:i,statusCode:t.statusCode})}function MAe(t){return t===202?"running":t<300?"succeeded":"failed"}function UWe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?lpr(new Date(e)):r*1e3}}Zs.parseRetryAfter=UWe;function PWe(t){let e=HWe(t,"error");if(!e){FAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){FAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Zs.getErrorFromResponse=PWe;function lpr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function _We(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return MAe(e.rawResponse.statusCode);case"Body":return vAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Zs.getStatusFromInitialResponse=_We;async function dpr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,xWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=vWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:_We,setErrorAsResult:i})}Zs.initHttpOperation=dpr;function OWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,g4.truncatedISO8061Date)(t.startsOn,!1):"",(0,g4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,fze.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Cmr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var Bze=f(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.BlobServiceClient=void 0;var Qmr=PN(),ymr=Ji(),mze=Bs(),S2=PE(),bmr=ace(),p4=nl(),w0=bd(),ig=nl(),og=f0(),wmr=i4(),Nmr=c3(),Eze=u4(),Cze=dce(),Ize=h4(),hce=class t extends Nmr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,p4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(mze.isNodeLike){let s=new w0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,ymr.getDefaultProxySettings)(n.proxyUri));let i=(0,S2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,S2.newPipeline)(new w0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,S2.isPipelineLike)(r)?s=r:mze.isNodeLike&&r instanceof w0.StorageSharedKeyCredential||r instanceof w0.AnonymousCredential||(0,Qmr.isTokenCredential)(r)?s=(0,S2.newPipeline)(r,n):s=(0,S2.newPipeline)(new w0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new bmr.ContainerClient((0,p4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return og.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,ig.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return og.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,ig.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return og.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return og.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,ig.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return og.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,ig.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,p4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};zA.NetworkError=B4;B4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Q4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};zA.UsageError=Q4;Q4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Nze=f(jA=>{"use strict";var Tmr=jA&&jA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kmr=jA&&jA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fmr=jA&&jA.__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)&&Tmr(e,t,r);return kmr(e,t),e},Mmr=jA&&jA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.uploadCacheArchiveSDK=jA.UploadProgress=void 0;var Ice=Fmr(Oc()),vmr=gce(),Lmr=Cce(),y4=class{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);Ice.info(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};jA.UploadProgress=y4;function Umr(t,e,r){var n;return Mmr(this,void 0,void 0,function*(){let s=new vmr.BlobClient(t),i=s.getBlockBlobClient(),o=new y4((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),Ice.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Lmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ice.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}jA.uploadCacheArchiveSDK=Umr});var Qce=f(ei=>{"use strict";var Pmr=ei&&ei.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_mr=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Omr=ei&&ei.__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)&&Pmr(e,t,r);return _mr(e,t),e},w4=ei&&ei.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0});ei.retryHttpClientResponse=ei.retryTypedResponse=ei.retry=ei.isRetryableStatusCode=ei.isServerErrorStatusCode=ei.isSuccessStatusCode=void 0;var Sze=Omr(Oc()),b4=XB(),dS=zw();function Hmr(t){return t?t>=200&&t<300:!1}ei.isSuccessStatusCode=Hmr;function Rze(t){return t?t>=500:!0}ei.isServerErrorStatusCode=Rze;function Dze(t){return t?[b4.HttpCodes.BadGateway,b4.HttpCodes.ServiceUnavailable,b4.HttpCodes.GatewayTimeout].includes(t):!1}ei.isRetryableStatusCode=Dze;function qmr(t){return w4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bce(t,e,r,n=dS.DefaultRetryAttempts,s=dS.DefaultRetryDelay,i=void 0){return w4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!Rze(c)))return A;if(c&&(u=Dze(c),o=`Cache service responded with ${c}`),Sze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Wc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function wEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=new mEr.URL(t),s=(0,Dce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,D4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,D4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,D4.downloadCacheHttpClient)(t,e):yield(0,D4.downloadCacheHttpClient)(t,e)})}mo.downloadCache=wEr;function NEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=xce(),s=fS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,KE.retryTypedResponse)("reserveCache",()=>KA(this,void 0,void 0,function*(){return n.postJson(F2("caches"),i)}))})}mo.reserveCache=NEr;function Hze(t,e){return`bytes ${t}-${e}/*`}function SEr(t,e,r,n,s){return KA(this,void 0,void 0,function*(){Wc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Hze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Hze(n,s)},o=yield(0,KE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>KA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,KE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function REr(t,e,r,n){return KA(this,void 0,void 0,function*(){let s=fS.getArchiveFileSizeInBytes(r),i=F2(`caches/${e.toString()}`),o=Sce.openSync(r,"r"),a=(0,Dce.getUploadOptions)(n),A=fS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=fS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Wc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>KA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield SEr(t,i,()=>Sce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{Sce.closeSync(o)}})}function DEr(t,e,r){return KA(this,void 0,void 0,function*(){let n={size:r};return yield(0,KE.retryTypedResponse)("commitCache",()=>KA(this,void 0,void 0,function*(){return t.postJson(F2(`caches/${e.toString()}`),n)}))})}function xEr(t,e,r,n){return KA(this,void 0,void 0,function*(){if((0,Dce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,EEr.uploadCacheArchiveSDK)(r,e,n)}else{let i=xce();Wc.debug("Upload cache"),yield REr(i,t,e,n),Wc.debug("Commiting cache");let o=fS.getArchiveFileSizeInBytes(e);Wc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield DEr(i,t,o);if(!(0,KE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Wc.info("Cache saved successfully")}})}mo.saveCache=xEr});var x4=f(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.isJsonObject=pS.typeofJsonValue=void 0;function TEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}pS.typeofJsonValue=TEr;function kEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}pS.isJsonObject=kEr});var k4=f(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.base64encode=mS.base64decode=void 0;var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),T4=[];for(let t=0;t<yp.length;t++)T4[yp[t].charCodeAt(0)]=t;T4[45]=yp.indexOf("+");T4[95]=yp.indexOf("/");function FEr(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=T4[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}mS.base64decode=FEr;function MEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=yp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=yp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=yp[s|n>>6],e+=yp[n&63],r=0;break}return r&&(e+=yp[s],e+="=",r==1&&(e+="=")),e}mS.base64encode=MEr});var Gze=f(F4=>{"use strict";Object.defineProperty(F4,"__esModule",{value:!0});F4.utf8read=void 0;var Tce=t=>String.fromCharCode.apply(String,t);function vEr(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Tce(n)),s=0);return r.length?(s&&r.push(Tce(n.slice(0,s))),r.join("")):Tce(n.slice(0,s))}F4.utf8read=vEr});var M2=f(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.WireType=ag.mergeBinaryOptions=ag.UnknownFieldHandler=void 0;var LEr;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(LEr=ag.UnknownFieldHandler||(ag.UnknownFieldHandler={}));function UEr(t,e){return Object.assign(Object.assign({},t),e)}ag.mergeBinaryOptions=UEr;var PEr;(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"})(PEr=ag.WireType||(ag.WireType={}))});var v4=f(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.varint32read=XA.varint32write=XA.int64toString=XA.int64fromString=XA.varint64write=XA.varint64read=void 0;function _Er(){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")}XA.varint64read=_Er;function OEr(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}XA.varint64write=OEr;var M4=65536*65536;function HEr(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=M4&&(s=s+(n/M4|0),n=n%M4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}XA.int64fromString=HEr;function qEr(t,e){if(e>>>0<=2097151)return""+(M4*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}XA.int64toString=qEr;function GEr(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)}}XA.varint32write=GEr;function YEr(){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}XA.varint32read=YEr});var ZE=f(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.PbLong=XE.PbULong=XE.detectBi=void 0;var v2=v4(),_n;function Yze(){let t=new DataView(new ArrayBuffer(8));_n=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}XE.detectBi=Yze;Yze();function Jze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Vze=/^-?[0-9]+$/,U4=4294967296,L4=2147483648, Line truncated
`)}};AY.RpcError=sue});var oue=f(uY=>{"use strict";Object.defineProperty(uY,"__esModule",{value:!0});uY.mergeRpcOptions=void 0;var Qje=lr();function dIr(t,e){if(!e)return t;let r={};cY(t,r),cY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Qje.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qje.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cY(t.meta,r.meta),cY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}uY.mergeRpcOptions=dIr;function cY(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}});var Aue=f(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.Deferred=R0.DeferredState=void 0;var ug;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ug=R0.DeferredState||(R0.DeferredState={}));var aue=class{constructor(e=!0){this._state=ug.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!==ug.PENDING)throw new Error(`cannot resolve ${ug[this.state].toLowerCase()}`);this._resolve(e),this._state=ug.RESOLVED}reject(e){if(this.state!==ug.PENDING)throw new Error(`cannot reject ${ug[this.state].toLowerCase()}`);this._reject(e),this._state=ug.REJECTED}resolvePending(e){this._state===ug.PENDING&&this.resolve(e)}rejectPending(e){this._state===ug.PENDING&&this.reject(e)}};R0.Deferred=aue});var uue=f(lY=>{"use strict";Object.defineProperty(lY,"__esModule",{value:!0});lY.RpcOutputStreamController=void 0;var yje=Aue(),D0=lr(),cue=class{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){D0.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){D0.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){D0.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(){D0.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:()=>{let e=this._itState;D0.assert(e,"bad state"),D0.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 yje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;D0.assert(n.state==yje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};lY.RpcOutputStreamController=cue});var due=f(bS=>{"use strict";var hIr=bS&&bS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(bS,"__esModule",{value:!0});bS.UnaryCall=void 0;var lue=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 hIr(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}})}};bS.UnaryCall=lue});var gue=f(wS=>{"use strict";var gIr=wS&&wS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(wS,"__esModule",{value:!0});wS.ServerStreamingCall=void 0;var hue=class Line truncated
`));let n=yield Uue(r,"create");yield Pue(n,t)})}pa.createTar=ABr});var Z2=f(Mi=>{"use strict";var cBr=Mi&&Mi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uBr=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K2=Mi&&Mi.__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)&&cBr(e,t,r);return uBr(e,t),e},HS=Mi&&Mi.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.saveCache=Mi.restoreCache=Mi.isFeatureAvailable=Mi.ReserveCacheError=Mi.ValidationError=void 0;var dr=K2(Oc()),CY=K2(B("path")),bs=K2(Kw()),_S=K2(qze()),qje=K2(Pje()),X2=S4(),tC=Hje(),lBr=zw(),y2n=XB(),rC=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Mi.ValidationError=rC;var j2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Mi.ReserveCacheError=j2;function Gje(t){if(!t||t.length===0)throw new rC("Path Validation Error: At least one directory or file path is required")}function _ue(t){if(t.length>512)throw new rC(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new rC(`Key Validation Error: ${t} cannot contain commas.`)}function dBr(){return(0,X2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}Mi.isFeatureAvailable=dBr;function hBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){let i=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Gje(t),i==="v2"?yield fBr(t,e,r,n,s):yield gBr(t,e,r,n,s)})}Mi.restoreCache=hBr;function gBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new rC("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)_ue(A);let o=yield bs.getCompressionMethod(),a="";try{let A=yield _S.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=CY.join(yield bs.createTempDirectory(),bs.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield _S.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,tC.listTar)(a,o));let c=bs.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,tC.extractTar)(a,o),dr.info("Cache restored successfully"),new OS(A.cacheKey,c)}finally{try{yield bs.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function fBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new rC("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)_ue(a);let o="";try{let a=qje.internalCacheTwirpClient(),A=yield bs.getCompressionMethod(),c={key:e,restoreKeys:r,version:bs.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=CY.join(yield bs.createTempDirectory(),bs.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield _S.downloadCache(u.signedDownloadUrl,o,n);let d=bs.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,tC.listTar)(o,A)),yield(0,tC.extractTar)(o,A),dr.info("Cache restored successfully"),new OS(u.matchedKey,d)}finally{try{o&&(yield bs.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function pBr(t,e,r,n=!1){return HS(this,void 0,void 0,function*(){let s=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Gje(t),_ue(e),s==="v2"?yield EBr(t,e,r,n):yield mBr(t,e,r,n)})}Mi.saveCache=pBr;function mBr(t,e,r,n=!1){var s,i,o,a,A;return HS(this,void 0,void 0,function*(){let c=yield bs.getCompressionMethod(),u=-1,l=yield bs.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function $Qr(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(UQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function eyr(){return"allowed"}function tyr(){return"success"}function ryr(){return"success"}function nyr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function syr(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&&_le(t.origin)&&!_le(dF(t))&&(e=null);break;case"same-origin":zY(t,dF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function tR(t,e){return t}function iyr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:tR(t.domainLookupStartTime,r),domainLookupEndTime:tR(t.domainLookupEndTime,r),connectionStartTime:tR(t.connectionStartTime,r),connectionEndTime:tR(t.connectionEndTime,r),secureConnectionStartTime:tR(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function oyr(t){return tR(qQr.now(),t)}function ayr(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}}function WKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Ayr(t){return{referrerPolicy:t.referrerPolicy}}function cyr(t){let e=t.referrerPolicy;U0(e);let r=null;if(t.referrer==="client"){let a=HKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=Ple(r),s=Ple(r,!0);n.toString().length>4096&&(n=s);let i=zY(t,n),o=lF(n)&&!lF(t.url);switch(e){case"origin":return s??Ple(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=dF(t);return zY(n,a)?n:lF(n)&&!lF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function Ple(t,e){return U0(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)}function lF(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"))}}function uyr(t,e){if(WY===void 0)return!0;let r=zKe(e);if(r==="no metadata"||r.length===0)return!0;let n=dyr(r),s=hyr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=WY.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),gyr(A,a))return!0}return!1}var lyr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=lyr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();GKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function dyr(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}function hyr(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}function gyr(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}function fyr(t){}function zY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function pyr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function myr(t){return t.controller.state==="aborted"}function Eyr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Cyr(t){return JQr[t.toLowerCase()]??t}function Iyr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return U0(typeof e=="string"),e}var Byr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jKe(t,e,r=0,n=1){cl Line truncated
`);function Xyr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Zyr(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}function $yr(t,e){KY(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&XY(t,jyr,i)||i.position===t.length-4&&XY(t,Kyr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ebr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Xyr(u)||(u=""),h=new Wyr([d],c,{type:u})):h=qyr(Buffer.from(d)),KY(aXe(A)),KY(typeof h=="string"&&aXe(h)||Yyr(h)),s.push(Jyr(A,h,c))}}function ebr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=nR(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vle(o,!0,!0,a=>a===9||a===32),!Gyr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,nR(a=>a===32||a===9,t,e),Hyr(o)){case"content-disposition":{if(r=n=null,!XY(t,zyr,e)||(e.position+=17,r=uXe(t,e),r===null))return"failure";if(XY(t,cXe,e)){let a=e.position+cXe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=uXe(t,e),n===null))return"failure"}break}case"content-type":{let a=nR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),s=AXe(a);break}case"content-transfer-encoding":{let a=nR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),i=AXe(a);break}default:nR(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function uXe(t,e){KY(t[e.position-1]===34);let r=nR(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)}function nR(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Vle(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function XY(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}lXe.exports={multipartFormDataParser:$yr,validateBoundary:Zyr}});var oR=f((EFn,QXe)=>{"use strict";var fF=Ir(),{ReadableStreamFrom:tbr,isBlobLike:hXe,isReadableStreamLike:rbr,readableStreamClose:nbr,createDeferredPromise:sbr,fullyReadBody:ibr,extractMimeType:obr,utf8DecodeBytes:pXe}=jc(),{FormData:gXe}=gF(),{kState:iR}=oC(),{webidl:abr}=Wo(),{Blob:Abr}=B("node:buffer"),Wle=B("node:assert"),{isErrored:mXe,isDisturbed:cbr}=B("node:stream"),{isArrayBuffer:ubr}=B("node:util/types"),{serializeAMimeType:lbr}=$A(),{multipartFormDataParser:dbr}=dXe(),zle;try{let t=B("node:crypto");zle=e=>t.randomInt(0,e)}catch{zle=t=>Math.floor(Math.random(t))}var ZY=new TextEncoder;function hbr(){}var EXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,CXe;EXe&&(CXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cbr(e)&&!mXe(e)&&e.cancel("Response object has been garbage collected").catch(hbr)}));function IXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:hXe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?ZY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>nbr(A))},start(){},type:"bytes"}),Wle(rbr(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(ubr(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(fF.isFormDataLike(t)){let A=`----formdata-undici-0${`${zle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=ZY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=ZY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=ZY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(hXe(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(fF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:tbr(t)}if((typeof s=="string"||fF.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!mXe(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function gbr(t,e=!1){return t instanceof ReadableStream&&(Wle(!fF.isDisturbed(t),"The body has already been consumed."),Wle(!t.locked,"The stream is locked.")),IXe(t,e)}function fbr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function pbr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function mbr(t){return{blob(){return sR(this,r=>{let n=fXe(this);return n===null?n="":n&&(n=lbr(n)),new Abr([r],{type:n})},t)},arrayBuffer(){return sR(this,r=>new Uint8Array(r).buffer,t)},text(){return sR(this,pXe,t)},json(){return sR(this,Cbr,t)},formData(){return sR(this,r=>{let n=fXe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=dbr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gXe;return i[iR]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new gXe;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return sR(this,r=>new Uint8Array(r),t)}}}function Ebr(t){Object.assign(t.prototype,mbr(t))}async function sR(t,e,r){if(abr.brandCheck(t,r),BXe(t))throw new TypeError("Body is unusable: Body has already been read");pbr(t[iR]);let n=sbr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[iR].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await ibr(t[iR].body,i,s),n.promise)}function BXe(t){let e=t[iR].body;return e!=null&&(e.stream.locked||fF.isDisturbed(e.stream))}function Cbr(t){return JSON.parse(pXe(t))}function fXe(t){let e=t[iR].headersList,r=obr(e);return r==="failure"?null:r}QXe.exports={extractBody:IXe,safelyExtractBody:gbr,cloneBody:fbr,mixinBody:Ebr,streamRegistry:CXe,hasFinalizationRegistry:EXe,bodyUnusable:BXe}});var FXe=f((CFn,kXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:yXe}=WS(),jle=xle(),{RequestContentLengthMismatchError:P0,ResponseContentLengthMismatchError:Ibr,RequestAbortedError:DXe,HeadersTimeoutError:Bbr,HeadersOverflowError:Qbr,SocketError:s5,InformationalError:aR,BodyTimeoutError:ybr,HTTPParserError:bbr,ResponseExceededMaxSizeError:wbr}=sn(),{kUrl:xXe,kReset:ec,kClient:$le,kParser:si,kBlocking:EF,kRunning:ma,kPending:Nbr,kSize:bXe,kWriting:AC,kQueue:Td,kNoRef:pF,kKeepAliveDefaultTimeout:Sbr,kHostHeader:Rbr,kPendingIdx:Dbr,kRunningIdx:gl,kError:fl,kPipelining:r5,kSocket:AR,kKeepAliveTimeoutValue:i5,kMaxHeadersSize:Kle,kKeepAliveMaxTimeout:xbr,kKeepAliveTimeoutThreshold:Tbr,kHeadersTimeout:kbr,kBodyTimeout:Fbr,kStrictContentLength:ede,kMaxRequests:wXe,kCounter:Mbr,kMaxResponseSize:vbr,kOnError:Lbr,kResume:aC,kHTTPContext:TXe}=ws(),gg=CKe(),Ubr=Buffer.alloc(0),$Y=Buffer[Symbol.species],e5=Vt.addListener,Pbr=Vt.removeAllListeners,Xle;async function _br(){let t=process.env.JEST_WORKER_ID?Fle():void 0,e;try{e=await WebAssembly.compile(QKe())}catch{e=await WebAssembly.compile(t||Fle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onStatus(new $Y(fg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(zi.ptr===r),zi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onHeaderField(new $Y(fg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onHeaderValue(new $Y(fg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(zi.ptr===r),zi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onBody(new $Y(fg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(zi.ptr===r),zi.onMessageComplete()||0)}})}var Zle=null,tde=_br();tde.catch();var zi=null,fg=null,t5=0,pg=null,Obr=0,mF=1,cR=2|mF,n5=4|mF,rde=8|Obr,nde=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Kle])&&e[Kle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(gg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Rbr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[r5]&&!h[ec]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return yXe.sendHeaders.hasSubscribers&&yXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?SXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?SXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?RXe(g,A.stream(),t,e,h,u,p,l):Vbr(g,A,t,e,h,u,p,l):Vt.isStream(A)?Jbr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?RXe(g,A,t,e,h,u,p,l):kt(!1),!0}function Jbr(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"stream body cannot be pipelined");let A=!1,c=new o5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new DXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[AC]&&r[ma]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function SXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ec]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[aC]()}catch(A){t(A)}}async function Vbr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new P0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[ec]=!0),r[aC]()}catch(A){t(A)}}async function RXe(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{kt(A===null),s[fl]?h(s[fl]):A=d});s.on("close",c).on("drain",c);let l=new o5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[fl])throw s[fl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var o5=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[AC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[fl])throw r[fl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ede])throw new P0;process.emitWarning(new P0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ec]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[si].timeout&&r[si].timeoutType===cR&&r[si].timeout.refresh&&r[si].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[AC]=!1,e[fl])throw e[fl];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[ede])throw new P0;process.emitWarning(new P0)}e[si].timeout&&e[si].timeoutType===cR&&e[si].timeout.refresh&&e[si].timeout.refresh(),n[aC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[AC]=!1,e&&(kt(n[ma]<=1,"pipeline should only contain this request"),s(e))}};kXe.exports=Hbr});var HXe=f((IFn,OXe)=>{"use strict";var pl=B("node:assert"),{pipeline:Wbr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:sde,RequestAbortedError:MXe,SocketError:CF,InformationalError:ide}=sn(),{kUrl:a5,kReset:c5,kClient:uR,kRunning:u5,kPending:zbr,kQueue:cC,kPendingIdx:ode,kRunningIdx:kd,kError:Md,kSocket:Bo,kStrictContentLength:jbr,kOnError:ade,kMaxConcurrentStreams:_Xe,kHTTP2Session:Fd,kResume:uC,kSize:Kbr,kHTTPContext:Xbr}=ws(),Mp=Symbol("open streams"),vXe,LXe=!1,A5;try{A5=B("node:http2")}catch{A5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Zbr,HTTP2_HEADER_METHOD:$br,HTTP2_HEADER_PATH:ewr,HTTP2_HEADER_SCHEME:twr,HTTP2_HEADER_CONTENT_LENGTH:rwr,HTTP2_HEADER_EXPECT:nwr,HTTP2_HEADER_STATUS:swr}}=A5;function iwr(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}async function owr(t,e){t[Bo]=e,LXe||(LXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=A5.connect(t[a5],{createConnection:()=>e,peerMaxConcurrentStreams:t[_Xe]});r[Mp]=0,r[uR]=t,r[Bo]=e,Tr.addListener(r,"error",Awr),Tr.addListener(r,"frameError",cwr),Tr.addListener(r,"end",uwr),Tr.addListener(r,"goaway",lwr),Tr.addListener(r,"close",function(){let{[uR]:s}=this,{[Bo]:i}=s,o=this[Bo][Md]||this[Md]||new CF("closed",Tr.getSocketInfo(i));if(s[Fd]=null,s.destroyed){pl(s[zbr]===0);let a=s[cC].splice(s[kd]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[Fd]=r,e[Fd]=r,Tr.addListener(e,"error",function(s){pl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Md]=s,this[uR][ade](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new CF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Md]||new CF("closed",Tr.getSocketInfo(this));t[Bo]=null,this[Fd]!=null&&this[Fd].destroy(s),t[ode]=t[kd],pl(t[u5]===0),t.emit("disconnect",t[a5],[t],s),t[uC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return hwr(t,...s)},resume(){awr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function awr(t){let e=t[Bo];e?.destroyed===!1&&(t[Kbr]===0&&t[_Xe]===0?(e.unref(),t[Fd].unref()):(e.ref(),t[Fd].ref()))}function Awr(t){pl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bo][Md]=t,this[uR][ade](t)}function cwr(t,e,r){if(r===0){let n=new ide(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bo][Md]=n,this[uR][ade](n)}}function uwr(){let t=new CF("other side closed",Tr.getSocketInfo(this[Bo]));this.destroy(t),Tr.destroy(this[Bo],t)}function lwr(t){let e=this[Md]||new CF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[uR];if(r[Bo]=null,r[Xbr]=null,this[Fd]!=null&&(this[Fd].destroy(e),this[Fd]=null),Tr.destroy(this[Bo],e),r[kd]<r[cC].length){let n=r[cC][r[kd]];r[cC][r[kd]++]=null,Tr.errorRequest(r,n,e),r[ode]=r[kd]}pl(r[u5]===0),r.emit("disconnect",r[a5],[r],e),r[uC]()}function dwr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function hwr(t,e){let r=t[Fd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[a5];l[Zbr]=i||`${h}${g?`:${g}`:""}`,l[$br]=n;let p=w=>{e.aborted||e.completed||(w=w||new MXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[cC][t[kd]++]=null,t[uC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Mp],t[cC][t[kd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Mp],t[cC][t[kd]++]=null}),d.once("close",()=>{r[Mp]-=1,r[Mp]===0&&r.unref()}),!0;l[ewr]=s,l[twr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){vXe??=oR().extractBody;let[w,H]=vXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),dwr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[jbr])return Tr.errorRequest(t,e,new sde),!1;process.emitWarning(new sde)}m!=null&&(pl(u,"no body must not have content length"),l[rwr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[nwr]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[_wr]=A??3e5,this[Pwr]=s??3e5,this[Owr]=I??!0,this[Hwr]=w,this[lde]=z,this[dC]=null,this[Vwr]=W>-1?W:-1,this[zwr]=oe??100,this[Qi]=null,this[vd]=[],this[Lp]=0,this[Ld]=0,this[yF]=he=>hde(this,he),this[Wwr]=he=>$Xe(this,he)}get pipelining(){return this[g5]}set pipelining(e){this[g5]=e,this[yF](!0)}get[NF](){return this[vd].length-this[Ld]}get[wF](){return this[Ld]-this[Lp]}get[bF](){return this[vd].length-this[Lp]}get[Twr](){return!!this[Qi]&&!this[dR]&&!this[Qi].destroyed}get[ude](){return!!(this[Qi]?.busy(null)||this[bF]>=(ZXe(this)||1)||this[NF]>0)}[xwr](e){eZe(this),this.once("connect",e)}[Jwr](e,r){let n=e.origin||this[Eg].origin,s=new bwr(n,e,r);return this[vd].push(s),this[O0]||(_0.bodyLength(s.body)==null&&_0.isIterable(s.body)?(this[O0]=1,queueMicrotask(()=>hde(this))):this[yF](!0)),this[O0]&&this[hC]!==2&&this[ude]&&(this[hC]=2),this[hC]<2}async[Gwr](){return new Promise(e=>{this[bF]?this[dC]=e:e(null)})}async[Ywr](e){return new Promise(r=>{let n=this[vd].splice(this[Ld]);for(let i=0;i<n.length;i++){let o=n[i];_0.errorRequest(this,o,e)}let s=()=>{this[dC]&&(this[dC](),this[dC]=null),r(null)};this[Qi]?(this[Qi].destroy(e,s),this[Qi]=null):queueMicrotask(s),this[yF]()})}},Xwr=h5();function $Xe(t,e){if(t[wF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vp(t[Ld]===t[Lp]);let r=t[vd].splice(t[Lp]);for(let n=0;n<r.length;n++){let s=r[n];_0.errorRequest(t,s,e)}vp(t[bF]===0)}}async function eZe(t){vp(!t[dR]),vp(!t[Qi]);let{host:e,hostname:r,protocol:n,port:s}=t[Eg];if(r[0]==="["){let i=r.indexOf("]");vp(i!==-1);let o=r.substring(1,i);vp(XXe.isIP(o)),r=o}t[dR]=!0,lR.beforeConnect.hasSubscribers&&lR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF]});try{let i=await new Promise((o,a)=>{t[BF]({host:e,hostname:r,protocol:n,port:s,servername:t[lC],localAddress:t[QF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){_0.destroy(i.on("error",jXe),new Swr);return}vp(i);try{t[Qi]=i.alpnProtocol==="h2"?await Kwr(t,i):await jwr(t,i)}catch(o){throw i.destroy().on("error",jXe),o}t[dR]=!1,i[qwr]=0,i[lde]=t[lde],i[Dwr]=t,i[Fwr]=null,lR.connected.hasSubscribers&&lR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF],socket:i}),t.emit("connect",t[Eg],[t])}catch(i){if(t.destroyed)return;if(t[dR]=!1,lR.connectError.hasSubscribers&&lR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vp(t[wF]===0);t[NF]>0&&t[vd][t[Ld]].servername===t[lC];){let o=t[vd][t[Ld]++];_0.errorRequest(t,o,i)}else $Xe(t,i);t.emit("connectionError",t[Eg],[t],i)}t[yF]()}function KXe(t){t[hC]=0,t.emit("drain",t[Eg],[t])}function hde(t,e){t[O0]!==2&&(t[O0]=2,Zwr(t,e),t[O0]=0,t[Lp]>256&&(t[vd].splice(0,t[Lp]),t[Ld]-=t[Lp],t[Lp]=0))}function Zwr(t,e){for(;;){if(t.destroyed){vp(t[NF]===0);return}if(t[dC]&&!t[bF]){t[dC](),t[dC]=null;return}if(t[Qi]&&t[Qi].resume(),t[ude])t[hC]=2;else if(t[hC]===2){e?(t[hC]=1,queueMicrotask(()=>KXe(t))):KXe(t);continue}if(t[NF]===0||t[wF]>=(ZXe(t)||1))return;let r=t[vd][t[Ld]];if(t[Eg].protocol==="https:"&&t[lC]!==r.servername){if(t[wF]>0)return;t[lC]=r.servername,t[Qi]?.destroy(new Nwr("servername changed"),()=>{t[Qi]=null,hde(t)})}if(t[dR])return;if(!t[Qi]){eZe(t);return}if(t[Qi].destroyed||t[Qi].busy(r))return;!r.aborted&&t[Qi].write(r)?t[Ld]++:t[vd].splice(t[Ld],1)}}tZe.exports=dde});var gde=f((wFn,rZe)=>{"use strict";var f5=class{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)}};rZe.exports=class{constructor(){this.head=this.tail=new f5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new f5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sZe=f((NFn,nZe)=>{var{kFree:$wr,kConnected:eNr,kPending:tNr,kQueued:rNr,kRunning:nNr,kSize:sNr}=ws(),H0=Symbol("pool"),fde=class{constructor(e){this[H0]=e}get connected(){return this[H0][eNr]}get free(){return this[H0][$wr]}get pending(){return this[H0][tNr]}get queued(){return this[H0][rNr]}get running(){return this[H0][nNr]}get size(){return this[H0][sNr]}};nZe.exports=fde});var Bde=f((SFn,gZe)=>{"use strict";var iNr=XS(),oNr=gde(),{kConnected:pde,kSize:iZe,kRunning:oZe,kPending:aZe,kQueued:SF,kBusy:aNr,kFree:ANr,kUrl:cNr,kClose:uNr,kDestroy:lNr,kDispatch:dNr}=ws(),hNr=sZe(),tc=Symbol("clients"),rA=Symbol("needDrain"),RF=Symbol("queue"),mde=Symbol("closed resolve"),Ede=Symbol("onDrain"),AZe=Symbol("onConnect"),cZe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Bet.exports=Bhe});var F5=f((tMn,Net)=>{"use strict";var yet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_Rr}=sn(),ORr=fR();wet()===void 0&&bet(new ORr);function bet(t){if(!t||typeof t.dispatch!="function")throw new _Rr("Argument agent must implement Agent");Object.defineProperty(globalThis,yet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function wet(){return globalThis[yet]}Net.exports={setGlobalDispatcher:bet,getGlobalDispatcher:wet}});var M5=f((nMn,Ret)=>{"use strict";Ret.exports=class{#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 xet=f((sMn,Det)=>{"use strict";var HRr=d5();Det.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new HRr(r,o,s,i);return r(a,A)}}});var ket=f((iMn,Tet)=>{"use strict";var qRr=y5();Tet.exports=t=>e=>function(n,s){return e(n,new qRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Met=f((oMn,Fet)=>{"use strict";var GRr=Ir(),{InvalidArgumentError:YRr,RequestAbortedError:JRr}=sn(),VRr=M5(),Qhe=class extends VRr{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new YRr("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=GRr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new JRr(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function WRr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Qhe({maxSize:i},s);return e(n,o)}}Fet.exports=WRr});var Uet=f((aMn,Let)=>{"use strict";var{isIP:zRr}=B("node:net"),{lookup:jRr}=B("node:dns"),KRr=M5(),{InvalidArgumentError:wR,InformationalError:XRr}=sn(),vet=Math.pow(2,31)-1,yhe=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new XRr("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){jRr(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===vet?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===vet?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new bhe(this,e,r)}},bhe=class extends KRr{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=> Line truncated
${i}`;break;case"retry":pnt(i)&&(r[s]=i);break;case"id":mnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&pnt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&mnt(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,event:void 0,id:void 0,retry:void 0}}};Ent.exports={EventSourceStream:cge}});var Snt=f((PMn,Nnt)=>{"use strict";var{pipeline:ikr}=B("node:stream"),{fetching:okr}=HF(),{makeRequest:akr}=RR(),{webidl:Hp}=Wo(),{EventSourceStream:Akr}=Cnt(),{parseMIMEType:ckr}=$A(),{createFastMessageEvent:ukr}=MR(),{isNetworkError:Int}=_F(),{delay:lkr}=age(),{kEnumerableProperty:rQ}=Ir(),{environmentSettingsObject:Bnt}=jc(),Qnt=!1,ynt=3e3,$F=0,bnt=1,eM=2,dkr="anonymous",hkr="use-credentials",_R=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=$F;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hp.util.markAsUncloneable(this);let n="EventSource constructor";Hp.argumentLengthCheck(arguments,1,n),Qnt||(Qnt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hp.converters.USVString(e,n,"url"),r=Hp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ynt};let s=Bnt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=dkr;r.withCredentials&&(o=hkr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bnt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=akr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===eM)return;this.#r=$F;let e={request:this.#s,dispatcher:this.#a},r=n=>{Int(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Int(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?ckr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=bnt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Akr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(ukr(A.type,A.options))}});ikr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=okr(e)}async#c(){this.#r!==eM&&(this.#r=$F,this.dispatchEvent(new Event("error")),await lkr(this.#o.reconnectionTime),this.#r===$F&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Hp.brandCheck(this,t),this.#r!==eM&&(this.#r=eM,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},wnt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$F,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bnt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eM,writable:!1}};Object.defineProperties(_R,wnt);Object.defineProperties(_R.prototype,wnt);Object.defineProperties(_R.prototype,{close:rQ,onerror:rQ,onmessage:rQ,onopen:rQ,readyState:rQ,url:rQ,withCredentials:rQ});Hp.converters.EventSourceInitDict=Hp.dictionaryConverter([{key:"withCredentials",converter:Hp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hp.converters.any}]);Nnt.exports={EventSource:_R,defaultReconnectionTime:ynt}});var uge=f((_Mn,vt)=>{"use strict";var gkr=hR(),Rnt=iF(),fkr=gR(),pkr=yZe(),mkr=fR(),Ekr=Mde(),Ckr=WZe(),Ikr=$Ze(),Dnt=sn(),Q6=Ir(),{InvalidArgumentError:B6}=Dnt,OR=_$e(),Bkr=aF(),Qkr=fhe(),ykr=Qet(),bkr=Ehe(),wkr=rhe(),Nkr=y5(),{getGlobalDispatcher:xnt,setGlobalDispatcher:Skr}=F5(),Rkr=M5(),Dkr=d5(),xkr=h5();Object.assign(Rnt.prototype,OR);vt.exports.Dispatcher=Rnt;vt.exports.Client=gkr;vt.exports.Pool=fkr;vt.exports.BalancedPool=pkr;vt.exports.Agent=mkr;vt.exports.ProxyAgent=Ekr;vt.exports.EnvHttpProxyAgent=Ckr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),BE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(BE("Creating `tls.Socket`: %o",this.connectOpts),i=vst.connect(this.connectOpts)):(BE("Creating `net.Socket`: %o",this.connectOpts),i=kst.connect(this.connectOpts)),await(0,Mst.once)(i,"connect"),i}};GR.protocols=["http","https"];Ca.HttpProxyAgent=GR;function Lst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Rge=C(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});eD.state=void 0;eD.state={instrumenterImplementation:void 0}});var Wge=C(iD=>{"use strict";Object.defineProperty(iD,"__esModule",{value:!0});iD.state=void 0;iD.state={operationRequestMap:new WeakMap}});var v0e=C((LEr,Elt)=>{Elt.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var M0e=C((UEr,F0e)=>{var Clt=v0e();F0e.exports={version:Clt.version}});var _2=C(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.isJsonObject=ZE.typeofJsonValue=void 0;function Tlt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ZE.typeofJsonValue=Tlt;function xlt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ZE.isJsonObject=xlt});var U2=C($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.base64encode=$E.base64decode=void 0;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),L2=[];for(let t=0;t<Ml.length;t++)L2[Ml[t].charCodeAt(0)]=t;L2[45]=Ml.indexOf("+");L2[95]=Ml.indexOf("/");function Rlt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=L2[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}$E.base64decode=Rlt;function Dlt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ml[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ml[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ml[s|n>>6],e+=Ml[n&63],r=0;break}return r&&(e+=Ml[s],e+="=",r==1&&(e+="=")),e}$E.base64encode=Dlt});var O0e=C(P2=>{"use strict";Object.defineProperty(P2,"__esModule",{value:!0});P2.utf8read=void 0;var pq=t=>String.fromCharCode.apply(String,t);function klt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(pq(n)),s=0);return r.length?(s&&r.push(pq(n.slice(0,s))),r.join("")):pq(n.slice(0,s))}P2.utf8read=klt});var NQ=C(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.WireType=XA.mergeBinaryOptions=XA.UnknownFieldHandler=void 0;var vlt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(vlt=XA.UnknownFieldHandler||(XA.UnknownFieldHandler={}));function Flt(t,e){return Object.assign(Object.assign({},t),e)}XA.mergeBinaryOptions=Flt;var Mlt;(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"})(Mlt=XA.WireType||(XA.WireType={}))});var H2=C(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.varint32read=Gi.varint32write=Gi.int64toString=Gi.int64fromString=Gi.varint64write=Gi.varint64read=void 0;function _lt(){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")}Gi.varint64read=_lt;function Llt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Gi.varint64write=Llt;var O2=65536*65536;function Ult(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=O2&&(s=s+(n/O2|0),n=n%O2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Gi.int64fromString=Ult;function Plt(t,e){if(e>>>0<=2097151)return""+(O2*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}Gi.int64toString=Plt;function Olt(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)}}Gi.varint32write=Olt;function Hlt(){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}Gi.varint32read=Hlt});var Ih=C(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.PbLong=Ch.PbULong=Ch.detectBi=void 0;var TQ=H2(),fr;function H0e(){let t=new DataView(new ArrayBuffer(8));fr=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Ch.detectBi=H0e;H0e();function G0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var q0e=/^-?[0-9]+$/,q2=4294967296,G2=2147483648,Y2=c Line truncated
`)}};fk.RpcError=qq});var Vq=C(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.mergeRpcOptions=void 0;var CEe=gt();function Aht(t,e){if(!e)return t;let r={};gk(t,r),gk(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=CEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=CEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},gk(t.meta,r.meta),gk(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pk.mergeRpcOptions=Aht;function gk(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}});var Wq=C(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Deferred=tp.DeferredState=void 0;var eu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(eu=tp.DeferredState||(tp.DeferredState={}));var Jq=class{constructor(e=!0){this._state=eu.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!==eu.PENDING)throw new Error(`cannot resolve ${eu[this.state].toLowerCase()}`);this._resolve(e),this._state=eu.RESOLVED}reject(e){if(this.state!==eu.PENDING)throw new Error(`cannot reject ${eu[this.state].toLowerCase()}`);this._reject(e),this._state=eu.REJECTED}resolvePending(e){this._state===eu.PENDING&&this.resolve(e)}rejectPending(e){this._state===eu.PENDING&&this.reject(e)}};tp.Deferred=Jq});var jq=C(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});mk.RpcOutputStreamController=void 0;var IEe=Wq(),rp=gt(),zq=class{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){rp.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){rp.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){rp.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(){rp.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:()=>{let e=this._itState;rp.assert(e,"bad state"),rp.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 IEe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;rp.assert(n.state==IEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};mk.RpcOutputStreamController=zq});var Xq=C(oC=>{"use strict";var uht=oC&&oC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(oC,"__esModule",{value:!0});oC.UnaryCall=void 0;var Kq=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 uht(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}})}};oC.UnaryCall=Kq});var $q=C(aC=>{"use strict";var lht=aC&&aC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(aC,"__esModule",{value:!0});aC.ServerStreamingCall=void 0;var Zq=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Rut=f(Sut=>{"use strict";var Qme=Zp().Buffer;Sut._dbcs=$p;var jo=-1,Nut=-2,Ml=-10,AA=-1e3,gD=new Array(256),ev=-1;for(xJ=0;xJ<256;xJ++)gD[xJ]=jo;var xJ;function $p(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=gD.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(gD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(gD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[AA-o[n]],A=48;A<=57;A++){if(a[A]===jo)a[A]=AA-s;else if(a[A]>AA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[AA-a[A]],u=129;u<=254;u++){if(c[u]===jo)c[u]=AA-i;else{if(c[u]===AA-i)continue;if(c[u]>AA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[AA-c[u]],d=48;d<=57;d++)l[d]===jo&&(l[d]=Nut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function S4r(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(d4r.has(s)){r=s;break}}return r}function R4r(t,e){let r=S4r(e);r!==""&&(t.referrerPolicy=r)}function D4r(){return"allowed"}function x4r(){return"success"}function T4r(){return"success"}function k4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function F4r(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&&LEe(t.origin)&&!LEe(RQ(t))&&(e=null);break;case"same-origin":uv(t,RQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function BD(t,e){return t}function M4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:BD(t.domainLookupStartTime,r),domainLookupEndTime:BD(t.domainLookupEndTime,r),connectionStartTime:BD(t.connectionStartTime,r),connectionEndTime:BD(t.connectionEndTime,r),secureConnectionStartTime:BD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function v4r(t){return BD(p4r.now(),t)}function L4r(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}}function sht(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U4r(t){return{referrerPolicy:t.referrerPolicy}}function P4r(t){let e=t.referrerPolicy;lv(e);let r=null;if(t.referrer==="client"){let i=$dt();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else VC.is.URL(t.referrer)&&(r=t.referrer);let n=vEe(r),s=vEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??vEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=RQ(t);return uv(n,i)?n:SQ(n)&&!SQ(i)?"no-referrer":s}case"same-origin":return uv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return uv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":n}}}function vEe(t,e=!1){return lv(VC.is.URL(t)),t=new URL(t),Aht(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var _4r=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),O4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function iht(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),O4r(t)):_4r(t)}function H4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||iht(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function SQ(t){return VC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:H4r(t.origin):!1}function q4r(t){}function uv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function G4r(t){return t.controller.state==="aborted"}function Y4r(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function J4r(t){return E4r[t.toLowerCase()]??t}var V4r=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oht(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,V4r),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function W4r(t,e,r,n=0,s=1){let i=oht(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return VC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return VC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>JEe(a)&&a!==59,t,e);i=GEe.decode(o)}return{name:n,value:i}}function mYr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw lc("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YEe(o,!0,!0,a=>a===9||a===32),!cYr.test(o.toString()))throw lc("header name does not match the field-name token production");if(t[e.position]!==58)throw lc("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),AYr(o)){case"content-disposition":{if(r=n=null,Ul(A=>JEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw lc("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=pYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw lc("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=YEe(a,!1,!0,A=>A===9||A===32),s=ght(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=YEe(a,!1,!0,A=>A===9||A===32),i=ght(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw lc("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function YEe(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function EYr(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}function lc(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function CYr(t){return t<=31||t===127}function IYr(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function JEe(t){return t<=127&&t!==32&&t!==9&&!CYr(t)&&!IYr(t)}fht.exports={multipartFormDataParser:fYr,validateBoundary:gYr}});var dv=f((pGn,mht)=>{"use strict";function BYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}mht.exports={createDeferredPromise:BYr}});var bD=f((mGn,Qht)=>{"use strict";var zEe=Wt(),{ReadableStreamFrom:QYr,readableStreamClose:yYr,fullyReadBody:bYr,extractMimeType:wYr}=au(),{FormData:Eht,setFormDataState:NYr}=eV(),{webidl:jd}=Ko(),VEe=B("node:assert"),{isErrored:WEe,isDisturbed:SYr}=B("node:stream"),{isUint8Array:RYr}=B("node:util/types"),{serializeAMimeType:DYr}=Ll(),{multipartFormDataParser:xYr}=pht(),{createDeferredPromise:TYr}=dv(),{parseJSONFromBytes:kYr}=rm(),{utf8DecodeBytes:FYr}=av(),{runtimeFeatures:MYr}=nm(),vYr=MYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),tV=new TextEncoder;function LYr(){}var UYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SYr(e)&&!WEe(e)&&e.cancel("Response object has been garbage collected").catch(LYr)});function Iht(t,e=!1){let r=null,n=null;jd.is.ReadableStream(t)?r=t:jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),VEe(jd.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(jd.is.BufferSource(t))i=jd.util.getCopyOfBytesHeldByBufferSource(t);else if(jd.is.FormData(t)){let c=`----formdata-undici-0${`${vYr(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var RBe=C(xBe=>{"use strict";var zJ=Wl().Buffer;xBe._dbcs=zl;var Is=-1,TBe=-2,qa=-10,ui=-1e3,PC=new Array(256),xw=-1;for(sF=0;sF<256;sF++)PC[sF]=Is;var sF;function zl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=PC.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(PC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(PC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ui-o[n]],c=48;c<=57;c++){if(a[c]===Is)a[c]=ui-s;else if(a[c]>ui)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[ui-a[c]],u=129;u<=254;u++){if(A[u]===Is)A[u]=ui-i;else{if(A[u]===ui-i)continue;if(A[u]>ui)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ui-A[u]],d=48;d<=57;d++)l[d]===Is&&(l[d]=TBe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function gbt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(ebt.has(s)){r=s;break}}return r}function pbt(t,e){let r=gbt(e);r!==""&&(t.referrerPolicy=r)}function mbt(){return"allowed"}function Ebt(){return"success"}function Cbt(){return"success"}function Ibt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ybt(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&&h7(t.origin)&&!h7(kp(t))&&(e=null);break;case"same-origin":Pw(t,kp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function YC(t,e){return t}function Bbt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:YC(t.domainLookupStartTime,r),domainLookupEndTime:YC(t.domainLookupEndTime,r),connectionStartTime:YC(t.connectionStartTime,r),connectionEndTime:YC(t.connectionEndTime,r),secureConnectionStartTime:YC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function bbt(t){return YC(sbt.now(),t)}function Qbt(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}}function iwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function wbt(t){return{referrerPolicy:t.referrerPolicy}}function Sbt(t){let e=t.referrerPolicy;Ow(e);let r=null;if(t.referrer==="client"){let i=ewe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yh.is.URL(t.referrer)&&(r=t.referrer);let n=d7(r),s=d7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??d7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=kp(t);return Dp(n)&&!Dp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=kp(t);return Pw(n,i)?n:Dp(n)&&!Dp(i)?"no-referrer":s}case"same-origin":return Pw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Pw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=kp(t);return Dp(n)&&!Dp(i)?"no-referrer":n}}}function d7(t,e=!1){return Ow(Yh.is.URL(t)),t=new URL(t),Awe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Nbt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Tbt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function owe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Tbt(t)):Nbt(t)}function xbt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||owe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Dp(t){return Yh.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:xbt(t.origin):!1}function Rbt(t){}function Pw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Dbt(t){return t.controller.state==="aborted"}function kbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function vbt(t){return obt[t.toLowerCase()]??t}var Fbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function awe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Fbt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function Mbt(t,e,r,n=0,s=1){let i=awe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yh.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yh.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ja(a=>B7(a)&&a!==59,t,e);i=I7.decode(o)}return{name:n,value:i,extended:s}}function iQt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ki("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ja(a=>a!==10&&a!==13&&a!==58,t,e);if(o=y7(o,!0,!0,a=>a===9||a===32),!Xbt.test(o.toString()))throw Ki("header name does not match the field-name token production");if(t[e.position]!==58)throw Ki("expected :");switch(e.position++,Ja(a=>a===32||a===9,t,e),Kbt(o)){case"content-disposition":{r=n=null;let a=!1;if(Ja(A=>B7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ki("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=sQt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Ki("name attribute is required in content-disposition header");break}case"content-type":{let a=Ja(c=>c!==10&&c!==13,t,e);a=y7(a,!1,!0,c=>c===9||c===32),s=gwe(a);break}case"content-transfer-encoding":{let a=Ja(c=>c!==10&&c!==13,t,e);a=y7(a,!1,!0,c=>c===9||c===32),i=gwe(a);break}default:Ja(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Ki("expected CRLF");e.position+=2}}function Ja(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function y7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function oQt(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}function Ki(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function aQt(t){return t<=31||t===127}function cQt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function B7(t){return t<=127&&t!==32&&t!==9&&!aQt(t)&&!cQt(t)}pwe.exports={multipartFormDataParser:nQt,validateBoundary:rQt}});var Hw=C((rSr,Ewe)=>{"use strict";function AQt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Ewe.exports={createDeferredPromise:AQt}});var WC=C((nSr,bwe)=>{"use strict";var w7=st(),{ReadableStreamFrom:uQt,readableStreamClose:lQt,fullyReadBody:dQt,extractMimeType:hQt}=Oo(),{FormData:Cwe,setFormDataState:fQt}=xF(),{webidl:Wc}=ys(),b7=Q("node:assert"),{isErrored:Q7,isDisturbed:gQt}=Q("node:stream"),{isUint8Array:pQt}=Q("node:util/types"),{serializeAMimeType:mQt}=Va(),{multipartFormDataParser:EQt}=mwe(),{createDeferredPromise:CQt}=Hw(),{parseJSONFromBytes:IQt}=Xl(),{utf8DecodeBytes:yQt}=bF(),{runtimeFeatures:BQt}=Zl(),bQt=BQt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),RF=new TextEncoder;function QQt(){}var wQt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gQt(e)&&!Q7(e)&&e.cancel("Response object has been garbage collected").catch(QQt)});function ywe(t,e=!1){let r=null,n=null;Wc.is.ReadableStream(t)?r=t:Wc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),b7(Wc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Wc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wc.is.BufferSource(t))i=Wc.util.getCopyOfBytesHeldByBufferSource(t);else if(Wc.is.FormData(t)){let A=`----formdata-undici-0${`${bQt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=tV.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=RF.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=tV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=RF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=tV.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(zEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:QYr(t)}return(typeof i=="string"||RYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(WEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!WEe(r)&&n.enqueue(typeof c=="string"?tV.encode(c):new Uint8Array(c));queueMicrotask(()=>yYr(n))})(),[{stream:r,source:i,length:o},a]}function PYr(t,e=!1){return jd.is.ReadableStream(t)&&(VEe(!zEe.isDisturbed(t),"The body has already been consumed."),VEe(!t.locked,"The stream is locked.")),Iht(t,e)}function _Yr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function OYr(t,e){return{blob(){return yD(this,n=>{let s=Cht(e(this));return s===null?s="":s&&(s=DYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return yD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return yD(this,FYr,t,e)},json(){return yD(this,kYr,t,e)},formData(){return yD(this,n=>{let s=Cht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xYr(n,s),o=new Eht;return NYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Eht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return yD(this,n=>new Uint8Array(n),t,e)}}}function HYr(t,e){Object.assign(t.prototype,OYr(t,e))}function yD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Bht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=TYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(bYr(t.body,o,i),s.promise)}function Bht(t){let e=t.body;return e!=null&&(e.stream.locked||zEe.isDisturbed(e.stream))}function Cht(t){let e=t.headersList,r=wYr(e);return r==="failure"?null:r}Qht.exports={extractBody:Iht,safelyExtractBody:PYr,cloneBody:_Yr,mixinBody:HYr,streamRegistry:UYr,bodyUnusable:Bht}});var Fht=f((EGn,kht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:yht}=YC(),jEe=Mme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:qYr,RequestAbortedError:Dht,HeadersTimeoutError:GYr,HeadersOverflowError:YYr,SocketError:fv,InformationalError:wD,BodyTimeoutError:JYr,HTTPParserError:VYr,ResponseExceededMaxSizeError:WYr}=or(),{kUrl:xht,kReset:dc,kClient:rCe,kParser:ai,kBlocking:pv,kRunning:Na,kPending:zYr,kSize:bht,kWriting:zC,kQueue:Kd,kNoRef:hv,kKeepAliveDefaultTimeout:jYr,kHostHeader:KYr,kPendingIdx:XYr,kRunningIdx:Pl,kError:_l,kPipelining:sV,kSocket:ND,kKeepAliveTimeoutValue:oV,kMaxHeadersSize:ZYr,kKeepAliveMaxTimeout:$Yr,kKeepAliveTimeoutThreshold:e5r,kHeadersTimeout:t5r,kBodyTimeout:r5r,kStrictContentLength:ZEe,kMaxRequests:wht,kCounter:n5r,kMaxResponseSize:s5r,kOnError:i5r,kResume:WC,kHTTPContext:Tht,kClosed:$Ee}=Mn(),Fg=Qdt(),o5r=Buffer.alloc(0),rV=Buffer[Symbol.species],a5r=Pt.removeAllListeners,KEe;function A5r(){let t=process.env.JEST_WORKER_ID?QEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(wdt())}catch{}return e||(e=new WebAssembly.Module(t||QEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onStatus(new rV(Mg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderField(new rV(Mg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderValue(new rV(Mg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onBody(new rV(Mg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var XEe=null,Ki=null,Mg=null,nV=0,vg=null,c5r=0,gv=1,SD=2|gv,iV=4|gv,eCe=8|c5r,tCe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ZYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[KYr],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=RF.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(Wc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(w7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wc.is.ReadableStream(t)?t:uQt(t)}return(typeof i=="string"||pQt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(Q7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!Q7(r)&&n.enqueue(typeof A=="string"?RF.encode(A):new Uint8Array(A));queueMicrotask(()=>lQt(n))})(),[{stream:r,source:i,length:o},a]}function SQt(t,e=!1){return Wc.is.ReadableStream(t)&&(b7(!w7.isDisturbed(t),"The body has already been consumed."),b7(!t.locked,"The stream is locked.")),ywe(t,e)}function NQt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function TQt(t,e){return{blob(){return JC(this,n=>{let s=Iwe(e(this));return s===null?s="":s&&(s=mQt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return JC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return JC(this,yQt,t,e)},json(){return JC(this,IQt,t,e)},formData(){return JC(this,n=>{let s=Iwe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=EQt(n,s),o=new Cwe;return fQt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Cwe;for(let[a,c]of i)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,e)},bytes(){return JC(this,n=>new Uint8Array(n),t,e)}}}function xQt(t,e){Object.assign(t.prototype,TQt(t,e))}function JC(t,e,r,n){try{Wc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Bwe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=CQt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(dQt(t.body,o,i),s.promise)}function Bwe(t){let e=t.body;return e!=null&&(e.stream.locked||w7.isDisturbed(e.stream))}function Iwe(t){let e=t.headersList,r=hQt(e);return r==="failure"?null:r}bwe.exports={extractBody:ywe,safelyExtractBody:SQt,cloneBody:NQt,mixinBody:xQt,streamRegistry:wQt,bodyUnusable:Bwe}});var Uwe=C((sSr,Lwe)=>{"use strict";var Ve=Q("node:assert"),_e=st(),{channels:Qwe}=Gh(),S7=oW(),{RequestContentLengthMismatchError:vp,ResponseContentLengthMismatchError:wwe,RequestAbortedError:vwe,InvalidArgumentError:RQt,HeadersTimeoutError:DQt,HeadersOverflowError:kQt,SocketError:Fp,InformationalError:zC,BodyTimeoutError:vQt,HTTPParserError:FQt,ResponseExceededMaxSizeError:MQt}=et(),{kUrl:Fwe,kReset:Xi,kClient:MF,kParser:Sr,kBlocking:Yw,kRunning:Sn,kPending:v7,kSize:Swe,kWriting:Vh,kQueue:zc,kNoRef:Gw,kKeepAliveDefaultTimeout:_Qt,kHostHeader:LQt,kPendingIdx:UQt,kRunningIdx:Wa,kError:li,kPipelining:vF,kSocket:Mp,kKeepAliveTimeoutValue:_F,kMaxHeadersSize:PQt,kKeepAliveMaxTimeout:OQt,kKeepAliveTimeoutThreshold:HQt,kHeadersTimeout:GQt,kBodyTimeout:qQt,kStrictContentLength:x7,kMaxRequests:Nwe,kCounter:YQt,kMaxResponseSize:VQt,kOnError:Twe,kResume:ed,kHTTPContext:Mwe,kClosed:R7}=sr(),Ho=bQe(),xwe=Buffer.alloc(0),DF=Buffer[Symbol.species],JQt=_e.removeAllListeners,_p=Symbol("kIdleSocketValidation"),jC=Symbol("kIdleSocketValidationTimeout"),F7=Symbol("kSocketUsed"),N7;function WQt(){let t=process.env.JEST_WORKER_ID?$W():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(SQe())}catch{}return e||(e=new WebAssembly.Module(t||$W())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onStatus(new DF(lu.buffer,o,i))},wasm_on_message_begin:n=>(Ve(on.ptr===n),on.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderField(new DF(lu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderValue(new DF(lu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(on.ptr===n),on.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onBody(new DF(lu.buffer,o,i))},wasm_on_message_complete:n=>(Ve(on.ptr===n),on.onMessageComplete())}})}var T7=null,on=null,lu=null,kF=0,du=null,zQt=0,qw=1,KC=2|qw,FF=4|qw,D7=8|zQt,k7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ho.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[PQt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[LQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[sV]&&!h[dc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return yht.sendHeaders.hasSubscribers&&yht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Sht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Sht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Rht(g,A.stream(),t,e,h,u,p,l):I5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?C5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Rht(g,A,t,e,h,u,p,l):Lt(!1),!0}function C5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new aV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Dht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[zC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Sht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[vF]&&!h[Xi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Qwe.sendHeaders.hasSubscribers&&Qwe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Dwe(f,null,t,e,h,u,g,l):_e.isBuffer(c)?Dwe(f,c,t,e,h,u,g,l):_e.isBlobLike(c)?typeof c.stream=="function"?kwe(f,c.stream(),t,e,h,u,g,l):owt(f,c,t,e,h,u,g,l):_e.isStream(c)?iwt(f,c,t,e,h,u,g,l):_e.isIterable(c)?kwe(f,c,t,e,h,u,g,l):Ve(!1),!0}function iwt(t,e,r,n,s,i,o,a){Ve(i!==0||r[Sn]===0,"stream body cannot be pipelined");let c=!1,A=new LF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){_e.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new vwe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vh]&&r[Sn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?_e.destroy(e,f):_e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Dwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[dc]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[WC]()}catch(A){t(A)}}async function I5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new DQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ed]()}catch(c){t(c)}}async function owt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new vp;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[dc]=!0),r[WC]()}catch(A){t(A)}}async function Rht(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new aV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var aV=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[zC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ZEe])throw new DQ;process.emitWarning(new DQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[dc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xi]=!0),r[ed]()}catch(c){t(c)}}async function kwe(t,e,r,n,s,i,o,a){Ve(i!==0||r[Sn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[li]?h(s[li]):c=d});s.on("close",A).on("drain",A);let l=new LF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[li])throw s[li];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var LF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[li])throw r[li];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[x7])throw new vp;process.emitWarning(new vp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ai].timeout&&r[ai].timeoutType===SD&&r[ai].timeout.refresh&&r[ai].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[zC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Sr].timeout&&r[Sr].timeoutType===KC&&r[Sr].timeout.refresh&&r[Sr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vh]=!1,e[li])throw e[li];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[ZEe])throw new DQ;process.emitWarning(new DQ)}e[ai].timeout&&e[ai].timeoutType===SD&&e[ai].timeout.refresh&&e[ai].timeout.refresh(),n[WC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zC]=!1,e&&(Lt(n[Na]<=1,"pipeline should only contain this request"),s(e))}};kht.exports=u5r});var qht=f((CGn,Hht)=>{"use strict";var Hl=B("node:assert"),{pipeline:B5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:oCe,RequestAbortedError:Q5r,SocketError:Iv,InformationalError:jC,InvalidArgumentError:y5r}=or(),{kUrl:Cv,kReset:lV,kClient:Au,kRunning:Bv,kPending:b5r,kQueue:KC,kPendingIdx:ACe,kRunningIdx:Xd,kError:cu,kSocket:_s,kStrictContentLength:w5r,kOnError:RD,kMaxConcurrentStreams:cV,kPingInterval:Mht,kHTTP2Session:im,kHTTP2InitialWindowSize:N5r,kHTTP2ConnectionWindowSize:S5r,kResume:Lg,kSize:R5r,kHTTPContext:cCe,kClosed:aCe,kBodyTimeout:D5r,kEnableConnectProtocol:mv,kRemoteSettings:Ev,kHTTP2Stream:AV,kHTTP2SessionState:uCe}=Mn(),{channels:vht}=YC(),Ol=Symbol("open streams"),Lht,uV;try{uV=B("node:http2")}catch{uV={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:x5r,HTTP2_HEADER_METHOD:Uht,HTTP2_HEADER_PATH:Pht,HTTP2_HEADER_SCHEME:nCe,HTTP2_HEADER_CONTENT_LENGTH:T5r,HTTP2_HEADER_EXPECT:k5r,HTTP2_HEADER_STATUS:sCe,HTTP2_HEADER_PROTOCOL:F5r,NGHTTP2_REFUSED_STREAM:M5r,NGHTTP2_CANCEL:v5r}}=uV;function iCe(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}function L5r(t,e){t[_s]=e;let r=t[N5r],n=t[S5r],s=uV.connect(t[Cv],{createConnection:()=>e,peerMaxConcurrentStreams:t[cV],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[_s]=e,s[Ol]=0,s[Au]=t,s[_s]=e,s[uCe]={ping:{interval:t[Mht]===0?null:setInterval(O5r,t[Mht],s).unref()}},s[mv]=!1,s[Ev]=!1,n&&hr.addListener(s,"connect",P5r.bind(s,n)),hr.addListener(s,"error",H5r),hr.addListener(s,"frameError",q5r),hr.addListener(s,"end",G5r),hr.addListener(s,"goaway",Y5r),hr.addListener(s,"close",J5r),hr.addListener(s,"remoteSettings",_5r),s.unref(),t[im]=s,e[im]=s,hr.addListener(e,"error",W5r),hr.addListener(e,"end",z5r),hr.addListener(e,"close",V5r),e[aCe]=!1,e.on("close",j5r),{version:"h2",defaultPipelining:1/0,write(i){return X5r(t,i)},resume(){U5r(t)},destroy(i,o){e[aCe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Bv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ev]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ev]===!1;return!1}}}function U5r(t){let e=t[_s];e?.destroyed===!1&&(t[R5r]===0||t[cV]===0?(e.unref(),t[im].unref()):(e.ref(),t[im].ref()))}function P5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function _5r(t){if(this[Au][cV]=t.maxConcurrentStreams??this[Au][cV],this[Ev]===!0&&this[mv]===!0&&t.enableConnectProtocol===!1){let e=new jC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[_s][cu]=e,this[Au][RD](e);return}this[mv]=t.enableConnectProtocol??this[mv],this[Ev]=!0,this[Au][Lg]()}function O5r(t){let e=t[uCe];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Au],o=this[Au];if(n!=null){let a=new jC(`HTTP/2: "PING" errored - type ${n.message}`);o[cu]=a,i[RD](a)}else i.emit("ping",s)}}function H5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_s][cu]=t,this[Au][RD](t)}function q5r(t,e,r){if(r===0){let n=new jC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_s][cu]=n,this[Au][RD](n)}}function G5r(){let t=new Iv("other side closed",hr.getSocketInfo(this[_s]));this.destroy(t),hr.destroy(this[_s],t)}function Y5r(t){let e=this[cu]||new Iv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[_s])),r=this[Au];if(r[_s]=null,r[cCe]=null,this.close(),this[im]=null,hr.destroy(this[_s],e),r[Xd]<r[KC].length){let n=r[KC][r[Xd]];r[KC][r[Xd]++]=null,hr.errorRequest(r,n,e),r[ACe]=r[Xd]}Hl(r[Bv]===0),r.emit("disconnect",r[Cv],[r],e),r.emit("connectionError",r[Cv],[r],e),r[Lg]()}function J5r(){let{[Au]:t,[uCe]:e}=this,{[_s]:r}=t,n=this[_s][cu]||this[cu]||new Iv("closed",hr.getSocketInfo(r));if(t[_s]=null,t[cCe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[b5r]===0);let s=t[KC].splice(t[Xd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function V5r(){let t=this[cu]||new Iv("closed",hr.getSocketInfo(this)),e=this[im][Au];e[_s]=null,e[cCe]=null,this[im]!==null&&this[im].destroy(t),e[ACe]=e[Xd],Hl(e[Bv]===0),e.emit("disconnect",e[Cv],[e],t),e[Lg]()}function W5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cu]=t,this[Au][RD](t)}function z5r(){hr.destroy(this,new Iv("other side closed",hr.getSock Line truncated
`;vht.sendHeaders.publish({request:e,headers:F,socket:n[_s]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[k5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[AV]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[AV]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[sCe]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),iCe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[KC][t[Xd]++]=null,t[Lg]()):(m(new jC("HTTP/2: stream half-closed (remote)")),t[KC][t[Xd]++]=null,t[ACe]=t[Xd],t[Lg]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new jC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new jC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?_ht(m,g,null,t,e,t[_s],y,I):hr.isBuffer(d)?_ht(m,g,d,t,e,t[_s],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?Oht(m,g,d.stream(),t,e,t[_s],y,I):$5r(m,g,d,t,e,t[_s],y,I):hr.isStream(d)?Z5r(m,t[_s],I,g,d,t,e,y):hr.isIterable(d)?Oht(m,g,d,t,e,t[_s],y,I):Hl(!1)}}function _ht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[lV]=!0),s.onRequestSent(),n[Lg]()}catch(A){t(A)}}function Z5r(t,e,r,n,s,i,o,a){Hl(a!==0||i[Bv]===0,"stream body cannot be pipelined");let A=B5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[lV]=!0),i[Lg]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function $5r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new oCe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[lV]=!0),n[Lg]()}catch(A){t(A)}}async function Oht(t,e,r,n,s,i,o,a){Hl(o!==0||n[Bv]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Hl(A===null),i[cu]?d(i[cu]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cu])throw i[cu];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[lV]=!0),n[Lg]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Hht.exports=L5r});var tI=f((IGn,Xht)=>{"use strict";var om=B("node:assert"),Wht=B("node:net"),Qv=B("node:http"),xQ=Wt(),{ClientStats:e6r}=aEe(),{channels:DD}=YC(),t6r=udt(),r6r=CD(),{InvalidArgumentError:us,InformationalError:n6r,ClientDestroyedError:s6r}=or(),i6r=ID(),{kUrl:Ug,kServerName:eI,kClient:o6r,kBusy:lCe,kConnect:a6r,kResuming:TQ,kRunning:Nv,kPending:Sv,kSize:yv,kQueue:Zd,kConnected:A6r,kConnecting:xD,kNeedDrain:ZC,kKeepAliveDefaultTimeout:Ght,kHostHeader:c6r,kPendingIdx:$d,kRunningIdx:am,kError:u6r,kPipelining:dV,kKeepAliveTimeoutValue:l6r,kMaxHeadersSize:d6r,kKeepAliveMaxTimeout:h6r,kKeepAliveTimeoutThreshold:g6r,kHeadersTimeout:f6r,kBodyTimeout:p6r,kStrictContentLength:m6r,kConnector:bv,kMaxRequests:dCe,kCounter:E6r,kClose:C6r,kDestroy:I6r,kDispatch:B6r,kLocalAddress:wv,kMaxResponseSize:Q6r,kOnError:y6r,kHTTPContext:bi,kMaxConcurrentStreams:b6r,kHTTP2InitialWindowSize:w6r,kHTTP2ConnectionWindowSize:N6r,kResume:$C,kPingInterval:S6r}=Mn(),R6r=Fht(),D6r=qht(),XC=Symbol("kClosedResolve"),x6r=Qv&&Qv.maxHeaderSize&&Number.isInteger(Qv.maxHeaderSize)&&Qv.maxHeaderSize>0?()=>Qv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Yht=()=>{};function zht(t){return t[dV]??t[bi]?.defaultPipelining??1}var hCe=class extends r6r{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[p6r]=a??3e5,this[f6r]=n??3e5,this[m6r]=m??!0,this[dCe]=w,this[XC]=null,this[Q6r]=z>-1?z:-1,this[bi]=null,this[b6r]=U??100,this[w6r]=Z??262144,this[N6r]=he??524288,this[S6r]=Se??6e4,this[Zd]=[],this[am]=0,this[$d]=0,this[$C]=Je=>gCe(this,Je),this[y6r]=Je=>jht(this,Je)}get pipelining(){return this[dV]}set pipelining(e){this[dV]=e,this[$C](!0)}get stats(){return new e6r(this)}get[Sv](){return this[Zd].length-this[$d]}get[Nv](){return this[$d]-this[am]}get[yv](){return this[Zd].length-this[am]}get[A6r](){return!!this[bi]&&!this[xD]&&!this[bi].destroyed}get[lCe](){return!!(this[bi]?.busy(null)||this[yv]>=(zht(this)||1)||this[Sv]>0)}[a6r](e){Kht(this),this.once("connect",e)}[B6r](e,r){let n=new t6r(this[Ug].origin,e,r);return this[Zd].push(n),this[TQ]||(xQ.bodyLength(n.body)==null&&xQ.isIterable(n.body)?(this[TQ]=1,queueMicrotask(()=>gCe(this))):this[$C](!0)),this[TQ]&&this[ZC]!==2&&this[lCe]&&(this[ZC]=2),this[ZC]<2}[C6r](){return new Promise(e=>{this[yv]?this[XC]=e:e(null)})}[I6r](e){return new Promise(r=>{let n=this[Zd].splice(this[$d]);for(let i=0;i<n.length;i++){let o=n[i];xQ.errorRequest(this,o,e)}let s=()=>{this[XC]&&(this[XC](),this[XC]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[$C]()})}};function jht(t,e){if(t[Nv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){om(t[$d]===t[am]);let r=t[Zd].splice(t[am]);for(let n=0;n<r.length;n++){let s=r[n];xQ.errorRequest(t,s,e)}om(t[yv]===0)}}function Kht(t){om(!t[xD]),om(!t[bi]);let{host:e,hostname:r,protocol:n,port:s}=t[Ug];if(r[0]==="["){let i=r.indexOf("]");om(i!==-1);let o=r.substring(1,i);om(Wht.isIPv6(o)),r=o}t[xD]=!0,DD.beforeConnect.hasSubscribers&&DD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv]}),t[bv]({host:e,hostname:r,protocol:n,port:s,servername:t[eI],localAddress:t[wv]},(i,o)=>{if(i){Jht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$C]();return}if(t.destroyed){xQ.destroy(o.on("error",Yht),new s6r),t[$C]();return}om(o);try{t[bi]=o.alpnProtocol==="h2"?D6r(t,o):R6r(t,o)}catch(a){o.destroy().on("error",Yht),Jht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$C]();return}t[xD]=!1,o[E6r]=0,o[dCe]=t[dCe],o[o6r]=t,o[u6r]=null,DD.connected.hasSubscribers&&DD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv],socket:o}),t.emit("connect",t[Ug],[t]),t[$C]()})}function Jht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[xD]=!1,DD.connectError.hasSubscribers&&DD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(om(t[Nv]===0);t[Sv]>0&&t[Zd][t[$d]].servername===t[eI];){let o=t[Zd][t[$d]++];xQ.errorRequest(t,o,e)}else jht(t,e);t.emit("connectionError",t[Ug],[t],e)}}function Vht(t){t[ZC]=0,t.emit("drain",t[Ug],[t])}function gCe(t,e){t[TQ]!==2&&(t[TQ]=2,T6r(t,e),t[TQ]=0,t[am]>256&&(t[Zd].splice(0,t[am]),t[$d]-=t[am],t[am]=0))}function T6r(t,e){for(;;){if(t.destroyed){om(t[Sv]===0);return}if(t[XC]&&!t[yv]){t[XC](),t[XC]=null;return}if(t[bi]&&t[bi].resume(),t[lCe])t[ZC]=2;else if(t[ZC]===2){e?(t[ZC]=1,queueMicrotask(()=>Vht(t))):Vht(t);continue}if(t[Sv]===0||t[Nv]>=(zht(t)||1))return;let r=t[Zd][t[$d]];if(t[Ug].protocol==="https:"&&t[eI]!==r.servername){if(t[Nv]>0)return;t[eI]=r.servername,t[bi]?.destroy(new n6r("servername changed"),()=>{t[bi]=null,gCe(t)})}if(t[xD])return;if(!t[bi]){Kht(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[$d]++:t[Zd].splice(t[$d],1)}}Xht.exports=hCe});var fCe=f((QGn,Zht)=>{"use strict";var hV=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Zht.exports=class{constructor(){this.head=this.tail=new hV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new hV),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var gV=f((yGn,agt)=>{"use strict";var{PoolStats:k6r}=aEe(),F6r=CD(),M6r=fCe(),{kConnected:pCe,kSize:$ht,kRunning:egt,kPending:tgt,kQueued:Rv,kBusy:v6r,kFree:L6r,kUrl:U6r,kClose:P6r,kDestroy:_6r,kDispatch:O6r}=Mn(),Do=Symbol("clients"),cA=Symbol("needDrain"),Dv=Symbol("queue"),mCe=Symbol("closed resolve"),ECe=Symbol("onDrain"),rgt=Symbol("onConnect"),ngt=Symbol("onDisconnect"),sgt=Symbol("onConnectionError"),CCe=Symbol("get dispatcher"),igt=Symbol("add client"),ogt=Symbol("remove client"),ICe=class extends F6r{[Dv]=new M6r;[Rv]=0;[Do]=[];[cA]=!1;[ECe](e,r,n){let s=this[Dv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[x7])throw new vp;process.emitWarning(new vp)}e[Sr].timeout&&e[Sr].timeoutType===KC&&e[Sr].timeout.refresh&&e[Sr].timeout.refresh(),n[ed]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vh]=!1,e&&(Ve(n[Sn]<=1,"pipeline should only contain this request"),s(e))}};Lwe.exports=jQt});var Wwe=C((iSr,Jwe)=>{"use strict";var ja=Q("node:assert"),{pipeline:awt}=Q("node:stream"),pt=st(),{RequestContentLengthMismatchError:U7,RequestAbortedError:cwt,SocketError:Kw,InformationalError:Jh,InvalidArgumentError:Awt,HeadersTimeoutError:uwt,BodyTimeoutError:lwt}=et(),{kUrl:jw,kReset:OF,kClient:Go,kRunning:Xw,kPending:dwt,kQueue:Jw,kPendingIdx:Lp,kRunningIdx:hu,kError:qo,kSocket:Yr,kStrictContentLength:hwt,kOnError:XC,kMaxConcurrentStreams:P7,kPingInterval:Pwe,kHTTP2Session:td,kHTTP2InitialWindowSize:fwt,kHTTP2ConnectionWindowSize:gwt,kResume:fu,kSize:pwt,kHTTPContext:H7,kClosed:O7,kBodyTimeout:mwt,kHeadersTimeout:Ewt,kEnableConnectProtocol:Ww,kRemoteSettings:zw,kHTTP2Stream:UF,kHTTP2SessionState:G7}=sr(),{channels:Owe}=Gh(),za=Symbol("open streams"),Hwe,PF;try{PF=Q("node:http2")}catch{PF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cwt,HTTP2_HEADER_METHOD:Gwe,HTTP2_HEADER_PATH:qwe,HTTP2_HEADER_SCHEME:M7,HTTP2_HEADER_CONTENT_LENGTH:Iwt,HTTP2_HEADER_EXPECT:ywt,HTTP2_HEADER_STATUS:_7,HTTP2_HEADER_PROTOCOL:Bwt,NGHTTP2_REFUSED_STREAM:bwt,NGHTTP2_CANCEL:Qwt}}=PF;function L7(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}function wwt(t,e){t[Yr]=e;let r=t[fwt],n=t[gwt],s=PF.connect(t[jw],{createConnection:()=>e,peerMaxConcurrentStreams:t[P7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Yr]=e,s[za]=0,s[Go]=t,s[Yr]=e,s[G7]={ping:{interval:t[Pwe]===0?null:setInterval(xwt,t[Pwe],s).unref()}},s[Ww]=!1,s[zw]=!1,n&&pt.addListener(s,"connect",Nwt.bind(s,n)),pt.addListener(s,"error",Rwt),pt.addListener(s,"frameError",Dwt),pt.addListener(s,"end",kwt),pt.addListener(s,"goaway",vwt),pt.addListener(s,"close",Fwt),pt.addListener(s,"remoteSettings",Twt),s.unref(),t[td]=s,e[td]=s,pt.addListener(e,"error",_wt),pt.addListener(e,"end",Lwt),pt.addListener(e,"close",Mwt),e[O7]=!1,e.on("close",Uwt),{version:"h2",defaultPipelining:1/0,write(i){return Owt(t,i)},resume(){Swt(t)},destroy(i,o){e[O7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Xw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zw]===!1||pt.bodyLength(i.body)!==0&&(pt.isStream(i.body)||pt.isAsyncIterable(i.body)||pt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zw]===!1;return!1}}}function Swt(t){let e=t[Yr];e?.destroyed===!1&&(t[pwt]===0?(e.unref(),t[td].unref()):(e.ref(),t[td].ref()))}function Nwt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Twt(t){if(this[Go][P7]=t.maxConcurrentStreams??this[Go][P7],this[zw]===!0&&this[Ww]===!0&&t.enableConnectProtocol===!1){let e=new Jh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Yr][qo]=e,this[Go][XC](e);return}this[Ww]=t.enableConnectProtocol??this[Ww],this[zw]=!0,this[Go][fu]()}function xwt(t){let e=t[G7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Go],o=this[Go];if(n!=null){let a=new Jh(`HTTP/2: "PING" errored - type ${n.message}`);o[qo]=a,i[XC](a)}else i.emit("ping",s)}}function Rwt(t){ja(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Yr][qo]=t,this[Go][XC](t)}function Dwt(t,e,r){if(r===0){let n=new Jh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Yr][qo]=n,this[Go][XC](n)}}function kwt(){let t=new Kw("other side closed",pt.getSocketInfo(this[Yr]));this.destroy(t),pt.destroy(this[Yr],t)}function Vw(t,e,r=!1){let n=t[Jw],s=t[hu];if(s<t[Lp]&&n[s]===e){n[s]=null,t[hu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Lp]||(n.splice(i,1),t[Lp]--,r&&t[Lp]<t[hu]&&(t[Lp]=t[hu]))}function vwt(t){let e=this[qo]||new Kw(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this[Yr])),r=this[Go];if(r[Yr]=null,r[H7]=null,this.close(),this[td]=null,pt.destroy(this[Yr],e),r[hu]<r[Jw].length){let n=r[Jw][r[hu]];r[Jw][r[hu]++]=null,n!=null&&pt.errorRequest(r,n,e),r[Lp]=r[hu]}ja(r[Xw]===0),r.emit("disconnect",r[jw],[r],e),r.emit("connectionError",r[jw],[r],e),r[fu]()}function Fwt(){let{[Go]:t,[G7]:e}=this,{[Yr]:r}=t,n=this[Yr][qo]||this[qo]||new Kw("closed",pt.getSocketInfo(r));if(t[Yr]=null,t[H7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ja(t[dwt]===0);let s=t[Jw].splice(t[hu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&pt.errorRequest(t,o,n)}}}function Mwt(){let t=this[qo]||new Kw("closed",pt.getSocketInfo(this)),e=this[td][Go];e[Yr]=null,e[H7]=null,this[td]!==null&&this[ Line truncated
`;Owe.sendHeaders.publish({request:e,headers:P,socket:s[Yr]})}let F=i==="GET"||i==="HEAD"||h===null;A?(f[ywt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[UF]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[UF]=!0,L()),++s[za],g.setTimeout(r);let V=!1;return g.once("response",P=>{let{[_7]:k,...j}=P;if(e.onResponseStarted(),V=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),L7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),V?(!e.aborted&&!e.completed&&e.onComplete({}),Vw(t,e),t[fu]()):(I(new Jh("HTTP/2: stream half-closed (remote)")),Vw(t,e,!0),t[fu]())}),g.once("close",()=>{g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Jh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Jh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=V?new lwt(`HTTP/2: "body timeout after ${n}"`):new uwt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Ywe(I,g,null,t,e,t[Yr],B,y):pt.isBuffer(h)?Ywe(I,g,h,t,e,t[Yr],B,y):pt.isBlobLike(h)?typeof h.stream=="function"?Vwe(I,g,h.stream(),t,e,t[Yr],B,y):Gwt(I,g,h,t,e,t[Yr],B,y):pt.isStream(h)?Hwt(I,t[Yr],y,g,h,t,e,B):pt.isIterable(h)?Vwe(I,g,h,t,e,t[Yr],B,y):ja(!1)}}function Ywe(t,e,r,n,s,i,o,a){try{r!=null&&pt.isBuffer(r)&&(ja(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[OF]=!0),s.onRequestSent(),n[fu]()}catch(c){t(c)}}function Hwt(t,e,r,n,s,i,o,a){ja(a!==0||i[Xw]===0,"stream body cannot be pipelined");let c=awt(s,n,u=>{u?(pt.destroy(c,u),t(u)):(pt.removeAllListeners(c),o.onRequestSent(),r||(e[OF]=!0),i[fu]())});pt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Gwt(t,e,r,n,s,i,o,a){ja(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new U7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[OF]=!0),n[fu]()}catch(c){t(c)}}async function Vwe(t,e,r,n,s,i,o,a){ja(o!==0||n[Xw]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ja(c===null),i[qo]?d(i[qo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[qo])throw i[qo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[OF]=!0),n[fu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Jwe.exports=wwt});var Kh=C((oSr,t1e)=>{"use strict";var rd=Q("node:assert"),Xwe=Q("node:net"),Zw=Q("node:http"),Up=st(),{ClientStats:qwt}=MW(),{channels:ZC}=Gh(),Ywt=lQe(),Vwt=Tp(),{InvalidArgumentError:Nr,InformationalError:Jwt,ClientDestroyedError:Wwt}=et(),zwt=xp(),{kUrl:gu,kServerName:jh,kClient:jwt,kBusy:Y7,kConnect:Kwt,kResuming:Pp,kRunning:r1,kPending:n1,kSize:$w,kQueue:jc,kConnected:Xwt,kConnecting:$C,kNeedDrain:zh,kKeepAliveDefaultTimeout:zwe,kHostHeader:Zwt,kPendingIdx:Kc,kRunningIdx:sd,kError:$wt,kPipelining:HF,kKeepAliveTimeoutValue:e1t,kMaxHeadersSize:t1t,kKeepAliveMaxTimeout:r1t,kKeepAliveTimeoutThreshold:n1t,kHeadersTimeout:s1t,kBodyTimeout:i1t,kStrictContentLength:o1t,kConnector:e1,kMaxRequests:V7,kCounter:a1t,kClose:c1t,kDestroy:A1t,kDispatch:u1t,kLocalAddress:t1,kMaxResponseSize:l1t,kOnError:d1t,kHTTPContext:mn,kMaxConcurrentStreams:h1t,kHTTP2InitialWindowSize:f1t,kHTTP2ConnectionWindowSize:g1t,kResume:nd,kPingInterval:p1t}=sr(),m1t=Uwe(),E1t=Wwe(),Wh=Symbol("kClosedResolve"),C1t=Zw&&Zw.maxHeaderSize&&Number.isInteger(Zw.maxHeaderSize)&&Zw.maxHeaderSize>0?()=>Zw.maxHeaderSize:()=>{throw new Nr("http module not available or http.maxHeaderSize invalid")},jwe=()=>{};function Zwe(t){return t[HF]??t[mn]?.defaultPipelining??1}var J7=class extends Vwt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:F,maxResponseSize:V,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:ne,connectionWindowSize:ce,pingInterval:de,webSocket:ke}={}){if(A!==void 0)throw new Nr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Nr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Nr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[i1t]=a??3e5,this[s1t]=n??3e5,this[o1t]=m??!0,this[V7]=B,this[Wh]=null,this[l1t]=V>-1?V:-1,this[mn]=null,this[h1t]=k??100,this[f1t]=ne??262144,this[g1t]=ce??524288,this[p1t]=de??6e4,this[jc]=[],this[sd]=0,this[Kc]=0,this[nd]=ve=>W7(this,ve),this[d1t]=ve=>$we(this,ve)}get pipelining(){return this[HF]}set pipelining(e){this[HF]=e,this[nd](!0)}get stats(){return new qwt(this)}get[n1](){return this[jc].length-this[Kc]}get[r1](){return this[Kc]-this[sd]}get[$w](){return this[jc].length-this[sd]}get[Xwt](){return!!this[mn]&&!this[$C]&&!this[mn].destroyed}get[Y7](){return!!(this[mn]?.busy(null)||this[$w]>=(Zwe(this)||1)||this[n1]>0)}[Kwt](e){e1e(this),this.once("connect",e)}[u1t](e,r){let n=new Ywt(this[gu].origin,e,r);return this[jc].push(n),this[Pp]||(Up.bodyLength(n.body)==null&&Up.isIterable(n.body)?(this[Pp]=1,queueMicrotask(()=>W7(this))):this[nd](!0)),this[Pp]&&this[zh]!==2&&this[Y7]&&(this[zh]=2),this[zh]<2}[c1t](){return new Promise(e=>{this[$w]?this[Wh]=e:e(null)})}[A1t](e){return new Promise(r=>{let n=this[jc].splice(this[Kc]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Up.errorRequest(this,o,e)}let s=()=>{this[Wh]&&(this[Wh](),this[Wh]=null),r(null)};this[mn]?(this[mn].destroy(e,s),this[mn]=null):queueMicrotask(s),this[nd]()})}};function $we(t,e){if(t[r1]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){rd(t[Kc]===t[sd]);let r=t[jc].splice(t[sd]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&Up.errorRequest(t,s,e)}rd(t[$w]===0)}}function e1e(t){rd(!t[$C]),rd(!t[mn]);let{host:e,hostname:r,protocol:n,port:s}=t[gu];if(r[0]==="["){let i=r.indexOf("]");rd(i!==-1);let o=r.substring(1,i);rd(Xwe.isIPv6(o)),r=o}t[$C]=!0,ZC.beforeConnect.hasSubscribers&&ZC.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1]});try{t[e1]({host:e,hostname:r,protocol:n,port:s,servername:t[jh],localAddress:t[t1]},(i,o)=>{if(i){q7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nd]();return}if(t.destroyed){Up.destroy(o.on("error",jwe),new Wwt),t[nd]();return}rd(o);try{t[mn]=o.alpnProtocol==="h2"?E1t(t,o):m1t(t,o)}catch(a){o.destroy().on("error",jwe),q7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[nd]();return}t[$C]=!1,o[a1t]=0,o[V7]=t[V7],o[jwt]=t,o[$wt]=null,ZC.connected.hasSubscribers&&ZC.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1],socket:o}),t.emit("connect",t[gu],[t]),t[nd]()})}catch(i){q7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nd]()}}function q7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[$C]=!1,ZC.connectError.hasSubscribers&&ZC.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(rd(t[r1]===0);t[n1]>0&&t[jc][t[Kc]].servername===t[jh];){let o=t[jc][t[Kc]++];Up.errorRequest(t,o,e)}else $we(t,e);t.emit("connectionError",t[gu],[t],e)}}function Kwe(t){t[zh]=0,t.emit("drain",t[gu],[t])}function W7(t,e){t[Pp]!==2&&(t[Pp]=2,I1t(t,e),t[Pp]=0,t[sd]>256&&(t[jc].splice(0,t[sd]),t[Kc]-=t[sd],t[sd]=0))}function I1t(t,e){for(;;){if(t.destroyed){rd(t[n1]===0);return}if(t[Wh]&&!t[$w]){t[Wh](),t[Wh]=null;return}if(t[mn]&&t[mn].resume(),t[Y7])t[zh]=2;else if(t[zh]===2){e?(t[zh]=1,queueMicrotask(()=>Kwe(t))):Kwe(t);continue}if(t[n1]===0||t[r1]>=(Zwe(t)||1))return;let r=t[jc][t[Kc]];if(r===null)return;if(t[gu].protocol==="https:"&&t[jh]!==r.servername){if(t[r1]>0)return;t[jh]=r.servername,t[mn]?.destroy(new Jwt("servername changed"),()=>{t[mn]=null,W7(t)})}if(t[$C])return;if(!t[mn]){e1e(t);return}if(t[mn].destroyed||t[mn].busy(r))return;!r.aborted&&t[mn].write(r)?t[Kc]++:t[jc].splice(t[Kc],1)}}t1e.exports=J7});var z7=C((cSr,r1e)=>{"use strict";var GF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};r1e.exports=class{constructor(){this.head=this.tail=new GF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new GF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var qF=C((ASr,l1e)=>{"use strict";var{PoolStats:y1t}=MW(),B1t=Tp(),b1t=z7(),{kConnected:j7,kSize:n1e,kRunning:s1e,kPending:i1e,kQueued:s1,kBusy:Q1t,kFree:w1t,kUrl:S1t,kClose:N1t,kDestroy:T1t,kDispatch:x1t}=sr(),as=Symbol("clients"),di=Symbol("needDrain"),i1=Symbol("queue"),K7=Symbol("closed resolve"),X7=Symbol("onDrain"),o1e=Symbol("onConnect"),a1e=Symbol("onDisconnect"),c1e=Symbol("onConnectionError"),Z7=Symbol("get dispatcher"),A1e=Symbol("add client"),u1e=Symbol("remove client"),$7=class extends B1t{[i1]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";var{InvalidArgumentError:CVr}=or(),{runtimeFeatures:IVr}=nm();function BVr(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var mpt=IVr.has("crypto")?B("node:crypto"):null,QVr=mpt?.hash?t=>mpt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Cpt(t){return Array.isArray(t)&&(t.length&1)===0}function yVr(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function bVr(t){let e={};if(!t)return e;if(Cpt(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Ept=["record","playback","update"];function wVr(t){if(!Ept.includes(t))throw new CVr(`Invalid snapshot mode: ${t}. Must be one of: ${Ept.join(", ")}`)}Ipt.exports={createHeaderFilters:BVr,hashId:QVr,isUndiciHeaders:Cpt,normalizeHeaders:bVr,isUrlExcludedFactory:yVr,validateSnapshotMode:wVr}});var Dpt=f((ZGn,Rpt)=>{"use strict";var{writeFile:NVr,readFile:SVr,mkdir:RVr}=B("node:fs/promises"),{dirname:DVr,resolve:Bpt}=B("node:path"),{setTimeout:xVr,clearTimeout:Qpt}=B("node:timers"),{InvalidArgumentError:ypt,UndiciError:TVr}=or(),{hashId:kVr,isUrlExcludedFactory:FVr,normalizeHeaders:bpt,createHeaderFilters:wpt}=MIe();function Hv(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||bpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Npt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Npt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function Spt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function qv(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return kVr(r)}var vIe=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=wpt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=FVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Hv(e,this.#a,this.matchOptions),s=qv(n),i=bpt(r.headers),o={statusCode:r.statusCode,headers:Spt(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Hv(e,this.#a,this.matchOptions),n=qv(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new ypt("Snapshot path is required");try{let n=await SVr(Bpt(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new TVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new ypt("Snapshot path is required");let n=Bpt(r);await RVr(DVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await NVr(n,JS Line truncated
${e.format(r)}`.trim())}};_Ne.exports=mj});var Cj=C((OSr,ONe)=>{"use strict";var{InvalidArgumentError:wTt}=et(),{runtimeFeatures:STt}=Zl();function NTt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var LNe=STt.has("crypto")?Q("node:crypto"):null,TTt=LNe?.hash?t=>LNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function PNe(t){return Array.isArray(t)&&(t.length&1)===0}function xTt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function RTt(t){let e={};if(!t)return e;if(PNe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var UNe=["record","playback","update"];function DTt(t){if(!UNe.includes(t))throw new wTt(`Invalid snapshot mode: ${t}. Must be one of: ${UNe.join(", ")}`)}ONe.exports={createHeaderFilters:NTt,hashId:TTt,isUndiciHeaders:PNe,normalizeHeaders:RTt,isUrlExcludedFactory:xTt,validateSnapshotMode:DTt}});var jNe=C((HSr,zNe)=>{"use strict";var{writeFile:kTt,readFile:vTt,mkdir:FTt}=Q("node:fs/promises"),{dirname:MTt,resolve:HNe}=Q("node:path"),{setTimeout:_Tt,clearTimeout:GNe}=Q("node:timers"),{InvalidArgumentError:qNe,UndiciError:LTt}=et(),{hashId:UTt,isUrlExcludedFactory:PTt,normalizeHeaders:YNe,createHeaderFilters:VNe}=Cj();function E1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||YNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:JNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function JNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function WNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function C1(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return UTt(r)}var Ij=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=VNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=PTt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=E1(e,this.#a,this.matchOptions),s=C1(n),i=YNe(r.headers),o={statusCode:r.statusCode,headers:WNe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=E1(e,this.#a,this.matchOptions),n=C1(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new qNe("Snapshot path is required");try{let n=await vTt(HNe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new LTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new qNe("Snapshot path is required");let n=HNe(r);await FTt(MTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await kTt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${du} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Vo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_getValuesQuery ON cacheInterceptorV${du}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_deleteByUrlQuery ON cacheInterceptorV${du}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_getValuesQuery ON cacheInterceptorV${Vo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_deleteByUrlQuery ON cacheInterceptorV${Vo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${Vo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Vo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Vo} (
url,
method,
body,
@@ -331,46 +182,98 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${du}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${du}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Vo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){nBe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){nBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){nBe(e),hzr(r);let n=0,s=[],i=this;return new dzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!gzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function gzr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var HQ=f((I8n,Mmt)=>{"use strict";var{kConstruct:fzr}=Mn(),{kEnumerableProperty:JD}=Wt(),{iteratorMixin:pzr,isValidHeaderName:Vv,isValidHeaderValue:Dmt}=au(),{webidl:Pr}=Ko(),iBe=B("node:assert"),JV=B("node:util");function Rmt(t){return t===10||t===13||t===9||t===32}function xmt(t){let e=0,r=t.length;for(;r>e&&Rmt(t.charCodeAt(r-1));)--r;for(;r>e&&Rmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Tmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});oBe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)oBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function oBe(t,e,r){if(r=xmt(r),Vv(e)){if(!Dmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Fmt(t)==="immutable")throw new TypeError("immutable");return WV(t).append(e,r,!1)}function mzr(t){let e=WV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function kmt(t,e){return t[0]<e[0]?-1:1}var VV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":OCt(i)&&(r[s]=i);break;case"id":HCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&OCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&HCt(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,event:void 0,id:void 0,retry:void 0}}};qCt.exports={EventSourceStream:qBe}});var XCt=f((J8n,KCt)=>{"use strict";var{pipeline:FXr}=B("node:stream"),{fetching:MXr}=Xv(),{makeRequest:vXr}=WD(),{webidl:lA}=Ko(),{EventSourceStream:LXr}=GCt(),{parseMIMEType:UXr}=Ll(),{createFastMessageEvent:PXr}=EW(),{isNetworkError:YCt}=zv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:JCt}=au(),VCt=!1,WCt=3e3,nL=0,zCt=1,sL=2,_Xr="anonymous",OXr="use-credentials",nx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=nL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),VCt||(VCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=JCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=_Xr;r.withCredentials===!0&&(o=OXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=JCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=vXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===sL)return;this.#r=nL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!YCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(YCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?UXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=zCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new LXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(PXr(A.type,A.options))}});FXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=MXr(e)}#c(){this.#r!==sL&&(this.#r=nL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===nL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==sL&&(this.#r=sL,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},jCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:sL,writable:!1}};Object.defineProperties(nx,jCt);Object.defineProperties(nx.prototype,jCt);Object.defineProperties(nx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>WCt},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);KCt.exports={EventSource:nx,defaultReconnectionTime:WCt}});var nIt=f((V8n,Oe)=>{"use strict";var HXr=tI(),$Ct=sv(),qXr=TD(),GXr=fgt(),YXr=Cgt(),JXr=MQ(),VXr=UCe(),WXr=Ggt(),zXr=jgt(),jXr=Zgt(),eIt=or(),kW=Wt(),{InvalidArgumentError:TW}=eIt,sx=Fft(),KXr=ID(),XXr=BIe(),{MockCallHistory:ZXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){jj(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){jj(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){jj(e),qRt(r);let n=0,s=[],i=this;return new GRt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!YRt(s[l],u[l])){A=!1;break}}if(A)return c}}};function YRt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var im=C((ANr,Cxe)=>{"use strict";var{kConstruct:VRt}=sr(),{kEnumerableProperty:gI}=st(),{iteratorMixin:JRt,isValidHeaderName:Q1,isValidHeaderValue:fxe}=Oo(),{webidl:Mt}=ys(),Xj=Q("node:assert"),yM=Q("node:util");function hxe(t){return t===10||t===13||t===9||t===32}function gxe(t){let e=0,r=t.length;for(;r>e&&hxe(t.charCodeAt(r-1));)--r;for(;r>e&&hxe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function pxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});Zj(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)Zj(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Zj(t,e,r){if(r=gxe(r),Q1(e)){if(!fxe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Exe(t)==="immutable")throw new TypeError("immutable");return bM(t).append(e,r,!1)}function WRt(t){let e=bM(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function mxe(t,e){return t[0]<e[0]?-1:1}var BM=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(o_(e,s,fFt)){gFt(e,i)&&(r.retry=e.toString("utf8",i));return}if(o_(e,s,hFt)){pFt(e,i)&&(r.id=e.toString("utf8",i));return}if(o_(e,s,dFt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&aFt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&cFt(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===NI[0]||(this.checkBOM=!1),!0):n===void 0?e===NI[0]&&r===NI[1]?!0:(this.checkBOM=!1,!1):(e===NI[0]&&r===NI[1]&&n===NI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};QDe.exports={EventSourceStream:UK}});var vDe=C((FNr,kDe)=>{"use strict";var{pipeline:mFt}=Q("node:stream"),{fetching:EFt}=x1(),{makeRequest:CFt}=mI(),{webidl:fi}=ys(),{EventSourceStream:IFt}=wDe(),{parseMIMEType:yFt}=Va(),{createFastMessageEvent:BFt}=zM(),{isNetworkError:SDe}=S1(),{kEnumerableProperty:hm}=st(),{environmentSettingsObject:NDe}=Oo(),TDe=!1,xDe=3e3,_1=0,RDe=1,L1=2,bFt="anonymous",QFt="use-credentials",TI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=_1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),fi.util.markAsUncloneable(this);let n="EventSource constructor";fi.argumentLengthCheck(arguments,1,n),TDe||(TDe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fi.converters.USVString(e),r=fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=NDe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=bFt;r.withCredentials===!0&&(o=QFt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=NDe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=CFt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===L1)return;this.#r=_1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!SDe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(SDe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?yFt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=RDe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new IFt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(BFt(c.type,c.options))}});mFt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=EFt(e)}#A(){this.#r!==L1&&(this.#r=_1,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return cZr(e,r).catch(n=>{throw ZCt?rIt(n,ZCt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=HQ().Headers;Oe.exports.Response=zv().Response;Oe.exports.Request=WD().Request;Oe.exports.FormData=eV().FormData;var{setGlobalOrigin:uZr,getGlobalOrigin:lZr}=wEe();Oe.exports.setGlobalOrigin=uZr;Oe.exports.getGlobalOrigin=lZr;var{CacheStorage:dZr}=UEt(),{kConstruct:hZr}=Mn();Oe.exports.caches=new dZr(hZr);var{deleteCookie:gZr,getCookies:fZr,getSetCookies:pZr,setCookie:mZr,parseCookie:EZr}=KEt();Oe.exports.deleteCookie=gZr;Oe.exports.getCookies=fZr;Oe.exports.getSetCookies=pZr;Oe.exports.setCookie=mZr;Oe.exports.parseCookie=EZr;var{parseMIMEType:CZr,serializeAMimeType:IZr}=Ll();Oe.exports.parseMIMEType=CZr;Oe.exports.serializeAMimeType=IZr;var{CloseEvent:BZr,ErrorEvent:QZr,MessageEvent:yZr}=EW(),{WebSocket:bZr,ping:wZr}=DCt();Oe.exports.WebSocket=bZr;Oe.exports.CloseEvent=BZr;Oe.exports.ErrorEvent=QZr;Oe.exports.MessageEvent=yZr;Oe.exports.ping=wZr;Oe.exports.WebSocketStream=UCt().WebSocketStream;Oe.exports.WebSocketError=UBe().WebSocketError;Oe.exports.request=iL(sx.request);Oe.exports.stream=iL(sx.stream);Oe.exports.pipeline=iL(sx.pipeline);Oe.exports.connect=iL(sx.connect);Oe.exports.upgrade=iL(sx.upgrade);Oe.exports.MockClient=XXr;Oe.exports.MockCallHistory=ZXr;Oe.exports.MockCallHistoryLog=$Xr;Oe.exports.MockPool=tZr;Oe.exports.MockAgent=eZr;Oe.exports.SnapshotAgent=rZr;Oe.exports.mockErrors=nZr;var{EventSource:NZr}=XCt();Oe.exports.EventSource=NZr;function SZr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=SZr});var oL=f(uI=>{"use strict";uI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";uI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uI.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var iIt=f((j8n,sIt)=>{"use strict";var{asciiLowercase:FW,solelyContainsHTTPTokenCodePoints:RZr,soleyContainsHTTPQuotedStringTokenCodePoints:DZr}=oL();sIt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=FW(String(e)),this._map.get(e)}has(e){return e=FW(String(e)),this._map.has(e)}set(e,r){if(e=FW(String(e)),r=String(r),!RZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!DZr(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=FW(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var AIt=f((K8n,aIt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:xZr,removeTrailingHTTPWhitespace:oIt,isHTTPWhitespaceChar:TZr,solelyContainsHTTPTokenCodePoints:GBe,soleyContainsHTTPQuotedStringTokenCodePoints:kZr,asciiLowercase:YBe,collectAnHTTPQuotedString:FZr}=oL();aIt.exports=t=>{t=xZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!GBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=oIt(n),n.length===0||!GBe(n))return null;let s={type:YBe(r),subtype:YBe(n),parameters:new Map};for(;e<t.length;){for(++e;TZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=YBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=FZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=oIt(o),o==="")continue}i.length>0&&GBe(i)&&kZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var uIt=f((X8n,cIt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:MZr}=oL();cIt.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!MZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var gIt=f(($8n,hIt)=>{"use strict";var vZr=iIt(),LZr=AIt(),UZr=uIt(),{asciiLowercase:lIt,solelyContainsHTTPTokenCodePoints:dIt}=oL();hIt.exports=class{constructor(e){e=String(e);let r=LZr(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new vZr(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=lIt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!dIt(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=lIt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!dIt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return UZr(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var _It=f((o4n,a$r)=>{a$r.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return Myt(this.pattern,this.options)}parse(e,r){Uj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return uh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=ONe,i=!0;break;case"?":s+=GNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;Tyt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:xyt[c].open,close:xyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+Hin(_in(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),Tyt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,HNe),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?ONe:g.type==="?"?GNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=Lin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==HNe?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===HNe)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Pin(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?ONe:r.dot?Min:vin,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Oin(a):a===uh?uh:a._src).reduce((a,A)=>(a[a.length-1]===uh&&A===uh||a.push(A),a),[]),o.forEach((a,A)=>{a!==uh||o[A-1]===uh||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=uh))}),o.filter(a=>a!==uh).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;qNe.sep!=="/"&&(e=e.split(qNe.sep).join("/")),e=e.split(kyt),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Qu.defaults(e).Minimatch}};Qu.Minimatch=Sx});var Oyt=f((tns,_yt)=>{_yt.exports=Pyt;var VNe=B("fs"),{EventEmitter:qin}=B("events"),{Minimatch:JNe}=vyt(),{resolve:Gin}=B("path");function Yin(t,e){return new Promise((r,n)=>{VNe.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Lyt(t,e){return new Promise((r,n)=>{(e?VNe.stat:VNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Lyt(t,!1):null):r(null):r(o)})})}async function*Uyt(t,e,r,n,s,i){let o=await Yin(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Lyt(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Uyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Jin(t,e,r,n){yield*Uyt("",t,e,r,n,!0)}function Vin(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Pj=class extends qin{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Vin(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new JNe(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new JNe(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new JNe(i,{dot:!0}))}this.iterator=Jin(Gin(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Om(D){let S=jI(D.toString()),T=S.match(WI);if(T||(T=S.match(yT)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ce.exports.fetch=function(e,r=void 0){return zFt(e,r).catch(n=>{throw FDe?UDe(n,FDe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ce.exports.fetch),n})};Ce.exports.Headers=im().Headers;Ce.exports.Response=S1().Response;Ce.exports.Request=mI().Request;Ce.exports.FormData=xF().FormData;var{setGlobalOrigin:jFt,getGlobalOrigin:KFt}=r7();Ce.exports.setGlobalOrigin=jFt;Ce.exports.getGlobalOrigin=KFt;var{CacheStorage:XFt}=BRe(),{kConstruct:ZFt}=sr();Ce.exports.caches=new XFt(ZFt);var{deleteCookie:$Ft,getCookies:eMt,getSetCookies:tMt,setCookie:rMt,parseCookie:nMt}=FRe();Ce.exports.deleteCookie=$Ft;Ce.exports.getCookies=eMt;Ce.exports.getSetCookies=tMt;Ce.exports.setCookie=rMt;Ce.exports.parseCookie=nMt;var{parseMIMEType:sMt,serializeAMimeType:iMt}=Va();Ce.exports.parseMIMEType=sMt;Ce.exports.serializeAMimeType=iMt;var{CloseEvent:oMt,ErrorEvent:aMt,MessageEvent:cMt}=zM(),{WebSocket:AMt,ping:uMt}=hDe();Ce.exports.WebSocket=AMt;Ce.exports.CloseEvent=oMt;Ce.exports.ErrorEvent=aMt;Ce.exports.MessageEvent=cMt;Ce.exports.ping=uMt;Ce.exports.WebSocketStream=yDe().WebSocketStream;Ce.exports.WebSocketError=vK().WebSocketError;Ce.exports.request=U1(xI.request);Ce.exports.stream=U1(xI.stream);Ce.exports.pipeline=U1(xI.pipeline);Ce.exports.connect=U1(xI.connect);Ce.exports.upgrade=U1(xI.upgrade);Ce.exports.MockClient=_Ft;Ce.exports.MockCallHistory=LFt;Ce.exports.MockCallHistoryLog=UFt;Ce.exports.MockPool=OFt;Ce.exports.MockAgent=PFt;Ce.exports.SnapshotAgent=HFt;Ce.exports.mockErrors=GFt;var{EventSource:lMt}=vDe();Ce.exports.EventSource=lMt;function dMt(){globalThis.fetch=Ce.exports.fetch,globalThis.Headers=Ce.exports.Headers,globalThis.Response=Ce.exports.Response,globalThis.Request=Ce.exports.Request,globalThis.FormData=Ce.exports.FormData,globalThis.WebSocket=Ce.exports.WebSocket,globalThis.CloseEvent=Ce.exports.CloseEvent,globalThis.ErrorEvent=Ce.exports.ErrorEvent,globalThis.MessageEvent=Ce.exports.MessageEvent,globalThis.EventSource=Ce.exports.EventSource}Ce.exports.install=dMt});var P1=C(uf=>{"use strict";uf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";uf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uf.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var HDe=C((UNr,ODe)=>{"use strict";var{asciiLowercase:A_,solelyContainsHTTPTokenCodePoints:hMt,soleyContainsHTTPQuotedStringTokenCodePoints:fMt}=P1();ODe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=A_(String(e)),this._map.get(e)}has(e){return e=A_(String(e)),this._map.has(e)}set(e,r){if(e=A_(String(e)),r=String(r),!hMt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!fMt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=A_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var YDe=C((PNr,qDe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:gMt,removeTrailingHTTPWhitespace:GDe,isHTTPWhitespaceChar:pMt,solelyContainsHTTPTokenCodePoints:PK,soleyContainsHTTPQuotedStringTokenCodePoints:mMt,asciiLowercase:OK,collectAnHTTPQuotedString:EMt}=P1();qDe.exports=t=>{t=gMt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!PK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=GDe(n),n.length===0||!PK(n))return null;let s={type:OK(r),subtype:OK(n),parameters:new Map};for(;e<t.length;){for(++e;pMt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=OK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=EMt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=GDe(o),o==="")continue}i.length>0&&PK(i)&&mMt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var JDe=C((ONr,VDe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:CMt}=P1();VDe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!CMt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var KDe=C((GNr,jDe)=>{"use strict";var IMt=HDe(),yMt=YDe(),BMt=JDe(),{asciiLowercase:WDe,solelyContainsHTTPTokenCodePoints:zDe}=P1();jDe.exports=class{constructor(e){e=String(e);let r=yMt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new IMt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=WDe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!zDe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=WDe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!zDe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return BMt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var C2e=C(Un=>{"use strict";var jK=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),t_t=jK(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,L,L,f,s);let P=f.type==="*"?UX:f.type==="?"?HX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=W_t[s.charAt(0)];for(let L=c.length-1;L>-1;L--){let P=c[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+Z,ce=k.split(")").length,de=k.split("(").length-ce,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==PX?"(?:$|\\/)":"";s=k+j+Z+ve+ne}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===PX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return j_t(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?UX:r.dot?V_t:J_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?X_t(a):a===gi?gi:a._src).reduce((a,c)=>(a[a.length-1]===gi&&c===gi||a.push(c),a),[]),o.forEach((a,c)=>{a!==gi||o[c-1]===gi||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=gi))}),o.filter(a=>a!==gi).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;OX.sep!=="/"&&(e=e.split(OX.sep).join("/")),e=e.split(Mke),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Xo.defaults(e).Minimatch}};Xo.Minimatch=_I});var qke=C((Vxr,Gke)=>{Gke.exports=Hke;var YX=Q("fs"),{EventEmitter:$_t}=Q("events"),{Minimatch:qX}=Uke(),{resolve:eLt}=Q("path");function tLt(t,e){return new Promise((r,n)=>{YX.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Pke(t,e){return new Promise((r,n)=>{(e?YX.stat:YX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Pke(t,!1):null):r(null):r(o)})})}async function*Oke(t,e,r,n,s,i){let o=await tLt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Pke(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Oke(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*rLt(t,e,r,n){yield*Oke("",t,e,r,n,!0)}function nLt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var B_=class extends $_t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=nLt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new qX(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new qX(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new qX(i,{dot:!0}))}this.iterator=rLt(eLt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,N);N=Y===-1?w.length:Y}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let Y=w.indexOf("*/",N);Y!==-1?(N=Y+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function Gn(w){let b=Js(w.toString()),N=b.match(io);if(N||(N=b.match(ju)),!N)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(zI).map(te=>te.replace(_m,"").trim())}function KI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Om(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),Ic(T,S)}class XI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):ZI(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):ZI(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function ZI(D,S){D.length=1,D.head=D.tail=S}function Hm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,so;function Du(rB,...RT){if(rB)return Nt?so(rB):fs();if(RT.length<=1)return fs(RT[0]);fs(RT)}var Zy=Xr._createTaskItem(wt,Nt?Du:Or||Du);if(tt?Xr._tasks.unshift(Zy):Xr._tasks.push(Zy),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((rB,RT)=>{fs=rB,so=RT})}function Ru(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var so=wt[Or],Du=se.indexOf(so);Du===0?se.shift():Du>0&&se.splice(Du,1),so.callback(tt,...Nt),tt!=null&&vr("error",tt,so.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Xy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let tB=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,so)=>{if(fs)return Or(fs);Nt(so)})});nt(wt),de(wt,tt)};var ST=!1,Xr={_tasks:new XI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!ST){for(ST=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var so=Z(Ru(wt));G(tt,so)}ST=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:tB("saturated")},unsaturated:{writable:!1,value:tB("unsaturated")},empty:{writable:!1,value:tB("empty")},drain:{writable:!1,value:tB("drain")},error:{writable:!1,value:tB("error")}}),Xr}function $I(D,S){return Hm(D,1,S)}function Uf(D,S,T){return Hm(D,S,T)}function BA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var QA=m(BA,4);function qm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),QA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function eB(...D){return qm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Hs[Zo]||(Kyt=global[Zo]||[],Zyt(Hs,Kyt),Hs.close=(function(t){function e(r,n){return t.call(Hs,r,function(s){s||Xyt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Gj,{value:t}),e})(Hs.close),Hs.closeSync=(function(t){function e(r){t.apply(Hs,arguments),Xyt()}return Object.defineProperty(e,Gj,{value:t}),e})(Hs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){By(Hs[Zo]),B("assert").equal(Hs[Zo].length,0)}));var Kyt;global[Zo]||Zyt(global,Hs[Zo]);KNe.exports=zNe(ton(Hs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Hs.__patched&&(KNe.exports=zNe(Hs),Hs.__patched=!0);function zNe(t){$in(t),t.gracefulify=zNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?Rx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?Rx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=eon(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function Rx(t){By("ENQUEUE",t[0].name,t[1]),Hs[Zo].push(t),jNe()}var qj;function Xyt(){for(var t=Date.now(),e=0;e<Hs[Zo].length;++e)Hs[Zo][e].length>2&&(Hs[Zo][e][3]=t,Hs[Zo][e][4]=t);jNe()}function jNe(){if(clearTimeout(qj),qj=void 0,Hs[Zo].length!==0){var t=Hs[Zo].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)By("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){By("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(By("RETRY",e.name,r),e.apply(null,r.concat([s]))):Hs[Zo].push(t)}qj===void 0&&(qj=setTimeout(jNe,0))}}});var Yj=f((ons,$yt)=>{"use strict";var yf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yf.writable=t=>yf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};TNt.exports={AggregateError:kSe,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var FSe=f((pss,kNt)=>{"use strict";kNt.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var va=f((mss,vNt)=>{"use strict";var{format:wun,inspect:c7}=FSe(),{AggregateError:Nun}=xs(),Sun=globalThis.AggregateError||Nun,Run=Symbol("kIsNodeError"),Dun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xun=/^([A-Z][a-z0-9]*)+$/,Tun="__node_internal_",u7={};function by(t,e){if(!t)throw new u7.ERR_INTERNAL_ASSERTION(e)}function FNt(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function kun(t,e,r){if(typeof e=="function")return by(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return by(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:wun(e,...r)}function ea(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(kun(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[Run]=!0,u7[t]=n}function MNt(t){let e=Tun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Fun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Sun([e,t],e.message);return r.code=e.code,r}return t||e}var MSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new u7.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ea("ERR_ASSERTION","%s",Error);ea("ERR_INVALID_ARG_TYPE",(t,e,r)=>{by(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)by(typeof A=="string","All expected entries have to be of type string"),Dun.includes(A)?s.push(A.toLowerCase()):xun.test(A)?i.push(A):(by(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,Z7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(oCn))?s=r.dot?ACn:aCn:(n=e.match(KEn))?s=(r.nocase?r.dot?eCn:$En:r.dot?ZEn:XEn)(n[1]):(n=e.match(cCn))?s=(r.nocase?r.dot?lCn:uCn:r.dot?dCn:hCn)(n):(n=e.match(tCn))?s=r.dot?nCn:rCn:(n=e.match(sCn))&&(s=iCn);let i=GTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?fCn:r.dot?pCn:mCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?yCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Ly;var bCn=sDe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return bCn.AST}});var wCn=iDe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return wCn.escape}});var NCn=W7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return NCn.unescape}});et.minimatch.AST=GTt.AST;et.minimatch.Minimatch=Ly;et.minimatch.escape=WEn.escape;et.minimatch.unescape=zEn.unescape});var XTt=f(eK=>{"use strict";Object.defineProperty(eK,"__esModule",{value:!0});eK.LRUCache=void 0;var rT=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,zTt=new Set,oDe=typeof process=="object"&&process?process:{},jTt=(t,e,r,n)=>{typeof oDe.emitWarning=="function"?oDe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},$7=globalThis.AbortController,WTt=globalThis.AbortSignal;if(typeof $7>"u"){WTt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},$7=class{constructor(){e()}signal=new WTt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=oDe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,jTt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var SCn=t=>!zTt.has(t),TI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),KTt=t=>TI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?nT:null:null,nT=class extends Array{constructor(e){super(e),this.fill(0)}},aDe=class t{heap;length;static#e=!1;static create(e){let r=KTt(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ADe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=dxe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=dxe(" "+s+"="+n[s]+`
`);return zr.from(r)};fT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(zr.toString(e.subarray(0,n)),10);if(!s)return r;let i=zr.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};fT.encode=function(e){let r=zr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),zr.byteLength(n)!==n.length)return null;for(;zr.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return zr.byteLength(n)>100||zr.byteLength(s)>155||e.linkname&&zr.byteLength(e.linkname)>100?null:(zr.write(r,n),zr.write(r,_I(e.mode&H0n,6),100),zr.write(r,_I(e.uid,6),108),zr.write(r,_I(e.gid,6),116),z0n(e.size,r,124),zr.write(r,_I(e.mtime.getTime()/1e3|0,11),136),r[156]=UK+V0n(e.type),e.linkname&&zr.write(r,e.linkname,157),zr.copy(r2t,r,dP),zr.copy(P0n,r,hxe),e.uname&&zr.write(r,e.uname,265),e.gname&&zr.write(r,e.gname,297),zr.write(r,_I(e.devmajor||0,6),329),zr.write(r,_I(e.devminor||0,6),337),s&&zr.write(r,s,345),zr.write(r,_I(s2t(r),6),148),r)};fT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-UK,i=gT(e,0,100,r),o=PI(e,100,8),a=PI(e,108,8),A=PI(e,116,8),c=PI(e,124,12),u=PI(e,136,12),l=J0n(s),d=e[157]===0?null:gT(e,157,100,r),h=gT(e,265,32),g=gT(e,297,32),p=PI(e,329,8),C=PI(e,337,8),m=s2t(e);if(m===256)return null;if(m!==PI(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(q0n(e))e[345]&&(i=gT(e,345,155,r)+"/"+i);else if(!G0n(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function q0n(t){return zr.equals(r2t,t.subarray(dP,dP+6))}function G0n(t){return zr.equals(_0n,t.subarray(dP,dP+6))&&zr.equals(O0n,t.subarray(hxe,hxe+2))}function Y0n(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function J0n(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function V0n(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function n2t(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function s2t(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function _I(t,e){return t=t.toString(8),t.length>e?U0n.slice(0,e)+" ":L0n.slice(0,e-t.length)+t+" "}function W0n(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function z0n(t,e,r){t.toString(8).length>11?W0n(t,e,r):zr.write(e,_I(t,11),r)}function j0n(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function PI(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return j0n(t);{for(;e<t.length&&t[e]===32;)e++;let n=Y0n(n2t(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(zr.toString(t.subarray(e,n)),8)}}function gT(t,e,r,n){return zr.toString(t.subarray(e,n2t(t,0,e,e+r)),n)}function dxe(t){let e=zr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var c2t=f((Gos,A2t)=>{var{Writable:K0n,Readable:X0n,getStreamError:i2t}=lxe(),Z0n=KDe(),o2t=cT(),pT=gxe(),$0n=o2t.alloc(0),pxe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Z0n,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return $0n;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return o2t.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},mxe=class extends X0n{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(i2t(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=a2t(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Exe=class extends K Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function iPe(t,e){if(process.env.GITHUB_OUTPUT||"")return DT("OUTPUT",OP(t,e));process.stdout.write(xee.EOL),ad("set-output",{name:t},Eh(e))}function RB(t){process.exitCode=Dee.Failure,F1(t)}function DB(){return process.env.RUNNER_DEBUG==="1"}function Te(t){ad("debug",{},t)}function F1(t,e={}){ad("error",UP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){ad("warning",UP(e),t instanceof Error?t.toString():t)}function oPe(t,e={}){ad("notice",UP(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+xee.EOL)}function g5t(t){XK("group",t)}function f5t(){XK("endgroup")}function tp(t,e){return h5t(this,void 0,void 0,function*(){g5t(t);let r;try{r=yield e()}finally{f5t()}return r})}function DA(t,e){if(process.env.GITHUB_STATE||"")return DT("STATE",OP(t,e));ad("save-state",{name:t},Eh(e))}function xB(t){return process.env[`STATE_${t}`]||""}import*as jBe from"fs";import*as KBe from"path";import*as LW from"os";var Vje=Xe(Z2(),1),CBr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",IBr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",BBr="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",QBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.",Wje="[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.",Yje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",yBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Jje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.";var IY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=CBr;this.cacheCleanupMessage=Jje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Vje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=IBr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Yje}setDisabled(e=BBr){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Yje}setWriteOnly(e=QBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=yBr}setCacheCleanupDisabled(e=Jje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new BY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new BY(i.entryName),i)}return r}},BY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};import*as YS from"fs";function Oue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Te(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Te(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Te(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Te(`omitBrokenSymbolicLine truncated
`+b);let[,M]=N;return M.replace(/\s/g,"").split(oA).map(Y=>Y.replace(jm,"").trim())}function lc(w,b){var N={};return Object.keys(w).forEach(M=>{var Y=w[M],W,K=h(Y),$=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),N[M]=W.concat(W.length>0?se:Y);else if($)N[M]=Y;else{if(W=Gn(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(se)}function se(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(Y)(...Jt)}}),zu(N,b)}class dc{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Nd(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Nd(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Nd(w,b){w.length=1,w.head=w.tail=b}function aA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(We,Ne){K[We].push(Ne)}function se(We,Ne){let ze=(...Pt)=>{xe(We,ze),Ne(...Pt)};K[We].push(ze)}function xe(We,Ne){if(!We)return Object.keys(K).forEach(ze=>K[ze]=[]);if(!Ne)return K[We]=[];K[We]=K[We].filter(ze=>ze!==Ne)}function kt(We,...Ne){K[We].forEach(ze=>ze(...Ne))}var Jt=!1;function Ut(We,Ne,ze,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var kr,Vn;function ia(Vf,...Vy){if(Vf)return ze?Vn(Vf):kr();if(Vy.length<=1)return kr(Vy[0]);kr(Vy)}var a0=Wt._createTaskItem(We,ze?ia:Pt||ia);if(Ne?Wt._tasks.unshift(a0):Wt._tasks.push(a0),Jt||(Jt=!0,A(()=>{Jt=!1,Wt.process()})),ze||!Pt)return new Promise((Vf,Vy)=>{kr=Vf,Vn=Vy})}function sa(We){return function(Ne,...ze){Y-=1;for(var Pt=0,kr=We.length;Pt<kr;Pt++){var Vn=We[Pt],ia=W.indexOf(Vn);ia===0?W.shift():ia>0&&W.splice(ia,1),Vn.callback(Ne,...ze),Ne!=null&&kt("error",Ne,Vn.data)}Y<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function o0(We){return We.length===0&&Wt.idle()?(A(()=>kt("drain")),!0):!1}let Yf=We=>Ne=>{if(!Ne)return new Promise((ze,Pt)=>{se(We,(kr,Vn)=>{if(kr)return Pt(kr);ze(Vn)})});xe(We),$(We,Ne)};var Yy=!1,Wt={_tasks:new dc,_createTaskItem(We,Ne){return{data:We,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!1,!1,Ne)):Ut(We,!1,!1,Ne)},pushAsync(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!1,!0,Ne)):Ut(We,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!0,!1,Ne)):Ut(We,!0,!1,Ne)},unshiftAsync(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!0,!0,Ne)):Ut(We,!0,!0,Ne)},remove(We){Wt._tasks.remove(We)},process(){if(!Yy){for(Yy=!0;!Wt.paused&&Y<Wt.concurrency&&Wt._tasks.length;){var We=[],Ne=[],ze=Wt._tasks.length;Wt.payload&&(ze=Math.min(ze,Wt.payload));for(var Pt=0;Pt<ze;Pt++){var kr=Wt._tasks.shift();We.push(kr),W.push(kr),Ne.push(kr.data)}Y+=1,Wt._tasks.length===0&&kt("empty"),Y===Wt.concurrency&&kt("saturated");var Vn=ne(sa(We));M(Ne,Vn)}Yy=!1}},length(){return Wt._tasks.length},running(){return Y},workersList(){return W},idle(){return Wt._tasks.length+Y===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,A(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Yf("saturated")},unsaturated:{writable:!1,value:Yf("unsaturated")},empty:{writable:!1,value:Yf("empty")},drain:{writable:!1,value:Yf("drain")},error:{writable:!1,value:Yf("error")}}),Wt}function Ku(w,b){return aA(w,1,b)}function Xu(w,b,N){return aA(w,b,N)}function Bi(w,b,N,M){M=V(M);var Y=E(N);return ds(w,(W,K,$)=>{Y(b,W,(se,xe)=>{b=xe,$(se)})},W=>M(W,b))}var Ws=m(Bi,4);function Zu(...w){var b=w.map(E);return function(...N){var M=this,Y=N[N.length-1];return typeof Y=="function"?N.pop():Y=iA(),Ws(b,N,(W,K,$)=>{K.apply(M,W.concat((se,...xe)=>{$(se,xe)}))},(W,K)=>Y(W,...K)),Y[uc]}}function Pf(...w){return Zu(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var q=m(Se,4);function x(w,b,N,M){var Y=E(N);return q(w,b,(W,K)=>{Y(W,($,...se)=>$?K($):K($,se))},(W,K)=>{for(var $=[],se=0;se<K.length;se++)K[se]&&($=$.concat(...K[se]));return M(W,$)})}var J=m(x,4);function X(w,b,N){return J(w,1/0,b,N)}var ee=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Jr[bs]||($ke=global[bs]||[],tve(Jr,$ke),Jr.close=(function(t){function e(r,n){return t.call(Jr,r,function(s){s||eve(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,N_,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),eve()}return Object.defineProperty(e,N_,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ym(Jr[bs]),Q("assert").equal(Jr[bs].length,0)}));var $ke;global[bs]||tve(global,Jr[bs]);zX.exports=JX(dLt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(zX.exports=JX(Jr),Jr.__patched=!0);function JX(t){uLt(t),t.gracefulify=JX,t.createReadStream=F,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),ne(k,j,Z);function ne(ce,de,ke,ve){return e(ce,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?LI([ne,[ce,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return n(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return i(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=0),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return a(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var ne=u.test(process.version)?function(ke,ve,rt,_t){return A(ke,ce(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return A(ke,ve,ce(ke,ve,rt,_t))};return ne(k,j,Z);function ce(de,ke,ve,rt){return function(_t,Dt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?LI([ne,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Dt&&Dt.sort&&Dt.sort(),typeof ve=="function"&&ve.call(this,_t,Dt))}}}if(process.version.substr(0,4)==="v0.8"){var d=lLt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function V(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return L(de,ke,ve,function(Dt,Cr){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function LI(t){ym("ENQUEUE",t[0].name,t[1]),Jr[bs].push(t),WX()}var S_;function eve(){for(var t=Date.now(),e=0;e<Jr[bs].length;++e)Jr[bs][e].length>2&&(Jr[bs][e][3]=t,Jr[bs][e][4]=t);WX()}function WX(){if(clearTimeout(S_),S_=void 0,Jr[bs].length!==0){var t=Jr[bs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ym("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ym("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(ym("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[bs].push(t)}S_===void 0&&(S_=setTimeout(WX,0))}}});var T_=C((Kxr,rve)=>{"use strict";var vu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vu.writable=t=>vu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vu.readable=t=>vu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};FMe.exports={AggregateError:RZ,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var DZ=C((oDr,MMe)=>{"use strict";MMe.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Gs=C((aDr,UMe)=>{"use strict";var{format:M3t,inspect:W_}=DZ(),{AggregateError:_3t}=Or(),L3t=globalThis.AggregateError||_3t,U3t=Symbol("kIsNodeError"),P3t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],O3t=/^([A-Z][a-z0-9]*)+$/,H3t="__node_internal_",z_={};function Qm(t,e){if(!t)throw new z_.ERR_INTERNAL_ASSERTION(e)}function _Me(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function G3t(t,e,r){if(typeof e=="function")return Qm(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Qm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:M3t(e,...r)}function ws(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(G3t(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[U3t]=!0,z_[t]=n}function LMe(t){let e=H3t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function q3t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new L3t([e,t],e.message);return r.code=e.code,r}return t||e}var kZ=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new z_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ws("ERR_ASSERTION","%s",Error);ws("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Qm(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)Qm(typeof c=="string","All expected entries have to be of type string"),P3t.includes(c)?s.push(c.toLowerCase()):O3t.test(c)?i.push(c):(Qm(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=dte(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=dte(" "+s+"="+n[s]+`
`);return Yt.from(r)};Qy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};Qy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,kf(e.mode&i7t,6),100),Yt.write(r,kf(e.uid,6),108),Yt.write(r,kf(e.gid,6),116),d7t(e.size,r,124),Yt.write(r,kf(e.mtime.getTime()/1e3|0,11),136),r[156]=BU+u7t(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(g4e,r,tN),Yt.copy(r7t,r,hte),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,kf(e.devmajor||0,6),329),Yt.write(r,kf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,kf(m4e(r),6),148),r)};Qy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-BU,i=by(e,0,100,r),o=Df(e,100,8),a=Df(e,108,8),c=Df(e,116,8),A=Df(e,124,12),u=Df(e,136,12),l=A7t(s),d=e[157]===0?null:by(e,157,100,r),h=by(e,265,32),f=by(e,297,32),g=Df(e,329,8),E=Df(e,337,8),m=m4e(e);if(m===256)return null;if(m!==Df(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o7t(e))e[345]&&(i=by(e,345,155,r)+"/"+i);else if(!a7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function o7t(t){return Yt.equals(g4e,t.subarray(tN,tN+6))}function a7t(t){return Yt.equals(n7t,t.subarray(tN,tN+6))&&Yt.equals(s7t,t.subarray(hte,hte+2))}function c7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function A7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function u7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function p4e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function m4e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kf(t,e){return t=t.toString(8),t.length>e?t7t.slice(0,e)+" ":e7t.slice(0,e-t.length)+t+" "}function l7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function d7t(t,e,r){t.toString(8).length>11?l7t(t,e,r):Yt.write(e,kf(t,11),r)}function h7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Df(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return h7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=c7t(p4e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function by(t,e,r,n){return Yt.toString(t.subarray(e,p4e(t,0,e,e+r)),n)}function dte(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B4e=C((_kr,y4e)=>{var{Writable:f7t,Readable:g7t,getStreamError:E4e}=lte(),p7t=jee(),C4e=Ey(),wy=fte(),m7t=C4e.alloc(0),E7t=4*1024*1024,pte=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new p7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return m7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return C4e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},mte=class extends g7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(E4e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=I4e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Oue(t,e){if(process.env.GITHUB_OUTPUT||"")return Jy("OUTPUT",RN(t,e));process.stdout.write(M8.EOL),pc("set-output",{name:t},AA(e))}function Cg(t){process.exitCode=F8.Failure,Co(t)}function Nc(){return process.env.RUNNER_DEBUG==="1"}function G(t){pc("debug",{},t)}function Co(t,e={}){pc("error",NN(e),t instanceof Error?t.toString():t)}function je(t,e={}){pc("warning",NN(e),t instanceof Error?t.toString():t)}function L8(t,e={}){pc("notice",NN(e),t instanceof Error?t.toString():t)}function te(t){process.stdout.write(t+M8.EOL)}function Hue(t){XU("group",t)}function Gue(){XU("endgroup")}function _x(t,e){return oZe(this,void 0,void 0,function*(){Hue(t);let r;try{r=yield e()}finally{Gue()}return r})}function bA(t,e){if(process.env.GITHUB_STATE||"")return Jy("STATE",RN(t,e));pc("save-state",{name:t},AA(e))}function $B(t){return process.env[`STATE_${t}`]||""}import*as VK from"fs";import*as JK from"path";import*as d_ from"os";import{readFileSync as aZe,existsSync as cZe}from"fs";import{EOL as AZe}from"os";var iE=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(cZe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(aZe(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${AZe}`)}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 H8=Ee(Wue(),1),zue=Ee(Nx(),1),BZe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function jue(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}`}function Kue(t){return new H8.HttpClient().getAgent(t)}function bZe(t){return new H8.HttpClient().getAgentDispatcher(t)}function Xue(t){let e=bZe(t);return(n,s)=>BZe(this,void 0,void 0,function*(){return(0,zue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Zue(){return process.env.GITHUB_API_URL||"https://api.github.com"}function G8(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}function $d(){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>"}function qx(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,i)=>qx.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function $ue(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function ele(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)}var tle=Function.bind,rle=tle.bind(tle);function nle(t,e,r){let n=rle(ele,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=rle($ue,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(j8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=K8(m);if(I&&!y){if(h.has(m))throw new TypeError("Converting circular structure to JSON");h.add(m),d.push({parent:f.val,key:String(f.index),val:m,isArray:Array.isArray(m),keys:Array.isArray(m)?null:Object.keys(m),index:0,first:!0}),f.first=!1,f.index++}else u.push(eh(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(j8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+eh(m)+": "):u.push(eh(m)+":");let F=B!==null&&typeof B=="object",V=K8(B);if(F&&!V){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(eh(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},ble=(t,e,r)=>{try{return"rawJSON"in JSON?eh(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?eh(t,(a,c)=>typeof c=="string"&&Vx.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Ele,"$1$2$3").replace(Cle,"$1$2$3"):eh(t,e,r)}catch(n){if(n instanceof RangeError){let s=VZe(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Ele,"$1$2$3").replace(Cle,"$1$2$3")}throw n}},Yx=new Map,JZe=()=>{let t=JSON.parse.toString();if(Yx.has(t))return Yx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return Yx.set(t,e),e}catch{return Yx.set(t,!1),!1}},WZe=(t,e,r,n)=>typeof e=="string"&&Ble.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&Vx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,zZe=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&YZe.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Qle=Number.MAX_SAFE_INTEGER.toString(),Ile=Qle.length,jZe=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,KZe=/^"-?\d+n+"$/,XZe=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Ble.test(a)?a=BigInt(a.slice(0,-1)):Vx.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},yle=t=>t.replace(jZe,(e,r,n,s)=>{let i=e[0]==='"';if(i&&KZe.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<Ile||r.length===Ile&&r<=Qle);return i||a||c?e:'"'+e+'n"'}),wle=(t,e)=>{if(!t)return z8(t,e);try{if(JZe())return zZe(t,e);let r=yle(t);return z8(r,(n,s,i)=>WZe(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=yle(t),s=z8(n);return XZe(s,e)}throw r}};var ml=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var ZZe="10.0.16",$Ze={headers:{"user-agent":`octokit-request.js/${ZZe} ${$d()}`}};function e$e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Sle=()=>"";async function Nle(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=e$e(t.body)||Array.isArray(t.body)?ble(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new ml(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new ml(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await X8(o),new ml("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await X8(o),new ml(r$e(u.data),a,{response:u,request:t});return u.data=n?await X8(o):o.body,u}async function X8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Sle);let r=fle(e);if(t$e(r)){let n="";try{return n=await t.text(),wle(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var i$e=class extends Error{constructor(t,e,r){super(s$e(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)}request;headers;response;name="GraphqlResponseError";errors;data},o$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],a$e=["query","method","url"],Tle=/\/api\/v3\/?$/;function c$e(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 o in r)if(a$e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>o$e.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Tle.test(i)&&(s.url=i.replace(Tle,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new i$e(s,a,o.data)}return o.data.data})}function $8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>c$e(r,s,i),{defaults:$8.bind(null,r),endpoint:r.endpoint})}var $Xt=$8(rb,{headers:{"user-agent":`octokit-graphql.js/${n$e} ${$d()}`},method:"POST",url:"/graphql"});function xle(t){return $8(t,{method:"POST",url:"/graphql"})}var e4="(?:[a-zA-Z0-9_-]+)",Rle="\\.",Dle=new RegExp(`^${e4}${Rle}${e4}${Rle}${e4}$`),A$e=Dle.test.bind(Dle);async function u$e(t){let e=A$e(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"}}function l$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function d$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=l$e(t),e(s)}var kle=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(u$e.bind(null,e),{hook:d$e.bind(null,e)})};var t4="7.0.8";var vle=()=>{},h$e=console.warn.bind(console),f$e=console.error.bind(console);function g$e(t={}){return typeof t.debug!="function"&&(t.debug=vle),typeof t.info!="function"&&(t.info=vle),typeof t.warn!="function"&&(t.warn=h$e),typeof t.error!="function"&&(t.error=f$e),t}var Fle=`octokit-core.js/${t4} ${$d()}`,Jx=class{static VERSION=t4;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new sle.Collection,n={baseUrl:rb.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} ${Fle}`:Fle,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rb.defaults(n),this.graphql=xle(this.request).defaults(n),this.log=g$e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=kle(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var r4="17.0.0";var p$e={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new rF(i));return n.searchPaths.push(...que(n.patterns)),n})}static stat(e,r,n){return Gue(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield YS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Te(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield YS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield YS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Te(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as Yue from"crypto";import*as wY from"fs";import*as $je from"stream";import*as e7e from"util";import*as t7e from"path";var TBr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},kBr=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function r7e(t,e){return TBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?pe:Te,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=Yue.createHash("sha256"),g=0;try{for(var p=!0,C=kBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${t7e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(wY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=Yue.createHash("sha256");yield e7e.promisify($je.pipeline)(wY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var n7e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function iC(t,e){return n7e(this,void 0,void 0,function*(){return yield yY.create(t,e)})}function s7e(t){return n7e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield iC(e,{followSymbolicLinks:i});return r7e(o,r,s)})}import Jp from"path";import ic from"fs";import{readFileSync as FBr,existsSync as MBr}from"fs";import{EOL as vBr}from"os";var JS=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(MBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(FBr(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${vBr}`)}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 gge=Xe(knt(),1),Fnt=Xe(uge(),1),r2r=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var tFr=class extends Error{constructor(t,e,r){super(eFr(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},rFr=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nFr=["query","method","url"],gst=/\/api\/v3\/?$/;function sFr(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 o in r)if(nFr.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>rFr.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return gst.test(i)&&(s.url=i.replace(gst,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new tFr(s,a,o.data)}return o.data.data})}function Rge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>sFr(r,s,i),{defaults:Rge.bind(null,r),endpoint:r.endpoint})}var svn=Rge(fst.request,{headers:{"user-agent":`octokit-graphql.js/${$2r} ${S6()}`},method:"POST",url:"/graphql"});function pst(t){return Rge(t,{method:"POST",url:"/graphql"})}var Dge="(?:[a-zA-Z0-9_-]+)",mst="\\.",Est=new RegExp(`^${Dge}${mst}${Dge}${mst}${Dge}$`),iFr=Est.test.bind(Est);async function oFr(t){let e=iFr(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"}}function aFr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function AFr(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=aFr(t),e(s)}var Cst=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(oFr.bind(null,e),{hook:AFr.bind(null,e)})};var xge="7.0.6";var Ist=()=>{},cFr=console.warn.bind(console),uFr=console.error.bind(console);function lFr(t={}){return typeof t.debug!="function"&&(t.debug=Ist),typeof t.info!="function"&&(t.info=Ist),typeof t.warn!="function"&&(t.warn=cFr),typeof t.error!="function"&&(t.error=uFr),t}var Bst=`octokit-core.js/${xge} ${S6()}`,T6=class{static VERSION=xge;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Gnt.Collection,n={baseUrl:Tge.request.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} ${Bst}`:Bst,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Tge.request.defaults(n),this.graphql=pst(this.request).defaults(n),this.log=lFr(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Cst(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var kge="17.0.0";var dFr={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions Line truncated
See ${r.getDocumentationLink()}`;Fst.push(n),RB(n)}function Mst(){DA("deprecation-collector_deprecations",JSON.stringify(Pge)),DA("deprecation-collector_errors",JSON.stringify(Fst))}import*as v6 from"path";var Lst="GRADLE_ACTION_ID";var oQ=".setup-gradle",L6=class t{getDependencyGraphOption(){let e=Es("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Qg("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Es("artifact-retention-days");return RFr("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Qo.workflow,Qo.job,_ge())}getReportDirectory(){let e=Es("dependency-graph-report-dir");return v6.resolve(bC(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return iQ("dependency-graph-exclude-projects")}getIncludeProjects(){return iQ("dependency-graph-include-projects")}getExcludeConfigurations(){return iQ("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return iQ("dependency-graph-include-configurations")}getPluginRepository(){return new U6}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Te(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var GR=class{isCacheDisabled(){return vst.isFeatureAvailable()?Qg("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Qg("cache-read-only")}isCacheWriteOnly(){return Qg("cache-write-only")}isCacheOverwriteExisting(){return Qg("cache-overwrite-existing")}isCacheStrictMatch(){return Qg("gradle-home-cache-strict-match")}isCacheCleanupEnabled(){if(this.isCacheReadOnly())return!1;let e=this.getCacheCleanupOption();return e==="always"||e==="on-success"}shouldPerformCacheCleanup(e){let r=this.getCacheCleanupOption();return r==="always"?!0:r==="on-success"?!e:!1}getCacheCleanupOption(){let e=aM("gradle-home-cache-cleanup");if(e!==void 0)return F6("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always":"never";let r=Es("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always";case"on-success":return"on-success";case"never":return"never"}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Es("cache-encryption-key")}getCacheIncludes(){return Tee("gradle-home-cache-includes")}getCacheExcludes(){return Tee("gradle-home-cache-excludes")}};var qd=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Qg("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Es("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Es("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Es("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Es("develocity-token-expiry")}getDevelocityInjectionEnabled(){return aM("develocity-injection-enabled")}getDevelocityUrl(){return Es("develocity-url")}getDevelocityAllowUntrustedServer(){return aM("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return aM("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return aM("develocity-enforce-url")}getDevelocityPluginVersion(){return Es("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Es("develocity-ccud-plugin-version")}getPluginRepository(){return new U6}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(tr("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},U6=class{getUrl(){return iQ("gradle-plugin-repository-url")}getUsername(){return iQ("gradle-plugin-repository-username")}getPassword(){return iQ("gradle-plugin-repository-password")}},P6=class{getGradleVersion(){return Es("gradle-version")}getBuildRootDirectory(){let e=bC(),r=Es("build-root-directory");return r===""?v6.re Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await kFr()}`),n;zo(`Attempt to delete ${t} failed. Will try again.`),await TFr(1e3)}}}async function TFr(t){return new Promise(e=>setTimeout(e,t))}async function kFr(){return(await ep("jps",["-lm"])).stdout}var FFr="v1",MFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",vFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",LFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",UFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",PFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",G6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function Hge(t,e){let s=`${`${process.env[MFr]||""}${Y6(t,FFr)}`}|${_Fr()}`,i=`${s}|${OFr()}`,o=`${i}[${HFr()}]`,a=`${o}-${qFr()}`;return e.isCacheStrictMatch()?new G6(a,[o]):new G6(a,[o,i,s])}function Y6(t,e){return`gradle-${t}-${e}`}function _Fr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[vFr]||`${t}-${e}`}function OFr(){return process.env[LFr]||Qo.job}function HFr(){let t=process.env[UFr];if(t)return t;let e=Qo.workflow,r=_ge();return Oge([e,r])}function qFr(){return process.env[PFr]||Qo.sha}import VR from"path";import BM from"fs";import*as Gd from"fs";import*as Yp from"path";var mat=Xe(rit(),1),uQ=Xe(n9(),1);import*as JR from"fs";import*as lat from"os";import*as RC from"path";var u9=Xe(Z2(),1);import{ok as iUr}from"assert";import*as bg from"path";import*as s9 from"fs";import*as SC from"path";var KLr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},{chmod:XLr,copyFile:ZLr,lstat:$Lr,mkdir:Vot,open:DLn,readdir:Wot,rename:eUr,rm:zot,rmdir:xLn,stat:Afe,symlink:tUr,unlink:rUr}=s9.promises,NC=process.platform==="win32";var TLn=s9.constants.O_RDONLY;function jot(t){if(t=nUr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return NC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function cfe(t,e){return KLr(this,void 0,void 0,function*(){let r;try{r=yield Afe(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(NC){let s=SC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(Jot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield Afe(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(NC){try{let i=SC.dirname(t),o=SC.basename(t).toUpperCase();for(let a of yield Wot(i))if(o===a.toUpperCase()){t=SC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(Jot(r))return t}}return""})}function nUr(t){return t=t||"",NC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Jot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var i9=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Kot(t){return i9(this,void 0,void 0,function*(){if(NC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield zot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function ufe(t){return i9(this,void 0,void 0,function*(){iUr(t,"a path argument must be provided"),yield Vot(t,{recursive:!0})})}function EM(t,e){return i9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield EM(t,!1);if(!n)throw NC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield oUr(t);return r&&r.length>0?r[0]:""})}function oUr(t){return i9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(NC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(bg.delimiter))s&&e.push(s);if(jot(t)){let s=yield cfe(t,e);return s?[s]:[]}if(t.includes(bg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(bg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield cfe(bg.join(s,t),e)Line truncated
`),r,[],s)?new QM(e,n,r):(pe(`Did not restore ${e} with key ${r} to ${n}`),new QM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await iC(a,{implicitDescendants:!1})).glob();if(c.length===0){zo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(zo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await q6(n.split(`
`),a,o);for(let c of e)uM(c);return new QM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>VR.relative(this.gradleUserHome,i)),s=Ost(n);return zo(`Generating cache key for ${e} from file names: ${n}`),`${Y6(e,Eat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await s7e(r);return zo(`Generating cache key for ${e} from files matching: ${r}`),`${Y6(e,Eat)}-${n}`}async awaitForDebugging(e){return AM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!BM.existsSync(e))return[];let r=BM.readFileSync(e,"utf-8");return zo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new Qfe;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);zo(`Saving cache metadata for ${this.extractorName}: ${n}`),BM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=VR.resolve(this.gradleUserHome,oQ);return BM.mkdirSync(e,{recursive:!0}),VR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},yM=class extends g9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=VR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await iC(e,{implicitDescendants:!1});for(let n of await r.glob())zo(`Deleting wrapper zip: ${n}`),await uM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=VR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new h9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},bM=class extends g9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){pe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){pe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new h9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!DC(i.gradleVersion,"8.6.0"))&&(pe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return Bfe().results.reduce((e,r)=>{let n=VR.resolve(r.rootProjectDir,".gradle/configuration-cache");return BM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import Cat from"path";import vUr from"fs";import{fileURLToPath as LUr}from"url";function Iat(...t){let e=Cat.dirname(LUr(import.meta.url)),r=Cat.resolve(e,"..","..","..","sources","src","resources",...t);return vUr.readFileSync(r,"utf8")}function Bat(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new cb(i));return n.searchPaths.push(...u4(n.patterns)),n})}static stat(e,r,n){return p4(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield uE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield uE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield uE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Z$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function dde(t,e){return Z$e(this,void 0,void 0,function*(){return yield Xx.create(t,e)})}var sfe=Ee(lR(),1);import*as gR from"crypto";import*as fE from"fs";import*as Ng from"path";import*as ife from"util";var gb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(gb||(gb={}));var ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ti||(ti={}));var yo;(function(t){t.GNU="gnu",t.BSD="bsd"})(yo||(yo={}));var dR=2,hR=5e3,L4=5e3,U4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,nfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pb="cache.tar",P4="manifest.txt",W$t=10*Math.pow(1024,3),fR="cache read denied:";var hE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ant=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},unt="1.0";function mb(){return hE(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=Ng.join(n,"actions","temp")}let r=Ng.join(e,gR.randomUUID());return yield Eg(r),r})}function wA(t){return fE.statSync(t).size}function O4(t){return hE(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield dde(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Ant(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ng.relative(a,s).replace(new RegExp(`\\${Ng.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Eb(t){return hE(this,void 0,void 0,function*(){return ife.promisify(fE.unlink)(t)})}function ofe(t){return hE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield BA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function Cb(){return hE(this,void 0,void 0,function*(){let t=yield ofe("zstd",["--quiet"]),e=sfe.clean(t);return G(`zstd version: ${e}`),t===""?ti.Gzip:ti.ZstdWithoutLong})}function ih(t){return t===ti.Gzip?gb.Gzip:gb.Zstd}function afe(){return hE(this,void 0,void 0,function*(){return fE.existsSync(U4)?U4:(yield ofe("tar")).toLowerCase().includes("gnu tar")?Eo("tar"):""})}function H4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function gE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(unt),gR.createHash("sha256").update(n.join("|")).digest("hex")}function cfe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as XE from"fs";import{URL as Ilt}from"url";var SA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as lnt}from"node:os";import dnt from"node:util";import hnt from"node:process";function Afe(t,...e){hnt.stderr.write(`${dnt.format(t,...e)}${lnt}`)}import Ib from"node:process";function mR(t){return Ib.env[t]}var ufe=typeof Ib.versions.deno=="string"&&Ib.versions.deno.length>0,lfe=typeof Ib.versions.bun=="string"&&Ib.versions.bun.length>0,ER=!0;var dfe=mR("DEBUG"),ffe,G4=[],q4=[],CR=[];dfe&&Y4(dfe);var gfe=Object.assign(t=>pfe(t),{enable:Y4,enabled:V4,disable:fnt,log:Afe});function Y4(t){ffe=t,G4=[],q4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q4.push(r.substring(1)):G4.push(r);for(let r of CR)r.enabled=V4(r.namespace)}function V4(t){if(t.endsWith("*"))return!0;for(let e of q4)if(hfe(t,e))return!1;for(let e of G4)if(hfe(t,e))return!0;return!1}function hfe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function fnt(){let t=ffe||"";return Y4(""),t}function pfe(t){let e=Object.assign(r,{enabled:V4(t),destroy:gnt,log:gfe.log,namespace:t,extend:pnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return CR.push(e),e}function gnt(){let t=CR.indexOf(this);return t>=0?(CR.splice(t,1),!0):!1}function pnt(t){let e=pfe(`${this.namespace}:${t}`);return e.log=this.log,e}var pE=gfe;var J4=["verbose","info","warning","error"],mfe={verbose:400,info:300,warning:200,error:100};function Efe(t,e){e.log=(...r)=>{t.log(...r)}}function Cfe(t){return J4.includes(t)}function IR(t){let e=new Set,r=mR(t.logLevelEnvVarName),n,s=pE(t.namespace);s.log=(...u)=>{pE.log(...u)};function i(u){if(u&&!Cfe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${J4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);pE.enable(l.join(","))}r&&(Cfe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${J4.join(", ")}.`));function o(u){return!!(n&&mfe[u.level]<=mfe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Efe(u,d),o(d)){let h=pE.disable();pE.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Efe(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Ife=IR({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),mnt=Ife.logger;function yb(t){return Ife.createClientLogger(t)}function yR(t){return t.toLowerCase()}function Ent(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Cnt(t){for(let e of t.values())yield[e.name,e.value]}var W4=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(yR(e),{name:e,value:Ent(r)})}get(e){return this._headersMap.get(yR(e))?.value}has(e){return this._ Line truncated
${bnt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function mE(t){return t instanceof ri?!0:xg(t)&&t.name==="RestError"}function Bb(t,e){return Buffer.from(t).toString(e)}function ni(t,e){return Buffer.from(t,e)}import X4 from"node:http";import Z4 from"node:https";import bfe from"node:zlib";import{Transform as Qnt}from"node:stream";var Di=yb("ts-http-runtime");var wnt={};function bb(t){return t&&typeof t.pipe=="function"}function Qfe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function wfe(t){return t&&typeof t.byteLength=="number"}var QR=class extends Qnt{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}},$4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new SA("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Dc;Di.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=xnt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new QR(f);g.on("error",E=>{Di.error("Error in upload progress",E)}),bb(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a),u=Snt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Nnt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new QR(h);f.on("error",g=>{Di.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Tnt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();bb(a)&&(A=Qfe(a));let u=Promise.resolve();bb(c)&&(u=Qfe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Di.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((c,A)=>{let u=i?X4.request(a,c):Z4.request(a,c);u.once("error",l=>{A(new ri(l.message,{code:l.code??ri.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new SA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&bb(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):wfe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Di.error("Unrecognized body type",n),A(new ri("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?X4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new X4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Z4.globalAgent;let s=e.tlsSettings??wnt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Di.info("No cached TLS Agent exist, creating a new Agent"),i=new Z4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Snt(t){let e=Bo();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}function Nnt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=bfe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=bfe.createInflate();return t.pipe(n),n}return t}function Tnt(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 ri(`Error reading response as text: ${s.message}`,{code:ri.PARSE_ERROR}))})})}function xnt(t){return t?Buffer.isBuffer(t)?t.length:bb(t)?null:wfe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sfe(){return new $4}function wR(){return Sfe()}var e6="logPolicy";function SR(t={}){let e=t.logger??Di.info,r=new Dc({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function Kst(t){return t instanceof Uint8Array?t.byteLength:wb(t)?t.size===-1?void 0:t.size:void 0}function Xst(t){let e=0;for(let r of t){let n=Kst(r);if(n===void 0)return;e+=n}return e}async function Zst(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(jst(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=Xst(n);s&&t.headers.set("Content-Length",s),t.body=await Ege(n)}var Sb="multipartPolicy",$st=70,eit=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function tit(t){if(t.length>$st)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!eit.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function jR(){return{name:Sb,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?tit(r):r=zst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Zst(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function KR(){return bR()}var Cge=IR({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jnr=Cge.logger;function Ia(t){return Cge.createClientLogger(t)}var TA=Ia("core-rest-pipeline");function m6(t={}){return SR({logger:TA.info,...t})}var E6=WR;function C6(t={}){return zR(t)}import I6 from"node:os";import ch from"node:process";function Ige(){return"User-Agent"}async function yge(t){if(ch&&ch.versions){let e=`${I6.type()} ${I6.release()}; ${I6.arch()}`;ch.versions.bun?t.set("Bun",`${ch.versions.bun} (${e})`):ch.versions.deno?t.set("Deno",`${ch.versions.deno} (${e})`):ch.versions.node&&t.set("Node",`${ch.versions.node} (${e})`)}}var XR="1.25.0";function Ait(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Bge(){return Ige()}async function ZR(t){let e=new Map;e.set("core-rest-pipeline",XR),await yge(e);let r=Ait(e);return t?`${t} ${r}`:r}var bge=Bge(),Qge="userAgentPolicy";function y6(t={}){let e=ZR(t.userAgentPrefix);return{name:Qge,async sendRequest(r,n){return r.headers.has(bge)||r.headers.set(bge,await e),n(r)}}}var wge=Symbol("rawContent");function B6(t){return typeof t[wge]=="function"}function Sge(t){return B6(t)?t[wge]():t}var $R=Sb;function b6(){let t=jR();return{name:$R,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)B6(n.body)&&(n.body=Sge(n.body));return t.sendRequest(e,r)}}}var Q6=VR;function w6(){return JR()}function S6(t={}){return RR(t)}function N6(){return DR()}var Es=class extends Error{constructor(e){super(e),this.name="AbortError"}};function T6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Es(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Eit="The delay was aborted.";function bE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return T6(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Eit})}function Ah(t){if(xg(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}`}}function Nge(t){return xg(t)}function QE(){return Tg()}var Qr=ER;function R6(t,e){return Bb(t,e)}function D6(t,e){return ni(t,e)}function uh(t){return f6(t)}function k6(t,e){return YR(t,e)}var Tge="setClientRequestIdPolicy";function v6(t="x-ms-client-request-id"){return{name:Tge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function F6(t){return kR(t)}function M6(t){return vR(t)}var wE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function xge(t={}){let e=new _6(t.parentContext);return t.span&&(e=e.setValue(wE.span,t.span)),t.namespace&&(e=e.setValue(wE.namespace,t.namespace)),e}var _6=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Dge=Ee(Rge(),1),tD=Dge.state;function Cit(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Iit(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Cit(),tracingContext:xge({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Nb(){return tD.instrumenterImplementation||(tD.instrumenterImplementation=Iit()),tD.instrumenterImplementation}function Tb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Nb().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!qot(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",hn("InvalidTag",l,si(t,i))}let A=Uot(t,i);if(A===!1)return hn("InvalidAttr","Attributes for '"+c+"' have open quote.",si(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=dpe(u,e);if(d===!0)n=!0;else return hn(d.err.code,d.err.msg,si(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return hn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",si(t,o));if(r.length===0)return hn("InvalidTag","Closing tag '"+c+"' has not been opened.",si(t,o));{let l=r.pop();if(c!==l.tagName){let d=si(t,l.tagStartPos);return hn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",si(t,o))}r.length==0&&(s=!0)}}else return hn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",si(t,i));else{let l=dpe(u,e);if(l!==!0)return hn(l.err.code,l.err.msg,si(t,i-u.length+l.err.line));if(s===!0)return hn("InvalidXml","Multiple possible root nodes found.",si(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=lpe(t,i);continue}else if(t[i+1]==="?"){if(i=upe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Hot(t,i);if(l==-1)return hn("InvalidChar","char '&' is not expected.",si(t,i));i=l}else if(s===!0&&!TE(t[i]))return hn("InvalidXml","Extra text at the end",si(t,i));t[i]==="<"&&i--}}else{if(TE(t[i]))continue;return hn("InvalidChar","char '"+t[i]+"' is not expected.",si(t,i))}if(n){if(r.length==1)return hn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",si(t,r[0].tagStartPos));if(r.length>0)return hn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return hn("InvalidXml","Start tag expected.",1);return!0}function TE(t){return t===" "||t===" "||t===`
`||t==="\r"}function upe(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 hn("InvalidXml","XML declaration allowed only at the start of the document.",si(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function lpe(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}var _ot='"',Lot="'";function Uot(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===_ot||t[e]===Lot)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}}function Pot(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&TE(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!TE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&TE(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&TE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function dpe(t,e){let r=Pot(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Pb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Pb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return hn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Pb(r[s]));let i=r[s][2];if(!Got(i))return hn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Pb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return hn("InvalidAttr","Attribute '"+i+"' is repeated.",Pb(r[s]))}return!0}function Oot(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}function Hot(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Oot(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}function hn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Got(t){return eH(t)}function qot(t){return eH(t)}function si(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Pb(t){return t.startIndex+t[1].length}var tH={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Ob={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},rH={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var xE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Yot=new Set("!?\\\\/[]$%{}^&*()<>|+");function hpe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Yot.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Hb(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var Mg="external",lD="base",nH="all";function Vot(t){return!t||t===Mg?new Set([Mg]):t===nH?new Set([nH]):t===lD?new Set([lD]):Array.isArray(t)?new Set(t):new Set([Mg])}var Fi=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Jot=new Set([9,10,13]);function Wot(t){if(!t)return{xmlVersion:1,onLevel:Fi.allow,nullLevel:Fi.remove};let e=t.xmlVersion===1.1?1.1:1,r=Fi[t.onNCR]??Fi.allow,n=Fi[t.nullNCR]??Fi.remove,s=Math.max(n,Fi.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var RE=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=Vot(this._limit.applyLimitsTo??Mg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Hb(Ob,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new Mi("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qb(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=ME(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=pH(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=mH(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new Mi(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=ME(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=ME(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=mH(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);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 m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=xat(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Tat(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let L=new Mi(l);I&&(L[":@"]=I),L.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s));let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Mi(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),r=V}n="",a=g}}}else n+=t[a];return e.child};function Mat(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function _at(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)}function Lat(t,e,Line truncated
`;function Wat(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bH(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function kpe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function BH(t,e){let r="";e.format&&(r=Jat);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 So(c)):c instanceof So&&n.push(c)}let s=Wat(t,e),i=dD("qName",{xmlVersion:s}),o=new DA;return vpe(t,e,r,o,n,i)}function vpe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=Cs(t);return c=yH(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=bH(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:kpe(u,!1,e,n,i),h=zat(A[":@"],e);n.push(d,h);let f=Kat(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=yH(y,e)),y=Cs(y),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=mD(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Jb(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Dpe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Dpe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Fpe(A[u],e):I=vpe(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function zat(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 i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=kA(t[s]),n=!0}return n?r:null}function Fpe(t,e){if(!Array.isArray(t))return t!=null?Cs(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=bH(s);if(i===e.textNodeName)r+=Cs(s[i]);else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=jat(s[":@"],e),a=Fpe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function jat(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)}="${kA(s)}"`}return r}function bH(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}}function Dpe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:kpe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=yH(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${kA(A)}"`}return i}function Kat(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}function yH(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}function QH(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}var Xat={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 Li(t){if(this.options=Object.assign({},Xat,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&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new So(r)):r instanceof So&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Zat(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"}function wH(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Li.prototype.build=function(t){if(this.options.preserveOrder)return BH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new DA,r=Zat(t,this.options),n=dD("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Li.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:wH(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=wH(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,Cs(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,Cs(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Cs(t[c]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),E=Cs(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Cs(g);m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=wH(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,Cs(t[c][l[h]]),a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};Li.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Cs(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+kA(e)+'"'};function $at(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Li.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 i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=kA(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]=kA(t[n]),r=!0)}return r?e:null};Li.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(dt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===dt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE));r.sort((s,i)=>DD(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=TD(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=xD(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Xr=class extends Pg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $b(e,r,this)}computeHMACSHA256(e){return Cct("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var vn=Ia("storage-common");var ya;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ya||(ya={}));var fh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ict=new Es("The operation was aborted."),eQ=class extends vA{retryOptions;constructor(e,r,n=fh){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fh.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fh.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fh.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fh.maxRetryDelayInMs):fh.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fh.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fh.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=ND(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=SD(s.url,Zb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(vn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(vn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return vn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return vn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return vn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return vn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(dt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(vn.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 ya.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ya.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return vn.info(`RetryPolicy: Delay for ${s}ms`),RD(s,n,Ict)}};var tQ=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new eQ(e,r,this.retryOptions)}};var yct="storageBrowserPolicy";function Wpe(){return{name:yct,async sendRequest(t,e){return e(t)}}}var Bct="StorageCorrectContentLengthPolicy";function zpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Bct,async sendRequest(e,r){return t(e),r(e)}}}var bct="storageRetryPolicy",UE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Qct=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],wct=new Es("The operation was aborted.");function jpe(t={}){let e=t.retryPolicyType??UE.retryPolicyType,r=t.maxTries??UE.maxTries,n=t.retryDelayInMs??UE.retryDelayInMs,s=t.maxRetryDelayInMs??UE.maxRetryDelayInMs,i=t.secondaryHost??UE.secondaryHost,o=t.tryTimeoutInMs??UE.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return vn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Qct)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return vn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return vn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=Sct("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(dt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===dt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>DD(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=TD(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=xD(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Nct,async sendRequest(i,o){return e(i),o(i)}}}var Tct="storageRequestFailureDetailsParserPolicy";function Kpe(){return{name:Tct,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as xct}from"node:crypto";var kD=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return xct("sha256",this.key).update(e,"utf8").digest("base64")}};var vD="12.33.0",FD="2026-06-06";var MD="https://storage.azure.com/.default",Ql={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var kc="",FH="*",Rct=1*1024*1024;var Dct=4*Rct;var Xpe="AES256",Zpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",$pe=["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"],eme=["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"],tme="BlobUsesCustomerSpecifiedEncryption",rme="BlobDoesNotUseCustomerSpecifiedEncryption",nme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var rQ=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function fn(t,e={}){t||(t=new Lr);let r=new rQ([],e);return r._credential=t,r}function kct(t){let e=[vct,sme,Fct,Mct,_ct,Lct,Pct];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Uct(s));return{wrappedPolicies:Z6(r),afterRetry:n}}}}function MH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?$6(e):kH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${vD}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Db({...r,loggingOptions:{additionalAllowedHeaderNames:$pe,additionalAllowedQueryParameters:eme,logger:CD.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:ED,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Q6}),s.addPolicy(zpe()),s.addPolicy(jpe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Kpe()),s.addPolicy(Wpe());let a=kct(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=_H(t);Qo(c)?s.addPolicy(SE({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Do(t.version,i,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}}function vut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Do(t.version,o,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:i}}function Fut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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 Do(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Mut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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 Do(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function _ut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ro(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Do(t.version,o,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:i}}function Lut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ro(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 Do(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Uut(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ro(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 Do(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function Put(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ro(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 Do(t.version,a,i,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,void 0,void 0,s),stringToSign:o}}function Out(t,e){if(t=vl(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ro(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,Hut(t.requestHeaders),Gut(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Do(t.version,a,i,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,u0e(t.requestHeaders),u0e(t.requestQueryParameters),s),stringToSign:o}}function Hut(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function Gut(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function u0e(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function kl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vl(t){let e=t.version?t.version:FD;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}function WE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var gQ=class{_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=QE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==kc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==kc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==kc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==kc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};jE.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=class extends Error{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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var llt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Aq=class{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);te(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function y0e(t,e,r){return llt(this,void 0,void 0,function*(){var n;let s=new _c(t),i=s.getBlockBlobClient(),o=new Aq((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new x2(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as b0e from"buffer";import*as KA from"fs";import*as Q0e from"stream";import*as w0e from"util";var R2=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function D2(t){return t?t>=200&&t<300:!1}function dlt(t){return t?t>=500:!0}function hlt(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function flt(t){return R2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function B0e(t,e,r){return R2(this,arguments,void 0,function*(n,s,i,o=dR,a=hR,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!dlt(d)))return l;if(d&&(h=hlt(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield flt(a),u++}throw Error(`${n} failed: ${A}`)})}function QQ(t,e){return R2(this,arguments,void 0,function*(r,n,s=dR,i=hR){return yield B0e(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof IA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function KE(t,e){return R2(this,arguments,void 0,function*(r,n,s=dR,i=hR){return yield B0e(r,n,o=>o.message.statusCode,s,i)})}var Ta=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function glt(t,e){return Ta(this,void 0,void 0,function*(){yield w0e.promisify(Q0e.pipeline)(t.message,e)})}var k2=class{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,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);te(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function fq(t,e,r){return Hi(this,void 0,void 0,function*(){let n=new Ilt(t),s=x0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield N0e(t,e,s):s.concurrentBlobDownloads?yield S0e(t,e,s):yield v2(t,e):yield v2(t,e)})}function P0e(t,e,r){return Hi(this,void 0,void 0,function*(){let n=hq(),s=gE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield QQ("reserveCache",()=>Hi(this,void 0,void 0,function*(){return n.postJson(SQ("caches"),i)}))})}function L0e(t,e){return`bytes ${t}-${e}/*`}function Qlt(t,e,r,n,s){return Hi(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${L0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":L0e(n,s)},o=yield KE(`uploadChunk (start: ${n}, end: ${s})`,()=>Hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!D2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function wlt(t,e,r,n){return Hi(this,void 0,void 0,function*(){let s=wA(r),i=SQ(`caches/${e.toString()}`),o=XE.openSync(r,"r"),a=uq(n),c=H4("uploadConcurrency",a.uploadConcurrency),A=H4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Hi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Qlt(t,i,()=>XE.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{XE.closeSync(o)}})}function Slt(t,e,r){return Hi(this,void 0,void 0,function*(){let n={size:r};return yield QQ("commitCache",()=>Hi(this,void 0,void 0,function*(){return t.postJson(SQ(`caches/${e.toString()}`),n)}))})}function gq(t,e,r,n){return Hi(this,void 0,void 0,function*(){if(uq(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield y0e(r,e,n)}else{let i=hq();G("Upload cache"),yield wlt(i,t,e,n),G("Commiting cache");let o=wA(e);te(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Slt(i,t,o);if(!D2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);te("Cache saved successfully")}})}var kEe=Ee(oY(),1),pn=Ee(gt(),1),vo=Ee(gt(),1),np=Ee(gt(),1),sp=Ee(gt(),1),ip=Ee(gt(),1);var uY=Ee(gt(),1),lY=Ee(gt(),1),xEe=Ee(gt(),1),REe=Ee(gt(),1),DEe=Ee(gt(),1);var aY=Ee(gt(),1),cY=Ee(gt(),1),SEe=Ee(gt(),1),NEe=Ee(gt(),1),TEe=Ee(gt(),1),AY=class extends TEe.MessageType{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,NEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,SEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?cY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,aY.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,aY.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?cY.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Ik=new AY;var dY=class extends DEe.MessageType{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:()=>Ik}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,REe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Ik.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?lY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,uY.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Ik.internalBinaryWrite(e.scope[i],r.tag(2,uY.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?lY.UnknownFieldHandler.onWrite Line truncated
`));let n=yield NY(r,"create");yield TY(n,t)})}var hC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Mo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ll=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},DY="cache write denied:",bk=class t extends Ll{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_Ee=fR,Qk=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},wk=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function LEe(t){if(!t||t.length===0)throw new Mo("Path Validation Error: At least one directory or file path is required")}function kY(t){if(t.length>512)throw new Mo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Mo(`Key Validation Error: ${t} cannot contain commas.`)}function UEe(){return wQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Sk(t,e,r,n){return hC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=wQ();G(`Cache service version: ${A}`),LEe(s);let u=dq();if(!D0e(u)){te(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield qht(s,i,o,a,c):yield Ght(s,i,o,a,c)})}function Ght(t,e,r,n){return hC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)kY(h);let l=yield Cb(),d="";try{let h;try{h=yield U0e(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_Ee)?new Qk(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return te("Lookup only - skipping download"),h.cacheKey;d=GQ.join(yield mb(),ih(l)),G(`Archive Path: ${d}`),yield fq(h.archiveLocation,d,a),Nc()&&(yield HQ(d,l));let f=wA(d);return te(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield xY(d,l),te("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Mo.name)throw h;f instanceof IA&&typeof f.statusCode=="number"&&f.statusCode>=500?Co(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield Eb(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function qht(t,e,r,n){return hC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)kY(d);let l="";try{let d=SY(),h=yield Cb(),f={key:i,restoreKeys:o,version:gE(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(_Ee)?new Qk(y):I}if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?te(`Cache hit for restore-key: ${g.matchedKey}`):te(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return te("Lookup only - skipping download"),g.matchedKey;l=GQ.join(yield mb(),ih(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield fq(g.signedDownloadUrl,l,a);let m=wA(l);return te(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Nc()&&(yield HQ(l,h)),yield xY(l,h),te("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Mo.name)throw d;h instanceof IA&&typeof h.statusCode=="number"&&h.statusCode>=500?Co(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Eb(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Nk(t,e,r){return hC(this,arguments,void 0,function*(n,s,i,o=!1){let a=wQ();G(`Cache service version: ${a}`),LEe(n),kY(s);let c=dq();return k0e(c)?a==="v2"?yield Vht(n,s,i,o):yield Yht(n,s,i,o):(te(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Yht(t,e,r){return hC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Cb(),f=-1,g=yield O4(n);if(G("Cache Paths:"),G(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield mb(),m=GQ.join(E,ih(h));G(`Archive Path: ${m}`);try{yield RY(E,g,h),Nc()&&(yield HQ(m,h));let I=10*1024*1024*1024,y Line truncated
See ${r.getDocumentationLink()}`;PEe.push(n),Cg(n)}function OEe(){bA("deprecation-collector_deprecations",JSON.stringify(FY)),bA("deprecation-collector_errors",JSON.stringify(PEe))}import*as Dk from"path";var HEe="GRADLE_ACTION_ID";var Mk=".setup-gradle",VQ=class t{getDependencyGraphOption(){let e=Br("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return ru("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Br("artifact-retention-days");return zht("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Ri.workflow,Ri.job,GEe())}getReportDirectory(){let e=Br("dependency-graph-report-dir");return Dk.resolve(bh(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return op("dependency-graph-exclude-projects")}getIncludeProjects(){return op("dependency-graph-include-projects")}getExcludeConfigurations(){return op("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return op("dependency-graph-include-configurations")}getPluginRepository(){return new kk}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var fC=class{isCacheDisabled(){return UEe()?ru("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&ru("cache-read-only")}isCacheWriteOnly(){return ru("cache-write-only")}isCacheOverwriteExisting(){return ru("cache-overwrite-existing")}isCacheStrictMatch(){return ru("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=YQ("gradle-home-cache-cleanup");if(e!==void 0)return xk("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Br("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Br("cache-encryption-key")}getCacheIncludes(){return _8("gradle-home-cache-includes")}getCacheExcludes(){return _8("gradle-home-cache-excludes")}getCacheProvider(){let e=Br("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var Pc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return ru("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return YQ("develocity-injection-enabled")}getDevelocityUrl(){return Br("develocity-url")}getDevelocityAllowUntrustedServer(){return YQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return YQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return YQ("develocity-enforce-url")}getDevelocityPluginVersion(){return Br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Br("develocity-ccud-plugin-version")}getPluginRepository(){return new kk}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},kk=class{getUrl(){return op("gradle-plugin-repository-url")}getUsername(){return op("gradle-plugin-repository-username")}getPassword(){return op("gradle-plugin-repository-p Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new ZQ(i));return n.searchPaths.push(...PY(n.patterns)),n})}static stat(e,r,n){return WY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mC.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield mC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield mC.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as zY from"crypto";import*as qk from"fs";import*as pCe from"stream";import*as mCe from"util";import*as ECe from"path";var pgt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},mgt=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function CCe(t,e){return pgt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?te:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=zY.createHash("sha256"),f=0;try{for(var g=!0,E=mgt(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${ECe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(qk.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=zY.createHash("sha256");yield mCe.promisify(pCe.pipeline)(qk.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var ICe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function jY(t,e){return ICe(this,void 0,void 0,function*(){return yield Hk.create(t,e)})}function yCe(t){return ICe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield jY(e,{followSymbolicLinks:i});return CCe(o,r,s)})}import*as KY from"path";var Egt="Gradle User Home",bCe="BASIC_CACHE_PRIMARY_KEY",QCe="BASIC_CACHE_RESTORED_KEY",Cgt="setup-java",wCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Yk=class{async restore(e,r){let n=SCe(e),s=await Igt();bA(bCe,s);try{let i=await Sk(n,s);i?(bA(QCe,i),te(`Basic caching restored from cache key: ${i}`)):te("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=$B(bCe),i=$B(QCe);if(n.readOnly)return{status:"read-only",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return te(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=SCe(e);try{return await Nk(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(te(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:i?"(EntLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${wCe}], make sure you have checked out the target repository`);return`${Cgt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Bgt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",bgt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Qgt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Jk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function xCe(t){return t.getCacheProvider()==="external"?(Vk(Qgt),new Jk("external")):t.isCacheDisabled()?(Vk("Cache is disabled: will not restore state from previous builds."),new Jk("disabled")):t.getCacheProvider()==="basic"?(Vk(bgt),new Yk):(Vk(Bgt),wgt())}async function wgt(){let t=Sgt();return await import(ygt(t).href)}function Sgt(){let t=import.meta.dirname,e=TCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(NCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Vk(t){console.info(t)}import Wk from"fs";import RCe from"path";var zk=class{constructor(e){this.cacheFile=RCe.resolve(e,Mk,"valid-wrappers.json")}load(){if(Wk.existsSync(this.cacheFile))try{return JSON.parse(Wk.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Wk.mkdirSync(RCe.dirname(this.cacheFile),{recursive:!0}),Wk.writeFileSync(this.cacheFile,JSON.stringify(r))}};var _Ce=Ee(FCe(),1);import*as MCe from"util";import*as jk from"path";import*as Kk from"fs";var kgt=MCe.promisify(Kk.readdir);async function LCe(t){return(await UCe(t)).filter(r=>(0,_Ce.default)(r).endsWith("gradle-wrapper.jar")).map(r=>jk.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function UCe(t){let e=await kgt(t),r=await Promise.all(e.map(async n=>{let s=jk.resolve(t,n),i=Kk.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?UCe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Fgt={_useHtmlParser2:!1};function EC(t,e){if(!t)return e??Fgt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var IV={};gc(IV,{contains:()=>lv,extract:()=>Tpt,html:()=>Qpt,merge:()=>aIe,parseHTML:()=>Spt,root:()=>Npt,text:()=>Ep,xml:()=>wpt});var kh={};gc(kh,{DocumentPosition:()=>Ma,append:()=>opt,appendChild:()=>ipt,compareDocumentPosition:()=>nIe,existsOne:()=>tIe,filter:()=>bC,find:()=>av,findAll:()=>upt,findOne:()=>cv,findOneChild:()=>Apt,getAttributeValue:()=>tpt,getChildren:()=>BC,getElementById:()=>fpt,getElements:()=>hpt,getElementsByClassName:()=>gpt,getElementsByTagName:()=>mp,getElementsByTagType:()=>ppt,getFeed:()=>CV,getInnerHTML:()=>ept,getName:()=>npt,getOuterHTML:()=>$Ce,getParent:()=>eIe,getSiblings:()=>mV,getText:()=>sv,hasAttrib:()=>rpt,hasChildren:()=>lr,innerText:()=>iw,isCDATA:()=>CC,isComment:()=>pp,isDocument:()=>Fa,isTag:()=>Te,isText:()=>Vi,nextElementSibling:()=>iv,prepend:()=>cpt,prependChild:()=>apt,prevElementSibling:()=>ov,removeElement:()=>ql,removeSubsets:()=>mpt,replaceElement:()=>spt,testElement:()=>dpt,textContent:()=>Gl,uniqueSort:()=>Rh});var va={};gc(va,{CDATA:()=>iV,Comment:()=>tV,Directive:()=>eV,Doctype:()=>oV,ElementType:()=>vt,Root:()=>ZY,Script:()=>rV,Style:()=>nV,Tag:()=>sV,Text:()=>$Y,isTag:()=>XY});var vt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(vt||(vt={}));function XY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var ZY=vt.Root,$Y=vt.Text,eV=vt.Directive,tV=vt.Comment,rV=vt.Script,nV=vt.Style,sV=vt.Tag,iV=vt.CDATA,oV=vt.Doctype;var Xk=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return IC(this,e)}},tw=class extends Xk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},su=class extends tw{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},hp=class extends tw{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},fp=class extends tw{constructor(e,r){super(r),this.name=e,this.type=vt.Di Line truncated
`:sv(t.children):CC(t)?sv(t.children):Vi(t)?t.data:""}function Gl(t){return Array.isArray(t)?t.map(Gl).join(""):lr(t)&&!pp(t)?Gl(t.children):Vi(t)?t.data:""}function iw(t){return Array.isArray(t)?t.map(iw).join(""):lr(t)&&(t.type===vt.Tag||CC(t))?iw(t.children):Vi(t)?t.data:""}function BC(t){return lr(t)?t.children:[]}function eIe(t){return t.parent||null}function mV(t){let e=eIe(t);if(e!=null)return BC(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function tpt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function rpt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function npt(t){return t.name}function iv(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function ov(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function ql(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function spt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function ipt(t,e){if(ql(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function opt(t,e){ql(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function apt(t,e){if(ql(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function cpt(t,e){ql(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function bC(t,e,r=!0,n=1/0){return av(t,Array.isArray(e)?e:[e],r,n)}function av(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Apt(t,e){return e.find(t)}function cv(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=cv(t,i.children,!0);if(o)return o}}return null}function tIe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&tIe(t,r.children))}function upt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Av={tag_name(t){return typeof t=="function"?e=>Te(e)&&t(e.name):t==="*"?Te:e=>Te(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Vi(e)&&t(e.data):e=>Vi(e)&&e.data===t}};function EV(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function lpt(t,e){return r=>t(r)||e(r)}function rIe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Av,r)?Av[r](n):EV(r,n)});return e.length===0?null:e.reduce(lpt)}function dpt(t,e){let r=rIe(t);return r?r(e):!0}function hpt(t,e,r,n=1/0){let s=rIe(t);return s?bC(s,e,r,n):[]}function fpt(t,e,r=!0){return Array.isArray(e)||(e=[e]),cv(EV("id",t),e,r)}function mp(t,e,r=!0,n=1/0){return bC(Av.tag_name(t),e,r,n)}function gpt(t,e,r=!0,n=1/0){return bC(EV("class",t),e,r,n)}function ppt(t,e,r=!0,n=1/0){return bC(Av.tag_type(t),e,r,n)}function mpt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ma;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ma||(Ma={}));function nIe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Ma.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ma.FOLLOWING|Ma.CONTAINED_BY:Ma.FOLLOWING:a===t?Ma.PRECEDING|Ma.CONTAINS:Ma.PRECEDING}function Rh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=nIe(e,r);return n&Ma.PRECEDING?-1:n&Ma.FOLLOWING?1:0}),t}function CV(t){let e=uv(Bpt,t);return e?e.name==="feed"?Ept(e):Cpt(e):null}function Ept(t){var e;let r=t.children,n={type:"atom",items:mp("entry",r).map(o=>{var a;let{children:c}=o,A={media:sIe(c)};Ji(A,"id","id",c),Ji(A,"title","title",c);let u=(a=uv("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dh("summary",c)||Dh("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ua=Ee(vh(),1);var _V={};function LV(t,e){return t===Ua.default.falseFunc?Ua.default.falseFunc:r=>e.isTag(r)&&t(r)}function UV(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function MV(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var FV=(t,e,r,n,s)=>{let i=s(e,MV(r),n);return i===Ua.default.trueFunc?t:i===Ua.default.falseFunc?Ua.default.falseFunc:o=>i(o)&&t(o)},bv={is:FV,matches:FV,where:FV,not(t,e,r,n,s){let i=s(e,MV(r),n);return i===Ua.default.falseFunc?t:i===Ua.default.trueFunc?Ua.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=MV(r);o.relativeSelector=!0;let a=e.some(u=>u.some(dw))?[_V]:void 0,c=s(e,o,a);if(c===Ua.default.falseFunc)return Ua.default.falseFunc;let A=LV(c,i);if(a&&c!==Ua.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...UV(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function JIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in bv))throw new Error(`Unknown pseudo-class :${o}(${a})`);return bv[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Bv[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,VIe.parse)(A);return bv.is(t,u,r,n,s)}if(typeof c=="function")return vV(c,o,a,1),u=>c(u,a)&&t(u);if(o in kC)return kC[o](t,a,r,n);if(o in fw){let u=fw[o];return vV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Pa=Ee(RC(),1);function PV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function WIe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Pa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Pa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Pa.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),HIe[e.action](t,e,r)}case Pa.SelectorType.Pseudo:return JIe(t,e,r,n,s);case Pa.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Pa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=PV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=PV(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=PV(A,i));return!1};case Pa.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Pa.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Pa.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Pa.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Pa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function zIe(t,e,r){let n=Qv(t,e,r);return LV(n,e.adapter)}function Qv(t,e,r){let n=typeof t=="string"?(0,qc.parse)(t):t;return wv(n,e,r)}function jIe(t){return t.type===qc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(jIe)))}var hmt={type:qc.SelectorType.Descendant},fmt={type:"_flexibleDescendant"},gmt={type:qc.SelectorType.Pseudo,name:"scope",data:null};function pmt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===_V||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(lye,`\r
`)}}).toArray()}var tJ={};gc(tJ,{extract:()=>D0t});function R0t(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function D0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=R0t(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var _h=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};_h.prototype.cheerio="[cheerio object]";_h.prototype.splice=Array.prototype.splice;_h.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_h.prototype,TV,XV,ZV,$V,eJ,tJ);function dye(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=EC(s),a=t(n,o,i,null);class c extends _h{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&_a(u))return u;let f=EC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=_a(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&ow(u)?t(u,f,!1,null).children:k0t(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?ow(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):_a(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,IV,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function k0t(t){return!!t.name||t.type===va.Root||t.type===va.Text||t.type===va.Comment}var v0t=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Er="\uFFFD",T;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Dv(t){return t>=55296&&t<=57343}function hye(t){return t>=56320&&t<=57343}function fye(t,e){return(t-55296)*1024+9216+e}function kv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function vv(t){return t>=64976&&t<=65007||v0t.has(t)}var z;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},l_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var fm=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function n2e(t){if(t instanceof AggregateError){Cg("Multiple errors returned");for(let e of t.errors)Co(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&te(e.stack)}else t instanceof fm?(Cg(String(t)),t.stack&&te(t.stack)):(Cg(String(t)),t instanceof Error&&t.stack&&te(t.stack))}async function s2e(t,e,r){if(!t.doValidateWrappers())return;let n=new zk(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await r2e(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await _x("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),te(o.toDisplayString())});else throw te(o.toDisplayString()),new fm(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import jo from"fs";import gm from"path";function i2e(t,e,r){let n=gm.resolve(e,Mk);jo.mkdirSync(n,{recursive:!0}),FMt(e),MMt(t),Nc()&&_Mt(e),r&&gs("GRADLE_ENCRYPTION_KEY",r)}function FMt(t){let e=gm.resolve(t,"init.d");jo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=LMt("init-scripts",n),i=gm.resolve(e,n);jo.writeFileSync(i,s)}}function MMt(t){let e=UMt();if(e==null)return;let r=gm.resolve(t,".m2"),n=gm.resolve(r,"toolchains.xml");if(!jo.existsSync(n))jo.mkdirSync(r,{recursive:!0}),jo.writeFileSync(n,e),te(`Wrote default JDK locations to ${n}`);else{let s=jo.readFileSync(n,"utf8"),i=PMt(s,e);jo.writeFileSync(n,i),te(`Merged default JDK locations into ${n}`)}}function _Mt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=gm.resolve(t,"gradle.properties");if(jo.existsSync(r)){te(`Merged --info and --stacktrace into existing ${r} file`);let n=jo.readFileSync(r,"utf-8");jo.writeFileSync(r,`${e}
${n}`)}else te(`Created a new ${r} with --info and --stacktrace`),jo.writeFileSync(r,e)}function LMt(...t){let e=import.meta.dirname,r=gm.resolve(e,"..","..","..","sources","src","resources",...t);return jo.readFileSync(r,"utf8")}function UMt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -384,122 +287,55 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Qat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var yat="restored-cache-key",f9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&qi("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Jp.resolve(this.gradleUserHome,"caches");return ic.existsSync(e)?(zo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=Hge(this.cacheName,this.cacheConfig);zo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await H6(s,n.key,n.restoreKeys,r);if(!i){pe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}DA(yat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new yM(this.gradleUserHome,this.cacheConfig).restore(e),await new bM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=Hge(this.cacheName,this.cacheConfig).key,n=xB(yat),s=e.entry(this.cacheDescription);if(n&&r===n){pe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await q6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new yM(this.gradleUserHome,this.cacheConfig).extract(e),new bM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Jp.resolve(this.gradleUserHome,n));for(let n of r){zo(`Removing excluded path: ${n}`);let s=await iC(n,{implicitDescendants:!1});for(let i of await s.glob())zo(`Removing excluded file: ${i}`),await uM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(oQ);let r=e.map(n=>this.resolveCachePath(n));return zo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Jp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Jp.resolve(this.gradleUserHome,oQ);ic.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),DB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Jp.resolve(this.gradleUserHome,"init.d");ic.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Iat("init-scripts",n),i=Jp.resolve(e,n);ic.writeFileSync(i,s)}}registerToolchains(){let e=Bat();if(e==null)return;let r=Jp.resolve(this.userHome,".m2"),n=Jp.resolve(r,"toolchains.xml");if(!ic.existsSync(n))ic.mkdirSync(r,{recursive:!0}),ic.writeFileSync(n,e),pe(`Wrote default JDK locations to ${n}`);else{let s=ic.readFileSync(n,"utf8"),i=Qat(s,e);ic.writeFileSync(n,i),pe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Jp.resolve(this.gradleUserHome,"gradle.properties");if(ic.existsSync(r)){pe(`Merged --info and --stacktrace into existing ${r} file`);let n=ic.readFileSync(r,"utf-8");ic.writeFileSync(r,`${e}
${n}`)}else pe(`Created a new ${r} with --info and --stacktrace`),ic.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!AM()&&!DB()||!ic.existsSync(this.gradleUserHome))return;let r=await ep("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});pe(`Gradle User Home (directories >5M): ${e}`),pe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),pe("-----------------------")}};import p9 from"fs";import wM from"path";var m9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return DA("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=xB("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&DC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await pfe(r,n)}catch{pe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await pfe("8.11")}findGradleWrapperScript(e){try{let r=gfe(e.rootProjectDir);return wM.resolve(e.rootProjectDir,r)}catch(r){return Te(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=wM.resolve(this.tmpDir,"dummy-cleanup-project");p9.mkdirSync(n,{recursive:!0}),p9.writeFileSync(wM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),p9.writeFileSync(wM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),p9.writeFileSync(wM.resolve(n,"build.gradle"),'task("noop") {}'),await tp("Executing Gradle to clean up caches",async()=>{pe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await $f(e,n,{cwd:r})}};var yfe="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function bat(t,e,r,n){if(process.env[yfe]){pe("Cache only restored on first action step.");return}qi(yfe,!0);let s=new f9(t,e,n);if(n.isCacheDisabled()){pe("Cache is disabled: will not restore state from previous builds."),s.init(),r.setDisabled();return}if(s.cacheOutputExists()){if(!n.isCacheOverwriteExisting()){pe("Gradle User Home already exists: will not restore from cache."),s.init(),r.setDisabled(Wje);return}pe("Gradle User Home already exists: will overwrite with cached contents.")}if(s.init(),DA(yfe,!0),n.isCacheCleanupEnabled()&&(pe("Preparing cache for cleanup."),await new m9(e,process.env.RUNNER_TEMP).prepare()),n.isCacheWriteOnly()){pe("Cache is write-only: will not restore from cache."),r.setWriteOnly();return}await tp("Restore Gradle state from cache",async()=>{await s.restore(r)})}async function Nat(t,e,r){if(t)try{Te("Fetching short-lived token...");let n=await OUr(t,e,r);if(n!=null&&!n.isEmpty()){Te("Got token(s), setting the access key env vars");let s=n.raw();jb(s),_Ur(s)}else wat()}catch(n){wat(),tr(`Failed to fetch short-lived token, reason: ${n}`)}}function _Ur(t){[qd.DevelocityAccessKeyEnvVar,qd.GradleEnterpriseAccessKeyEnvVar].forEach(e=>qi(e,t))}function wat(){tr("Failed to fetch short-lived token for Develocity"),process.env[qd.GradleEnterpriseAccessKeyEnvVar]&&F6(`The ${qd.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`),process.env[qd.DevelocityAccessKeyEnvVar]&&tr(`The ${qd.DevelocityAccessKeyEnvVar} env var should be mapped to a short-lived token`)}async function OUr(t,e,r){let n=new Promise(a=>a(null)),s=E9.parse(t),i=new bfe(e);if(s==null)return n;let o=new Array;for(let a of s.keys)try{pe(`Requesting short-lived Develocity access token for ${a.hostname}`);let A=await i.fetchToken(`https://${a.hostname}`,a,r);o.push(A)}catch(A){pe(`Failed to obtain short-lived Develocity access token for ${a.hostname}: ${A}`)}return o.length>0?E9.of(o):n}var bfe=class{constructor(e){this.maxRetries=3;this.retryInterval=1e3;this.httpc=new Ga("gradle/actions/setup-gradle",void 0,{ignoreSslError:e})}async fetchToken(e,r,n){let s=n?`?expiresInHours=${n}`:"",i=e.endsWith("/")?e:`${e}/`,o={"Content-Type":"application/json",Authorization:`Bearer ${r.key}`},a=0;for(;a<this.maxRetries;){try{let A=`${i}api/auth/token${s}`;Te(`Attempt ${a} to fetch short lived token at ${A}`);let c=await this.httpc.post(A,"",o);if(c.message.statusCode===200){let u=await c.readBody();return new Promise(l=>l({hostname:r.hostname,key:u}))}if(a++,a===this.maxRetries)return new Promise((u,l)=>l(new Error(`Develocity short lived token request failed ${e} with status code ${c.message.statusCode}`)))}catch(A){if(a++,a===this.maxRetries)return new Promise((c,u)=>u(A))}await new Promise(A=>setTimeout(A,this.retryInterval))}return new Promise((A,c)=>c(new Error("Illegal state")))}},E9=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};async function Sat(t){return xC("DEVELOCITY_INJECTION_INIT_SCRIPT_NAME","gradle-actions.inject-develocity.init.gradle"),xC("DEVELOCITY_INJECTION_CUSTOM_VALUE","gradle-actions"),wg("DEVELOCITY_INJECTION_ENABLED",t.getDevelocityInjectionEnabled()),wg("DEVELOCITY_INJECTION_URL",t.getDevelocityUrl()),wg("DEVELOCITY_INJECTION_ALLOW_UNTRUSTED_SERVER",t.getDevelocityAllowUntrustedServer()),wg("DEVELOCITY_INJECTION_CAPTURE_FILE_FINGERPRINTS",t.getDevelocityCaptureFileFingerprints()),wg("DEVELOCITY_INJECTION_ENFORCE_URL",t.getDevelocityEnforceUrl()),wg("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION",t.getDevelocityPluginVersion()),wg("DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION",t.getDevelocityCcudPluginVersion()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword()),t.getBuildScanPublishEnabled()&&(xC("DEVELOCITY_INJECTION_ENABLED","true"),xC("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION","4.3.2"),xC("DEV Line truncated
`:x9(t.children):zR(t)?x9(t.children):oc(t)?t.data:""}function Wp(t){return Array.isArray(t)?t.map(Wp).join(""):kn(t)&&!gQ(t)?Wp(t.children):oc(t)?t.data:""}function xM(t){return Array.isArray(t)?t.map(xM).join(""):kn(t)&&(t.type===Lr.Tag||zR(t))?xM(t.children):oc(t)?t.data:""}function XR(t){return kn(t)?t.children:[]}function Zat(t){return t.parent||null}function Jfe(t){let e=Zat(t);if(e!=null)return XR(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function pPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function mPr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function EPr(t){return t.name}function T9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function k9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function zp(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function CPr(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function IPr(t,e){if(zp(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function BPr(t,e){zp(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function QPr(t,e){if(zp(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function yPr(t,e){zp(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function ZR(t,e,r=!0,n=1/0){return F9(t,Array.isArray(e)?e:[e],r,n)}function F9(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function bPr(t,e){return e.find(t)}function M9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=M9(t,i.children,!0);if(o)return o}}return null}function $at(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&$at(t,r.children))}function wPr(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var v9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>oc(e)&&t(e.data):e=>oc(e)&&e.data===t}};function Vfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function NPr(t,e){return r=>t(r)||e(r)}function eAt(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(v9,r)?v9[r](n):Vfe(r,n)});return e.length===0?null:e.reduce(NPr)}function SPr(t,e){let r=eAt(t);return r?r(e):!0}function RPr(t,e,r,n=1/0){let s=eAt(t);return s?ZR(s,e,r,n):[]}function DPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),M9(Vfe("id",t),e,r)}function fQ(t,e,r=!0,n=1/0){return ZR(v9.tag_name(t),e,r,n)}function xPr(t,e,r=!0,n=1/0){return ZR(Vfe("class",t),e,r,n)}function TPr(t,e,r=!0,n=1/0){return ZR(v9.tag_type(t),e,r,n)}function kPr(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Nl;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Nl||(Nl={}));function tAt(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function kC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=tAt(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Wfe(t){let e=L9(UPr,t);return e?e.name==="feed"?FPr(e):MPr(e):null}function FPr(t){var e;let r=t.children,n={type:"atom",items:fQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:rAt(A)};ac(c,"id","id",A),ac(c,"title","title",A);let u=(a=L9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=FC("summary",A)||FC(" Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Dl=Xe(vC(),1);var upe={};function lpe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function dpe(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function cpe(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Ape=(t,e,r,n,s)=>{let i=s(e,cpe(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},j9={is:Ape,matches:Ape,where:Ape,not(t,e,r,n,s){let i=s(e,cpe(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=cpe(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UM))?[upe]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=lpe(A,i);if(a&&A!==Dl.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...dpe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function YAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in j9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return j9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:z9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,GAt.parse)(c);return j9.is(t,u,r,n,s)}if(typeof A=="function")return ape(A,o,a,1),u=>A(u,a)&&t(u);if(o in aD)return aD[o](t,a,r,n);if(o in _M){let u=_M[o];return ape(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe(iD(),1);function hpe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function JAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),_At[e.action](t,e,r)}case xl.SelectorType.Pseudo:return YAt(t,e,r,n,s);case xl.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=hpe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=hpe(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=hpe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case xl.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function VAt(t,e,r){let n=K9(t,e,r);return lpe(n,e.adapter)}function K9(t,e,r){let n=typeof t=="string"?(0,Jd.parse)(t):t;return X9(n,e,r)}function WAt(t){return t.type===Jd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(WAt)))}var R_r={type:Jd.SelectorType.Descendant},D_r={type:"_flexibleDescendant"},x_r={type:Jd.SelectorType.Pseudo,name:"scope",data:null};function T_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===u Line truncated
`)})):{name:s,value:i.replace(cct,`\r
`)}}).toArray()}var Dpe={};xu(Dpe,{extract:()=>VOr});function JOr(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function VOr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=JOr(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var PC=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};PC.prototype.cheerio="[cheerio object]";PC.prototype.splice=Array.prototype.splice;PC.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(PC.prototype,rpe,wpe,Npe,Spe,Rpe,Dpe);function uct(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=WR(s),a=t(n,o,i,null);class A extends PC{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=WR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&TM(u)?t(u,g,!1,null).children:WOr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?TM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,zfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function WOr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var zOr=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Zn="\uFFFD",k;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));var aA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function nJ(t){return t>=55296&&t<=57343}function lct(t){return t>=56320&&t<=57343}function dct(t,e){return(t-55296)*1024+9216+e}function sJ(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function iJ(t){return t>=64976&&t<=65007||zOr.has(t)}var Ae;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-pu Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},vW=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var KQ=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function QIt(t){if(t instanceof AggregateError){RB("Multiple errors returned");for(let e of t.errors)F1(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&pe(e.stack)}else t instanceof KQ?(RB(String(t)),t.stack&&pe(t.stack)):(RB(String(t)),t instanceof Error&&t.stack&&pe(t.stack))}async function yIt(t,e,r){if(!t.doValidateWrappers())return;let n=new I9(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await BIt(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await tp("All Gradle Wrapper jars are valid",async()=>{Te(`Loaded previously validated checksums from cache: ${i.join(", ")}`),pe(o.toDisplayString())});else throw pe(o.toDisplayString()),new KQ(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}var zBe="GRADLE_BUILD_ACTION_SETUP_COMPLETED",KZr="USER_HOME",XZr="GRADLE_USER_HOME",ZZr="CACHE_LISTENER";async function bIt(t,e,r){let n=await wIt(),s=await $Zr();if(process.env[zBe])return pe("Gradle setup only performed on first gradle/actions step in workflow."),!1;qi(zBe,!0),DA(zBe,!0),DA(KZr,n),DA(XZr,s);let i=new IY;return await bat(n,s,i,t),DA(ZZr,i.stringify()),await yIt(r,bC(),s),await Sat(e),!0}async function $Zr(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bC();return KBe.resolve(r,t)}let e=KBe.resolve(await wIt(),".gradle");if(jBe.existsSync(e))return pe(`Gradle User Home already exists at ${e}`),qi("GRADLE_USER_HOME",e),e;if(LW.platform()==="win32"&&e.startsWith("C:\\")&&jBe.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return pe(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),qi("GRADLE_USER_HOME",r),r}return qi("GRADLE_USER_HOME",e),e}async function wIt(){let t=await ep("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return pe("Could not determine user.home from java -version output. Using os.homedir()."),LW.homedir();let n=r[1];return Te(`Determined user.home from java -version output: '${n}'`),n}import t$r from"os";function aL(){return 8*1024*1024}function UW(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function NIt(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function ix(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function SIt(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function RIt(){let t=t$r.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(pe("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(pe(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function DIt(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function xIt(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var XBe=Xe(lr(),1),ZBe=Xe(lr(),1),TIt=Xe(lr(),1),kIt=Xe(lr(),1),FIt=Xe(lr(),1),ox=Xe(lr(),1),MIt=Xe(lr(),1),$Be=class extends MIt.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ox.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ox.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ox.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ox.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let i=(e.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?s="."+i.substring(0,3)+"Z":i.substring(6)==="000"?s="."+i.substring(0,6)+"Z":s="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",s)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,FIt.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let i=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(i))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ox.PbLong.from(i/1e3).toString(),n.nanos=0,s[7]&&(n.nanos=parseInt("1"+s[7]+"0".repeat Line truncated
`," Line feed \\n"]]),UIt=new Map([...L0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function PIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of UIt)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function PMt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var YK="GRADLE_BUILD_ACTION_SETUP_COMPLETED",OMt="GRADLE_USER_HOME",HMt="DEVELOCITY_CACHE_TOKEN";async function o2e(t,e,r){let n=await a2e(),s=await qMt();if(process.env[YK])return te("Gradle setup only performed on first gradle/actions step in workflow."),!1;gs(YK,!0),bA(YK,!0),bA(OMt,s),i2e(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await JEe(e);return bA(HMt,o??""),await(await xCe(t)).restore(s,GMt(t,i,o)),await s2e(r,bh(),s),YEe(e),!0}function GMt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function qMt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bh();return JK.resolve(r,t)}let e=JK.resolve(await a2e(),".gradle");if(VK.existsSync(e))return te(`Gradle User Home already exists at ${e}`),gs("GRADLE_USER_HOME",e),e;if(d_.platform()==="win32"&&e.startsWith("C:\\")&&VK.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return te(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),gs("GRADLE_USER_HOME",r),r}return gs("GRADLE_USER_HOME",e),e}async function a2e(){let t=await ZB("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return te("Could not determine user.home from java -version output. Using os.homedir()."),d_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as RI from"fs";import*as O2e from"os";import*as lf from"path";import*as zK from"crypto";import*as mm from"fs";var VMt=Ee(lR(),1);import*as O1 from"path";var g_=Ee(lR(),1);import*as A2e from"stream";import*as u2e from"util";import{ok as WMt}from"assert";var c2e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},h_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return c2e(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;te(i.message)}let s=this.getSleepAmount();te(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return c2e(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var pm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},f_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},zMt=process.platform==="win32",vTr=process.platform==="darwin",jMt="actions/tool-cache";function l2e(t,e,r,n){return pm(this,void 0,void 0,function*(){e=e||O1.join(h2e(),zK.randomUUID()),yield Eg(O1.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=WK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=WK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new h_(s,i,o).execute(()=>pm(this,void 0,void 0,function*(){return yield KMt(t,e||"",r,n)}),c=>!(c instanceof f_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function KMt(t,e,r,n){return pm(this,void 0,void 0,function*(){if(mm.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Kr(jMt,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new f_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=u2e.promisify(A2e.pipeline),c=WK("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,mm.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield Rue(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function d2e(t,e){return pm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return Line truncated
`," Line feed \\n"]]),tke=new Map([...kX,["\\"," Backslash \\"],["/"," Forward slash /"]]);function rke(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of tke)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(UIt.values()).toString()}
Invalid characters include: ${Array.from(tke.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);pe("Artifact name is valid!")}function U0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of L0e)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);te("Artifact name is valid!")}function vX(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of kX)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(L0e.values()).toString()}
Invalid characters include: ${Array.from(kX.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var qIt=Xe(HIt(),1);function Kg(){return`@actions/artifact-${qIt.version}`}var _W=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},dm=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},hm=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},lI=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},gm=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};gm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var XQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
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"}};XQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZQ=class extends Error{};ZQ.prototype.name="InvalidTokenError";function c$r(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function u$r(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return c$r(e)}catch{return atob(e)}}function GIt(t,e){if(typeof t!="string")throw new ZQ("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ZQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=u$r(n)}catch(i){throw new ZQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ZQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var OW=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Xg(){let t=UW(),e=GIt(t);if(!e.scp)throw OW;let r=e.scp.split(" ");if(r.length===0)throw OW;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw OW;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Te(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Te(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw OW}function YIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(jb(r),jb(encodeURIComponent(r)))}catch(e){Te(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function JIt(t){if(typeof t!="object"||t===null){Te("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&YIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&YIt(t.signed_url)}var HW=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},P0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=UW();this.baseUrl=NIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ga(e,[new T1(i)])}request(e,r,n,s){return HW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Te(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>HW(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return HW(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),Te(`[Response] - ${a.message.statusCode}`),Te(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(JIt(c),Te(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(XQ.isUsageErrorMessage(c.msg))throw new XQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Te(`Raw Body: ${s}`),a instanceof XQ)throw a;if(gm.isNetworkErrorCode(a?.code))throw new gm(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);pe(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ao.BadGateway,ao.GatewayTimeout,ao.InternalServerError,ao.ServiceUnavailable,ao.TooManyRequests].includes(e):!1}sleep(e){return HW(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Zg(t){let e=new P0e(Kg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new PW(e)}import*as Ax from"fs";import{normalize as VIt,resolve as WIt}from"path";function zIt(t){if(!Ax.existsSync Line truncated
${y$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function VW(t){return t instanceof dA?!0:ey(t)&&t.name==="RestError"}function mc(t,e){return Buffer.from(t,e)}import z0e from"node:http";import j0e from"node:https";import ABt from"node:zlib";import{Transform as b$r}from"node:stream";var Vl=cL("ts-http-runtime");var w$r={};function uL(t){return t&&typeof t.pipe=="function"}function cBt(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function uBt(t){return t&&typeof t.byteLength=="number"}var WW=class extends b$r{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}},K0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new $g("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new rh;Vl.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=D$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new WW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),uL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=N$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?S$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new WW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await R$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();uL(a)&&(c=cBt(a));let u=Promise.resolve();uL(A)&&(u=cBt(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?z0e.request(a,A):j0e.request(a,A);u.once("error",l=>{c(new dA(l.message,{code:l.code??dA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new $g("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&uL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):uBt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new dA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?z0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new z0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j0e.globalAgent;let s=e.tlsSettings??w$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new j0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function N$r(t){let e=mu();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}function S$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ABt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ABt.createInflate();return t.pipe(n),n}return t}function R$r(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 dA(`Error reading response as text: ${s.message}`,{code:dA.PARSE_ERROR}))})})}function D$r(t){return t?Buffer.isBuffer(t)?t.length:uL(t)?null:uBt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function lBt(){return new K0e}function zW(){return lBt()}var X0e="logPolicy";function jW(t={}){let e=t.logger??Vl.info,r=new rh({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:X0e,async sendRequest Line truncated
`;return e}function $$r(t){return t instanceof Uint8Array?t.byteLength:Az(t)?t.size===-1?void 0:t.size:void 0}function een(t){let e=0;for(let r of t){let n=$$r(r);if(n===void 0)return;e+=n}return e}async function ten(t,e,r){let n=[mc(`--${r}`,"utf-8"),...e.flatMap(i=>[mc(`\r
`,"utf-8"),mc(Z$r(i.headers),"utf-8"),mc(`\r
`,"utf-8"),i.body,mc(`\r
--${r}`,"utf-8")]),mc(`--\r
\r
`,"utf-8")],s=een(n);s&&t.headers.set("Content-Length",s),t.body=await MBt(n)}var dL="multipartPolicy",ren=70,nen=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function sen(t){if(t.length>ren)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!nen.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function cz(){return{name:dL,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?sen(r):r=X$r(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ten(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function uz(){return JW()}import{EOL as oen}from"node:os";import aen from"node:util";import*as vBt from"node:process";function LBt(t,...e){vBt.stderr.write(`${aen.format(t,...e)}${oen}`)}var UBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,PBt,cQe=[],uQe=[],lz=[];UBt&&lQe(UBt);var _Bt=Object.assign(t=>OBt(t),{enable:lQe,enabled:dQe,disable:Aen,log:LBt});function lQe(t){PBt=t,cQe=[],uQe=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?uQe.push(new RegExp(`^${n.substr(1)}$`)):cQe.push(new RegExp(`^${n}$`));for(let n of lz)n.enabled=dQe(n.namespace)}function dQe(t){if(t.endsWith("*"))return!0;for(let e of uQe)if(e.test(t))return!1;for(let e of cQe)if(e.test(t))return!0;return!1}function Aen(){let t=PBt||"";return lQe(""),t}function OBt(t){let e=Object.assign(r,{enabled:dQe(t),destroy:cen,log:_Bt.log,namespace:t,extend:uen});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return lz.push(e),e}function cen(){let t=lz.indexOf(this);return t>=0?(lz.splice(t,1),!0):!1}function uen(t){let e=OBt(`${this.namespace}:${t}`);return e.log=this.log,e}var lx=_Bt;var qBt=new Set,dz=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,hQe,gQe=lx("azure");gQe.log=(...t)=>{lx.log(...t)};var fQe=["verbose","info","warning","error"];dz&&(JBt(dz)?len(dz):console.error(`AZURE_LOG_LEVEL set to unknown log level '${dz}'; logging is not enabled. Acceptable values: ${fQe.join(", ")}.`));function len(t){if(t&&!JBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${fQe.join(",")}`);hQe=t;let e=[];for(let r of qBt)YBt(r)&&e.push(r.namespace);lx.enable(e.join(","))}var HBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=gQe.extend(t);return GBt(gQe,e),{error:hz(e,"error"),warning:hz(e,"warning"),info:hz(e,"info"),verbose:hz(e,"verbose")}}function GBt(t,e){e.log=(...r)=>{t.log(...r)}}function hz(t,e){let r=Object.assign(t.extend(e),{level:e});if(GBt(t,r),YBt(r)){let n=lx.disable();lx.enable(n+","+r.namespace)}return qBt.add(r),r}function YBt(t){return!!(hQe&&HBt[t.level]<=HBt[hQe])}function JBt(t){return fQe.includes(t)}var ef=Wl("core-rest-pipeline");function pQe(t={}){return jW({logger:ef.info,...t})}var mQe=KW;function EQe(t={}){return XW(t)}import CQe from"node:os";import IQe from"node:process";function VBt(){return"User-Agent"}async function WBt(t){if(IQe&&IQe.versions){let e=`${CQe.type()} ${CQe.release()}; ${CQe.arch()}`,r=IQe.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})`)}}var gz="1.22.2";function Een(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function zBt(){return VBt()}async function fz(t){let e=new Map;e.set("core-rest-pipeline",gz),await WBt(e);let r=Een(e);return t?`${t} ${r}`:r}var jBt=zBt(),KBt="userAgentPolicy";function BQe(t={}){let e=fz(t.userAgentPrefix);return{name:KBt,async sendRequest(r,n){return r.headers.has(jBt)||r.headers.set(jBt,await e),n(r)}}}var hL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function QQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new hL(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var yen="The delay was aborted.";function dx(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return QQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??yen})}function dI(t){if(ey(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}`}}function XBt(t){return ey(t)}fun Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Wtn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",wi("InvalidTag",l,hA(t,i))}let c=qtn(t,i);if(c===!1)return wi("InvalidAttr","Attributes for '"+A+"' have open quote.",hA(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=L0t(u,e);if(d===!0)n=!0;else return wi(d.err.code,d.err.msg,hA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return wi("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",hA(t,o));if(r.length===0)return wi("InvalidTag","Closing tag '"+A+"' has not been opened.",hA(t,o));{let l=r.pop();if(A!==l.tagName){let d=hA(t,l.tagStartPos);return wi("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",hA(t,o))}r.length==0&&(s=!0)}}else return wi("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",hA(t,i));else{let l=L0t(u,e);if(l!==!0)return wi(l.err.code,l.err.msg,hA(t,i-u.length+l.err.line));if(s===!0)return wi("InvalidXml","Multiple possible root nodes found.",hA(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=v0t(t,i);continue}else if(t[i+1]==="?"){if(i=M0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Jtn(t,i);if(l==-1)return wi("InvalidChar","char '&' is not expected.",hA(t,i));i=l}else if(s===!0&&!F0t(t[i]))return wi("InvalidXml","Extra text at the end",hA(t,i));t[i]==="<"&&i--}}else{if(F0t(t[i]))continue;return wi("InvalidChar","char '"+t[i]+"' is not expected.",hA(t,i))}if(n){if(r.length==1)return wi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hA(t,r[0].tagStartPos));if(r.length>0)return wi("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return wi("InvalidXml","Start tag expected.",1);return!0}function F0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function M0t(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 wi("InvalidXml","XML declaration allowed only at the start of the document.",hA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function v0t(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}var Otn='"',Htn="'";function qtn(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Otn||t[e]===Htn)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}}var Gtn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function L0t(t,e){let r=wz(t,Gtn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return wi("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",wL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return wi("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",wL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return wi("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",wL(r[s]));let i=r[s][2];if(!Vtn(i))return wi("InvalidAttr","Attribute '"+i+"' is an invalid name.",wL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return wi("InvalidAttr","Attribute '"+i+"' is repeated.",wL(r[s]))}return!0}function Ytn(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}function Jtn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ytn(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}function wi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Vtn(t){return bL(t)}function Wtn(t){return bL(t)}function hA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function wL(t){return t.startIndex+t[1].length}var ztn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},U0t=function(t){return Object.assign({},ztn,t)};var Sz;typeof Symbol!="function"?Sz="@@xmlMetadata":Sz=Symbol("XML Node Metadata");var Iu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][Sz]={startIndex:r})}static getMetaDataSymbol(){return Sz}};function ZQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&Xtn(t,e)){e+=7;let a,A;[a,A,e]=jtn(t,e+1),A.indexOf("&")===-1&&(r[trn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&Ztn(t,e))e+=8;else if(s&&$tn(t,e))e+=8;else if(s&&ern(t,e))e+=9;else if(Ktn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function jtn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Ktn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function Xtn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function Ztn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function $tn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function ern(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new Iu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=oy(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=eye(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Iu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=oy(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=ZQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=oy(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=eye(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new Iu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new Iu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new Iu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function hrn(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var grn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function frn(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}function prn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function mrn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function oy(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function eye(t,e,r,n=">"){let s=mrn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function Ern(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=oy(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),O0t(t,e,"",r)}function O0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Qrn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];yrn(c,e)||(g=e.tagValueProcessor(A,g),g=H0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=_0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=_0t(a[":@"],e),d=n+`<${A}${l}`,h=O0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function Qrn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function _0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=H0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function yrn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function H0t(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}var brn={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function nh(t){this.options=Object.assign({},brn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=NL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Srn),this.processTextOrObjNode=wrn,this.options.format?(this.indentate=Nrn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nh.prototype.build=function(t){return this.options.preserveOrder?sye(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};nh.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};nh.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function wrn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}nh.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};nh.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nh.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};nh.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function Nrn(t){return this.options.indentBy.repeat(t)}function Srn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var q0t={validate:Nz};function J0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Rrn(t={}){var e,r;return Object.assign(Object.assign({},J0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Drn(t={}){return Object.assign(Object.assign({},J0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function Rz(t,e={}){let r=Rrn(e),n=new nh(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function iye(t,e={}){if(!t)throw new Error("Document is empty");let r=q0t.validate(t);if(r!==!0)throw r;let s=new mx(Drn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Pz(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=vz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Lz(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var ci=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new TL(e,r,this)}computeHMACSHA256(e){return Urn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $i=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var mI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Prn=new cy("The operation was aborted."),kL=class extends nf{retryOptions;constructor(e,r,n=mI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:mI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):mI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:mI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:mI.maxRetryDelayInMs):mI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:mI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:mI.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Mz(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=pI(s.url,Em.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if($i.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if($i.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return $i.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return $i.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return $i.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return $i.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($i.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $i.info(`RetryPolicy: Delay for ${s}ms`),Uz(s,n,Prn)}};var FL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kL(e,r,this.retryOptions)}};var _rn="storageBrowserPolicy";function V0t(){return{name:_rn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=pI(t.url,Em.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Orn="StorageCorrectContentLengthPolicy";function W0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Orn,async sendRequest(e,r){return t(e),r(e)}}}var Hrn="storageRetryPolicy",Ex={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qrn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Grn=new cy("The operation was aborted.");function z0t(t={}){let e=t.retryPolicyType??Ex.retryPolicyType,r=t.maxTries??Ex.maxTries,n=t.retryDelayInMs??Ex.retryDelayInMs,s=t.maxRetryDelayInMs??Ex.maxRetryDelayInMs,i=t.secondaryHost??Ex.secondaryHost,o=t.tryTimeoutInMs??Ex.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return $i.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qrn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Yrn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Pz(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=vz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Lz(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:Jrn,async sendRequest(i,o){return e(i),o(i)}}}var Vrn="storageRequestFailureDetailsParserPolicy";function j0t(){return{name:Vrn,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}}}}import{createHmac as Wrn}from"node:crypto";var _z=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Wrn("sha256",this.key).update(e,"utf8").digest("base64")}};var Oz="12.31.0",Hz="2026-02-06";var qz="https://storage.azure.com/.default",Cm={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sh="",cye="*",zrn=1*1024*1024;var jrn=4*zrn;var K0t="AES256",X0t="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Z0t=["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"],$0t=["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"],eQt="BlobUsesCustomerSpecifiedEncryption",tQt="BlobDoesNotUseCustomerSpecifiedEncryption",rQt=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Im(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var ML=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ni(t,e={}){t||(t=new Rs);let r=new ML([],e);return r._credential=t,r}function Krn(t){let e=[Xrn,nQt,Zrn,$rn,enn,tnn,nnn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>rnn(s));return{wrappedPolicies:KQe(r),afterRetry:n}}}}function uye(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?XQe(e):aye(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Oz}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=EL({...r,loggingOptions:{additionalAllowedHeaderNames:Z0t,additionalAllowedQueryParameters:$0t,logger:Dz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Rz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:iye,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:NQe}),s.addPolicy(W0t()),s.addPolicy(z0t(r.retryOptions),{phase:"Retry"}),s.addPolicy(j0t()),s.addPolicy(V0t());let a=Krn(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=lye(t);Eu(A)?s.addPolicy(fx({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ch(t.version,i,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}}function Xsn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function Zsn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function $sn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function ein(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function tin(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function rin(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ah(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ch(t.version,o,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:i}}function my(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ey(t){let e=t.version?t.version:Hz;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}var VL=class{_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=hx()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);pe(`Redirecting to blob download url: ${CFt(u)}`);try{pe(`Starting download of artifact to: ${r}`);let l=yield IFt(u,r,e?.skipDecompress);pe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Te(`Computed digest: ${l.sha256Digest}`),Te(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function yFt(){return IT(this,arguments,void 0,function*(t=SIt()){return(yield KQn(t))?Te(`Artifact destination folder already exists: ${t}`):(Te(`Artifact destination folder does not exist, creating: ${t}`),yield gFt.mkdir(t,{recursive:!0})),t})}var ZQn=5,$Qn=[400,401,403,404,422];function BT(t,e=ZQn,r=$Qn){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return Te(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var bFt="6.0.0";function jy(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}jy.VERSION=bFt;var SFt=Xe(wFt(),1),RFt=Xe(yge(),1),eyn="0.0.0-development";async function NFt(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function tyn(t,e,r,n){let s=new SFt.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(ryn.bind(null,t,e,r),n)}async function ryn(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new RFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return NFt(t,e,i,n)}return s}function Ky(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",NFt.bind(null,r,t)),t.hook.wrap("request",tyn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Ky.VERSION=eyn;var DFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function HK(t,e,r,n,s){return DFt(this,void 0,void 0,function*(){var i;let[o,a]=BT(sQ),A={log:void 0,userAgent:Kg(),previews:void 0,retry:o,request:a},u=yield Hd(s,A,Ky,jy).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new dm(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new hm(`Artifact not found for name: ${t}
`)}var oke=Ee(ike(),1);function Ru(){return`@actions/artifact-${oke.version}`}var FI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},ud=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ld=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},df=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},dd=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};dd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Cm=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};Cm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Im=class extends Error{};Im.prototype.name="InvalidTokenError";function D_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function k_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return D_t(e)}catch{return atob(e)}}function ake(t,e){if(typeof t!="string")throw new Im("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Im(`Invalid token specified: missing part #${r+1}`);let s;try{s=k_t(n)}catch(i){throw new Im(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Im(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var C_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Du(){let t=m_(),e=ake(t);if(!e.scp)throw C_;let r=e.scp.split(" ");if(r.length===0)throw C_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw C_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw C_}function cke(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(da(r),da(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ake(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&cke(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&cke(t.signed_url)}var I_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},FX=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=m_();this.baseUrl=Y2e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Kr(e,[new gl(i)])}request(e,r,n,s){return I_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>I_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return I_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(Ake(A),G(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Cm.isUsageErrorMessage(A.msg))throw new Cm;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Cm)throw a;if(dd.isNetworkErrorCode(a?.code))throw new dd(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);te(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return I_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function ku(t){let e=new FX(Ru(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new E_(e)}import*as MI from"fs";import{normalize as uke,resolve as lke}from"path";function dke(t){if(!MI.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);te(`Redirecting to blob download url: ${L6e(u)}`);try{te(`Starting download of artifact to: ${r}`);let l=yield U6e(u,r,e?.skipDecompress);te("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function H6e(){return xy(this,arguments,void 0,function*(t=V2e()){return(yield Ezt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield k6e.mkdir(t,{recursive:!0})),t})}var Izt=5,yzt=[400,401,403,404,422];function Ry(t,e=Izt,r=yzt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var G6e="6.0.0";function Jm(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Jm.VERSION=G6e;var V6e=Ee(q6e(),1);var Bzt="0.0.0-development";function bzt(t){return t.request!==void 0}async function Y6e(t,e,r,n){if(!bzt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function Qzt(t,e,r,n){let s=new V6e.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,c=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(wzt.bind(null,t,e,r),n)}async function wzt(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new ml(s.data.errors[0].message,500,{request:n,response:s});return Y6e(t,e,i,n)}return s}function Wm(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",Y6e.bind(null,r,n)),t.hook.wrap("request",Qzt.bind(null,r,n))),n}Wm.VERSION=Bzt;var J6e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function NU(t,e,r,n,s){return J6e(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Ru(),previews:void 0,retry:o,request:a},u=yield Tc(s,c,Wm,Jm).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new ud(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ld(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],Te(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function xFt(t){return DFt(this,void 0,void 0,function*(){var e;let r=Zg(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Xg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Da.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new hm(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function W6e(t){return J6e(this,void 0,void 0,function*(){var e;let r=ku(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Du(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Tn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ld(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],Te(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ra.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var TFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function kFt(t,e,r,n,s){return TFt(this,void 0,void 0,function*(){var i;let[o,a]=BT(sQ),A={log:void 0,userAgent:Kg(),previews:void 0,retry:o,request:a},c=Hd(s,A,Ky,jy),u=yield HK(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new dm(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function FFt(t){return TFt(this,void 0,void 0,function*(){let e=Zg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Xg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Da.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new hm(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],Te(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return pe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var MFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qK=xIt(),GK=100,nyn=Math.ceil(qK/GK);function vFt(t,e,r,n){return MFt(this,arguments,void 0,function*(s,i,o,a,A=!1){pe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=BT(sQ),d={log:void 0,userAgent:Kg(),previews:void 0,retry:u,request:l},h=Hd(a,d,Ky,jy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:GK,page:g}),C=Math.ceil(p.total_count/GK),m=p.total_count;m>qK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${qK}. Results will be incomplete as only the first ${qK} artifacts will be returned`),C=nyn);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(g++,g;g<=C;g++){Te(`Fetching page ${g} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:GK,page:g});for(let y of I.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=UFt(c)),pe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function LFt(){return MFt(this,arguments,void 0,function*(t=!1){let e=Zg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Xg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ra.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=UFt(o)),pe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function UFt(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var EP=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},syn=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},QT=class{uploadArtifact(e,r,n,s){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;return F2t(e,r,n,s)}catch(i){throw tr(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ko.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var z6e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function j6e(t,e,r,n,s){return z6e(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Ru(),previews:void 0,retry:o,request:a},A=Tc(s,c,Wm,Jm),u=yield NU(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new ud(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function K6e(t){return z6e(this,void 0,void 0,function*(){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Du(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Tn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ld(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return te(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var X6e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},TU=z2e(),xU=100,Szt=Math.ceil(TU/xU);function Z6e(t,e,r,n){return X6e(this,arguments,void 0,function*(s,i,o,a,c=!1){te(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=Ry(yg),d={log:void 0,userAgent:Ru(),previews:void 0,retry:u,request:l},h=Tc(a,d,Wm,Jm),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:xU,page:f}),E=Math.ceil(g.total_count/xU),m=g.total_count;m>TU&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${TU}. Results will be incomplete as only the first ${TU} artifacts will be returned`),E=Szt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){G(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:xU,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=eHe(A)),te(`Found ${A.length} artifact(s)`),{artifacts:A}})}function $6e(){return X6e(this,arguments,void 0,function*(t=!1){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Du(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ko.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=eHe(o)),te(`Found ${o.length} artifact(s)`),{artifacts:o}})}function eHe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var cN=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Nzt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Dy=class{uploadArtifact(e,r,n,s){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;return X4e(e,r,n,s)}catch(i){throw je(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=syn(r,["findBy"]);return BFt(e,n,s,i,o)}return QFt(e,r)}catch(n){throw tr(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Nzt(r,["findBy"]);return P6e(e,n,s,i,o)}return O6e(e,r)}catch(n){throw je(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return vFt(r,n,s,i,e?.latest)}return LFt(e?.latest)}catch(r){throw tr(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return Z6e(r,n,s,i,e?.latest)}return $6e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return HK(e,n,s,i,o)}return xFt(e)}catch(n){throw tr(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return NU(e,n,s,i,o)}return W6e(e)}catch(n){throw je(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return kFt(e,i,n,s,o)}return FFt(e)}catch(n){throw tr(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return j6e(e,i,n,s,o)}return K6e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var MAs=new QT;import*as Fxe from"path";import Mxe from"fs";var iyn="dependency-graph_";async function PFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await oyn(t);return}pe("Enabling dependency graph generation"),qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",myn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bC()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&qi(t,e)}async function oyn(t){if(Eyn()){pe("Dependency graph not supported in the ACT environment.");return}try{await cyn(await ayn(t))}catch(e){fyn(t,"download-and-submit",e)}}async function ayn(t){let e=Qo.payload.workflow_run?{token:O6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new QT,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(iyn)),s=t.getDownloadArtifactName();s&&(pe(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});pe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ayn()}async function Ayn(){let r=(await(await iC(`${dyn()}/**/*.json`)).glob()).filter(n=>!hyn(n));return r.forEach(gyn),pe(`Found dependency graph files: ${r.join(", ")}`),r}async function cyn(t){if(t.length===0){pe("No dependency graph files found to submit.");return}for(let e of t)try{await lyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=uyn(e,r)),r}}function uyn(t,e){let n=`Dependency submission failed for ${_Ft(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var MFr=new Dy;import*as kte from"path";import vte from"fs";var Tzt="dependency-graph_";async function tHe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){gs("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await xzt(t);return}te("Enabling dependency graph generation"),gs("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),yi("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Ri.runId.toString()),yi("GITHUB_DEPENDENCY_GRAPH_REF",Ri.ref),yi("GITHUB_DEPENDENCY_GRAPH_SHA",Ozt()),yi("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bh()),yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),yi("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),yi("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),yi("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),yi("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),yi("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),yi("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),yi("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function yi(t,e){process.env[t]||e!==void 0&&gs(t,e)}async function xzt(t){if(Hzt()){te("Dependency graph not supported in the ACT environment.");return}try{await kzt(await Rzt(t))}catch(e){Uzt(t,"download-and-submit",e)}}async function Rzt(t){let e=Ri.payload.workflow_run?{token:_k(),workflowRunId:Ri.payload.workflow_run.id,repositoryName:Ri.repo.repo,repositoryOwner:Ri.repo.owner}:void 0,r=new Dy,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Tzt)),s=t.getDownloadArtifactName();s&&(te(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});te(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Dzt()}async function Dzt(){let r=(await(await jY(`${Mzt()}/**/*.json`)).glob()).filter(n=>!_zt(n));return r.forEach(Lzt),te(`Found dependency graph files: ${r.join(", ")}`),r}async function kzt(t){if(t.length===0){te("No dependency graph files found to submit.");return}for(let e of t)try{await Fzt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=vzt(e,r)),r}}function vzt(t,e){let n=`Dependency submission failed for ${rHe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function lyn(t){let e=pyn(),r=Mxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Qo.repo.owner,n.repo=Qo.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=_Ft(t);oPe(`Submitted ${i}: ${s.data.message}`)}function dyn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function hyn(t){let e=`${t}.processed`;return Mxe.existsSync(e)}function gyn(t){let e=`${t}.processed`;Mxe.writeFileSync(e,"")}function fyn(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new KQ(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function pyn(){return Hd(O6())}function _Ft(t){let e=bC();return Fxe.relative(e,t)}function myn(){let t=Qo;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function Eyn(){return process.env.ACT!==void 0}async function Iyn(){try{oM()==="gradle/gradle-build-action"&&M6("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Ust("gradle/actions/setup-gradle"),await bIt(new GR,new qd,new _6),await PFt(new L6);let t=new P6;t.verifyNoArguments(),await ffe(t.getGradleVersion()),Mst()}catch(t){QIt(t)}process.exit()}Iyn();export{Iyn as run};
`:n}async function Fzt(t){let e=Pzt(),r=vte.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Ri.repo.owner,n.repo=Ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=rHe(t);L8(`Submitted ${i}: ${s.data.message}`)}function Mzt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function _zt(t){let e=`${t}.processed`;return vte.existsSync(e)}function Lzt(t){let e=`${t}.processed`;vte.writeFileSync(e,"")}function Uzt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new fm(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Pzt(){return Tc(_k())}function rHe(t){let e=bh();return kte.relative(e,t)}function Ozt(){let t=Ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function Hzt(){return process.env.ACT!==void 0}function qzt(t=process.platform){return t==="win32"?50:0}async function nHe(t=process.platform){let e=qzt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function Yzt(){try{qQ()==="gradle/gradle-build-action"&&Rk("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),qEe("gradle/actions/setup-gradle"),await o2e(new fC,new Pc,new Fk),await tHe(new VQ);let t=new vk;t.verifyNoArguments(),await KK(t.getGradleVersion()),OEe()}catch(t){n2e(t)}await nHe()}Yzt();export{Yzt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
@@ -572,5 +408,22 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+237 -379
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var WFt=Object.create;var DP=Object.defineProperty;var zFt=Object.getOwnPropertyDescriptor;var jFt=Object.getOwnPropertyNames;var KFt=Object.getPrototypeOf,XFt=Object.prototype.hasOwnProperty;var B=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var ZFt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Su=(t,e)=>{for(var r in e)DP(t,r,{get:e[r],enumerable:!0})},Yxe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of jFt(e))!XFt.call(t,s)&&s!==r&&DP(t,s,{get:()=>e[s],enumerable:!(n=zFt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?WFt(KFt(t)):{},Yxe(e||!t||!t.__esModule?DP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>Yxe(DP({},"__esModule",{value:!0}),t);var Xxe=f(Vy=>{"use strict";var uyn=B("net"),sMt=B("tls"),OK=B("http"),zxe=B("https"),iMt=B("events"),lyn=B("assert"),oMt=B("util");Vy.httpOverHttp=aMt;Vy.httpsOverHttp=AMt;Vy.httpOverHttps=cMt;Vy.httpsOverHttps=uMt;function aMt(t){var e=new Mf(t);return e.request=OK.request,e}function AMt(t){var e=new Mf(t);return e.request=OK.request,e.createSocket=jxe,e.defaultPort=443,e}function cMt(t){var e=new Mf(t);return e.request=zxe.request,e}function uMt(t){var e=new Mf(t);return e.request=zxe.request,e.createSocket=jxe,e.defaultPort=443,e}function Mf(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||OK.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Kxe(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}oMt.inherits(Mf,iMt.EventEmitter);Mf.prototype.addRequest=function(e,r,n,s){var i=this,o=HK({request:e},i.options,Kxe(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Mf.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=HK({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Lm("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Lm("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Lm("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Lm("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Lm(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Mf.prototype.removeSocket=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)})}};function jxe(t,e){var r=this;Mf.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=HK({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=sMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Kxe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function HK(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Lm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Lm=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)}:Lm=function(){};Vy.debug=Lm});var MP=f((hyn,Zxe)=>{Zxe.exports=Xxe()});var ps=f((gyn,$xe)=>{$xe.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 tn=f((fyn,yTe)=>{"use strict";var eTe=Symbol.for("undici.error.UND_ERR"),xs=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[eTe]===!0}[eTe]=!0},tTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qK=class extends xs{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[tTe]===!0}[tTe]=!0},rTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),GK=class extends xs{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[rTe]===!0}[rTe]=!0},nTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),YK=class extends xs{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[nTe]===!0}[nTe]=!0},sTe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JK=class extends xs{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[sTe]===!0}[sTe]=!0},iTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),VK=class extends xs{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function NLt(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(uLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function SLt(){return"allowed"}function RLt(){return"success"}function DLt(){return"success"}function xLt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TLt(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&&vX(t.origin)&&!vX(kT(t))&&(e=null);break;case"same-origin":t_(t,kT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rb(t,e){return t}function kLt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rb(t.domainLookupStartTime,r),domainLookupEndTime:rb(t.domainLookupEndTime,r),connectionStartTime:rb(t.connectionStartTime,r),connectionEndTime:rb(t.connectionEndTime,r),secureConnectionStartTime:rb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FLt(t){return rb(fLt.now(),t)}function MLt(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}}function P1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function vLt(t){return{referrerPolicy:t.referrerPolicy}}function LLt(t){let e=t.referrerPolicy;eB(e);let r=null;if(t.referrer==="client"){let a=k1e();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=MX(r),s=MX(r,!0);n.toString().length>4096&&(n=s);let i=t_(t,n),o=TT(n)&&!TT(t.url);switch(e){case"origin":return s??MX(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=kT(t);return t_(n,a)?n:TT(n)&&!TT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function MX(t,e){return eB(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)}function TT(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"))}}function ULt(t,e){if(e_===void 0)return!0;let r=_1e(e);if(r==="no metadata"||r.length===0)return!0;let n=_Lt(r),s=OLt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=e_.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),HLt(A,a))return!0}return!1}var PLt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function _1e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=PLt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();M1e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Lt(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}function OLt(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}function HLt(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}function qLt(t){}function t_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GLt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function YLt(t){return t.controller.state==="aborted"}function JLt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VLt(t){return ELt[t.toLowerCase()]??t}function WLt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return eB(typeof e=="string"),e}var zLt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function O1e(t,e,r=0,n=1){class s{ Line truncated
`);function bUt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function wUt(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}function NUt(t,e){n_(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&s_(t,QUt,i)||i.position===t.length-4&&s_(t,yUt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=SUt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",bUt(u)||(u=""),h=new IUt([d],c,{type:u})):h=fUt(Buffer.from(d)),n_(Z1e(A)),n_(typeof h=="string"&&Z1e(h)||mUt(h)),s.push(EUt(A,h,c))}}function SUt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=sb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qX(o,!0,!0,a=>a===9||a===32),!pUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sb(a=>a===32||a===9,t,e),gUt(o)){case"content-disposition":{if(r=n=null,!s_(t,BUt,e)||(e.position+=17,r=tke(t,e),r===null))return"failure";if(s_(t,eke,e)){let a=e.position+eke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=tke(t,e),n===null))return"failure"}break}case"content-type":{let a=sb(A=>A!==10&&A!==13,t,e);a=qX(a,!1,!0,A=>A===9||A===32),s=$1e(a);break}case"content-transfer-encoding":{let a=sb(A=>A!==10&&A!==13,t,e);a=qX(a,!1,!0,A=>A===9||A===32),i=$1e(a);break}default:sb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function tke(t,e){n_(t[e.position-1]===34);let r=sb(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)}function sb(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function qX(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function s_(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}rke.exports={multipartFormDataParser:NUt,validateBoundary:wUt}});var ab=f((Oyn,hke)=>{"use strict";var vT=mr(),{ReadableStreamFrom:RUt,isBlobLike:ske,isReadableStreamLike:DUt,readableStreamClose:xUt,createDeferredPromise:TUt,fullyReadBody:kUt,extractMimeType:FUt,utf8DecodeBytes:ake}=Cc(),{FormData:ike}=MT(),{kState:ob}=Um(),{webidl:MUt}=Po(),{Blob:vUt}=B("node:buffer"),GX=B("node:assert"),{isErrored:Ake,isDisturbed:LUt}=B("node:stream"),{isArrayBuffer:UUt}=B("node:util/types"),{serializeAMimeType:PUt}=CA(),{multipartFormDataParser:_Ut}=nke(),YX;try{let t=B("node:crypto");YX=e=>t.randomInt(0,e)}catch{YX=t=>Math.floor(Math.random(t))}var i_=new TextEncoder;function OUt(){}var cke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,uke;cke&&(uke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!LUt(e)&&!Ake(e)&&e.cancel("Response object has been garbage collected").catch(OUt)}));function lke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?i_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>xUt(A))},start(){},type:"bytes"}),GX(DUt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(UUt(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(vT.isFormDataLike(t)){let A=`----formdata-undici-0${`${YX(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=i_.encode(c+`; name="${u(l(C))}"\r
var e6e=Object.create;var gU=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},cA=(t,e)=>{for(var r in e)gU(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&gU(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?gU(r,"default",{value:t,enumerable:!0}):r,t));var mte=C(jm=>{"use strict";var Q7t=Q("net"),l6e=Q("tls"),CU=Q("http"),fte=Q("https"),d6e=Q("events"),w7t=Q("assert"),h6e=Q("util");jm.httpOverHttp=f6e;jm.httpsOverHttp=g6e;jm.httpOverHttps=p6e;jm.httpsOverHttps=m6e;function f6e(t){var e=new Gu(t);return e.request=CU.request,e}function g6e(t){var e=new Gu(t);return e.request=CU.request,e.createSocket=gte,e.defaultPort=443,e}function p6e(t){var e=new Gu(t);return e.request=fte.request,e}function m6e(t){var e=new Gu(t);return e.request=fte.request,e.createSocket=gte,e.defaultPort=443,e}function Gu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||CU.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=pte(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Gu,d6e.EventEmitter);Gu.prototype.addRequest=function(e,r,n,s){var i=this,o=IU({request:e},i.options,pte(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Gu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=IU({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),wd("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){wd("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){wd("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return wd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),wd(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Gu.prototype.removeSocket=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)})}};function gte(t,e){var r=this;Gu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=IU({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function pte(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function IU(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),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var wd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wd=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)}:wd=function(){};jm.debug=wd});var yU=C((N7t,Ete)=>{Ete.exports=mte()});var kr=C((T7t,Cte)=>{Cte.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 Vt=C((x7t,Yte)=>{"use strict";var Ite=Symbol.for("undici.error.UND_ERR"),vr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Ite]===!0}[Ite]=!0},yte=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),BU=class extends vr{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[yte]===!0}[yte]=!0},Bte=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),bU=class extends vr{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[Bte]===!0}[Bte]=!0},bte=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),QU=class extends vr{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[bte]===!0}[bte]=!0},Qte=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),wU=class extends vr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Qte]===!0}[Qte]=!0},wte=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),SU=class extends vr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function v5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(m5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function F5e(){return"allowed"}function M5e(){return"success"}function _5e(){return"success"}function L5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function U5e(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&&mP(t.origin)&&!mP(qy(t))&&(e=null);break;case"same-origin":LN(t,qy(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function i0(t,e){return t}function P5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:i0(t.domainLookupStartTime,r),domainLookupEndTime:i0(t.domainLookupEndTime,r),connectionStartTime:i0(t.connectionStartTime,r),connectionEndTime:i0(t.connectionEndTime,r),secureConnectionStartTime:i0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function O5e(t){return i0(B5e.now(),t)}function H5e(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}}function sne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function G5e(t){return{referrerPolicy:t.referrerPolicy}}function q5e(t){let e=t.referrerPolicy;Of(e);let r=null;if(t.referrer==="client"){let a=Zre();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pP(r),s=pP(r,!0);n.toString().length>4096&&(n=s);let i=LN(t,n),o=Gy(n)&&!Gy(t.url);switch(e){case"origin":return s??pP(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=qy(t);return LN(n,a)?n:Gy(n)&&!Gy(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pP(t,e){return Of(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)}function Gy(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"))}}function Y5e(t,e){if(_N===void 0)return!0;let r=ine(e);if(r==="no metadata"||r.length===0)return!0;let n=J5e(r),s=W5e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=_N.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),z5e(A,a))return!0}return!1}var V5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ine(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=V5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ene.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function J5e(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}function W5e(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}function z5e(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}function j5e(t){}function LN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function K5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function X5e(t){return t.controller.state==="aborted"}function Z5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function $5e(t){return w5e[t.toLowerCase()]??t}function eGe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Of(typeof e=="string"),e}var tGe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function one(t,e,r=0,n=1){class s{ Line truncated
`);function DGe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function kGe(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}function vGe(t,e){PN(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&ON(t,xGe,i)||i.position===t.length-4&&ON(t,RGe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=FGe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",DGe(u)||(u=""),h=new NGe([d],c,{type:u})):h=BGe(Buffer.from(d)),PN(Ene(A)),PN(typeof h=="string"&&Ene(h)||QGe(h)),s.push(wGe(A,h,c))}}function FGe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=a0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=QP(o,!0,!0,a=>a===9||a===32),!bGe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,a0(a=>a===32||a===9,t,e),yGe(o)){case"content-disposition":{if(r=n=null,!ON(t,TGe,e)||(e.position+=17,r=yne(t,e),r===null))return"failure";if(ON(t,Ine,e)){let a=e.position+Ine.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=yne(t,e),n===null))return"failure"}break}case"content-type":{let a=a0(A=>A!==10&&A!==13,t,e);a=QP(a,!1,!0,A=>A===9||A===32),s=Cne(a);break}case"content-transfer-encoding":{let a=a0(A=>A!==10&&A!==13,t,e);a=QP(a,!1,!0,A=>A===9||A===32),i=Cne(a);break}default:a0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function yne(t,e){PN(t[e.position-1]===34);let r=a0(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)}function a0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function QP(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function ON(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}Bne.exports={multipartFormDataParser:vGe,validateBoundary:kGe}});var u0=C((ezt,vne)=>{"use strict";var Jy=Et(),{ReadableStreamFrom:MGe,isBlobLike:Qne,isReadableStreamLike:_Ge,readableStreamClose:LGe,createDeferredPromise:UGe,fullyReadBody:PGe,extractMimeType:OGe,utf8DecodeBytes:Nne}=so(),{FormData:wne}=Vy(),{kState:c0}=Sd(),{webidl:HGe}=ds(),{Blob:GGe}=Q("node:buffer"),wP=Q("node:assert"),{isErrored:Tne,isDisturbed:qGe}=Q("node:stream"),{isArrayBuffer:YGe}=Q("node:util/types"),{serializeAMimeType:VGe}=Bi(),{multipartFormDataParser:JGe}=bne(),SP;try{let t=Q("node:crypto");SP=e=>t.randomInt(0,e)}catch{SP=t=>Math.floor(Math.random(t))}var HN=new TextEncoder;function WGe(){}var xne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Rne;xne&&(Rne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!qGe(e)&&!Tne(e)&&e.cancel("Response object has been garbage collected").catch(WGe)}));function Dne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Qne(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?HN.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>LGe(A))},start(){},type:"bytes"}),wP(_Ge(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(YGe(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(Jy.isFormDataLike(t)){let A=`----formdata-undici-0${`${SP(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=HN.encode(c+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=i_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=HN.encode(`${c}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=i_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(ske(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(vT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:RUt(t)}if((typeof s=="string"||vT.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Ake(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function HUt(t,e=!1){return t instanceof ReadableStream&&(GX(!vT.isDisturbed(t),"The body has already been consumed."),GX(!t.locked,"The stream is locked.")),lke(t,e)}function qUt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function GUt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YUt(t){return{blob(){return ib(this,r=>{let n=oke(this);return n===null?n="":n&&(n=PUt(n)),new vUt([r],{type:n})},t)},arrayBuffer(){return ib(this,r=>new Uint8Array(r).buffer,t)},text(){return ib(this,ake,t)},json(){return ib(this,VUt,t)},formData(){return ib(this,r=>{let n=oke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_Ut(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ike;return i[ob]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ike;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return ib(this,r=>new Uint8Array(r),t)}}}function JUt(t){Object.assign(t.prototype,YUt(t))}async function ib(t,e,r){if(MUt.brandCheck(t,r),dke(t))throw new TypeError("Body is unusable: Body has already been read");GUt(t[ob]);let n=TUt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ob].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await kUt(t[ob].body,i,s),n.promise)}function dke(t){let e=t[ob].body;return e!=null&&(e.stream.locked||vT.isDisturbed(e.stream))}function VUt(t){return JSON.parse(ake(t))}function oke(t){let e=t[ob].headersList,r=FUt(e);return r==="failure"?null:r}hke.exports={extractBody:lke,safelyExtractBody:HUt,cloneBody:qUt,mixinBody:JUt,streamRegistry:uke,hasFinalizationRegistry:cke,bodyUnusable:dke}});var bke=f((Hyn,yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:gke}=zy(),JX=NX(),{RequestContentLengthMismatchError:tB,ResponseContentLengthMismatchError:WUt,RequestAbortedError:Ike,HeadersTimeoutError:zUt,HeadersOverflowError:jUt,SocketError:l_,InformationalError:Ab,BodyTimeoutError:KUt,HTTPParserError:XUt,ResponseExceededMaxSizeError:ZUt}=tn(),{kUrl:Bke,kReset:IA,kClient:jX,kParser:Ys,kBlocking:PT,kRunning:ra,kPending:$Ut,kSize:fke,kWriting:_m,kQueue:ad,kNoRef:LT,kKeepAliveDefaultTimeout:ePt,kHostHeader:tPt,kPendingIdx:rPt,kRunningIdx:Du,kError:xu,kPipelining:c_,kSocket:cb,kKeepAliveTimeoutValue:d_,kMaxHeadersSize:VX,kKeepAliveMaxTimeout:nPt,kKeepAliveTimeoutThreshold:sPt,kHeadersTimeout:iPt,kBodyTimeout:oPt,kStrictContentLength:KX,kMaxRequests:pke,kCounter:aPt,kMaxResponseSize:APt,kOnError:cPt,kResume:Pm,kHTTPContext:Qke}=ps(),mh=u1e(),uPt=Buffer.alloc(0),o_=Buffer[Symbol.species],a_=Yt.addListener,lPt=Yt.removeAllListeners,WX;async function dPt(){let t=process.env.JEST_WORKER_ID?DX():void 0,e;try{e=await WebAssembly.compile(h1e())}catch{e=await WebAssembly.compile(t||DX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onStatus(new o_(Eh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderField(new o_(Eh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderValue(new o_(Eh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onBody(new o_(Eh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var zX=null,XX=dPt();XX.catch();var Hi=null,Eh=null,A_=0,Ch=null,hPt=0,UT=1,ub=2|UT,u_=4|UT,ZX=8|hPt,$X=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[VX])&&e[VX]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[tPt],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=HN.encode(`--${A}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${A}`}else if(Qne(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jy.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:MGe(t)}if((typeof s=="string"||Jy.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Tne(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function zGe(t,e=!1){return t instanceof ReadableStream&&(wP(!Jy.isDisturbed(t),"The body has already been consumed."),wP(!t.locked,"The stream is locked.")),Dne(t,e)}function jGe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function KGe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function XGe(t){return{blob(){return A0(this,r=>{let n=Sne(this);return n===null?n="":n&&(n=VGe(n)),new GGe([r],{type:n})},t)},arrayBuffer(){return A0(this,r=>new Uint8Array(r).buffer,t)},text(){return A0(this,Nne,t)},json(){return A0(this,$Ge,t)},formData(){return A0(this,r=>{let n=Sne(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=JGe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new wne;return i[c0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new wne;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return A0(this,r=>new Uint8Array(r),t)}}}function ZGe(t){Object.assign(t.prototype,XGe(t))}async function A0(t,e,r){if(HGe.brandCheck(t,r),kne(t))throw new TypeError("Body is unusable: Body has already been read");KGe(t[c0]);let n=UGe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[c0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await PGe(t[c0].body,i,s),n.promise)}function kne(t){let e=t[c0].body;return e!=null&&(e.stream.locked||Jy.isDisturbed(e.stream))}function $Ge(t){return JSON.parse(Nne(t))}function Sne(t){let e=t[c0].headersList,r=OGe(e);return r==="failure"?null:r}vne.exports={extractBody:Dne,safelyExtractBody:zGe,cloneBody:jGe,mixinBody:ZGe,streamRegistry:Rne,hasFinalizationRegistry:xne,bodyUnusable:kne}});var jne=C((tzt,zne)=>{"use strict";var Pe=Q("node:assert"),qe=Et(),{channels:Fne}=Xm(),NP=AP(),{RequestContentLengthMismatchError:Hf,ResponseContentLengthMismatchError:Mne,RequestAbortedError:qne,InvalidArgumentError:e9e,HeadersTimeoutError:t9e,HeadersOverflowError:r9e,SocketError:l0,InformationalError:d0,BodyTimeoutError:n9e,HTTPParserError:s9e,ResponseExceededMaxSizeError:i9e}=Vt(),{kUrl:Yne,kReset:bi,kClient:VN,kParser:Ir,kBlocking:jy,kRunning:Cn,kPending:Vne,kSize:_ne,kWriting:Nd,kQueue:uA,kNoRef:Wy,kKeepAliveDefaultTimeout:o9e,kHostHeader:a9e,kPendingIdx:A9e,kRunningIdx:ta,kError:zs,kPipelining:JN,kSocket:Gf,kKeepAliveTimeoutValue:zN,kMaxHeadersSize:TP,kKeepAliveMaxTimeout:c9e,kKeepAliveTimeoutThreshold:u9e,kHeadersTimeout:l9e,kBodyTimeout:d9e,kStrictContentLength:DP,kMaxRequests:Lne,kCounter:h9e,kMaxResponseSize:f9e,kOnError:Une,kResume:zu,kHTTPContext:Jne}=kr(),io=Rre(),Pne=Buffer.alloc(0),GN=Buffer[Symbol.species],qN=qe.addListener,g9e=qe.removeAllListeners,qf=Symbol("kIdleSocketValidation"),h0=Symbol("kIdleSocketValidationTimeout"),MP=Symbol("kSocketUsed"),xP;async function p9e(){let t=process.env.JEST_WORKER_ID?lP():void 0,e;try{e=await WebAssembly.compile(vre())}catch{e=await WebAssembly.compile(t||lP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onStatus(new GN(nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(zr.ptr===r),zr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onHeaderField(new GN(nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onHeaderValue(new GN(nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(zr.ptr===r),zr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onBody(new GN(nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(zr.ptr===r),zr.onMessageComplete()||0)}})}var RP=null,kP=p9e();kP.catch();var zr=null,nc=null,YN=0,sc=null,m9e=0,zy=1,f0=2|zy,WN=4|zy,vP=8|m9e,FP=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[TP])&&e[TP]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(io.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[a9e],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[c_]&&!h[IA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return gke.sendHeaders.hasSubscribers&&gke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Eke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Eke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Cke(g,A.stream(),t,e,h,u,p,l):CPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?EPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Cke(g,A,t,e,h,u,p,l):xt(!1),!0}function EPt(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===0,"stream body cannot be pipelined");let A=!1,c=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Ike;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[_m]&&r[ra]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Eke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[IA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Pm]()}catch(A){t(A)}}async function CPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[IA]=!0),r[Pm]()}catch(A){t(A)}}async function Cke(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{xt(A===null),s[xu]?h(s[xu]):A=d});s.on("close",c).on("drain",c);let l=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[xu])throw s[xu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var h_=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_m]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[xu])throw r[xu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KX])throw new tB;process.emitWarning(new tB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[IA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ys].timeout&&r[Ys].timeoutType===ub&&r[Ys].timeout.refresh&&r[Ys].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_m]=!1,e[xu])throw e[xu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KX])throw new tB;process.emitWarning(new tB)}e[Ys].timeout&&e[Ys].timeoutType===ub&&e[Ys].timeout.refresh&&e[Ys].timeout.refresh(),n[Pm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_m]=!1,e&&(xt(n[ra]<=1,"pipeline should only contain this request"),s(e))}};yke.exports=gPt});var kke=f((qyn,Tke)=>{"use strict";var Tu=B("node:assert"),{pipeline:IPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:eZ,RequestAbortedError:wke,SocketError:_T,InformationalError:tZ}=tn(),{kUrl:g_,kReset:p_,kClient:lb,kRunning:m_,kPending:BPt,kQueue:Om,kPendingIdx:rZ,kRunningIdx:Ad,kError:ud,kSocket:io,kStrictContentLength:QPt,kOnError:nZ,kMaxConcurrentStreams:xke,kHTTP2Session:cd,kResume:Hm,kSize:yPt,kHTTPContext:bPt}=ps(),Of=Symbol("open streams"),Nke,Ske=!1,f_;try{f_=B("node:http2")}catch{f_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wPt,HTTP2_HEADER_METHOD:NPt,HTTP2_HEADER_PATH:SPt,HTTP2_HEADER_SCHEME:RPt,HTTP2_HEADER_CONTENT_LENGTH:DPt,HTTP2_HEADER_EXPECT:xPt,HTTP2_HEADER_STATUS:TPt}}=f_;function kPt(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}async function FPt(t,e){t[io]=e,Ske||(Ske=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=f_.connect(t[g_],{createConnection:()=>e,peerMaxConcurrentStreams:t[xke]});r[Of]=0,r[lb]=t,r[io]=e,wr.addListener(r,"error",vPt),wr.addListener(r,"frameError",LPt),wr.addListener(r,"end",UPt),wr.addListener(r,"goaway",PPt),wr.addListener(r,"close",function(){let{[lb]:s}=this,{[io]:i}=s,o=this[io][ud]||this[ud]||new _T("closed",wr.getSocketInfo(i));if(s[cd]=null,s.destroyed){Tu(s[BPt]===0);let a=s[Om].splice(s[Ad]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[cd]=r,e[cd]=r,wr.addListener(e,"error",function(s){Tu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ud]=s,this[lb][nZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new _T("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ud]||new _T("closed",wr.getSocketInfo(this));t[io]=null,this[cd]!=null&&this[cd].destroy(s),t[rZ]=t[Ad],Tu(t[m_]===0),t.emit("disconnect",t[g_],[t],s),t[Hm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return OPt(t,...s)},resume(){MPt(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function MPt(t){let e=t[io];e?.destroyed===!1&&(t[yPt]===0&&t[xke]===0?(e.unref(),t[cd].unref()):(e.ref(),t[cd].ref()))}function vPt(t){Tu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io][ud]=t,this[lb][nZ](t)}function LPt(t,e,r){if(r===0){let n=new tZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[io][ud]=n,this[lb][nZ](n)}}function UPt(){let t=new _T("other side closed",wr.getSocketInfo(this[io]));this.destroy(t),wr.destroy(this[io],t)}function PPt(t){let e=this[ud]||new _T(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[lb];if(r[io]=null,r[bPt]=null,this[cd]!=null&&(this[cd].destroy(e),this[cd]=null),wr.destroy(this[io],e),r[Ad]<r[Om].length){let n=r[Om][r[Ad]];r[Om][r[Ad]++]=null,wr.errorRequest(r,n,e),r[rZ]=r[Ad]}Tu(r[m_]===0),r.emit("disconnect",r[g_],[r],e),r[Hm]()}function _Pt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function OPt(t,e){let r=t[cd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[g_];l[wPt]=i||`${h}${g?`:${g}`:""}`,l[NPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new wke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Om][t[Ad]++]=null,t[Hm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Of],t[Om][t[Ad]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Of],t[Om][t[Ad]++]=null}),d.once("close",()=>{r[Of]-=1,r[Of]===0&&r.unref()}),!0;l[SPt]=s,l[RPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Nke??=ab().extractBody;let[w,H]=Nke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),_Pt(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[QPt])return wr.errorRequest(t,e,new eZ),!1;process.emitWarning(new eZ)}m!=null&&(Tu(u,"no body must not have content length"),l[DPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[xPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[d_t]=A??3e5,this[l_t]=s??3e5,this[h_t]=I??!0,this[g_t]=w,this[aZ]=z,this[Gm]=null,this[C_t]=W>-1?W:-1,this[B_t]=oe??100,this[gi]=null,this[ld]=[],this[qf]=0,this[dd]=0,this[GT]=he=>cZ(this,he),this[I_t]=he=>Yke(this,he)}get pipelining(){return this[B_]}set pipelining(e){this[B_]=e,this[GT](!0)}get[VT](){return this[ld].length-this[dd]}get[JT](){return this[dd]-this[qf]}get[YT](){return this[ld].length-this[qf]}get[s_t](){return!!this[gi]&&!this[hb]&&!this[gi].destroyed}get[oZ](){return!!(this[gi]?.busy(null)||this[YT]>=(Gke(this)||1)||this[VT]>0)}[n_t](e){Jke(this),this.once("connect",e)}[E_t](e,r){let n=e.origin||this[Bh].origin,s=new XPt(n,e,r);return this[ld].push(s),this[nB]||(rB.bodyLength(s.body)==null&&rB.isIterable(s.body)?(this[nB]=1,queueMicrotask(()=>cZ(this))):this[GT](!0)),this[nB]&&this[Ym]!==2&&this[oZ]&&(this[Ym]=2),this[Ym]<2}async[p_t](){return new Promise(e=>{this[YT]?this[Gm]=e:e(null)})}async[m_t](e){return new Promise(r=>{let n=this[ld].splice(this[dd]);for(let i=0;i<n.length;i++){let o=n[i];rB.errorRequest(this,o,e)}let s=()=>{this[Gm]&&(this[Gm](),this[Gm]=null),r(null)};this[gi]?(this[gi].destroy(e,s),this[gi]=null):queueMicrotask(s),this[GT]()})}},b_t=I_();function Yke(t,e){if(t[JT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Hf(t[dd]===t[qf]);let r=t[ld].splice(t[qf]);for(let n=0;n<r.length;n++){let s=r[n];rB.errorRequest(t,s,e)}Hf(t[YT]===0)}}async function Jke(t){Hf(!t[hb]),Hf(!t[gi]);let{host:e,hostname:r,protocol:n,port:s}=t[Bh];if(r[0]==="["){let i=r.indexOf("]");Hf(i!==-1);let o=r.substring(1,i);Hf(qke.isIP(o)),r=o}t[hb]=!0,db.beforeConnect.hasSubscribers&&db.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT]});try{let i=await new Promise((o,a)=>{t[HT]({host:e,hostname:r,protocol:n,port:s,servername:t[qm],localAddress:t[qT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){rB.destroy(i.on("error",Oke),new e_t);return}Hf(i);try{t[gi]=i.alpnProtocol==="h2"?await y_t(t,i):await Q_t(t,i)}catch(o){throw i.destroy().on("error",Oke),o}t[hb]=!1,i[f_t]=0,i[aZ]=t[aZ],i[r_t]=t,i[o_t]=null,db.connected.hasSubscribers&&db.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],socket:i}),t.emit("connect",t[Bh],[t])}catch(i){if(t.destroyed)return;if(t[hb]=!1,db.connectError.hasSubscribers&&db.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Hf(t[JT]===0);t[VT]>0&&t[ld][t[dd]].servername===t[qm];){let o=t[ld][t[dd]++];rB.errorRequest(t,o,i)}else Yke(t,i);t.emit("connectionError",t[Bh],[t],i)}t[GT]()}function Hke(t){t[Ym]=0,t.emit("drain",t[Bh],[t])}function cZ(t,e){t[nB]!==2&&(t[nB]=2,w_t(t,e),t[nB]=0,t[qf]>256&&(t[ld].splice(0,t[qf]),t[dd]-=t[qf],t[qf]=0))}function w_t(t,e){for(;;){if(t.destroyed){Hf(t[VT]===0);return}if(t[Gm]&&!t[YT]){t[Gm](),t[Gm]=null;return}if(t[gi]&&t[gi].resume(),t[oZ])t[Ym]=2;else if(t[Ym]===2){e?(t[Ym]=1,queueMicrotask(()=>Hke(t))):Hke(t);continue}if(t[VT]===0||t[JT]>=(Gke(t)||1))return;let r=t[ld][t[dd]];if(t[Bh].protocol==="https:"&&t[qm]!==r.servername){if(t[JT]>0)return;t[qm]=r.servername,t[gi]?.destroy(new $Pt("servername changed"),()=>{t[gi]=null,cZ(t)})}if(t[hb])return;if(!t[gi]){Jke(t);return}if(t[gi].destroyed||t[gi].busy(r))return;!r.aborted&&t[gi].write(r)?t[dd]++:t[ld].splice(t[dd],1)}}Vke.exports=AZ});var uZ=f((Wyn,Wke)=>{"use strict";var Q_=class{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)}};Wke.exports=class{constructor(){this.head=this.tail=new Q_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Q_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var jke=f((zyn,zke)=>{var{kFree:N_t,kConnected:S_t,kPending:R_t,kQueued:D_t,kRunning:x_t,kSize:T_t}=ps(),sB=Symbol("pool"),lZ=class{constructor(e){this[sB]=e}get connected(){return this[sB][S_t]}get free(){return this[sB][N_t]}get pending(){return this[sB][R_t]}get queued(){return this[sB][D_t]}get running(){return this[sB][x_t]}get size(){return this[sB][T_t]}};zke.exports=lZ});var mZ=f((jyn,i2e)=>{"use strict";var k_t=Zy(),F_t=uZ(),{kConnected:dZ,kSize:Kke,kRunning:Xke,kPending:Zke,kQueued:WT,kBusy:M_t,kFree:v_t,kUrl:L_t,kClose:U_t,kDestroy:P_t,kDispatch:__t}=ps(),O_t=jke(),BA=Symbol("clients"),_a=Symbol("needDrain"),zT=Symbol("queue"),hZ=Symbol("closed resolve"),gZ=Symbol("onDrain"),$ke=Symbol("onConnect"),e2e=Symbol("onDisconnect"),t2e=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lMe.exports=m$});var O_=f((ybn,pMe)=>{"use strict";var hMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dqt}=tn(),hqt=pb();fMe()===void 0&&gMe(new hqt);function gMe(t){if(!t||typeof t.dispatch!="function")throw new dqt("Argument agent must implement Agent");Object.defineProperty(globalThis,hMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fMe(){return globalThis[hMe]}pMe.exports={setGlobalDispatcher:gMe,getGlobalDispatcher:fMe}});var H_=f((wbn,mMe)=>{"use strict";mMe.exports=class{#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 CMe=f((Nbn,EMe)=>{"use strict";var gqt=C_();EMe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new gqt(r,o,s,i);return r(a,A)}}});var BMe=f((Sbn,IMe)=>{"use strict";var fqt=x_();IMe.exports=t=>e=>function(n,s){return e(n,new fqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var yMe=f((Rbn,QMe)=>{"use strict";var pqt=mr(),{InvalidArgumentError:mqt,RequestAbortedError:Eqt}=tn(),Cqt=H_(),E$=class extends Cqt{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new mqt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Eqt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Iqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new E$({maxSize:i},s);return e(n,o)}}QMe.exports=Iqt});var NMe=f((Dbn,wMe)=>{"use strict";var{isIP:Bqt}=B("node:net"),{lookup:Qqt}=B("node:dns"),yqt=H_(),{InvalidArgumentError:Nb,InformationalError:bqt}=tn(),bMe=Math.pow(2,31)-1,C$=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new bqt("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Qqt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===bMe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===bMe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new I$(this,e,r)}},I$=class extends yqt{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":iUe(i)&&(r[s]=i);break;case"id":oUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&iUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&oUe(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,event:void 0,id:void 0,retry:void 0}}};aUe.exports={EventSourceStream:iee}});var pUe=f((own,fUe)=>{"use strict";var{pipeline:k4t}=B("node:stream"),{fetching:F4t}=a1(),{makeRequest:M4t}=Db(),{webidl:Wf}=Po(),{EventSourceStream:v4t}=AUe(),{parseMIMEType:L4t}=CA(),{createFastMessageEvent:U4t}=vb(),{isNetworkError:cUe}=i1(),{delay:P4t}=nee(),{kEnumerableProperty:CB}=mr(),{environmentSettingsObject:uUe}=Cc(),lUe=!1,dUe=3e3,C1=0,hUe=1,I1=2,_4t="anonymous",O4t="use-credentials",Ob=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=C1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Wf.util.markAsUncloneable(this);let n="EventSource constructor";Wf.argumentLengthCheck(arguments,1,n),lUe||(lUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wf.converters.USVString(e,n,"url"),r=Wf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:dUe};let s=uUe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=_4t;r.withCredentials&&(o=O4t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=uUe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=M4t(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===I1)return;this.#r=C1;let e={request:this.#s,dispatcher:this.#a},r=n=>{cUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cUe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?L4t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=hUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v4t({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(U4t(A.type,A.options))}});k4t(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=F4t(e)}async#c(){this.#r!==I1&&(this.#r=C1,this.dispatchEvent(new Event("error")),await P4t(this.#o.reconnectionTime),this.#r===C1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Wf.brandCheck(this,t),this.#r!==I1&&(this.#r=I1,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},gUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:C1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:hUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I1,writable:!1}};Object.defineProperties(Ob,gUe);Object.defineProperties(Ob.prototype,gUe);Object.defineProperties(Ob.prototype,{close:CB,onerror:CB,onmessage:CB,onopen:CB,readyState:CB,url:CB,withCredentials:CB});Wf.converters.EventSourceInitDict=Wf.dictionaryConverter([{key:"withCredentials",converter:Wf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wf.converters.any}]);fUe.exports={EventSource:Ob,defaultReconnectionTime:dUe}});var IUe=f((awn,Mt)=>{"use strict";var H4t=gb(),mUe=wT(),q4t=fb(),G4t=g2e(),Y4t=pb(),J4t=xZ(),V4t=P2e(),W4t=Y2e(),EUe=tn(),DO=mr(),{InvalidArgumentError:RO}=EUe,Hb=xFe(),z4t=ST(),j4t=l$(),K4t=dMe(),X4t=g$(),Z4t=ZZ(),$4t=x_(),{getGlobalDispatcher:CUe,setGlobalDispatcher:eYt}=O_(),tYt=H_(),rYt=C_(),nYt=I_();Object.assign(mUe.prototype,Hb);Mt.exports.Dispatcher=mUe;Mt.exports.Client=H4t;Mt.exports.Pool=q4t;Mt.exports.BalancedPool=G4t;Mt.exports.Agent=Y4t;Mt.exports.ProxyAgent=J4t;Mt.exports.EnvHttpProxyAgent=V4t;Mt.expo Line truncated
\r
`),j5t=/\r\n/g,K5t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Jb(t){mPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=pPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=pPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new W5t(z5t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}V5t(Jb,mPe);Jb.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Jb.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Jb.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Jb.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(j5t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=K5t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};EPe.exports=Jb});var Wee=f((Zwn,BPe)=>{"use strict";var Vee=B("node:stream").Writable,X5t=B("node:util").inherits,Z5t=Yee(),IPe=gPe(),$5t=CPe(),e6t=45,t6t=Buffer.from("-"),r6t=Buffer.from(`\r
`),n6t=function(){};function md(t){if(!(this instanceof md))return new md(t);if(Vee.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new $5t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}X5t(md,Vee);md.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Vee.prototype.emit.apply(this,arguments)};md.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new IPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(r6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};md.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};md.prototype.setBoundary=function(t){let e=this;this._bparser=new Z5t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};md.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",n6t),this._part.resume())};md.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===e6t)++o,++this._dashes;else{this._dashes&&(s=t6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new IPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};md.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};BPe.exports=md});var YO=f((zee,bPe)=>{"use strict";var QPe=new TextDecoder("utf-8"),yPe=new Map([["utf-8",QPe],["utf8",QPe]]);function s6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return D1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return D1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return D1.utf16le;case"base64":return D1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return D1.other.bind(t)}}var D1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),yPe.has(zee.toString()))try{return yPe.get(zee).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function i6t(t,e,r){return t&&s6t(r)(t,e)}bPe.exports=i6t});var Kee=f(($wn,DPe)=>{"use strict";var JO=YO(),wPe=/%[a-fA-F0-9][a-fA-F0-9]/g,o6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function i9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(J6t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function o9t(){return"allowed"}function a9t(){return"success"}function A9t(){return"success"}function c9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function u9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&ste(t.origin)&&!ste(k1(t))&&(e=null);break;case"same-origin":KO(t,k1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function l9t(t){return z6t.now()}function d9t(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}}function h9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function g9t(t){return{referrerPolicy:t.referrerPolicy}}function f9t(t){let e=t.referrerPolicy;Kb(e);let r=null;if(t.referrer==="client"){let a=W6t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=rte(r),s=rte(r,!0);n.toString().length>4096&&(n=s);let i=KO(t,n),o=T1(n)&&!T1(t.url);switch(e){case"origin":return s??rte(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=k1(t);return KO(n,a)?n:T1(n)&&!T1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function rte(t,e){return Kb(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function T1(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"))}}function p9t(t,e){if(jO===void 0)return!0;let r=r_e(e);if(r==="no metadata"||r.length===0)return!0;let n=E9t(r),s=C9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=jO.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),I9t(A,a))return!0}return!1}var m9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function r_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=m9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ZPe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function E9t(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}function C9t(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}function I9t(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}function B9t(t){}function KO(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Q9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function y9t(t){return t.controller.state==="aborted"}function b9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var ite={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(ite,null);function w9t(t){return ite[t.toLowerCase()]??t}function N9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Kb(typeof e=="string"),e}var S9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function R9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,D9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,S9t),Object.setPrototypeOf({},s)}function D9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function ote(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&c_e(t[n]);n++);if(r)for(;s>0&&c_e(t[s]);s--);return t.slice(n,s+1)}function u_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function z9t(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&u_e(t[n]);n++);if(r)for(;s>0&&u_e(t[s]);s--);return t.slice(n,s+1)}g_e.exports={dataURLProcessor:Y9t,URLSerializer:l_e,collectASequenceOfCodePoints:$O,collectASequenceOfCodePointsFast:Xb,stringPercentDecode:d_e,parseMIMEType:ate,collectAnHTTPQuotedString:h_e,serializeAMimeType:W9t}});var eH=f((lNn,C_e)=>{"use strict";var{Blob:m_e,File:f_e}=B("buffer"),{types:Ate}=B("util"),{kState:Sc}=Kf(),{isBlobLike:E_e}=Pu(),{webidl:fn}=Ha(),{parseMIMEType:j9t,serializeAMimeType:K9t}=Ed(),{kEnumerableProperty:p_e}=qr(),X9t=new TextEncoder,F1=class t extends m_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=j9t(i),i==="failure"){i="";break e}i=K9t(i).toLowerCase()}o=n.lastModified}super(Z9t(e,n),{type:i}),this[Sc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get type(){return fn.brandCheck(this,t),this[Sc].type}},cte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[Sc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[Sc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[Sc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[Sc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[Sc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[Sc].blobLike.size}get type(){return fn.brandCheck(this,t),this[Sc].blobLike.type}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(F1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:p_e,lastModified:p_e});fn.converters.Blob=fn.interfaceConverter(m_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(E_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ate.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Z9t(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=$9t(s)),r.push(X9t.encode(s))}else Ate.isAnyArrayBuffer(n)||Ate.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):E_e(n)&&r.push(n);return r}function $9t(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function eJt(t){return f_e&&t instanceof f_e||t instanceof F1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}C_e.exports={File:F1,FileLike:cte,isFileLike:eJt}});var rH=f((dNn,b_e)=>{"use strict";var{isBlobLike:tH,toUSVString:tJt,makeIterator:ute}=Pu(),{kState:ia}=Kf(),{File:y_e,FileLike:I_e,isFileLike:rJt}=eH(),{webidl:wn}=Ha(),{Blob:nJt,File:lte}=B("buffer"),B_e=lte??y_e,Zb=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ia]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=Q_e(e,r,n);this[ia].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[ia]=this[ia].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[ia].findIndex(n=>n.name===e);return r===-1?null:this[ia][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[ia].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[ia].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?tJt(n):void 0;let s=Q_e(e,r,n),i=this[ia].findIndex(o=>o.name===e);i!==-1?this[ia]=[...this[ia].slice(0,i),s,...this[ia].slice(i+1).filter(o=>o.name!==e)]:this[ia].push(s)}entries(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};Zb.prototype[Symbol.iterator]=Zb.prototype.entries;Object.defineProperties(Zb.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function Q_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(rJt(e)||(e=e instanceof nJt?new B_e([e],"blob",{type:e.type}):new I_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=lte&&e instanceof lte||e instanceof y_e?new B_e([e],r,n):new I_e(e,r,n)}return{name:t,value:e}}b_e.exports={FormData:Zb}});var M1=f((hNn,F_e)=>{"use strict";var sJt=qPe(),$b=qr(),{ReadableStreamFrom:iJt,isBlobLike:w_e,isReadableStreamLike:oJt,readableStreamClose:aJt,createDeferredPromise:AJt,fullyReadBody:cJt}=Pu(),{FormData:N_e}=rH(),{kState:Zf}=Kf(),{webidl:dte}=Ha(),{DOMException:D_e,structuredClone:uJt}=AE(),{Blob:lJt,File:dJt}=B("buffer"),{kBodyUsed:hJt}=ts(),hte=B("assert"),{isErrored:gJt}=qr(),{isUint8Array:x_e,isArrayBuffer:fJt}=B("util/types"),{File:pJt}=eH(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Ed(),gte;try{let t=B("node:crypto");gte=e=>t.randomInt(0,e)}catch{gte=t=>Math.floor(Math.random(t))}var Xf=globalThis.ReadableStream,S_e=dJt??pJt,nH=new TextEncoder,CJt=new TextDecoder;function T_e(t,e=!1){Xf||(Xf=B("stream/web").ReadableStream);let r=null;t instanceof Xf?r=t:w_e(t)?r=t.stream():r=new Xf({async pull(A){A.enqueue(typeof s=="string"?nH.encode(s):s),queueMicrotask(()=>aJt(A))},start(){},type:void 0}),hte(oJt(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(fJt(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($b.isFormDataLike(t)){let A=`----formdata-undici-0${`${gte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=nH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=nH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=nH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(w_e(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($b.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Xf?t:iJt(t)}if((typeof s=="string"||$b.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new Xf({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):gJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function IJt(t,e=!1){return Xf||(Xf=B("stream/web").ReadableStream),t instanceof Xf&&(hte(!$b.isDisturbed(t),"The body has already been consumed."),hte(!t.locked,"The stream is locked.")),T_e(t,e)}function BJt(t){let[e,r]=t.stream.tee(),n=uJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*R_e(t){if(t)if(x_e(t))yield t;else{let e=t.stream;if($b.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[hJt]=!0,yield*e}}function fte(t){if(t.aborted)throw new D_e("The operation was aborted.","AbortError")}function QJt(t){return{blob(){return sH(this,r=>{let n=NJt(this);return n==="failure"?n="":n&&(n=EJt(n)),new lJt([r],{type:n})},t)},arrayBuffer(){return sH(this,r=>new Uint8Array(r).buffer,t)},text(){return sH(this,k_e,t)},json(){return sH(this,wJt,t)},async formData(){dte.brandCheck(this,t),fte(this[Zf]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new N_e,i;try{i=new sJt({headers:n,preservePath:!0})}catch(a){throw new D_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new S_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new S_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of R_e(this[Zf].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of R_e(this[Zf].body)){if(!x_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new N_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),fte(this[Zf]),dte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function yJt(t){Object.assign(t.prototype,QJt(t))}async function sH(t,e,r){if(dte.brandCheck(t,r),fte(t[Zf]),bJt(t[Zf].body))throw new TypeError("Body is unusable");let n=AJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Zf].body==null?(i(new Uint8Array),n.promise):(await cJt(t[Zf].body,i,s),n.promise)}function bJt(t){return t!=null&&(t.stream.locked||$b.isDisturbed(t.stream))}function k_e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),CJt.decode(t))}function wJt(t){return JSON.parse(k_e(t))}function NJt(t){let{headersList:e}=t[Zf],r=e.get("content-type");return r===null?"failure":mJt(r)}F_e.exports={extractBody:T_e,safelyExtractBody:IJt,cloneBody:BJt,mixinBody:yJt}});var U_e=f((gNn,L_e)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:SJt}=Un(),$f=B("assert"),{kHTTP2BuildRequest:RJt,kHTTP2CopyHeaders:DJt,kHTTP1BuildRequest:xJt}=ts(),SA=qr(),M_e=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,v_e=/[^\t\x20-\x7e\x80-\xff]/,TJt=/[^\u0021-\u00ff]/,Cd=Symbol("handler"),xi={},pte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var mte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else SA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);SA.validateHandler(p,n,c),this.servername=SA.getServerName(this.host),this[Cd]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Cd].onBodySent)try{return this[Cd].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Cd].onRequestSent)try{return this[Cd].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if($f(!this.aborted),$f(!this.completed),this.error)e(this.error);else return this.abort=e,this[Cd].onConnect(e)}onHeaders(e,r,n,s){$f(!this.aborted),$f(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Cd].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){$f(!this.aborted),$f(!this.completed);try{return this[Cd].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return $f(!this.aborted),$f(!this.completed),this[Cd].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),$f(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Cd].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Cd].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return v1(this,e,r),this}static[xJt](e,r,n){return new t(e,r,n)}static[RJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)v1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];v1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[DJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function SB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",v_e.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function v1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(v_e.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new SJt("expect header not supported");if(M_e.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${SB(e,r[s],n)}`:t.headers[e]=SB(e,r[s],n):t.headers+=SB(e,r[s]);else n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r)}}}L_e.exports=mte});var iH=f((fNn,P_e)=>{"use strict";var kJt=B("events"),Ete=class extends kJt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};P_e.exports=Ete});var U1=f((pNn,__e)=>{"use strict";var FJt=iH(),{ClientDestroyedError:Cte,ClientClosedError:MJt,InvalidArgumentError:ew}=Un(),{kDestroy:vJt,kClose:LJt,kDispatch:Ite,kInterceptors:RB}=ts(),tw=Symbol("destroyed"),L1=Symbol("closed"),ep=Symbol("onDestroyed"),rw=Symbol("onClosed"),oH=Symbol("Intercepted Dispatch"),Bte=class extends FJt{constructor(){super(),this[tw]=!1,this[ep]=null,this[L1]=!1,this[rw]=[]}get destroyed(){return this[tw]}get closed(){return this[L1]}get interceptors(){return this[RB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[RB][r]!="function")throw new ew("interceptor must be an function")}this[RB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new ew("invalid callback");if(this[tw]){queueMicrotask(()=>e(new Cte,null));return}if(this[L1]){this[rw]?this[rw].push(e):queueMicrotask(()=>e(null,null));return}this[L1]=!0,this[rw].push(e);let r=()=>{let n=this[rw];this[rw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[LJt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new ew("invalid callback");if(this[tw]){this[ep]?this[ep].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Cte),this[tw]=!0,this[ep]=this[ep]||[],this[ep].push(r);let n=()=>{let s=this[ep];this[ep]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[vJt](e).then(()=>{queueMicrotask(n)})}[oH](e,r){if(!this[RB]||this[RB].length===0)return this[oH]=this[Ite],this[Ite](e,r);let n=this[Ite].bind(this);for(let s=this[RB].length-1;s>=0;s--)n=this[RB][s](n);return this[oH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new ew("handler must be an object");try{if(!e||typeof e!="object")throw new ew("opts must be an object.");if(this[tw]||this[ep])throw new Cte;if(this[L1])throw new MJt;return this[oH](e,r)}catch(n){if(typeof r.onError!="function")throw new ew("invalid onError method");return r.onError(n),!1}}};__e.exports=Bte});var P1=f((CNn,q_e)=>{"use strict";var UJt=B("net"),O_e=B("assert"),H_e=qr(),{InvalidArgumentError:PJt,ConnectTimeoutError:_Jt}=Un(),Qte,yte;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function OJt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new PJt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new yte(e??100);return n=n??1e4,t Line truncated
`,this[iOe]=A??3e5,this[sOe]=s??3e5,this[Y1]=I??!0,this[pVt]=w,this[J1]=z,this[uE]=null,this[aOe]=W>-1?W:-1,this[Fh]="h1",this[Dc]=null,this[gH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[AOe]=`${this[Oo].hostname}${this[Oo].port?`:${this[Oo].port}`:""}`,this[rs]=[],this[ns]=0,this[Rc]=0}get pipelining(){return this[dE]}set pipelining(e){this[dE]=e,xc(this,!0)}get[TB](){return this[rs].length-this[Rc]}get[ks](){return this[Rc]-this[ns]}get[xB](){return this[rs].length-this[ns]}get[fVt](){return!!this[Vs]&&!this[sw]&&!this[Vs].destroyed}get[Tte](){let e=this[Vs];return e&&(e[qa]||e[np]||e[ow])||this[xB]>=(this[dE]||1)||this[TB]>0}[gVt](e){dOe(this),this.once("connect",e)}[CVt](e,r){let n=e.origin||this[Oo].origin,s=this[Fh]==="h2"?xte[BVt](n,e,r):xte[yVt](n,e,r);return this[rs].push(s),this[DB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[DB]=1,process.nextTick(xc,this)):xc(this,!0)),this[DB]&&this[lE]!==2&&this[Tte]&&(this[lE]=2),this[lE]<2}async[mVt](){return new Promise(e=>{this[xB]?this[uE]=e:e(null)})}async[EVt](e){return new Promise(r=>{let n=this[rs].splice(this[Rc]);for(let i=0;i<n.length;i++){let o=n[i];Ga(this,o,e)}let s=()=>{this[uE]&&(this[uE](),this[uE]=null),r()};this[Dc]!=null&&(ft.destroy(this[Dc],e),this[Dc]=null,this[gH]=null),this[Vs]?ft.destroy(this[Vs].on("close",s),e):queueMicrotask(s),xc(this)})}};function TVt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vs][Ho]=t,EH(this[kh],t)}function kVt(t,e,r){let n=new Th(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Vs][Ho]=n,EH(this[kh],n))}function FVt(){ft.destroy(this,new iw("other side closed")),ft.destroy(this[Vs],new iw("other side closed"))}function MVt(t){let e=this[kh],r=new Th(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Vs]=null,e[Dc]=null,e.destroyed){Ve(this[TB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Ga(this,i,r)}}else if(e[ks]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Ga(e,n,r)}e[Rc]=e[ns],Ve(e[ks]===0),e.emit("disconnect",e[Oo],[e],r),xc(e)}var Rh=Y_e(),vVt=cH(),LVt=Buffer.alloc(0);async function UVt(){let t=process.env.JEST_WORKER_ID?Ste():void 0,e;try{e=await WebAssembly.compile(Buffer.from(X_e(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Ste(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onStatus(new uH(Dh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderField(new uH(Dh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderValue(new uH(Dh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(qi.ptr,r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onBody(new uH(Dh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageComplete()||0)}})}var Dte=null,Mte=UVt();Mte.catch();var qi=null,Dh=null,lH=0,xh=null,aw=1,hH=2,vte=3,Lte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[dH])&&e[dH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Rh.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[dH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[aOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(Rte.clearTimeout(this.timeout),e?(this.timeout=Rte.setTimeout(PVt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(qi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===hH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||LVt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(qi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>lH&&(xh&&n.free(xh),lH=Math.ceil(e.length/4096)*4096,xh=n.malloc(lH)),new Uint8Array(n.memory.buffer,xh,lH).set(e);try{let s;try{Dh=e,qi=this,s=n.llhttp_execute(this.ptr,xh,e.length)}catch(o){throw o}finally{qi=null,Dh=null}let i=n.llhttp_get_error_pos(this.ptr)-xh;if(s===Rh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Rh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Rh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[tOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[dE]&&!h[qa]?g+=`connection: keep-alive\r
`:t[JN]&&!h[bi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),oa.sendHeaders.hasSubscribers&&oa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],I=c[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Fne.sendHeaders.hasSubscribers&&Fne.sendHeaders.publish({request:e,headers:g,socket:h}),!A||d===0?Hne(f,null,t,e,h,u,g,l):qe.isBuffer(A)?Hne(f,A,t,e,h,u,g,l):qe.isBlobLike(A)?typeof A.stream=="function"?Gne(f,A.stream(),t,e,h,u,g,l):Q9e(f,A,t,e,h,u,g,l):qe.isStream(A)?b9e(f,A,t,e,h,u,g,l):qe.isIterable(A)?Gne(f,A,t,e,h,u,g,l):Pe(!1),!0}function b9e(t,e,r,n,s,i,o,a){Pe(i!==0||r[Cn]===0,"stream body cannot be pipelined");let A=!1,c=new jN({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(g){qe.destroy(this,g)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new qne;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Pe(s.destroyed||s[Nd]&&r[Cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(g){f=g}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?qe.destroy(e,f):qe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Hne(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[qa]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?pH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):fOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?gOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?pH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function HVt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=xte[QVt](u.trim()):l=u,a)return Ga(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Ga(t,r,I||new Pte)})}catch(I){Ga(t,r,I)}if(r.aborted)return!1;let d,h=t[gH];if(l[bVt]=o||t[AOe],l[wVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[NVt]=i,l[SVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),hOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[Y1])return Ga(t,r,new rp),!1;process.emitWarning(new rp)}p!=null&&(Ve(n,"no body must not have content length"),l[RVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[DVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[xVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Th(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Ga(t,r,w),t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?pH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Vs],header:""}):fOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Vs]}):ft.isStream(n)?gOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Vs],h2stream:d,header:""}):ft.isIterable(n)?pH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Vs]}):Ve(!1):r.onRequestSent()}}function gOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[ks]===0,"stream body cannot be pipelined"),r[Fh]==="h2"){let p=function(C){n.onBodySent(C)},g=sVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new mH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Pte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[np]&&r[ks]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h)}async function fOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Fh]==="h2";try{if(i!=null&&i!==e.size)throw new rp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zu]()}catch(A){t(A)}}async function Q9e(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Hf;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[qa]=!0),xc(r)}catch(c){ft.destroy(A?t:s,c)}}async function pH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[ks]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[Ho]?h(s[Ho]):A=d});if(r[Fh]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Ho])throw s[Ho];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new mH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ho])throw s[Ho];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var mH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[np]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Ho])throw r[Ho];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[Y1])throw new rp;process.emitWarning(new rp)}r.cork(),o===0&&(a||(r[qa]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bi]=!0),r[zu]()}catch(A){t(A)}}async function Gne(t,e,r,n,s,i,o,a){Pe(i!==0||r[Cn]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Pe(A===null),s[zs]?h(s[zs]):A=d});s.on("close",c).on("drain",c);let l=new jN({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[zs])throw s[zs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var jN=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Nd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[zs])throw r[zs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[DP])throw new Hf;process.emitWarning(new Hf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===aw&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[np]=!1,e[Ho])throw e[Ho];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ir].timeout&&r[Ir].timeoutType===f0&&r[Ir].timeout.refresh&&r[Ir].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Nd]=!1,e[zs])throw e[zs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[Y1])throw new rp;process.emitWarning(new rp)}e[Js].timeout&&e[Js].timeoutType===aw&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),xc(n)}}destroy(e){let{socket:r,client:n}=this;r[np]=!1,e&&(Ve(n[ks]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Ga(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}pOe.exports=Fte});var EOe=f((RNn,mOe)=>{"use strict";var CH=class{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)}};mOe.exports=class{constructor(){this.head=this.tail=new CH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var IOe=f((DNn,COe)=>{var{kFree:qVt,kConnected:GVt,kPending:YVt,kQueued:JVt,kRunning:VVt,kSize:WVt}=ts(),kB=Symbol("pool"),_te=class{constructor(e){this[kB]=e}get connected(){return this[kB][GVt]}get free(){return this[kB][qVt]}get pending(){return this[kB][YVt]}get queued(){return this[kB][JVt]}get running(){return this[kB][VVt]}get size(){return this[kB][WVt]}};COe.exports=_te});var Jte=f((xNn,xOe)=>{"use strict";var zVt=U1(),jVt=EOe(),{kConnected:Ote,kSize:BOe,kRunning:QOe,kPending:yOe,kQueued:W1,kBusy:KVt,kFree:XVt,kUrl:ZVt,kClose:$Vt,kDestroy:eWt,kDispatch:tWt}=ts(),rWt=IOe(),RA=Symbol("clients"),Ya=Symbol("needDrain"),z1=Symbol("queue"),Hte=Symbol("closed resolve"),qte=Symbol("onDrain"),bOe=Symbol("onConnect"),wOe=Symbol("onDisconnect"),NOe=Symbol("onConnectionError"),Gte=Symbol("get dispatcher"),ROe=Symbol("add client"),DOe=Symbol("remove client"),SOe=Symbol("stats"),Yte=class extends zVt{constructor(){super(),this[z1]=new jVt,this[RA]=[],this[W1]=0;let e=this;this[qte]=function(n,s){let i=e[z1],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[W1]--,o=!this.dispatch(a.opts,a.handler)}this[Ya]=o,!this[Ya]&&e[Ya]&&(e[Ya]=!1,e.emit("drain",n,[e,...s])),e[Hte]&&i.isEmpty()&&Promise.all(e[RA].map(a=>a.close())).then(e[Hte])},this[bOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[wOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[NOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[SOe]=new rWt(this)}get[KVt](){return this[Ya]}get[Ote](){return this[RA].filter(e=>e[Ote]).length}get[XVt](){return this[RA].filter(e=>e[Ote]&&!e[Ya]).length}get[yOe](){let e=this[W1];for(let{[yOe]:r}of this[RA])e+=r;return e}get[QOe](){let e=0;for(let{[QOe]:r}of this[RA])e+=r;return e}get[BOe](){let e=this[W1];for(let{[BOe]:r}of this[RA])e+=r;return e}get stats(){return this[SOe]}async[$Vt](){return this[z1].isEmpty()?Promise.all(this[RA].map(e=>e.close())):new Promise(e=>{this[Hte]=e})}async[eWt](e){for(;;){let r=this[z1].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[RA].map(r=>r.destroy(e)))}[tWt](e,r){let n=this[Gte]();return n?n.dispatch(e,r)||(n[Ya]=!0,this[Ya]=!this[Gte]()):(this[Ya]=!0,this[z1].push({opts:e,handler:r}),this[W1]++),!this[Ya]}[ROe](e){return e.on("drain",this[qte]).on("connect",this[bOe]).on("disconnect",this[wOe]).on("connectionError",this[NOe]),this[RA].push(e),this[Ya]&&process.nextTick(()=>{this[Ya]&&this[qte](e[ZVt],[this,e])}),this}[DOe](e){e.close(()=>{let r=this[RA].indexOf(e);r!==-1&&this[RA].splice(r,1)}),this[Ya]=this[RA].some(r=>!r[Ya]&&r.closed!==!0&&r.destroyed!==!0)}};xOe.exports={PoolBase:Yte,kClients:RA,kNeedDrain:Ya,kAddClient:ROe,kRemoveClient:DOe,kGetDispatcher:Gte}});var Aw=f((TNn,FOe)=>{"use strict";var{PoolBase:nWt,kClients:IH,kNeedDrain:sWt,kAddClient:iWt,kGetDispatcher:oWt}=Jte(),aWt=V1(),{InvalidArgumentError:Vte}=Un(),Wte=qr(),{kUrl:TOe,kInterceptors:AWt}=ts(),cWt=P1(),zte=Symbol("options"),jte=Symbol("connections"),kOe=Symbol("factory");function uWt(t,e){return new aWt(t,e)}var Kte=class extends nWt{constructor(e,{connections:r,factory:n=uWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new Vte("invalid connections");if(typeof n!="function")throw new Vte("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new Vte("connect must be a function or an object");typeof s!="function"&&(s=cWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...Wte.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[AWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[jte]=r||null,this[TOe]=Wte.parseOrigin(e),this[zte]={...Wte.deepClone(d),connect:s,allowH2:l},this[zte].interceptors=d.interceptors?{...d.interceptors}:void 0,this[kOe]=n,this.on("con Line truncated
`,"latin1"),r!==null&&s!==r){if(n[DP])throw new Hf;process.emitWarning(new Hf)}e[Ir].timeout&&e[Ir].timeoutType===f0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[zu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Nd]=!1,e&&(Pe(n[Cn]<=1,"pipeline should only contain this request"),s(e))}};zne.exports=E9e});var nse=C((rzt,rse)=>{"use strict";var ra=Q("node:assert"),{pipeline:w9e}=Q("node:stream"),St=Et(),{RequestContentLengthMismatchError:_P,RequestAbortedError:Kne,SocketError:Ky,InformationalError:LP}=Vt(),{kUrl:KN,kReset:ZN,kClient:g0,kRunning:$N,kPending:S9e,kQueue:Td,kPendingIdx:UP,kRunningIdx:lA,kError:hA,kSocket:Vn,kStrictContentLength:N9e,kOnError:PP,kMaxConcurrentStreams:tse,kHTTP2Session:dA,kResume:xd,kSize:T9e,kHTTPContext:x9e}=kr(),ju=Symbol("open streams"),Xne,Zne=!1,XN;try{XN=Q("node:http2")}catch{XN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:R9e,HTTP2_HEADER_METHOD:D9e,HTTP2_HEADER_PATH:k9e,HTTP2_HEADER_SCHEME:v9e,HTTP2_HEADER_CONTENT_LENGTH:F9e,HTTP2_HEADER_EXPECT:M9e,HTTP2_HEADER_STATUS:_9e}}=XN;function L9e(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}async function U9e(t,e){t[Vn]=e,Zne||(Zne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=XN.connect(t[KN],{createConnection:()=>e,peerMaxConcurrentStreams:t[tse]});r[ju]=0,r[g0]=t,r[Vn]=e,St.addListener(r,"error",O9e),St.addListener(r,"frameError",H9e),St.addListener(r,"end",G9e),St.addListener(r,"goaway",q9e),St.addListener(r,"close",function(){let{[g0]:s}=this,{[Vn]:i}=s,o=this[Vn][hA]||this[hA]||new Ky("closed",St.getSocketInfo(i));if(s[dA]=null,s.destroyed){ra(s[S9e]===0);let a=s[Td].splice(s[lA]);for(let A=0;A<a.length;A++){let c=a[A];St.errorRequest(s,c,o)}}}),r.unref(),t[dA]=r,e[dA]=r,St.addListener(e,"error",function(s){ra(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hA]=s,this[g0][PP](s)}),St.addListener(e,"end",function(){St.destroy(this,new Ky("other side closed",St.getSocketInfo(this)))}),St.addListener(e,"close",function(){let s=this[hA]||new Ky("closed",St.getSocketInfo(this));t[Vn]=null,this[dA]!=null&&this[dA].destroy(s),t[UP]=t[lA],ra(t[$N]===0),t.emit("disconnect",t[KN],[t],s),t[xd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return V9e(t,...s)},resume(){P9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function P9e(t){let e=t[Vn];e?.destroyed===!1&&(t[T9e]===0&&t[tse]===0?(e.unref(),t[dA].unref()):(e.ref(),t[dA].ref()))}function O9e(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vn][hA]=t,this[g0][PP](t)}function H9e(t,e,r){if(r===0){let n=new LP(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Vn][hA]=n,this[g0][PP](n)}}function G9e(){let t=new Ky("other side closed",St.getSocketInfo(this[Vn]));this.destroy(t),St.destroy(this[Vn],t)}function q9e(t){let e=this[hA]||new Ky(`HTTP/2: "GOAWAY" frame received with code ${t}`,St.getSocketInfo(this)),r=this[g0];if(r[Vn]=null,r[x9e]=null,this[dA]!=null&&(this[dA].destroy(e),this[dA]=null),St.destroy(this[Vn],e),r[lA]<r[Td].length){let n=r[Td][r[lA]];r[Td][r[lA]++]=null,St.errorRequest(r,n,e),r[UP]=r[lA]}ra(r[$N]===0),r.emit("disconnect",r[KN],[r],e),r[xd]()}function Y9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function V9e(t,e){let r=t[dA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return St.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<c.length;B+=2){let F=c[B+0],Y=c[B+1];if(Array.isArray(Y))for(let L=0;L<Y.length;L++)l[F]?l[F]+=`,${Y[L]}`:l[F]=Y[L];else l[F]=Y}let d,{hostname:h,port:f}=t[KN];l[R9e]=i||`${h}${f?`:${f}`:""}`,l[D9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Kne,St.errorRequest(t,e,B),d!=null&&St.destroy(d,B),St.destroy(u,B),t[Td][t[lA]++]=null,t[xd]())};try{e.onConnect(g)}catch(B){St.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ju],t[Td][t[lA]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ju],t[Td][t[lA]++]=null}),d.once("close",()=>{r[ju]-=1,r[ju]===0&&r.unref()}),!0;l[k9e]=s,l[v9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=St.bodyLength(u);if(St.isFormDataLike(u)){Xne??=u0().extractBody;let[B,F]=Xne(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),Y9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[N9e])return St.errorRequest(t,e,new _P),!1;process.emitWarning(new _P)}m!=null&&(ra(u,"no body must not have content length"),l[F9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[M9e]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[mqe]=A??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[qP]=Y,this[Dd]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=Z??100,this[An]=null,this[fA]=[],this[Xu]=0,this[gA]=0,this[eB]=de=>VP(this,de),this[wqe]=de=>gse(this,de)}get pipelining(){return this[nT]}set pipelining(e){this[nT]=e,this[eB](!0)}get[nB](){return this[fA].length-this[gA]}get[rB](){return this[gA]-this[Xu]}get[tB](){return this[fA].length-this[Xu]}get[cqe](){return!!this[An]&&!this[m0]&&!this[An].destroyed}get[GP](){return!!(this[An]?.busy(null)||this[tB]>=(fse(this)||1)||this[nB]>0)}[Aqe](e){pse(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[oc].origin,s=new rqe(n,e,r);return this[fA].push(s),this[Vf]||(Yf.bodyLength(s.body)==null&&Yf.isIterable(s.body)?(this[Vf]=1,queueMicrotask(()=>VP(this))):this[eB](!0)),this[Vf]&&this[kd]!==2&&this[GP]&&(this[kd]=2),this[kd]<2}async[yqe](){return new Promise(e=>{this[tB]?this[Dd]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[fA].splice(this[gA]);for(let i=0;i<n.length;i++){let o=n[i];Yf.errorRequest(this,o,e)}let s=()=>{this[Dd]&&(this[Dd](),this[Dd]=null),r(null)};this[An]?(this[An].destroy(e,s),this[An]=null):queueMicrotask(s),this[eB]()})}},xqe=rT();function gse(t,e){if(t[rB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[gA]===t[Xu]);let r=t[fA].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];Yf.errorRequest(t,s,e)}Ku(t[tB]===0)}}async function pse(t){Ku(!t[m0]),Ku(!t[An]);let{host:e,hostname:r,protocol:n,port:s}=t[oc];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku(hse.isIP(o)),r=o}t[m0]=!0,p0.beforeConnect.hasSubscribers&&p0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy]});try{let i=await new Promise((o,a)=>{t[Zy]({host:e,hostname:r,protocol:n,port:s,servername:t[Rd],localAddress:t[$y]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Yf.destroy(i.on("error",lse),new iqe);return}Ku(i);try{t[An]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",lse),o}t[m0]=!1,i[Iqe]=0,i[qP]=t[qP],i[aqe]=t,i[lqe]=null,p0.connected.hasSubscribers&&p0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy],socket:i}),t.emit("connect",t[oc],[t])}catch(i){if(t.destroyed)return;if(t[m0]=!1,p0.connectError.hasSubscribers&&p0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[rB]===0);t[nB]>0&&t[fA][t[gA]].servername===t[Rd];){let o=t[fA][t[gA]++];Yf.errorRequest(t,o,i)}else gse(t,i);t.emit("connectionError",t[oc],[t],i)}t[eB]()}function dse(t){t[kd]=0,t.emit("drain",t[oc],[t])}function VP(t,e){t[Vf]!==2&&(t[Vf]=2,Rqe(t,e),t[Vf]=0,t[Xu]>256&&(t[fA].splice(0,t[Xu]),t[gA]-=t[Xu],t[Xu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){Ku(t[nB]===0);return}if(t[Dd]&&!t[tB]){t[Dd](),t[Dd]=null;return}if(t[An]&&t[An].resume(),t[GP])t[kd]=2;else if(t[kd]===2){e?(t[kd]=1,queueMicrotask(()=>dse(t))):dse(t);continue}if(t[nB]===0||t[rB]>=(fse(t)||1))return;let r=t[fA][t[gA]];if(t[oc].protocol==="https:"&&t[Rd]!==r.servername){if(t[rB]>0)return;t[Rd]=r.servername,t[An]?.destroy(new sqe("servername changed"),()=>{t[An]=null,VP(t)})}if(t[m0])return;if(!t[An]){pse(t);return}if(t[An].destroyed||t[An].busy(r))return;!r.aborted&&t[An].write(r)?t[gA]++:t[fA].splice(t[gA],1)}}mse.exports=YP});var JP=C((azt,Ese)=>{"use strict";var sT=class{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)}};Ese.exports=class{constructor(){this.head=this.tail=new sT}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sT),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ise=C((Azt,Cse)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:Fqe,kRunning:Mqe,kSize:_qe}=kr(),Jf=Symbol("pool"),WP=class{constructor(e){this[Jf]=e}get connected(){return this[Jf][kqe]}get free(){return this[Jf][Dqe]}get pending(){return this[Jf][vqe]}get queued(){return this[Jf][Fqe]}get running(){return this[Jf][Mqe]}get size(){return this[Jf][_qe]}};Cse.exports=WP});var $P=C((czt,Rse)=>{"use strict";var Lqe=t0(),Uqe=JP(),{kConnected:zP,kSize:yse,kRunning:Bse,kPending:bse,kQueued:sB,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=kr(),Vqe=Ise(),Qi=Symbol("clients"),js=Symbol("needDrain"),iB=Symbol("queue"),jP=Symbol("closed resolve"),KP=Symbol("onDrain"),Qse=Symbol("onConnect"),wse=Symbol("onDisconnect"),Sse=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lqe.exports=Mre});var Eqe=f((rSn,mqe)=>{"use strict";var{kProxy:ljt,kClose:djt,kDestroy:hjt,kInterceptors:gjt}=ts(),{URL:hqe}=B("url"),gqe=K1(),fjt=Aw(),pjt=U1(),{InvalidArgumentError:tk,RequestAbortedError:mjt}=Un(),fqe=P1(),$1=Symbol("proxy agent"),HH=Symbol("proxy client"),ek=Symbol("proxy headers"),vre=Symbol("request tls settings"),Ejt=Symbol("proxy tls settings"),pqe=Symbol("connect endpoint function");function Cjt(t){return t==="https:"?443:80}function Ijt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new tk("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Bjt(t,e){return new fjt(t,e)}var Lre=class extends pjt{constructor(e){if(super(e),this[ljt]=Ijt(e),this[$1]=new gqe(e),this[gjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new tk("Proxy opts.uri is mandatory");let{clientFactory:r=Bjt}=e;if(typeof r!="function")throw new tk("Proxy opts.clientFactory must be a function.");this[vre]=e.requestTls,this[Ejt]=e.proxyTls,this[ek]=e.headers||{};let n=new hqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new tk("opts.auth cannot be used in combination with opts.token");e.auth?this[ek]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ek]["proxy-authorization"]=e.token:a&&A&&(this[ek]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=fqe({...e.proxyTls});this[pqe]=fqe({...e.requestTls}),this[HH]=r(n,{connect:c}),this[$1]=new gqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Cjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[HH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ek],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new mjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[vre]?p=this[vre].servername:p=u.servername,this[pqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new hqe(e.origin),s=Qjt(e.headers);return yjt(s),this[$1].dispatch({...e,headers:{...s,host:n}},r)}async[djt](){await this[$1].close(),await this[HH].close()}async[hjt](){await this[$1].destroy(),await this[HH].destroy()}};function Qjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function yjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new tk("Proxy-Authorization should be sent in ProxyAgent constructor")}mqe.exports=Lre});var yqe=f((nSn,Qqe)=>{var PB=B("assert"),{kRetryHandlerDefaultRetry:Cqe}=ts(),{RequestRetryError:qH}=Un(),{isDisturbed:Iqe,parseHeaders:bjt,parseRangeHeader:Bqe}=qr();function wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Ure=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Cqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Cqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=bjt(r);if(this.retryCount+=1,e>=300)return this.abort(new qH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Bqe(i["content-range"]);if(!a)return this.abort(new qH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new qH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return k8e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,F8e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,F8e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Fw.OidcClient=Nne});var xne=f(FA=>{"use strict";var Sne=FA&&FA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(FA,"__esModule",{value:!0});FA.summary=FA.markdownSummary=FA.SUMMARY_DOCS_URL=FA.SUMMARY_ENV_VAR=void 0;var fZt=B("os"),Rne=B("fs"),{access:pZt,appendFile:mZt,writeFile:EZt}=Rne.promises;FA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";FA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Dne=class{constructor(){this._buffer=""}filePath(){return Sne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[FA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${FA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield pZt(e,Rne.constants.R_OK|Rne.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(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Sne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?EZt:mZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Sne(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(fZt.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(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).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:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).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()}},v8e=new Dne;FA.markdownSummary=v8e;FA.summary=v8e});var L8e=f(MA=>{"use strict";var CZt=MA&&MA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IZt=MA&&MA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BZt=MA&&MA.__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)&&CZt(e,t,r);return IZt(e,t),e};Object.defineProperty(MA,"__esModule",{value:!0});MA.toPlatformPath=MA.toWin32Path=MA.toPosixPath=void 0;var QZt=BZt(B("path"));function yZt(t){return t.replace(/[\\]/g,"/")}MA.toPosixPath=yZt;function bZt(t){return t.replace(/[/]/g,"\\")}MA.toWin32Path=bZt;function wZt(t){return t.replace(/[/\\]/g,QZt.sep)}MA.toPlatformPath=wZt});var kne=f(Ze=>{"use strict";var NZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=e3e.default.platform();Gr.arch=e3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function s$t(){return Pq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?t$t():Gr.isMacOS?r$t():n$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=s$t});var Uc=f(We=>{"use strict";var i$t=We&&We.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),o$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Une=We&&We.__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)&&i$t(e,t,r);return o$t(e,t),e},r3e=We&&We.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var Ju=HUe(),VB=YUe(),vw=UO(),n3e=Une(B("os")),a$t=Une(B("path")),A$t=M8e(),Lne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Lne||(We.ExitCode=Lne={}));function c$t(t,e){let r=(0,vw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,VB.issueFileCommand)("ENV",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("set-env",{name:t},r)}We.exportVariable=c$t;function u$t(t){(0,Ju.issueCommand)("add-mask",{},t)}We.setSecret=u$t;function l$t(t){process.env.GITHUB_PATH||""?(0,VB.issueFileCommand)("PATH",t):(0,Ju.issueCommand)("add-path",{},t),process.env.PATH=`${t}${a$t.delimiter}${process.env.PATH}`}We.addPath=l$t;function Pne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Pne;function d$t(t,e){let r=Pne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=d$t;function h$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Pne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=h$t;function g$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,VB.issueFileCommand)("OUTPUT",(0,VB.prepareKeyValueMessage)(t,e));process.stdout.write(n3e.EOL),(0,Ju.issueCommand)("set-output",{name:t},(0,vw.toCommandValue)(e))}We.setOutput=g$t;function f$t(t){(0,Ju.issue)("echo",t?"on":"off")}We.setCommandEcho=f$t;function p$t(t){process.exitCode=Lne.Failure,s3e(t)}We.setFailed=p$t;function m$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=m$t;function E$t(t){(0,Ju.issueCommand)("debug",{},t)}We.debug=E$t;function s3e(t,e={}){(0,Ju.issueCommand)("error",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=s3e;function C$t(t,e={}){(0,Ju.issueCommand)("warning",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=C$t;function I$t(t,e={}){(0,Ju.issueCommand)("notice",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=I$t;function B$t(t){process.stdout.write(t+n3e.EOL)}We.info=B$t;function i3e(t){(0,Ju.issue)("group",t)}We.startGroup=i3e;function o3e(){(0,Ju.issue)("endgroup")}We.endGroup=o3e;function Q$t(t,e){return r3e(this,void 0,void 0,function*(){i3e(t);let r;try{r=yield e()}finally{o3e()}return r})}We.group=Q$t;function y$t(t,e){if(process.env.GITHUB_STATE||"")return(0,VB.issueFileCommand)("STATE",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("save-state",{name:t},(0,vw.toCommandValue)(e))}We.saveState=y$t;function b$t(t){return process.env[`STATE_${t}`]||""}We.getState=b$t;function w$t(t){return r3e(this,void 0,void 0,function*(){return yield A$t.OidcClient.getIDToken(t)})}We.getIDToken=w$t;var N$t=xne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return N$t.summary}});var S$t=xne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return S$t.markdownSummary}});var _ne=L8e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return _ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return _ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return _ne.toPlatformPath}});We.platform=Une(t3e())});var a3e=f(Hh=>{"use strict";var R$t=Hh&&Hh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),D$t=Hh&&Hh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x$t=Hh&&Hh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&R$t(e,t,r);return D$t(e,t),e};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.getOptions=void 0;var One=x$t(Uc());function T$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,One.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,One.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,One.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Hh.getOptions=T$t});var Oq=f(zs=>{"use strict";var k$t=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),F$t=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),M$t=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&k$t(e,t,r);return F$t(e,t),e},v$t=zs&&zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zs,"__esModule",{value:!0});zs.safeTrimTrailingSeparator=zs.normalizeSeparators=zs.hasRoot=zs.hasAbsoluteRoot=zs.ensureAbsoluteRoot=zs.dirname=void 0;var _q=M$t(B("path")),WB=v$t(B("assert")),IE=process.platform==="win32";function L$t(t){if(t=qne(t),IE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=_q.dirname(t);return IE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=qne(e)),e}zs.dirname=L$t;function U$t(t,e){if(WB.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),WB.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hne(e))return e;if(IE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return WB.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?Vne:I.type==="?"?Jne:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==Gq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===Gq)return[n,s];if(!s)return der(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Pc.makeRe=function(t,e){return new Go(t,e||{}).makeRe()};Go.prototype.makeRe=ler;function ler(){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?Vne:e.dot?ner:ser,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Wne?r:typeof o=="string"?her(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Pc.match=function(t,e,r){r=r||{};var n=new Go(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Go.prototype.match=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;mk.sep!=="/"&&(e=e.split(mk.sep).join("/")),e=e.split(S3e),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Go.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===Wne){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function der(t){return t.replace(/\\(.)/g,"$1")}function her(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var T3e=f(Vu=>{"use strict";var ger=Vu&&Vu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fer=Vu&&Vu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x3e=Vu&&Vu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&ger(e,t,r);return fer(e,t),e},per=Vu&&Vu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.Path=void 0;var Ek=x3e(B("path")),QE=x3e(Oq()),Ck=per(B("assert")),mer=process.platform==="win32",jne=class{constructor(e){if(this.segments=[],typeof e=="string")if(Ck.default(e,"Parameter 'itemPath' must not be empty"),e=QE.safeTrimTrailingSeparator(e),!QE.hasRoot(e))this.segments=e.split(Ek.sep);else{let r=e,n=QE.dirname(r);for(;n!==r;){let s=Ek.basename(r);this.segments.unshift(s),r=n,n=QE.dirname(r)}this.segments.unshift(r)}else{Ck.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];Ck.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=QE.normalizeSeparators(e[r]),r===0&&QE.hasRoot(n)?(n=QE.safeTrimTrailingSeparator(n),Ck.default(n===QE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(Ck.default(!n.includes(Ek.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(Ek.sep)||mer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=Ek.sep,e+=this.segments[n];return e}};Vu.Path=jne});var k3e=f(Wu=>{"use strict";var Eer=Wu&&Wu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cer=Wu&&Wu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zne=Wu&&Wu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Eer(e,t,r);return Cer(e,t),e},Ier=Wu&&Wu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Pattern=void 0;var Ber=Zne(B("os")),Ik=Zne(B("path")),_A=Zne(Oq()),zB=Ier(B("assert")),Qer=zne(),Kne=Hq(),Jq=T3e(),Ap=process.platform==="win32",Xne=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],zB.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);zB.default(c&&_A.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Jq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Jq.Path(i).segments,this.trailingSeparator=_A.normalizeSeparators(i).endsWith(Ik.sep),i=_A.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Jq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),Ap?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:Ap,nocomment:!0,noext:!0,nonegate:!0};i=Ap?i.replace(/\\/g,"/"):i,this.minimatch=new Qer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=_A.normalizeSeparators(e),!e.endsWith(Ik.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Ik.sep}`)):e=_A.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Kne.MatchKind.Directory:Kne.MatchKind.All:Kne.MatchKind.None}partialMatch(e){return e=_A.safeTrimTrailingSeparator(e),_A.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ap?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ap?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){zB.default(e,"pattern cannot be empty");let n=new Jq.Path(e).segments.map(s=>t.getLiteral(s));if(zB.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),zB.default(!_A.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=_A.normalizeSeparators(e),e==="."||e.startsWith(`.${Ik.sep}`))e=t.globEscap Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new L3e.Pattern(i));return n.searchPaths.push(...Wq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return ese(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Bk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){tse.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Bk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Bk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){tse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};Ao.DefaultGlobber=rse});var _3e=f(Uw=>{"use strict";var Der=Uw&&Uw.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Uw,"__esModule",{value:!0});Uw.create=void 0;var xer=P3e();function Ter(t,e){return Der(this,void 0,void 0,function*(){return yield xer.DefaultGlobber.create(t,e)})}Uw.create=Ter});var J3e=f((Ot,Y3e)=>{Ot=Y3e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var yk=256,zq=Number.MAX_SAFE_INTEGER||9007199254740991,nse=16,ker=yk-6,Pw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},q3e=0;function Er(t){ie[t]=q3e++}var ise="[a-zA-Z0-9-]",sse=[["\\s",1],["\\d",yk],[ise,ker]];function wk(t){for(var e=0;e<sse.length;e++){var r=sse[e][0],n=sse[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ise+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=ise+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+nse+"})(?:\\.(\\d{1,"+nse+"}))?(?:\\.(\\d{1,"+nse+"}))?(?:$|[^\\d])";Er("COERCERTL");Pw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(wk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Pw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(wk(me[ie.TILDETRIM]),"g");var Fer="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=mtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=Zq.relative(a,d).replace(new RegExp(`\\${Zq.sep}`,"g"),"/");Nk.debug(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}Zr.resolvePaths=wtr;function Ntr(t){return Hw(this,void 0,void 0,function*(){return Btr.promisify(use.unlink)(t)})}Zr.unlinkFile=Ntr;function X3e(t,e=[]){return Hw(this,void 0,void 0,function*(){let r="";e.push("--version"),Nk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Etr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){Nk.debug(n.message)}return r=r.trim(),Nk.debug(r),r})}function Str(){return Hw(this,void 0,void 0,function*(){let t=yield X3e("zstd",["--quiet"]),e=Itr.clean(t);return Nk.debug(`zstd version: ${e}`),t===""?XB.CompressionMethod.Gzip:XB.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=Str;function Rtr(t){return t===XB.CompressionMethod.Gzip?XB.CacheFilename.Gzip:XB.CacheFilename.Zstd}Zr.getCacheFileName=Rtr;function Dtr(){return Hw(this,void 0,void 0,function*(){return use.existsSync(XB.GnuTarPathOnWindows)?XB.GnuTarPathOnWindows:(yield X3e("tar")).toLowerCase().includes("gnu tar")?j3e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Dtr;function xtr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=xtr;function Ttr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Qtr),K3e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=Ttr;function ktr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=ktr});var Vn={};Su(Vn,{__addDisposableResource:()=>Q4e,__assign:()=>$q,__asyncDelegator:()=>g4e,__asyncGenerator:()=>h4e,__asyncValues:()=>f4e,__await:()=>Gw,__awaiter:()=>a4e,__classPrivateFieldGet:()=>C4e,__classPrivateFieldIn:()=>B4e,__classPrivateFieldSet:()=>I4e,__createBinding:()=>tG,__decorate:()=>e4e,__disposeResources:()=>y4e,__esDecorate:()=>r4e,__exportStar:()=>c4e,__extends:()=>Z3e,__generator:()=>A4e,__importDefault:()=>E4e,__importStar:()=>m4e,__makeTemplateObject:()=>p4e,__metadata:()=>o4e,__param:()=>t4e,__propKey:()=>s4e,__read:()=>hse,__rest:()=>$3e,__rewriteRelativeImportExtension:()=>b4e,__runInitializers:()=>n4e,__setFunctionName:()=>i4e,__spread:()=>u4e,__spreadArray:()=>d4e,__spreadArrays:()=>l4e,__values:()=>eG,default:()=>vtr});function Z3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $3e(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function e4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function t4e(t,e){return function(r,n){e(r,n,t)}}function r4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function n4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function s4e(t){return typeof t=="symbol"?t:"".concat(t)}function i4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function o4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function a4e(t,e,r,n){function s(i){re Line truncated
${lrr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};xk.RestError=lG;function drr(t){return t instanceof lG?!0:(0,Arr.isError)(t)&&t.name==="RestError"}});var ZB=f(dG=>{"use strict";Object.defineProperty(dG,"__esModule",{value:!0});dG.uint8ArrayToString=hrr;dG.stringToUint8Array=grr;function hrr(t,e){return Buffer.from(t).toString(e)}function grr(t,e){return Buffer.from(t,e)}});var Tk=f(hG=>{"use strict";Object.defineProperty(hG,"__esModule",{value:!0});hG.logger=void 0;var frr=iG();hG.logger=(0,frr.createClientLogger)("ts-http-runtime")});var z4e=f(fG=>{"use strict";Object.defineProperty(fG,"__esModule",{value:!0});fG.getBodyLength=W4e;fG.createNodeHttpClient=yrr;var _se=(Wn(),$n(Vn)),Lse=_se.__importDefault(B("node:http")),Use=_se.__importDefault(B("node:https")),G4e=_se.__importDefault(B("node:zlib")),prr=B("node:stream"),Y4e=Sk(),mrr=wE(),Fk=Yw(),Jw=Tk(),Err=Dk(),Crr={};function kk(t){return t&&typeof t.pipe=="function"}function J4e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function V4e(t){return t&&typeof t.byteLength=="number"}var gG=class extends prr.Transform{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}},Pse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Y4e.AbortError("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Err.Sanitizer;Jw.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=W4e(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new gG(g);p.on("error",C=>{Jw.logger.error("Error in upload progress",C)}),kk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Brr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new gG(h);g.on("error",p=>{Jw.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Qrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();kk(a)&&(c=J4e(a));let u=Promise.resolve();kk(A)&&(u=J4e(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Jw.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?Lse.default.request(a,A):Use.default.request(a,A);u.once("error",l=>{c(new Fk.RestError(l.message,{code:l.code??Fk.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Y4e.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&kk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):V4e(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Jw.logger.error("Unrecognized body type",n),c(new Fk.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Lse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Lse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Use.default.globalAgent;let s=e.tlsSettings??Crr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Jw.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Use.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irr(t){let e=(0,mrr.createHttpHeaders)();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}function Brr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=G4e.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=G4e.default.createInflate Line truncated
`.trim())}};Loe.exports=$O});var BT=C((Lzt,Goe)=>{"use strict";var Poe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mJe}=Vt(),EJe=I0();Hoe()===void 0&&Ooe(new EJe);function Ooe(t){if(!t||typeof t.dispatch!="function")throw new mJe("Argument agent must implement Agent");Object.defineProperty(globalThis,Poe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Hoe(){return globalThis[Poe]}Goe.exports={setGlobalDispatcher:Ooe,getGlobalDispatcher:Hoe}});var bT=C((Pzt,qoe)=>{"use strict";qoe.exports=class{#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 Voe=C((Ozt,Yoe)=>{"use strict";var CJe=tT();Yoe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new CJe(r,o,s,i);return r(a,A)}}});var Woe=C((Hzt,Joe)=>{"use strict";var IJe=dT();Joe.exports=t=>e=>function(n,s){return e(n,new IJe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var joe=C((Gzt,zoe)=>{"use strict";var yJe=Et(),{InvalidArgumentError:BJe,RequestAbortedError:bJe}=Vt(),QJe=bT(),e3=class extends QJe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new BJe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=yJe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new bJe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function wJe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new e3({maxSize:i},s);return e(n,o)}}zoe.exports=wJe});var Zoe=C((qzt,Xoe)=>{"use strict";var{isIP:SJe}=Q("node:net"),{lookup:NJe}=Q("node:dns"),TJe=bT(),{InvalidArgumentError:x0,InformationalError:xJe}=Vt(),Koe=Math.pow(2,31)-1,t3=class{#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.#i}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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new xJe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){NJe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Koe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Koe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new r3(this,e,r)}},r3=class extends TJe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(cx(e,s,Gje)){qje(e,i)&&(r.retry=e.toString("utf8",i));return}if(cx(e,s,Hje)){Yje(e,i)&&(r.id=e.toString("utf8",i));return}if(cx(e,s,Oje)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Mje(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&_je(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===q0[0]||(this.checkBOM=!1),!0):n===void 0?e===q0[0]&&r===q0[1]?!0:(this.checkBOM=!1,!1):(e===q0[0]&&r===q0[1]&&n===q0[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Rce.exports={EventSourceStream:V3}});var Pce=C((Ijt,Uce)=>{"use strict";var{pipeline:Vje}=Q("node:stream"),{fetching:Jje}=EB(),{makeRequest:Wje}=k0(),{webidl:tl}=ds(),{EventSourceStream:zje}=Dce(),{parseMIMEType:jje}=Bi(),{createFastMessageEvent:Kje}=U0(),{isNetworkError:kce}=pB(),{delay:Xje}=q3(),{kEnumerableProperty:Ag}=Et(),{environmentSettingsObject:vce}=so(),Fce=!1,Mce=3e3,kB=0,_ce=1,vB=2,Zje="anonymous",$je="use-credentials",Y0=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=kB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),tl.util.markAsUncloneable(this);let n="EventSource constructor";tl.argumentLengthCheck(arguments,1,n),Fce||(Fce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=tl.converters.USVString(e,n,"url"),r=tl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Mce};let s=vce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Zje;r.withCredentials&&(o=$je,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Wje(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===vB)return;this.#r=kB;let e={request:this.#i,dispatcher:this.#a},r=n=>{kce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=_ce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zje({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Kje(A.type,A.options))}});Vje(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Jje(e)}async#c(){this.#r!==vB&&(this.#r=kB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var Y=I.type==="*"?P8:I.type==="?"?U8:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+Y+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),re=n.slice(k.reEnd-8,k.reEnd),Ae=n.slice(k.reEnd);re+=Ae;var de=j.split("(").length-1,ke=Ae;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");Ae=ke;var ve="";Ae===""&&e!==Fx&&(ve="$");var rt=j+Z+Ae+ve+re;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===Fx)return[n,s];if(!s)return ZZe(t);var _t=r.nocase?"i":"";try{var Dt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Dt._glob=t,Dt._src=n,Dt}po.makeRe=function(t,e){return new Bn(t,e||{}).makeRe()};Bn.prototype.makeRe=XZe;function XZe(){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?P8:e.dot?qZe:YZe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===hg?r:typeof o=="string"?$Ze(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}po.match=function(t,e,r){r=r||{};var n=new Bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Bn.prototype.match=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;VB.sep!=="/"&&(e=e.split(VB.sep).join("/")),e=e.split(Rle),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Bn.prototype.matchOne=function(t,e,r){return e.indexOf(hg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===hg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===hg){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<c.length;B++){var F=c[B];F===hg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var Y=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[Y--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};Bn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};Bn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===hg)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function ZZe(t){return t.replace(/\\(.)/g,"$1")}function $Ze(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Z0=C((QXt,Lle)=>{"use strict";var a$e="2.0.0",A$e=Number.MAX_SAFE_INTEGER||9007199254740991,c$e=16,u$e=250,l$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lle.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:c$e,MAX_SAFE_BUILD_LENGTH:u$e,MAX_SAFE_INTEGER:A$e,RELEASE_TYPES:l$e,SEMVER_SPEC_VERSION:a$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var jB=C((wXt,Ule)=>{"use strict";var d$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ule.exports=d$e});var $0=C((fc,Ple)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:H8,MAX_SAFE_BUILD_LENGTH:h$e,MAX_LENGTH:f$e}=Z0(),g$e=jB();fc=Ple.exports={};var p$e=fc.re=[],m$e=fc.safeRe=[],ye=fc.src=[],E$e=fc.safeSrc=[],Be=fc.t={},C$e=0,G8="[a-zA-Z0-9-]",I$e=[["\\s",1],["\\d",f$e],[G8,h$e]],y$e=t=>{for(let[e,r]of I$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+wG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mnr()+e+" "+t[0]}function Mnr(){return uo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vnr(...t){return process.stderr.write(bG.formatWithOptions(uo.inspectOpts,...t)+`
`)}function Lnr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Unr(){return process.env.DEBUG}function Pnr(t){t.inspectOpts={};let e=Object.keys(uo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=uo.inspectOpts[e[r]]}wG.exports=nie()(uo);var{formatters:mYe}=wG.exports;mYe.o=function(t){return this.inspectOpts.colors=this.useColors,bG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};mYe.O=function(t){return this.inspectOpts.colors=this.useColors,bG.inspect(t,this.inspectOpts)}});var NG=f((YRn,oie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?oie.exports=lYe():oie.exports=EYe()});var BYe=f(HA=>{"use strict";var _nr=HA&&HA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Onr=HA&&HA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CYe=HA&&HA.__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)&&_nr(e,t,r);return Onr(e,t),e};Object.defineProperty(HA,"__esModule",{value:!0});HA.req=HA.json=HA.toBuffer=void 0;var Hnr=CYe(B("http")),qnr=CYe(B("https"));async function IYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}HA.toBuffer=IYe;async function Gnr(t){let r=(await IYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}HA.json=Gnr;function Ynr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qnr:Hnr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}HA.req=Ynr});var Aie=f(_c=>{"use strict";var yYe=_c&&_c.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Jnr=_c&&_c.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bYe=_c&&_c.__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)&&yYe(e,t,r);return Jnr(e,t),e},Vnr=_c&&_c.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yYe(e,t,r)};Object.defineProperty(_c,"__esModule",{value:!0});_c.Agent=void 0;var Wnr=bYe(B("net")),QYe=bYe(B("http")),znr=B("https");Vnr(BYe(),_c);var Gh=Symbol("AgentBaseInternalState"),aie=class extends QYe.Agent{constructor(e){super(e),this[Gh]={}}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 Wnr.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)?znr.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof QYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[Gh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gh].currentSocket;if(this[Gh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gh]&&(this[Gh].defaultPort=e)}get protocol(){return this[Gh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gh]&&(this[Gh].protocol=e)}};_c.Agent=aie});var wYe=f(nN=>{"use strict";var jnr=nN&&nN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nN,"__esModule",{value:!0});nN.parseProxyResponse=void 0;var Knr=jnr(NG()),SG=(0,Knr.default)("https-proxy-agent:parse-proxy-response");function Xnr(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),SG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),SG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+yR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=unt()+e+" "+t[0]}function unt(){return Wn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lnt(...t){return process.stderr.write(IR.formatWithOptions(Wn.inspectOpts,...t)+`
`)}function dnt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function hnt(){return process.env.DEBUG}function fnt(t){t.inspectOpts={};let e=Object.keys(Wn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Wn.inspectOpts[e[r]]}yR.exports=D4()(Wn);var{formatters:ffe}=yR.exports;ffe.o=function(t){return this.inspectOpts.colors=this.useColors,IR.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};ffe.O=function(t){return this.inspectOpts.colors=this.useColors,IR.inspect(t,this.inspectOpts)}});var BR=C((ter,F4)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?F4.exports=Afe():F4.exports=gfe()});var Efe=C(Ri=>{"use strict";var gnt=Ri&&Ri.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pnt=Ri&&Ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pfe=Ri&&Ri.__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)&&gnt(e,t,r);return pnt(e,t),e};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.req=Ri.json=Ri.toBuffer=void 0;var mnt=pfe(Q("http")),Ent=pfe(Q("https"));async function mfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}Ri.toBuffer=mfe;async function Cnt(t){let r=(await mfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}Ri.json=Cnt;function Int(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ent:mnt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}Ri.req=Int});var _4=C(Co=>{"use strict";var Ife=Co&&Co.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ynt=Co&&Co.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yfe=Co&&Co.__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)&&Ife(e,t,r);return ynt(e,t),e},Bnt=Co&&Co.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ife(e,t,r)};Object.defineProperty(Co,"__esModule",{value:!0});Co.Agent=void 0;var bnt=yfe(Q("net")),Cfe=yfe(Q("http")),Qnt=Q("https");Bnt(Efe(),Co);var mc=Symbol("AgentBaseInternalState"),M4=class extends Cfe.Agent{constructor(e){super(e),this[mc]={}}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 bnt.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)?Qnt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Cfe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[mc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[mc].currentSocket;if(this[mc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mc]&&(this[mc].defaultPort=e)}get protocol(){return this[mc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mc]&&(this[mc].protocol=e)}};Co.Agent=M4});var Bfe=C(AE=>{"use strict";var wnt=AE&&AE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(AE,"__esModule",{value:!0});AE.parseProxyResponse=void 0;var Snt=wnt(BR()),bR=(0,Snt.default)("https-proxy-agent:parse-proxy-response");function Nnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),bR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),bR("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){SG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}SG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}nN.parseProxyResponse=Xnr});var cie=f(Ku=>{"use strict";var Znr=Ku&&Ku.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$nr=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DYe=Ku&&Ku.__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)&&Znr(e,t,r);return $nr(e,t),e},xYe=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.HttpsProxyAgent=void 0;var RG=DYe(B("net")),NYe=DYe(B("tls")),esr=xYe(B("assert")),tsr=xYe(NG()),rsr=Aie(),nsr=B("url"),ssr=wYe(),Lk=(0,tsr.default)("https-proxy-agent"),SYe=t=>t.servername===void 0&&t.host&&!RG.isIP(t.host)?{...t,servername:t.host}:t,DG=class extends rsr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new nsr.URL(e):e,this.proxyHeaders=r?.headers??{},Lk("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?RYe(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:"?(Lk("Creating `tls.Socket`: %o",this.connectOpts),s=NYe.connect(SYe(this.connectOpts))):(Lk("Creating `net.Socket`: %o",this.connectOpts),s=RG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=RG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){bR("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let F=y.slice(0,B).toLowerCase(),Y=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,Y]:Array.isArray(L)?L.push(Y):I[F]=Y}bR("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}AE.parseProxyResponse=Nnt});var Tfe=C(la=>{"use strict";var Tnt=la&&la.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xnt=la&&la.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sfe=la&&la.__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)&&Tnt(e,t,r);return xnt(e,t),e},Nfe=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.HttpsProxyAgent=void 0;var QR=Sfe(Q("net")),bfe=Sfe(Q("tls")),Rnt=Nfe(Q("assert")),Dnt=Nfe(BR()),knt=_4(),vnt=Q("url"),Fnt=Bfe(),cb=(0,Dnt.default)("https-proxy-agent"),Qfe=t=>t.servername===void 0&&t.host&&!QR.isIP(t.host)?{...t,servername:t.host}:t,wR=class extends knt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vnt.URL(e):e,this.proxyHeaders=r?.headers??{},cb("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?wfe(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:"?(cb("Creating `tls.Socket`: %o",this.connectOpts),s=bfe.connect(Qfe(this.connectOpts))):(cb("Creating `net.Socket`: %o",this.connectOpts),s=QR.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=QR.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,ssr.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",isr),r.secureEndpoint?(Lk("Upgrading socket connection to TLS"),NYe.connect({...RYe(SYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new RG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Lk("Replaying proxy buffer for failed request"),(0,esr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};DG.protocols=["http","https"];Ku.HttpsProxyAgent=DG;function isr(t){t.resume()}function RYe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var uie=f(Xu=>{"use strict";var osr=Xu&&Xu.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),asr=Xu&&Xu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kYe=Xu&&Xu.__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)&&osr(e,t,r);return asr(e,t),e},Asr=Xu&&Xu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xu,"__esModule",{value:!0});Xu.HttpProxyAgent=void 0;var csr=kYe(B("net")),usr=kYe(B("tls")),lsr=Asr(NG()),dsr=B("events"),hsr=Aie(),TYe=B("url"),sN=(0,lsr.default)("http-proxy-agent"),xG=class extends hsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new TYe.URL(e):e,this.proxyHeaders=r?.headers??{},sN("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?gsr(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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new TYe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;sN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(sN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let A=(0,Fnt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Mnt),r.secureEndpoint?(cb("Upgrading socket connection to TLS"),bfe.connect({...wfe(Qfe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new QR.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cb("Replaying proxy buffer for failed request"),(0,Rnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};wR.protocols=["http","https"];la.HttpsProxyAgent=wR;function Mnt(t){t.resume()}function wfe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dfe=C(da=>{"use strict";var _nt=da&&da.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Lnt=da&&da.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rfe=da&&da.__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)&&_nt(e,t,r);return Lnt(e,t),e},Unt=da&&da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(da,"__esModule",{value:!0});da.HttpProxyAgent=void 0;var Pnt=Rfe(Q("net")),Ont=Rfe(Q("tls")),Hnt=Unt(BR()),Gnt=Q("events"),qnt=_4(),xfe=Q("url"),cE=(0,Hnt.default)("http-proxy-agent"),SR=class extends qnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new xfe.URL(e):e,this.proxyHeaders=r?.headers??{},cE("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?Ynt(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:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new xfe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;cE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(cE("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),sN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(sN("Creating `tls.Socket`: %o",this.connectOpts),i=usr.connect(this.connectOpts)):(sN("Creating `net.Socket`: %o",this.connectOpts),i=csr.connect(this.connectOpts)),await(0,dsr.once)(i,"connect"),i}};xG.protocols=["http","https"];Xu.HttpProxyAgent=xG;function gsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lie=f(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.globalNoProxyList=Zu.proxyPolicyName=void 0;Zu.loadNoProxy=UYe;Zu.getDefaultProxySettings=bsr;Zu.proxyPolicy=Nsr;var fsr=cie(),psr=uie(),msr=Tk(),Esr="HTTPS_PROXY",Csr="HTTP_PROXY",Isr="ALL_PROXY",Bsr="NO_PROXY";Zu.proxyPolicyName="proxyPolicy";Zu.globalNoProxyList=[];var vYe=!1,Qsr=new Map;function TG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function LYe(){if(!process)return;let t=TG(Esr),e=TG(Isr),r=TG(Csr);return t||e||r}function ysr(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function UYe(){let t=TG(Bsr);return vYe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function bsr(t){if(!t&&(t=LYe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function wsr(){let t=LYe();return t?new URL(t):void 0}function FYe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function MYe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&msr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new psr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new fsr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function Nsr(t,e){vYe||Zu.globalNoProxyList.push(...UYe());let r=t?FYe(t):wsr(),n={};return{name:Zu.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!ysr(s.url,e?.customNoProxyList??Zu.globalNoProxyList,e?.customNoProxyList?void 0:Qsr)?MYe(s,n,r):s.proxySettings&&MYe(s,n,FYe(s.proxySettings)),i(s)}}}});var die=f(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});iN.agentPolicyName=void 0;iN.agentPolicy=Ssr;iN.agentPolicyName="agentPolicy";function Ssr(t){return{name:iN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var hie=f(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0});oN.tlsPolicyName=void 0;oN.tlsPolicy=Rsr;oN.tlsPolicyName="tlsPolicy";function Rsr(t){return{name:oN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Uk=f(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.isNodeReadableStream=PYe;t0.isWebReadableStream=_Ye;t0.isBinaryBody=Dsr;t0.isReadableStream=OYe;t0.isBlob=xsr;function PYe(t){return!!(t&&typeof t.pipe=="function")}function _Ye(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Dsr(t){return t!==void 0&&(t instanceof Uint8Array||OYe(t)||typeof t=="function"||t instanceof Blob)}function OYe(t){return PYe(t)||_Ye(t)}function xsr(t){return typeof t.stream=="function"}});var GYe=f(fie=>{"use strict";Object.defineProperty(fie,"__esModule",{value:!0});fie.concat=Msr;var gie=B("stream"),Tsr=Uk();async function*HYe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function ksr(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=HYe.bind(t)),t.values||(t.values=HYe.bind(t))}function qYe(t){return t instanceof ReadableStream?(ksr(t),gie.Readable.fromWeb(t)):t}function Fsr(t){return t instanceof Uint8Array?gie.Readable.from(Buffer.from(t)):(0,Tsr.isBlob)(t)?qYe(t.stream()):qYe(t)}async function Msr(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(Fsr);return gie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var pie=f(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});AN.multipartPolicyName=void 0;AN.multipartPolicy=Vsr;var aN=ZB(),vsr=Uk(),Lsr=aG(),Usr=GYe();function Psr(){return`----AzSDKFormBoundary${(0,Lsr.randomUUID)()}`}function _sr(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Osr(t){return t instanceof Uint8Array?t.byteLength:(0,vsr.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Hsr(t){let e=0;for(let r of t){let n=Osr(r);if(n===void 0)return;e+=n}return e}async function qsr(t,e,r){let n=[(0,aN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,aN.stringToUint8Array)(`\r
`,"utf-8"),(0,aN.stringToUint8Array)(_sr(i.headers),"utf-8"),(0,aN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,aN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,aN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Hsr(n);s&&t.headers.set("Content-Length",s),t.body=await(0,Usr.concat)(n)}AN.multipartPolicyName="multipartPolicy";var Gsr=70,Ysr=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Jsr(t){if(t.length>Gsr)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Ysr.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Vsr(){return{name:AN.multipartPolicyName,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Jsr(r):r=Psr(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await qsr(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var VYe=f(mie=>{"use strict";Object.defineProperty(mie,"__esModule",{value:!0});mie.createPipelineFromOptions=nir;var Wsr=qse(),zsr=xse(),jsr=Gse(),Ksr=Vse(),Xsr=Wse(),Zsr=tie(),$sr=rie(),YYe=vk(),eir=lie(),tir=die(),rir=hie(),JYe=pie();function nir(t){let e=(0,zsr.createEmptyPipeline)();return YYe.isNodeLike&&(t.agent&&e.addPolicy((0,tir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,rir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,eir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Xsr.decompressResponsePolicy)())),e.addPolicy((0,$sr.formDataPolicy)(),{beforePolicies:[JYe.multipartPolicyName]}),e.addPolicy((0,Ksr.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,JYe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,Zsr.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),YYe.isNodeLike&&e.addPolicy((0,jsr.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,Wsr.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var WYe=f(cN=>{"use strict";Object.defineProperty(cN,"__esModule",{value:!0});cN.apiVersionPolicyName=void 0;cN.apiVersionPolicy=sir;cN.apiVersionPolicyName="ApiVersionPolicy";function sir(t){return{name:cN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var zYe=f(uN=>{"use strict";Object.defineProperty(uN,"__esModule",{value:!0});uN.isOAuth2TokenCredential=iir;uN.isBearerTokenCredential=oir;uN.isBasicCredential=air;uN.isApiKeyCredential=Air;function iir(t){return"getOAuth2Token"in t}function oir(t){return"getBearerToken"in t}function air(t){return"username"in t&&"password"in t}function Air(t){return"key"in t}});var Pk=f(Eie=>{"use strict";Object.defineProperty(Eie,"__esModule",{value:!0});Eie.ensureSecureConnection=dir;var cir=Tk(),jYe=!1;function uir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function lir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";cir.logger.warning(t),typeof process?.emitWarning=="function"&&!jYe&&(jYe=!0,process.emitWarning(t))}function dir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(uir(t,e))lir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var KYe=f(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0});lN.apiKeyAuthenticationPolicyName=void 0;lN.apiKeyAuthenticationPolicy=gir;var hir=Pk();lN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function gir(t){return{name:lN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,hir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var ZYe=f(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});dN.basicAuthenticationPolicyName=void 0;dN.basicAuthenticationPolicy=pir;var XYe=ZB(),fir=Pk();dN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function pir(t){return{name:dN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,fir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,XYe.uint8ArrayToString)((0,XYe.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var $Ye=f(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var V6e=f(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.auxiliaryAuthenticationHeaderPolicyName=void 0;i0.auxiliaryAuthenticationHeaderPolicy=tcr;var ZAr=Boe(),$Ar=Hk();i0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var J6e="x-ms-authorization-auxiliary";async function ecr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function tcr(t){let{credentials:e,scopes:r}=t,n=t.logger||$Ar.logger,s=new WeakMap;return{name:i0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${i0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,ZAr.createTokenCycler)(c),s.set(c,u)),a.push(ecr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${J6e} header will not be set.`),o(i)):(i.headers.set(J6e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Yi=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var rcr=Die();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return rcr.createEmptyPipeline}});var ncr=R6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return ncr.createPipelineFromOptions}});var scr=D6e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return scr.createDefaultHttpClient}});var icr=x6e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return icr.createHttpHeaders}});var ocr=T6e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return ocr.createPipelineRequest}});var W6e=$G();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return W6e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return W6e.isRestError}});var z6e=$ie();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return z6e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return z6e.decompressResponsePolicyName}});var j6e=F6e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return j6e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return j6e.exponentialRetryPolicyName}});var K6e=soe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return K6e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return K6e.setClientRequestIdPolicyName}});var X6e=Pie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return X6e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return X6e.logPolicyName}});var Z6e=Zie();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return Z6e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return Z6e.multipartPolicyName}});var Qoe=noe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Qoe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Qoe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Qoe.getDefaultProxySettings}});var $6e=_ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return $6e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Fe=h(Q,J);if(Fe===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Fe.value;if(J=Fe.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Fe.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=mc(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Fe=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Fe=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Fe=q.lastIndexOf("."),q=q.substring(0,Fe),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=HI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=mc(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=mc(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=HI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Fe=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Gs="";if(Fe.length>0&&Fe.lastIndexOf("/")===Fe.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Fe=ae):Fe=Fe.substr(0,Fe.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let bu=this.readStopNodeData(Q,Ee,bt+1);if(!bu)throw new Error(`Unexpected end of ${Ee}`);J=bu.i,Gs=bu.tagContent}let Ua=new F(ae);ae!==Fe&&zt&&(Ua[":@"]=this.buildAttributesMap(Fe,q,ae)),Gs&&(Gs=this.parseTextData(Gs,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),Ua.add(this.options.textNodeName,Gs),this.addChild(P,Ua,q,hn)}else{if(Fe.length>0&&Fe.lastIndexOf("/")===Fe.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Fe=ae):Fe=Fe.substr(0,Fe.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Gs=new F(ae);ae!==Fe&&zt&&(Gs[":@"]=this.buildAttributesMap(Fe,q,ae)),this.addChild(P,Gs,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Gs=new F(ae);this.tagsNodeStack.push(P),ae!==Fe&&zt&&(Gs[":@"]=this.buildAttributesMap(Fe,q,ae)),this.addChild(P,Gs,q,hn),P=Gs}j="",J=bt}}else j+=Q[J];return b.child};function _I(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let OI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function mc(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function HI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Gs,Ua="";for(let bu=pr;bu<bt.length;bu++){let Ec=bt[bu];if(Gs)Ec===Gs&&(Gs="");else if(Ec==='"'||Ec==="'")Gs=Ec;else if(Ec===hn[0]){if(!hn[1])return{data:Ua,index:bu};if(bt[bu+1]===hn[1])return{data:Ua,index:bu}}else Ec===" "&&(Ec=" ");Ua+=Ec}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Fe=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Fe=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Tf(Q,b,"",P)}function Tf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=mA(ae);if(Ee===void 0)continue;let Fe="";if(Fe=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];vm(Fe,b)||(hn=b.tagValueProcessor(Ee,hn),hn=zI(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=EA(ae[":@"],b),Gs=Ee==="?xml"?"":j,Ua=ae[Ee][0][b.textNodeName];Ua=Ua.length!==0?" "+Ua:"",q+=Gs+`<${Ee}${Ua}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${EA(ae[":@"],b)}`,pr=Tf(ae[Ee],b,Fe,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function mA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function EA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=zI(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function vm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function zI(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?WI(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Fe="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Fe+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Fe,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Fe=0;Fe<Ee;Fe++)j+=this.buildAttrPairStr(ae[Fe],""+Q[ue][ae[Fe]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};AJe.exports=e})()});var joe=f(vN=>{"use strict";Object.defineProperty(vN,"__esModule",{value:!0});vN.XML_CHARKEY=vN.XML_ATTRKEY=void 0;vN.XML_ATTRKEY="$";vN.XML_CHARKEY="_"});var dJe=f(B8=>{"use strict";Object.defineProperty(B8,"__esModule",{value:!0});B8.stringifyXML=mlr;B8.parseXML=Elr;var Koe=cJe(),uJe=joe();function lJe(t){var e;return{attributesGroupName:uJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:uJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function flr(t={}){var e,r;return Object.assign(Object.assign({},lJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function plr(t={}){return Object.assign(Object.assign({},lJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(la.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===la.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(la.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,cdr.compareHeader)(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=(0,FJe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,FJe.getURLQueries)(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};L8.StorageSharedKeyCredentialPolicy=gae});var MJe=f(U8=>{"use strict";Object.defineProperty(U8,"__esModule",{value:!0});U8.StorageSharedKeyCredential=void 0;var udr=B("node:crypto"),ldr=fae(),ddr=M8(),pae=class extends ddr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ldr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,udr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};U8.StorageSharedKeyCredential=pae});var vJe=f(P8=>{"use strict";Object.defineProperty(P8,"__esModule",{value:!0});P8.AbortError=void 0;var mae=class extends Error{constructor(e){super(e),this.name="AbortError"}};P8.AbortError=mae});var Eae=f(_8=>{"use strict";Object.defineProperty(_8,"__esModule",{value:!0});_8.AbortError=void 0;var hdr=vJe();Object.defineProperty(_8,"AbortError",{enumerable:!0,get:function(){return hdr.AbortError}})});var Cae=f(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.logger=void 0;var gdr=r0();O8.logger=(0,gdr.createClientLogger)("storage-common")});var Iae=f(H8=>{"use strict";Object.defineProperty(H8,"__esModule",{value:!0});H8.StorageRetryPolicyType=void 0;var LJe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(LJe||(H8.StorageRetryPolicyType=LJe={}))});var PJe=f(g2=>{"use strict";Object.defineProperty(g2,"__esModule",{value:!0});g2.StorageRetryPolicy=void 0;g2.NewRetryPolicyFactory=mdr;var fdr=Eae(),pdr=h2(),UJe=dp(),Bae=a0(),kE=Cae(),Qae=Iae();function mdr(t){return{create:(e,r)=>new q8(e,r,t)}}var FE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Qae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Edr=new fdr.AbortError("The operation was aborted."),q8=class extends pdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=FE){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:FE.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):FE.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:FE.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:FE.maxRetryDelayInMs):FE.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:FE.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:FE.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=(0,Bae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,Bae.setURLParameter)(s.url,UJe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(kE.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(kE.logger.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return kE.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return kE.logger.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return kE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return kE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(UJe.HeaderConstants.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(kE.logger.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 Qae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Qae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return kE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,Bae.delay)(s,n,Edr)}};g2.StorageRetryPolicy=q8});var wae=f(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,xdr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(da.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===da.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(da.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,Tdr.compareHeader)(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=(0,YJe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,YJe.getURLQueries)(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:qN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var VJe=f(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.storageRequestFailureDetailsParserPolicyName=void 0;GN.storageRequestFailureDetailsParserPolicy=Fdr;GN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function Fdr(){return{name:GN.storageRequestFailureDetailsParserPolicyName,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}}}}});var WJe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.UserDelegationKeyCredential=void 0;var Mdr=B("node:crypto"),Dae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Mdr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};G8.UserDelegationKeyCredential=Dae});var yd=f(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.BaseRequestPolicy=js.getCachedDefaultHttpClient=void 0;var ha=(Wn(),$n(Vn));ha.__exportStar(mJe(),js);var vdr=EJe();Object.defineProperty(js,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return vdr.getCachedDefaultHttpClient}});ha.__exportStar(IJe(),js);ha.__exportStar(TJe(),js);ha.__exportStar(kJe(),js);ha.__exportStar(M8(),js);ha.__exportStar(MJe(),js);ha.__exportStar(wae(),js);var Ldr=h2();Object.defineProperty(js,"BaseRequestPolicy",{enumerable:!0,get:function(){return Ldr.BaseRequestPolicy}});ha.__exportStar(cae(),js);ha.__exportStar(T8(),js);ha.__exportStar(_Je(),js);ha.__exportStar(OJe(),js);ha.__exportStar(GJe(),js);ha.__exportStar(fae(),js);ha.__exportStar(JJe(),js);ha.__exportStar(VJe(),js);ha.__exportStar(WJe(),js)});var Oc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var ME=f(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.Pipeline=zh.StorageOAuthScopes=void 0;zh.isPipelineLike=Pdr;zh.newPipeline=_dr;zh.getCoreClientOptions=Hdr;zh.getCredentialFromPipeline=ZJe;var XJe=I8(),zJe=Yi(),jJe=Jh(),KJe=Xoe(),xae=xN(),Udr=y8(),Hc=yd(),f2=Oc();Object.defineProperty(zh,"StorageOAuthScopes",{enumerable:!0,get:function(){return f2.StorageOAuthScopes}});function Pdr(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Y8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};zh.Pipeline=Y8;function _dr(t,e={}){t||(t=new Hc.AnonymousCredential);let r=new Y8([],e);return r._credential=t,r}function Odr(t){let e=[qdr,$Je,Gdr,Ydr,Jdr,Vdr,zdr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Wdr(s));return{wrappedPolicies:(0,XJe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function Hdr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,XJe.convertHttpClient)(e):(0,Hc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${f2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,jJe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:f2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:f2.StorageBlobLoggingAllowedQueryParameters,logger:Udr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:KJe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new h0.SASQueryParameters(t.version,i,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}}function ifr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,d0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function ofr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,d0.ipRangeToString)(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function afr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,d0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function Afr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,d0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function cfr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,d0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function ufr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,d0.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new h0.SASQueryParameters(t.version,o,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:i}}function g0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function f0(t){let e=t.version?t.version:PVe.SERVICE_VERSION;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}});var g3=f(h3=>{"use strict";Object.defineProperty(h3,"__esModule",{value:!0});h3.BlobLeaseClient=void 0;var lfr=Is(),Kh=Oc(),m2=c0(),d3=el(),$ae=class{_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=(0,lfr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Kh.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,d3.assertResponse)(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!==Kh.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,d3.assertResponse)(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!==Kh.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,d3.assertResponse)(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!==Kh.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${iWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(sWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function _fr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await Pfr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(oWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!iWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}qE.pollOperation=_fr});var QAe=f(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.pollHttpOperation=Xs.isOperationError=Xs.getResourceLocation=Xs.getOperationStatus=Xs.getOperationLocation=Xs.initHttpOperation=Xs.getStatusFromInitialResponse=Xs.getErrorFromResponse=Xs.parseRetryAfter=Xs.inferLroMode=void 0;var aWe=S3(),CAe=w3();function AWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function cWe(t){return t.headers.location}function uWe(t){return t.headers["operation-location"]}function lWe(t){return t.headers["azure-asyncoperation"]}function Ofr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function dWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=uWe(e),o=lWe(e),a=AWe({operationLocation:i,azureAsyncOperation:o}),A=cWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Ofr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Xs.inferLroMode=dWe;function hWe(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 IAe(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 CAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Hfr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return hWe({status:r,statusCode:t.statusCode})}function qfr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return hWe({status:i,statusCode:t.statusCode})}function IAe(t){return t===202?"running":t<300?"succeeded":"failed"}function gWe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Gfr(new Date(e)):r*1e3}}Xs.parseRetryAfter=gWe;function fWe(t){let e=EWe(t,"error");if(!e){CAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){CAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Xs.getErrorFromResponse=fWe;function Gfr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function pWe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return IAe(e.rawResponse.statusCode);case"Body":return BAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Xs.getStatusFromInitialResponse=pWe;async function Yfr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,aWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=dWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:pWe,setErrorAsResult:i})}Xs.initHttpOperation=Yfr;function mWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,A4.truncatedISO8061Date)(t.startsOn,!1):"",(0,A4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,VWe.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xpr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var ZWe=f(l4=>{"use strict";Object.defineProperty(l4,"__esModule",{value:!0});l4.BlobServiceClient=void 0;var emr=xN(),tmr=Yi(),zWe=Is(),B2=ME(),rmr=WAe(),u4=el(),C0=yd(),tg=el(),rg=c0(),nmr=$3(),smr=n3(),jWe=s4(),KWe=ZAe(),XWe=a4(),$Ae=class t extends smr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,u4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(zWe.isNodeLike){let s=new C0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,tmr.getDefaultProxySettings)(n.proxyUri));let i=(0,B2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,B2.newPipeline)(new C0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,B2.isPipelineLike)(r)?s=r:zWe.isNodeLike&&r instanceof C0.StorageSharedKeyCredential||r instanceof C0.AnonymousCredential||(0,emr.isTokenCredential)(r)?s=(0,B2.newPipeline)(r,n):s=(0,B2.newPipeline)(new C0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new rmr.ContainerClient((0,u4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return rg.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,tg.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,tg.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,tg.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return rg.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,tg.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,u4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};JA.NetworkError=f4;f4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var p4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};JA.UsageError=p4;p4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var nze=f(VA=>{"use strict";var cmr=VA&&VA.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),umr=VA&&VA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lmr=VA&&VA.__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)&&cmr(e,t,r);return umr(e,t),e},dmr=VA&&VA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(VA,"__esModule",{value:!0});VA.uploadCacheArchiveSDK=VA.UploadProgress=void 0;var oce=lmr(Uc()),hmr=ece(),gmr=ice(),m4=class{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);oce.info(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};VA.UploadProgress=m4;function fmr(t,e,r){var n;return dmr(this,void 0,void 0,function*(){let s=new hmr.BlobClient(t),i=s.getBlockBlobClient(),o=new m4((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),oce.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new gmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw oce.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}VA.uploadCacheArchiveSDK=fmr});var Ace=f($s=>{"use strict";var pmr=$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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mmr=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Emr=$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)&&pmr(e,t,r);return mmr(e,t),e},C4=$s&&$s.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty($s,"__esModule",{value:!0});$s.retryHttpClientResponse=$s.retryTypedResponse=$s.retry=$s.isRetryableStatusCode=$s.isServerErrorStatusCode=$s.isSuccessStatusCode=void 0;var sze=Emr(Uc()),E4=JB(),sS=Ow();function Cmr(t){return t?t>=200&&t<300:!1}$s.isSuccessStatusCode=Cmr;function ize(t){return t?t>=500:!0}$s.isServerErrorStatusCode=ize;function oze(t){return t?[E4.HttpCodes.BadGateway,E4.HttpCodes.ServiceUnavailable,E4.HttpCodes.GatewayTimeout].includes(t):!1}$s.isRetryableStatusCode=oze;function Imr(t){return C4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ace(t,e,r,n=sS.DefaultRetryAttempts,s=sS.DefaultRetryDelay,i=void 0){return C4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!ize(c)))return A;if(c&&(u=oze(c),o=`Cache service responded with ${c}`),sze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Yc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nEr(t,e,r){return WA(this,void 0,void 0,function*(){let n=new jmr.URL(t),s=(0,fce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,y4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,y4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,y4.downloadCacheHttpClient)(t,e):yield(0,y4.downloadCacheHttpClient)(t,e)})}po.downloadCache=nEr;function sEr(t,e,r){return WA(this,void 0,void 0,function*(){let n=pce(),s=aS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,VE.retryTypedResponse)("reserveCache",()=>WA(this,void 0,void 0,function*(){return n.postJson(S2("caches"),i)}))})}po.reserveCache=sEr;function Eze(t,e){return`bytes ${t}-${e}/*`}function iEr(t,e,r,n,s){return WA(this,void 0,void 0,function*(){Yc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eze(n,s)},o=yield(0,VE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>WA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,VE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function oEr(t,e,r,n){return WA(this,void 0,void 0,function*(){let s=aS.getArchiveFileSizeInBytes(r),i=S2(`caches/${e.toString()}`),o=hce.openSync(r,"r"),a=(0,fce.getUploadOptions)(n),A=aS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=aS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Yc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>WA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield iEr(t,i,()=>hce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{hce.closeSync(o)}})}function aEr(t,e,r){return WA(this,void 0,void 0,function*(){let n={size:r};return yield(0,VE.retryTypedResponse)("commitCache",()=>WA(this,void 0,void 0,function*(){return t.postJson(S2(`caches/${e.toString()}`),n)}))})}function AEr(t,e,r,n){return WA(this,void 0,void 0,function*(){if((0,fce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Kmr.uploadCacheArchiveSDK)(r,e,n)}else{let i=pce();Yc.debug("Upload cache"),yield oEr(i,t,e,n),Yc.debug("Commiting cache");let o=aS.getArchiveFileSizeInBytes(e);Yc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield aEr(i,t,o);if(!(0,VE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Yc.info("Cache saved successfully")}})}po.saveCache=AEr});var b4=f(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.isJsonObject=AS.typeofJsonValue=void 0;function cEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}AS.typeofJsonValue=cEr;function uEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}AS.isJsonObject=uEr});var N4=f(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.base64encode=cS.base64decode=void 0;var pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),w4=[];for(let t=0;t<pp.length;t++)w4[pp[t].charCodeAt(0)]=t;w4[45]=pp.indexOf("+");w4[95]=pp.indexOf("/");function lEr(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=w4[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}cS.base64decode=lEr;function dEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=pp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=pp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=pp[s|n>>6],e+=pp[n&63],r=0;break}return r&&(e+=pp[s],e+="=",r==1&&(e+="=")),e}cS.base64encode=dEr});var Ize=f(S4=>{"use strict";Object.defineProperty(S4,"__esModule",{value:!0});S4.utf8read=void 0;var mce=t=>String.fromCharCode.apply(String,t);function hEr(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(mce(n)),s=0);return r.length?(s&&r.push(mce(n.slice(0,s))),r.join("")):mce(n.slice(0,s))}S4.utf8read=hEr});var R2=f(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.WireType=ng.mergeBinaryOptions=ng.UnknownFieldHandler=void 0;var gEr;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(gEr=ng.UnknownFieldHandler||(ng.UnknownFieldHandler={}));function fEr(t,e){return Object.assign(Object.assign({},t),e)}ng.mergeBinaryOptions=fEr;var pEr;(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"})(pEr=ng.WireType||(ng.WireType={}))});var D4=f(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA.varint32read=zA.varint32write=zA.int64toString=zA.int64fromString=zA.varint64write=zA.varint64read=void 0;function mEr(){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")}zA.varint64read=mEr;function EEr(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}zA.varint64write=EEr;var R4=65536*65536;function CEr(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=R4&&(s=s+(n/R4|0),n=n%R4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}zA.int64fromString=CEr;function IEr(t,e){if(e>>>0<=2097151)return""+(R4*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}zA.int64toString=IEr;function BEr(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)}}zA.varint32write=BEr;function QEr(){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}zA.varint32read=QEr});var zE=f(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});WE.PbLong=WE.PbULong=WE.detectBi=void 0;var D2=D4(),_n;function Bze(){let t=new DataView(new ArrayBuffer(8));_n=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}WE.detectBi=Bze;Bze();function Qze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var yze=/^-?[0-9]+$/,T4=4294967296,x4=2147483648, Line truncated
`)}};rY.RpcError=Yce});var Vce=f(sY=>{"use strict";Object.defineProperty(sY,"__esModule",{value:!0});sY.mergeRpcOptions=void 0;var $ze=lr();function YCr(t,e){if(!e)return t;let r={};nY(t,r),nY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$ze.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$ze.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},nY(t.meta,r.meta),nY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}sY.mergeRpcOptions=YCr;function nY(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}});var zce=f(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.Deferred=Q0.DeferredState=void 0;var og;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(og=Q0.DeferredState||(Q0.DeferredState={}));var Wce=class{constructor(e=!0){this._state=og.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!==og.PENDING)throw new Error(`cannot resolve ${og[this.state].toLowerCase()}`);this._resolve(e),this._state=og.RESOLVED}reject(e){if(this.state!==og.PENDING)throw new Error(`cannot reject ${og[this.state].toLowerCase()}`);this._reject(e),this._state=og.REJECTED}resolvePending(e){this._state===og.PENDING&&this.resolve(e)}rejectPending(e){this._state===og.PENDING&&this.reject(e)}};Q0.Deferred=Wce});var Kce=f(iY=>{"use strict";Object.defineProperty(iY,"__esModule",{value:!0});iY.RpcOutputStreamController=void 0;var eje=zce(),y0=lr(),jce=class{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){y0.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){y0.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){y0.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(){y0.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:()=>{let e=this._itState;y0.assert(e,"bad state"),y0.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 eje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;y0.assert(n.state==eje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};iY.RpcOutputStreamController=jce});var Zce=f(pS=>{"use strict";var JCr=pS&&pS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(pS,"__esModule",{value:!0});pS.UnaryCall=void 0;var Xce=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 JCr(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}})}};pS.UnaryCall=Xce});var eue=f(mS=>{"use strict";var VCr=mS&&mS.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(mS,"__esModule",{value:!0});mS.ServerStreamingCall=void 0;var $ce=class Line truncated
`));let n=yield yue(r,"create");yield bue(n,t)})}ga.createTar=OIr});var V2=f(Mi=>{"use strict";var HIr=Mi&&Mi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qIr=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Y2=Mi&&Mi.__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)&&HIr(e,t,r);return qIr(e,t),e},FS=Mi&&Mi.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.saveCache=Mi.restoreCache=Mi.isFeatureAvailable=Mi.ReserveCacheError=Mi.ValidationError=void 0;var dr=Y2(Uc()),hY=Y2(B("path")),ys=Y2(qw()),TS=Y2(Cze()),Cje=Y2(fje()),J2=B4(),XE=Eje(),GIr=Ow(),i2n=JB(),ZE=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Mi.ValidationError=ZE;var G2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Mi.ReserveCacheError=G2;function Ije(t){if(!t||t.length===0)throw new ZE("Path Validation Error: At least one directory or file path is required")}function wue(t){if(t.length>512)throw new ZE(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ZE(`Key Validation Error: ${t} cannot contain commas.`)}function YIr(){return(0,J2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}Mi.isFeatureAvailable=YIr;function JIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){let i=(0,J2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Ije(t),i==="v2"?yield WIr(t,e,r,n,s):yield VIr(t,e,r,n,s)})}Mi.restoreCache=JIr;function VIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new ZE("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)wue(A);let o=yield ys.getCompressionMethod(),a="";try{let A=yield TS.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=hY.join(yield ys.createTempDirectory(),ys.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield TS.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,XE.listTar)(a,o));let c=ys.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,XE.extractTar)(a,o),dr.info("Cache restored successfully"),new kS(A.cacheKey,c)}finally{try{yield ys.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function WIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new ZE("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)wue(a);let o="";try{let a=Cje.internalCacheTwirpClient(),A=yield ys.getCompressionMethod(),c={key:e,restoreKeys:r,version:ys.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=hY.join(yield ys.createTempDirectory(),ys.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield TS.downloadCache(u.signedDownloadUrl,o,n);let d=ys.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,XE.listTar)(o,A)),yield(0,XE.extractTar)(o,A),dr.info("Cache restored successfully"),new kS(u.matchedKey,d)}finally{try{o&&(yield ys.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function zIr(t,e,r,n=!1){return FS(this,void 0,void 0,function*(){let s=(0,J2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Ije(t),wue(e),s==="v2"?yield KIr(t,e,r,n):yield jIr(t,e,r,n)})}Mi.saveCache=zIr;function jIr(t,e,r,n=!1){var s,i,o,a,A;return FS(this,void 0,void 0,function*(){let c=yield ys.getCompressionMethod(),u=-1,l=yield ys.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vQr(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(CQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function LQr(){return"allowed"}function UQr(){return"success"}function PQr(){return"success"}function _Qr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function OQr(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&&wle(t.origin)&&!wle(oF(t))&&(e=null);break;case"same-origin":qY(t,oF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function WS(t,e){return t}function HQr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:WS(t.domainLookupStartTime,r),domainLookupEndTime:WS(t.domainLookupEndTime,r),connectionStartTime:WS(t.connectionStartTime,r),connectionEndTime:WS(t.connectionEndTime,r),secureConnectionStartTime:WS(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function qQr(t){return WS(bQr.now(),t)}function GQr(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}}function TKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function YQr(t){return{referrerPolicy:t.referrerPolicy}}function JQr(t){let e=t.referrerPolicy;T0(e);let r=null;if(t.referrer==="client"){let a=wKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=ble(r),s=ble(r,!0);n.toString().length>4096&&(n=s);let i=qY(t,n),o=iF(n)&&!iF(t.url);switch(e){case"origin":return s??ble(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=oF(t);return qY(n,a)?n:iF(n)&&!iF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function ble(t,e){return T0(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)}function iF(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"))}}function VQr(t,e){if(HY===void 0)return!0;let r=kKe(e);if(r==="no metadata"||r.length===0)return!0;let n=zQr(r),s=jQr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=HY.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),KQr(A,a))return!0}return!1}var WQr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=WQr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();SKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function zQr(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}function jQr(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}function KQr(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}function XQr(t){}function qY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ZQr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $Qr(t){return t.controller.state==="aborted"}function eyr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function tyr(t){return SQr[t.toLowerCase()]??t}function ryr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return T0(typeof e=="string"),e}var nyr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function FKe(t,e,r=0,n=1){cl Line truncated
`);function Fyr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Myr(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}function vyr(t,e){YY(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=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&JY(t,Tyr,i)||i.position===t.length-4&&JY(t,kyr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Lyr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Fyr(u)||(u=""),h=new Dyr([d],c,{type:u})):h=byr(Buffer.from(d)),YY(JKe(A)),YY(typeof h=="string"&&JKe(h)||Nyr(h)),s.push(Syr(A,h,c))}}function Lyr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=jS(a=>a!==10&&a!==13&&a!==58,t,e);if(o=kle(o,!0,!0,a=>a===9||a===32),!wyr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jS(a=>a===32||a===9,t,e),yyr(o)){case"content-disposition":{if(r=n=null,!JY(t,xyr,e)||(e.position+=17,r=zKe(t,e),r===null))return"failure";if(JY(t,WKe,e)){let a=e.position+WKe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=zKe(t,e),n===null))return"failure"}break}case"content-type":{let a=jS(A=>A!==10&&A!==13,t,e);a=kle(a,!1,!0,A=>A===9||A===32),s=VKe(a);break}case"content-transfer-encoding":{let a=jS(A=>A!==10&&A!==13,t,e);a=kle(a,!1,!0,A=>A===9||A===32),i=VKe(a);break}default:jS(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function zKe(t,e){YY(t[e.position-1]===34);let r=jS(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)}function jS(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function kle(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function JY(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}jKe.exports={multipartFormDataParser:vyr,validateBoundary:Myr}});var ZS=f((eFn,oXe)=>{"use strict";var cF=Ir(),{ReadableStreamFrom:Uyr,isBlobLike:XKe,isReadableStreamLike:Pyr,readableStreamClose:_yr,createDeferredPromise:Oyr,fullyReadBody:Hyr,extractMimeType:qyr,utf8DecodeBytes:eXe}=Vc(),{FormData:ZKe}=AF(),{kState:XS}=rC(),{webidl:Gyr}=Jo(),{Blob:Yyr}=B("node:buffer"),Fle=B("node:assert"),{isErrored:tXe,isDisturbed:Jyr}=B("node:stream"),{isArrayBuffer:Vyr}=B("node:util/types"),{serializeAMimeType:Wyr}=KA(),{multipartFormDataParser:zyr}=KKe(),Mle;try{let t=B("node:crypto");Mle=e=>t.randomInt(0,e)}catch{Mle=t=>Math.floor(Math.random(t))}var VY=new TextEncoder;function jyr(){}var rXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nXe;rXe&&(nXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Jyr(e)&&!tXe(e)&&e.cancel("Response object has been garbage collected").catch(jyr)}));function sXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:XKe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?VY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>_yr(A))},start(){},type:"bytes"}),Fle(Pyr(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Vyr(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(cF.isFormDataLike(t)){let A=`----formdata-undici-0${`${Mle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=VY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=VY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=VY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(XKe(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(cF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Uyr(t)}if((typeof s=="string"||cF.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!tXe(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function Kyr(t,e=!1){return t instanceof ReadableStream&&(Fle(!cF.isDisturbed(t),"The body has already been consumed."),Fle(!t.locked,"The stream is locked.")),sXe(t,e)}function Xyr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Zyr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $yr(t){return{blob(){return KS(this,r=>{let n=$Ke(this);return n===null?n="":n&&(n=Wyr(n)),new Yyr([r],{type:n})},t)},arrayBuffer(){return KS(this,r=>new Uint8Array(r).buffer,t)},text(){return KS(this,eXe,t)},json(){return KS(this,tbr,t)},formData(){return KS(this,r=>{let n=$Ke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=zyr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ZKe;return i[XS]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ZKe;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return KS(this,r=>new Uint8Array(r),t)}}}function ebr(t){Object.assign(t.prototype,$yr(t))}async function KS(t,e,r){if(Gyr.brandCheck(t,r),iXe(t))throw new TypeError("Body is unusable: Body has already been read");Zyr(t[XS]);let n=Oyr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[XS].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Hyr(t[XS].body,i,s),n.promise)}function iXe(t){let e=t[XS].body;return e!=null&&(e.stream.locked||cF.isDisturbed(e.stream))}function tbr(t){return JSON.parse(eXe(t))}function $Ke(t){let e=t[XS].headersList,r=qyr(e);return r==="failure"?null:r}oXe.exports={extractBody:sXe,safelyExtractBody:Kyr,cloneBody:Xyr,mixinBody:ebr,streamRegistry:nXe,hasFinalizationRegistry:rXe,bodyUnusable:iXe}});var mXe=f((tFn,pXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:aXe}=_S(),vle=ple(),{RequestContentLengthMismatchError:k0,ResponseContentLengthMismatchError:rbr,RequestAbortedError:hXe,HeadersTimeoutError:nbr,HeadersOverflowError:sbr,SocketError:ZY,InformationalError:$S,BodyTimeoutError:ibr,HTTPParserError:obr,ResponseExceededMaxSizeError:abr}=sn(),{kUrl:gXe,kReset:XA,kClient:_le,kParser:ni,kBlocking:dF,kRunning:fa,kPending:Abr,kSize:AXe,kWriting:sC,kQueue:xd,kNoRef:uF,kKeepAliveDefaultTimeout:cbr,kHostHeader:ubr,kPendingIdx:lbr,kRunningIdx:ll,kError:dl,kPipelining:KY,kSocket:eR,kKeepAliveTimeoutValue:$Y,kMaxHeadersSize:Lle,kKeepAliveMaxTimeout:dbr,kKeepAliveTimeoutThreshold:hbr,kHeadersTimeout:gbr,kBodyTimeout:fbr,kStrictContentLength:Ole,kMaxRequests:cXe,kCounter:pbr,kMaxResponseSize:mbr,kOnError:Ebr,kResume:nC,kHTTPContext:fXe}=bs(),ug=nKe(),Cbr=Buffer.alloc(0),WY=Buffer[Symbol.species],zY=Vt.addListener,Ibr=Vt.removeAllListeners,Ule;async function Bbr(){let t=process.env.JEST_WORKER_ID?Cle():void 0,e;try{e=await WebAssembly.compile(oKe())}catch{e=await WebAssembly.compile(t||Cle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onStatus(new WY(lg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(Wi.ptr===r),Wi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onHeaderField(new WY(lg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onHeaderValue(new WY(lg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(Wi.ptr===r),Wi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onBody(new WY(lg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(Wi.ptr===r),Wi.onMessageComplete()||0)}})}var Ple=null,Hle=Bbr();Hle.catch();var Wi=null,lg=null,jY=0,dg=null,Qbr=0,lF=1,tR=2|lF,XY=4|lF,qle=8|Qbr,Gle=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Lle])&&e[Lle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ug.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[ubr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[KY]&&!h[XA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return aXe.sendHeaders.hasSubscribers&&aXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?lXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?lXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?dXe(g,A.stream(),t,e,h,u,p,l):Rbr(g,A,t,e,h,u,p,l):Vt.isStream(A)?Sbr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?dXe(g,A,t,e,h,u,p,l):kt(!1),!0}function Sbr(t,e,r,n,s,i,o,a){kt(i!==0||r[fa]===0,"stream body cannot be pipelined");let A=!1,c=new e5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new hXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[sC]&&r[fa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function lXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[XA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nC]()}catch(A){t(A)}}async function Rbr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new k0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[XA]=!0),r[nC]()}catch(A){t(A)}}async function dXe(t,e,r,n,s,i,o,a){kt(i!==0||r[fa]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{kt(A===null),s[dl]?h(s[dl]):A=d});s.on("close",c).on("drain",c);let l=new e5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[dl])throw s[dl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var e5=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[sC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[dl])throw r[dl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[Ole])throw new k0;process.emitWarning(new k0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[XA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ni].timeout&&r[ni].timeoutType===tR&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[sC]=!1,e[dl])throw e[dl];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[Ole])throw new k0;process.emitWarning(new k0)}e[ni].timeout&&e[ni].timeoutType===tR&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),n[nC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[sC]=!1,e&&(kt(n[fa]<=1,"pipeline should only contain this request"),s(e))}};pXe.exports=ybr});var wXe=f((rFn,bXe)=>{"use strict";var hl=B("node:assert"),{pipeline:Dbr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:Yle,RequestAbortedError:EXe,SocketError:hF,InformationalError:Jle}=sn(),{kUrl:t5,kReset:n5,kClient:rR,kRunning:s5,kPending:xbr,kQueue:iC,kPendingIdx:Vle,kRunningIdx:Td,kError:Fd,kSocket:Io,kStrictContentLength:Tbr,kOnError:Wle,kMaxConcurrentStreams:yXe,kHTTP2Session:kd,kResume:oC,kSize:kbr,kHTTPContext:Fbr}=bs(),Sp=Symbol("open streams"),CXe,IXe=!1,r5;try{r5=B("node:http2")}catch{r5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Mbr,HTTP2_HEADER_METHOD:vbr,HTTP2_HEADER_PATH:Lbr,HTTP2_HEADER_SCHEME:Ubr,HTTP2_HEADER_CONTENT_LENGTH:Pbr,HTTP2_HEADER_EXPECT:_br,HTTP2_HEADER_STATUS:Obr}}=r5;function Hbr(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}async function qbr(t,e){t[Io]=e,IXe||(IXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=r5.connect(t[t5],{createConnection:()=>e,peerMaxConcurrentStreams:t[yXe]});r[Sp]=0,r[rR]=t,r[Io]=e,Tr.addListener(r,"error",Ybr),Tr.addListener(r,"frameError",Jbr),Tr.addListener(r,"end",Vbr),Tr.addListener(r,"goaway",Wbr),Tr.addListener(r,"close",function(){let{[rR]:s}=this,{[Io]:i}=s,o=this[Io][Fd]||this[Fd]||new hF("closed",Tr.getSocketInfo(i));if(s[kd]=null,s.destroyed){hl(s[xbr]===0);let a=s[iC].splice(s[Td]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[kd]=r,e[kd]=r,Tr.addListener(e,"error",function(s){hl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Fd]=s,this[rR][Wle](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new hF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Fd]||new hF("closed",Tr.getSocketInfo(this));t[Io]=null,this[kd]!=null&&this[kd].destroy(s),t[Vle]=t[Td],hl(t[s5]===0),t.emit("disconnect",t[t5],[t],s),t[oC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jbr(t,...s)},resume(){Gbr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Gbr(t){let e=t[Io];e?.destroyed===!1&&(t[kbr]===0&&t[yXe]===0?(e.unref(),t[kd].unref()):(e.ref(),t[kd].ref()))}function Ybr(t){hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Io][Fd]=t,this[rR][Wle](t)}function Jbr(t,e,r){if(r===0){let n=new Jle(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Io][Fd]=n,this[rR][Wle](n)}}function Vbr(){let t=new hF("other side closed",Tr.getSocketInfo(this[Io]));this.destroy(t),Tr.destroy(this[Io],t)}function Wbr(t){let e=this[Fd]||new hF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[rR];if(r[Io]=null,r[Fbr]=null,this[kd]!=null&&(this[kd].destroy(e),this[kd]=null),Tr.destroy(this[Io],e),r[Td]<r[iC].length){let n=r[iC][r[Td]];r[iC][r[Td]++]=null,Tr.errorRequest(r,n,e),r[Vle]=r[Td]}hl(r[s5]===0),r.emit("disconnect",r[t5],[r],e),r[oC]()}function zbr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function jbr(t,e){let r=t[kd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[t5];l[Mbr]=i||`${h}${g?`:${g}`:""}`,l[vbr]=n;let p=w=>{e.aborted||e.completed||(w=w||new EXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[iC][t[Td]++]=null,t[oC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Sp],t[iC][t[Td]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Sp],t[iC][t[Td]++]=null}),d.once("close",()=>{r[Sp]-=1,r[Sp]===0&&r.unref()}),!0;l[Lbr]=s,l[Ubr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){CXe??=ZS().extractBody;let[w,H]=CXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),zbr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Tbr])return Tr.errorRequest(t,e,new Yle),!1;process.emitWarning(new Yle)}m!=null&&(hl(u,"no body must not have content length"),l[Pbr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[_br]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[Bwr]=A??3e5,this[Iwr]=s??3e5,this[Qwr]=I??!0,this[ywr]=w,this[Xle]=z,this[AC]=null,this[Rwr]=W>-1?W:-1,this[xwr]=oe??100,this[Bi]=null,this[Md]=[],this[Dp]=0,this[vd]=0,this[mF]=he=>$le(this,he),this[Dwr]=he=>UXe(this,he)}get pipelining(){return this[A5]}set pipelining(e){this[A5]=e,this[mF](!0)}get[IF](){return this[Md].length-this[vd]}get[CF](){return this[vd]-this[Dp]}get[EF](){return this[Md].length-this[Dp]}get[hwr](){return!!this[Bi]&&!this[sR]&&!this[Bi].destroyed}get[Kle](){return!!(this[Bi]?.busy(null)||this[EF]>=(LXe(this)||1)||this[IF]>0)}[dwr](e){PXe(this),this.once("connect",e)}[Swr](e,r){let n=e.origin||this[gg].origin,s=new owr(n,e,r);return this[Md].push(s),this[M0]||(F0.bodyLength(s.body)==null&&F0.isIterable(s.body)?(this[M0]=1,queueMicrotask(()=>$le(this))):this[mF](!0)),this[M0]&&this[cC]!==2&&this[Kle]&&(this[cC]=2),this[cC]<2}async[wwr](){return new Promise(e=>{this[EF]?this[AC]=e:e(null)})}async[Nwr](e){return new Promise(r=>{let n=this[Md].splice(this[vd]);for(let i=0;i<n.length;i++){let o=n[i];F0.errorRequest(this,o,e)}let s=()=>{this[AC]&&(this[AC](),this[AC]=null),r(null)};this[Bi]?(this[Bi].destroy(e,s),this[Bi]=null):queueMicrotask(s),this[mF]()})}},Fwr=a5();function UXe(t,e){if(t[CF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Rp(t[vd]===t[Dp]);let r=t[Md].splice(t[Dp]);for(let n=0;n<r.length;n++){let s=r[n];F0.errorRequest(t,s,e)}Rp(t[EF]===0)}}async function PXe(t){Rp(!t[sR]),Rp(!t[Bi]);let{host:e,hostname:r,protocol:n,port:s}=t[gg];if(r[0]==="["){let i=r.indexOf("]");Rp(i!==-1);let o=r.substring(1,i);Rp(vXe.isIP(o)),r=o}t[sR]=!0,nR.beforeConnect.hasSubscribers&&nR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF]});try{let i=await new Promise((o,a)=>{t[fF]({host:e,hostname:r,protocol:n,port:s,servername:t[aC],localAddress:t[pF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){F0.destroy(i.on("error",FXe),new cwr);return}Rp(i);try{t[Bi]=i.alpnProtocol==="h2"?await kwr(t,i):await Twr(t,i)}catch(o){throw i.destroy().on("error",FXe),o}t[sR]=!1,i[bwr]=0,i[Xle]=t[Xle],i[lwr]=t,i[fwr]=null,nR.connected.hasSubscribers&&nR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF],socket:i}),t.emit("connect",t[gg],[t])}catch(i){if(t.destroyed)return;if(t[sR]=!1,nR.connectError.hasSubscribers&&nR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Rp(t[CF]===0);t[IF]>0&&t[Md][t[vd]].servername===t[aC];){let o=t[Md][t[vd]++];F0.errorRequest(t,o,i)}else UXe(t,i);t.emit("connectionError",t[gg],[t],i)}t[mF]()}function MXe(t){t[cC]=0,t.emit("drain",t[gg],[t])}function $le(t,e){t[M0]!==2&&(t[M0]=2,Mwr(t,e),t[M0]=0,t[Dp]>256&&(t[Md].splice(0,t[Dp]),t[vd]-=t[Dp],t[Dp]=0))}function Mwr(t,e){for(;;){if(t.destroyed){Rp(t[IF]===0);return}if(t[AC]&&!t[EF]){t[AC](),t[AC]=null;return}if(t[Bi]&&t[Bi].resume(),t[Kle])t[cC]=2;else if(t[cC]===2){e?(t[cC]=1,queueMicrotask(()=>MXe(t))):MXe(t);continue}if(t[IF]===0||t[CF]>=(LXe(t)||1))return;let r=t[Md][t[vd]];if(t[gg].protocol==="https:"&&t[aC]!==r.servername){if(t[CF]>0)return;t[aC]=r.servername,t[Bi]?.destroy(new Awr("servername changed"),()=>{t[Bi]=null,$le(t)})}if(t[sR])return;if(!t[Bi]){PXe(t);return}if(t[Bi].destroyed||t[Bi].busy(r))return;!r.aborted&&t[Bi].write(r)?t[vd]++:t[Md].splice(t[vd],1)}}_Xe.exports=Zle});var ede=f((aFn,OXe)=>{"use strict";var c5=class{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)}};OXe.exports=class{constructor(){this.head=this.tail=new c5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new c5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var qXe=f((AFn,HXe)=>{var{kFree:vwr,kConnected:Lwr,kPending:Uwr,kQueued:Pwr,kRunning:_wr,kSize:Owr}=bs(),v0=Symbol("pool"),tde=class{constructor(e){this[v0]=e}get connected(){return this[v0][Lwr]}get free(){return this[v0][vwr]}get pending(){return this[v0][Uwr]}get queued(){return this[v0][Pwr]}get running(){return this[v0][_wr]}get size(){return this[v0][Owr]}};HXe.exports=tde});var ade=f((cFn,ZXe)=>{"use strict";var Hwr=GS(),qwr=ede(),{kConnected:rde,kSize:GXe,kRunning:YXe,kPending:JXe,kQueued:BF,kBusy:Gwr,kFree:Ywr,kUrl:Jwr,kClose:Vwr,kDestroy:Wwr,kDispatch:zwr}=bs(),jwr=qXe(),ZA=Symbol("clients"),$a=Symbol("needDrain"),QF=Symbol("queue"),nde=Symbol("closed resolve"),sde=Symbol("onDrain"),VXe=Symbol("onConnect"),WXe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};set.exports=ahe});var S5=f((UFn,cet)=>{"use strict";var oet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:BRr}=sn(),QRr=aR();Aet()===void 0&&aet(new QRr);function aet(t){if(!t||typeof t.dispatch!="function")throw new BRr("Argument agent must implement Agent");Object.defineProperty(globalThis,oet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Aet(){return globalThis[oet]}cet.exports={setGlobalDispatcher:aet,getGlobalDispatcher:Aet}});var R5=f((_Fn,uet)=>{"use strict";uet.exports=class{#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 het=f((OFn,det)=>{"use strict";var yRr=o5();det.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new yRr(r,o,s,i);return r(a,A)}}});var fet=f((HFn,get)=>{"use strict";var bRr=m5();get.exports=t=>e=>function(n,s){return e(n,new bRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var met=f((qFn,pet)=>{"use strict";var wRr=Ir(),{InvalidArgumentError:NRr,RequestAbortedError:SRr}=sn(),RRr=R5(),Ahe=class extends RRr{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new NRr("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=wRr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new SRr(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function DRr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Ahe({maxSize:i},s);return e(n,o)}}pet.exports=DRr});var Iet=f((GFn,Cet)=>{"use strict";var{isIP:xRr}=B("node:net"),{lookup:TRr}=B("node:dns"),kRr=R5(),{InvalidArgumentError:mR,InformationalError:FRr}=sn(),Eet=Math.pow(2,31)-1,che=class{#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 i={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,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new FRr("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){TRr(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Eet?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Eet?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new uhe(this,e,r)}},uhe=class extends kRr{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=> Line truncated
${i}`;break;case"retry":ent(i)&&(r[s]=i);break;case"id":tnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&ent(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&tnt(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,event:void 0,id:void 0,retry:void 0}}};rnt.exports={EventSourceStream:jhe}});var lnt=f((IMn,unt)=>{"use strict";var{pipeline:H1r}=B("node:stream"),{fetching:q1r}=vF(),{makeRequest:G1r}=IR(),{webidl:Mp}=Jo(),{EventSourceStream:Y1r}=nnt(),{parseMIMEType:J1r}=KA(),{createFastMessageEvent:V1r}=NR(),{isNetworkError:snt}=FF(),{delay:W1r}=Whe(),{kEnumerableProperty:K0}=Ir(),{environmentSettingsObject:int}=Vc(),ont=!1,ant=3e3,WF=0,Ant=1,zF=2,z1r="anonymous",j1r="use-credentials",TR=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=WF;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Mp.util.markAsUncloneable(this);let n="EventSource constructor";Mp.argumentLengthCheck(arguments,1,n),ont||(ont=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Mp.converters.USVString(e,n,"url"),r=Mp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ant};let s=int,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=z1r;r.withCredentials&&(o=j1r,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=int.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=G1r(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===zF)return;this.#r=WF;let e={request:this.#s,dispatcher:this.#a},r=n=>{snt(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(snt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?J1r(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Ant,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Y1r({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(V1r(A.type,A.options))}});H1r(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=q1r(e)}async#c(){this.#r!==zF&&(this.#r=WF,this.dispatchEvent(new Event("error")),await W1r(this.#o.reconnectionTime),this.#r===WF&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Mp.brandCheck(this,t),this.#r!==zF&&(this.#r=zF,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},cnt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:WF,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Ant,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zF,writable:!1}};Object.defineProperties(TR,cnt);Object.defineProperties(TR.prototype,cnt);Object.defineProperties(TR.prototype,{close:K0,onerror:K0,onmessage:K0,onopen:K0,readyState:K0,url:K0,withCredentials:K0});Mp.converters.EventSourceInitDict=Mp.dictionaryConverter([{key:"withCredentials",converter:Mp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Mp.converters.any}]);unt.exports={EventSource:TR,defaultReconnectionTime:ant}});var Khe=f((BMn,vt)=>{"use strict";var K1r=iR(),dnt=$2(),X1r=oR(),Z1r=aZe(),$1r=aR(),ekr=Ide(),tkr=TZe(),rkr=UZe(),hnt=sn(),p6=Ir(),{InvalidArgumentError:f6}=hnt,kR=y$e(),nkr=tF(),skr=the(),ikr=iet(),okr=she(),akr=qde(),Akr=m5(),{getGlobalDispatcher:gnt,setGlobalDispatcher:ckr}=S5(),ukr=R5(),lkr=o5(),dkr=a5();Object.assign(dnt.prototype,kR);vt.exports.Dispatcher=dnt;vt.exports.Client=K1r;vt.exports.Pool=X1r;vt.exports.BalancedPool=Z1r;vt.exports.Agent=$1r;vt.exports.ProxyAgent=ekr;vt.exports.EnvHttpProxyAgent=tkr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),cE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(cE("Creating `tls.Socket`: %o",this.connectOpts),i=Ont.connect(this.connectOpts)):(cE("Creating `net.Socket`: %o",this.connectOpts),i=Pnt.connect(this.connectOpts)),await(0,Gnt.once)(i,"connect"),i}};SR.protocols=["http","https"];da.HttpProxyAgent=SR;function Ynt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var tge=C(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.state=void 0;UR.state={instrumenterImplementation:void 0}});var Ege=C(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.state=void 0;qR.state={operationRequestMap:new WeakMap}});var s0e=C((i0r,wut)=>{wut.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var o0e=C((o0r,i0e)=>{var Sut=s0e();i0e.exports={version:Sut.version}});var I2=C(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.isJsonObject=PE.typeofJsonValue=void 0;function Mut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}PE.typeofJsonValue=Mut;function _ut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}PE.isJsonObject=_ut});var B2=C(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.base64encode=OE.base64decode=void 0;var Sl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),y2=[];for(let t=0;t<Sl.length;t++)y2[Sl[t].charCodeAt(0)]=t;y2[45]=Sl.indexOf("+");y2[95]=Sl.indexOf("/");function Lut(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=y2[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}OE.base64decode=Lut;function Uut(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Sl[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Sl[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Sl[s|n>>6],e+=Sl[n&63],r=0;break}return r&&(e+=Sl[s],e+="=",r==1&&(e+="=")),e}OE.base64encode=Uut});var l0e=C(b2=>{"use strict";Object.defineProperty(b2,"__esModule",{value:!0});b2.utf8read=void 0;var O9=t=>String.fromCharCode.apply(String,t);function Put(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(O9(n)),s=0);return r.length?(s&&r.push(O9(n.slice(0,s))),r.join("")):O9(n.slice(0,s))}b2.utf8read=Put});var dQ=C(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.WireType=Hc.mergeBinaryOptions=Hc.UnknownFieldHandler=void 0;var Out;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Out=Hc.UnknownFieldHandler||(Hc.UnknownFieldHandler={}));function Hut(t,e){return Object.assign(Object.assign({},t),e)}Hc.mergeBinaryOptions=Hut;var Gut;(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"})(Gut=Hc.WireType||(Hc.WireType={}))});var w2=C(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.varint32read=Pi.varint32write=Pi.int64toString=Pi.int64fromString=Pi.varint64write=Pi.varint64read=void 0;function qut(){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")}Pi.varint64read=qut;function Yut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Pi.varint64write=Yut;var Q2=65536*65536;function Vut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=Q2&&(s=s+(n/Q2|0),n=n%Q2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Pi.int64fromString=Vut;function Jut(t,e){if(e>>>0<=2097151)return""+(Q2*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Pi.int64toString=Jut;function Wut(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)}}Pi.varint32write=Wut;function zut(){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}Pi.varint32read=zut});var hh=C(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.PbLong=dh.PbULong=dh.detectBi=void 0;var hQ=w2(),fr;function d0e(){let t=new DataView(new ArrayBuffer(8));fr=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}dh.detectBi=d0e;d0e();function h0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var f0e=/^-?[0-9]+$/,N2=4294967296,S2=2147483648,T2=c Line truncated
`)}};Z2.RpcError=hq});var gq=C(ek=>{"use strict";Object.defineProperty(ek,"__esModule",{value:!0});ek.mergeRpcOptions=void 0;var Y0e=ft();function pdt(t,e){if(!e)return t;let r={};$2(t,r),$2(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Y0e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Y0e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$2(t.meta,r.meta),$2(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}ek.mergeRpcOptions=pdt;function $2(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}});var mq=C(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.Deferred=Vg.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=Vg.DeferredState||(Vg.DeferredState={}));var pq=class{constructor(e=!0){this._state=Yc.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!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};Vg.Deferred=pq});var Cq=C(tk=>{"use strict";Object.defineProperty(tk,"__esModule",{value:!0});tk.RpcOutputStreamController=void 0;var V0e=mq(),Jg=ft(),Eq=class{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){Jg.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){Jg.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){Jg.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(){Jg.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:()=>{let e=this._itState;Jg.assert(e,"bad state"),Jg.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 V0e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Jg.assert(n.state==V0e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};tk.RpcOutputStreamController=Eq});var yq=C(WE=>{"use strict";var mdt=WE&&WE.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(WE,"__esModule",{value:!0});WE.UnaryCall=void 0;var Iq=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 mdt(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}})}};WE.UnaryCall=Iq});var bq=C(zE=>{"use strict";var Edt=zE&&zE.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(zE,"__esModule",{value:!0});zE.ServerStreamingCall=void 0;var Bq=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var hut=f(dut=>{"use strict";var nme=Jp().Buffer;dut._dbcs=Vp;var Wo=-1,lut=-2,Ml=-10,iA=-1e3,AD=new Array(256),WM=-1;for(mJ=0;mJ<256;mJ++)AD[mJ]=Wo;var mJ;function Vp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=AD.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(AD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[iA-o[n]],A=48;A<=57;A++){if(a[A]===Wo)a[A]=iA-s;else if(a[A]>iA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[iA-a[A]],u=129;u<=254;u++){if(c[u]===Wo)c[u]=iA-i;else{if(c[u]===iA-i)continue;if(c[u]>iA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[iA-c[u]],d=48;d<=57;d++)l[d]===Wo&&(l[d]=lut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function E4r(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(n4r.has(s)){r=s;break}}return r}function C4r(t,e){let r=E4r(e);r!==""&&(t.referrerPolicy=r)}function I4r(){return"allowed"}function B4r(){return"success"}function Q4r(){return"success"}function y4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function b4r(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&&mEe(t.origin)&&!mEe(QQ(t))&&(e=null);break;case"same-origin":nv(t,QQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fD(t,e){return t}function w4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fD(t.domainLookupStartTime,r),domainLookupEndTime:fD(t.domainLookupEndTime,r),connectionStartTime:fD(t.connectionStartTime,r),connectionEndTime:fD(t.connectionEndTime,r),secureConnectionStartTime:fD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function N4r(t){return fD(a4r.now(),t)}function S4r(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}}function Gdt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R4r(t){return{referrerPolicy:t.referrerPolicy}}function D4r(t){let e=t.referrerPolicy;sv(e);let r=null;if(t.referrer==="client"){let i=Pdt();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else OC.is.URL(t.referrer)&&(r=t.referrer);let n=pEe(r),s=pEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??pEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=QQ(t);return BQ(n)&&!BQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=QQ(t);return nv(n,i)?n:BQ(n)&&!BQ(i)?"no-referrer":s}case"same-origin":return nv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return nv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=QQ(t);return BQ(n)&&!BQ(i)?"no-referrer":n}}}function pEe(t,e=!1){return sv(OC.is.URL(t)),t=new URL(t),Wdt(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var x4r=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),T4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Ydt(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),T4r(t)):x4r(t)}function k4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Ydt(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function BQ(t){return OC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:k4r(t.origin):!1}function F4r(t){}function nv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function M4r(t){return t.controller.state==="aborted"}function v4r(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function L4r(t){return c4r[t.toLowerCase()]??t}var U4r=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Jdt(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,U4r),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function P4r(t,e,r,n=0,s=1){let i=Jdt(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return OC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return OC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>NEe(a)&&a!==59,t,e);i=bEe.decode(o)}return{name:n,value:i}}function AYr(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ac("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wEe(o,!0,!0,a=>a===9||a===32),!eYr.test(o.toString()))throw Ac("header name does not match the field-name token production");if(t[e.position]!==58)throw Ac("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),$4r(o)){case"content-disposition":{if(r=n=null,Ul(A=>NEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ac("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=aYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ac("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=wEe(a,!1,!0,A=>A===9||A===32),s=$dt(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=wEe(a,!1,!0,A=>A===9||A===32),i=$dt(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ac("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wEe(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function cYr(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}function Ac(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function uYr(t){return t<=31||t===127}function lYr(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function NEe(t){return t<=127&&t!==32&&t!==9&&!uYr(t)&&!lYr(t)}eht.exports={multipartFormDataParser:oYr,validateBoundary:iYr}});var iv=f(($qn,rht)=>{"use strict";function dYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}rht.exports={createDeferredPromise:dYr}});var ED=f((eGn,aht)=>{"use strict";var DEe=Wt(),{ReadableStreamFrom:hYr,readableStreamClose:gYr,fullyReadBody:fYr,extractMimeType:pYr}=su(),{FormData:nht,setFormDataState:mYr}=HJ(),{webidl:Jd}=zo(),SEe=B("node:assert"),{isErrored:REe,isDisturbed:EYr}=B("node:stream"),{isUint8Array:CYr}=B("node:util/types"),{serializeAMimeType:IYr}=Ll(),{multipartFormDataParser:BYr}=tht(),{createDeferredPromise:QYr}=iv(),{parseJSONFromBytes:yYr}=jp(),{utf8DecodeBytes:bYr}=ev(),{runtimeFeatures:wYr}=Kp(),NYr=wYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qJ=new TextEncoder;function SYr(){}var RYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!EYr(e)&&!REe(e)&&e.cancel("Response object has been garbage collected").catch(SYr)});function iht(t,e=!1){let r=null,n=null;Jd.is.ReadableStream(t)?r=t:Jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),SEe(Jd.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Jd.is.BufferSource(t))i=Jd.util.getCopyOfBytesHeldByBufferSource(t);else if(Jd.is.FormData(t)){let c=`----formdata-undici-0${`${NYr(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var pBe=C(gBe=>{"use strict";var IJ=Ul().Buffer;gBe._dbcs=Pl;var Es=-1,fBe=-2,La=-10,ci=-1e3,NC=new Array(256),mw=-1;for(Rv=0;Rv<256;Rv++)NC[Rv]=Es;var Rv;function Pl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=NC.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(NC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(NC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ci-o[n]],A=48;A<=57;A++){if(a[A]===Es)a[A]=ci-s;else if(a[A]>ci)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ci-a[A]],u=129;u<=254;u++){if(c[u]===Es)c[u]=ci-i;else{if(c[u]===ci-i)continue;if(c[u]>ci)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ci-c[u]],d=48;d<=57;d++)l[d]===Es&&(l[d]=fBe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function UBt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(bBt.has(s)){r=s;break}}return r}function PBt(t,e){let r=UBt(e);r!==""&&(t.referrerPolicy=r)}function OBt(){return"allowed"}function HBt(){return"success"}function GBt(){return"success"}function qBt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function YBt(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&&PW(t.origin)&&!PW(bp(t))&&(e=null);break;case"same-origin":Nw(t,bp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function kC(t,e){return t}function VBt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:kC(t.domainLookupStartTime,r),domainLookupEndTime:kC(t.domainLookupEndTime,r),connectionStartTime:kC(t.connectionStartTime,r),connectionEndTime:kC(t.connectionEndTime,r),secureConnectionStartTime:kC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function JBt(t){return kC(NBt.now(),t)}function WBt(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}}function VQe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function zBt(t){return{referrerPolicy:t.referrerPolicy}}function jBt(t){let e=t.referrerPolicy;Tw(e);let r=null;if(t.referrer==="client"){let i=OQe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else _h.is.URL(t.referrer)&&(r=t.referrer);let n=UW(r),s=UW(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??UW(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=bp(t);return Bp(n)&&!Bp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=bp(t);return Nw(n,i)?n:Bp(n)&&!Bp(i)?"no-referrer":s}case"same-origin":return Nw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Nw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=bp(t);return Bp(n)&&!Bp(i)?"no-referrer":n}}}function UW(t,e=!1){return Tw(_h.is.URL(t)),t=new URL(t),jQe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var KBt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),XBt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function JQe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),XBt(t)):KBt(t)}function ZBt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||JQe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Bp(t){return _h.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:ZBt(t.origin):!1}function $Bt(t){}function Nw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ebt(t){return t.controller.state==="aborted"}function tbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function rbt(t){return xBt[t.toLowerCase()]??t}var nbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WQe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,nbt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function sbt(t,e,r,n=0,s=1){let i=WQe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _h.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _h.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Oa(a=>zW(a)&&a!==59,t,e);i=JW.decode(o)}return{name:n,value:i,extended:s}}function Tbt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=WW(o,!0,!0,a=>a===9||a===32),!Ibt.test(o.toString()))throw Wi("header name does not match the field-name token production");if(t[e.position]!==58)throw Wi("expected :");switch(e.position++,Oa(a=>a===32||a===9,t,e),Cbt(o)){case"content-disposition":{r=n=null;let a=!1;if(Oa(c=>zW(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=Nbt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(n=c.value,a=!0):a||(n=c.value))}if(r===null)throw Wi("name attribute is required in content-disposition header");break}case"content-type":{let a=Oa(A=>A!==10&&A!==13,t,e);a=WW(a,!1,!0,A=>A===9||A===32),s=twe(a);break}case"content-transfer-encoding":{let a=Oa(A=>A!==10&&A!==13,t,e);a=WW(a,!1,!0,A=>A===9||A===32),i=twe(a);break}default:Oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Wi("expected CRLF");e.position+=2}}function Oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function WW(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function xbt(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}function Wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Rbt(t){return t<=31||t===127}function Dbt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function zW(t){return t<=127&&t!==32&&t!==9&&!Rbt(t)&&!Dbt(t)}rwe.exports={multipartFormDataParser:Sbt,validateBoundary:wbt}});var xw=C((mwr,swe)=>{"use strict";function kbt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}swe.exports={createDeferredPromise:kbt}});var MC=C((Ewr,cwe)=>{"use strict";var XW=st(),{ReadableStreamFrom:vbt,readableStreamClose:Fbt,fullyReadBody:Mbt,extractMimeType:_bt}=Mo(),{FormData:iwe,setFormDataState:Lbt}=tF(),{webidl:UA}=Cs(),jW=Q("node:assert"),{isErrored:KW,isDisturbed:Ubt}=Q("node:stream"),{isUint8Array:Pbt}=Q("node:util/types"),{serializeAMimeType:Obt}=Pa(),{multipartFormDataParser:Hbt}=nwe(),{createDeferredPromise:Gbt}=xw(),{parseJSONFromBytes:qbt}=Gl(),{utf8DecodeBytes:Ybt}=jv(),{runtimeFeatures:Vbt}=ql(),Jbt=Vbt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),rF=new TextEncoder;function Wbt(){}var zbt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ubt(e)&&!KW(e)&&e.cancel("Response object has been garbage collected").catch(Wbt)});function awe(t,e=!1){let r=null,n=null;UA.is.ReadableStream(t)?r=t:UA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),jW(UA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(UA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(UA.is.BufferSource(t))i=UA.util.getCopyOfBytesHeldByBufferSource(t);else if(UA.is.FormData(t)){let c=`----formdata-undici-0${`${Jbt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=qJ.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=rF.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=qJ.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=rF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=qJ.encode(`--${c}--\r
`);h.push(C),o+=C.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Jd.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(DEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Jd.is.ReadableStream(t)?t:hYr(t)}return(typeof i=="string"||CYr(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(REe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!REe(r)&&n.enqueue(typeof c=="string"?qJ.encode(c):new Uint8Array(c));queueMicrotask(()=>gYr(n))})(),[{stream:r,source:i,length:o},a]}function DYr(t,e=!1){return Jd.is.ReadableStream(t)&&(SEe(!DEe.isDisturbed(t),"The body has already been consumed."),SEe(!t.locked,"The stream is locked.")),iht(t,e)}function xYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function TYr(t,e){return{blob(){return mD(this,n=>{let s=sht(e(this));return s===null?s="":s&&(s=IYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return mD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return mD(this,bYr,t,e)},json(){return mD(this,yYr,t,e)},formData(){return mD(this,n=>{let s=sht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=BYr(n,s),o=new nht;return mYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new nht;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return mD(this,n=>new Uint8Array(n),t,e)}}}function kYr(t,e){Object.assign(t.prototype,TYr(t,e))}function mD(t,e,r,n){try{Jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),oht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=QYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(fYr(t.body,o,i),s.promise)}function oht(t){let e=t.body;return e!=null&&(e.stream.locked||DEe.isDisturbed(e.stream))}function sht(t){let e=t.headersList,r=pYr(e);return r==="failure"?null:r}aht.exports={extractBody:iht,safelyExtractBody:DYr,cloneBody:xYr,mixinBody:kYr,streamRegistry:RYr,bodyUnusable:oht}});var Eht=f((tGn,mht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Aht}=PC(),xEe=fme(),{RequestContentLengthMismatchError:yQ,ResponseContentLengthMismatchError:FYr,RequestAbortedError:ght,HeadersTimeoutError:MYr,HeadersOverflowError:vYr,SocketError:Av,InformationalError:CD,BodyTimeoutError:LYr,HTTPParserError:UYr,ResponseExceededMaxSizeError:PYr}=or(),{kUrl:fht,kReset:cc,kClient:UEe,kParser:oi,kBlocking:cv,kRunning:ba,kPending:_Yr,kSize:cht,kWriting:qC,kQueue:Vd,kNoRef:ov,kKeepAliveDefaultTimeout:OYr,kHostHeader:HYr,kPendingIdx:qYr,kRunningIdx:Pl,kError:_l,kPipelining:JJ,kSocket:ID,kKeepAliveTimeoutValue:WJ,kMaxHeadersSize:GYr,kKeepAliveMaxTimeout:YYr,kKeepAliveTimeoutThreshold:JYr,kHeadersTimeout:VYr,kBodyTimeout:WYr,kStrictContentLength:FEe,kMaxRequests:uht,kCounter:zYr,kMaxResponseSize:jYr,kOnError:KYr,kResume:HC,kHTTPContext:pht,kClosed:MEe}=Mn(),Sg=adt(),XYr=Buffer.alloc(0),GJ=Buffer[Symbol.species],ZYr=Pt.removeAllListeners,TEe;function $Yr(){let t=process.env.JEST_WORKER_ID?nEe():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(udt())}catch{}return e||(e=new WebAssembly.Module(t||nEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onStatus(new GJ(Rg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(ji.ptr===n),ji.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderField(new GJ(Rg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderValue(new GJ(Rg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(ji.ptr===n),ji.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onBody(new GJ(Rg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(ji.ptr===n),ji.onMessageComplete())}})}var kEe=null,ji=null,Rg=null,YJ=0,Dg=null,e5r=0,av=1,BD=2|av,VJ=4|av,vEe=8|e5r,LEe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sg.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[GYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[HYr],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=rF.encode(`--${c}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(UA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XW.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=UA.is.ReadableStream(t)?t:vbt(t)}return(typeof i=="string"||Pbt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(KW(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!KW(r)&&n.enqueue(typeof c=="string"?rF.encode(c):new Uint8Array(c));queueMicrotask(()=>Fbt(n))})(),[{stream:r,source:i,length:o},a]}function jbt(t,e=!1){return UA.is.ReadableStream(t)&&(jW(!XW.isDisturbed(t),"The body has already been consumed."),jW(!t.locked,"The stream is locked.")),awe(t,e)}function Kbt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Xbt(t,e){return{blob(){return FC(this,n=>{let s=owe(e(this));return s===null?s="":s&&(s=Obt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return FC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return FC(this,Ybt,t,e)},json(){return FC(this,qbt,t,e)},formData(){return FC(this,n=>{let s=owe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=Hbt(n,s),o=new iwe;return Lbt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new iwe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return FC(this,n=>new Uint8Array(n),t,e)}}}function Zbt(t,e){Object.assign(t.prototype,Xbt(t,e))}function FC(t,e,r,n){try{UA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Awe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Gbt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Mbt(t.body,o,i),s.promise)}function Awe(t){let e=t.body;return e!=null&&(e.stream.locked||XW.isDisturbed(e.stream))}function owe(t){let e=t.headersList,r=_bt(e);return r==="failure"?null:r}cwe.exports={extractBody:awe,safelyExtractBody:jbt,cloneBody:Kbt,mixinBody:Zbt,streamRegistry:zbt,bodyUnusable:Awe}});var Qwe=C((Cwr,bwe)=>{"use strict";var Ve=Q("node:assert"),_e=st(),{channels:uwe}=Fh(),ZW=kJ(),{RequestContentLengthMismatchError:Qp,ResponseContentLengthMismatchError:lwe,RequestAbortedError:Cwe,InvalidArgumentError:$bt,HeadersTimeoutError:eQt,HeadersOverflowError:tQt,SocketError:wp,InformationalError:_C,BodyTimeoutError:rQt,HTTPParserError:nQt,ResponseExceededMaxSizeError:sQt}=et(),{kUrl:Iwe,kReset:zi,kClient:aF,kParser:wr,kBlocking:kw,kRunning:wn,kPending:i7,kSize:dwe,kWriting:Lh,kQueue:PA,kNoRef:Rw,kKeepAliveDefaultTimeout:iQt,kHostHeader:oQt,kPendingIdx:aQt,kRunningIdx:Ha,kError:ui,kPipelining:iF,kSocket:Sp,kKeepAliveTimeoutValue:AF,kMaxHeadersSize:AQt,kKeepAliveMaxTimeout:cQt,kKeepAliveTimeoutThreshold:uQt,kHeadersTimeout:lQt,kBodyTimeout:dQt,kStrictContentLength:t7,kMaxRequests:hwe,kCounter:hQt,kMaxResponseSize:fQt,kOnError:fwe,kResume:Vl,kHTTPContext:ywe,kClosed:r7}=sr(),_o=cQe(),gwe=Buffer.alloc(0),nF=Buffer[Symbol.species],gQt=_e.removeAllListeners,Np=Symbol("kIdleSocketValidation"),LC=Symbol("kIdleSocketValidationTimeout"),o7=Symbol("kSocketUsed"),$W;function pQt(){let t=process.env.JEST_WORKER_ID?wW():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(dQe())}catch{}return e||(e=new WebAssembly.Module(t||wW())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onStatus(new nF($c.buffer,o,i))},wasm_on_message_begin:n=>(Ve(nn.ptr===n),nn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onHeaderField(new nF($c.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onHeaderValue(new nF($c.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(nn.ptr===n),nn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onBody(new nF($c.buffer,o,i))},wasm_on_message_complete:n=>(Ve(nn.ptr===n),nn.onMessageComplete())}})}var e7=null,nn=null,$c=null,sF=0,eu=null,mQt=0,Dw=1,UC=2|Dw,oF=4|Dw,n7=8|mQt,s7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_o.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[AQt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[oQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[JJ]&&!h[cc]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Aht.sendHeaders.hasSubscribers&&Aht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?dht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?dht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?hht(g,A.stream(),t,e,h,u,p,l):l5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?u5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?hht(g,A,t,e,h,u,p,l):Lt(!1),!0}function u5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[ba]===0,"stream body cannot be pipelined");let A=!1,c=new zJ({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new ght;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[qC]&&r[ba]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function dht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[iF]&&!h[zi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],I=c[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return uwe.sendHeaders.hasSubscribers&&uwe.sendHeaders.publish({request:e,headers:g,socket:h}),!A||d===0?mwe(f,null,t,e,h,u,g,l):_e.isBuffer(A)?mwe(f,A,t,e,h,u,g,l):_e.isBlobLike(A)?typeof A.stream=="function"?Ewe(f,A.stream(),t,e,h,u,g,l):xQt(f,A,t,e,h,u,g,l):_e.isStream(A)?TQt(f,A,t,e,h,u,g,l):_e.isIterable(A)?Ewe(f,A,t,e,h,u,g,l):Ve(!1),!0}function TQt(t,e,r,n,s,i,o,a){Ve(i!==0||r[wn]===0,"stream body cannot be pipelined");let A=!1,c=new cF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(g){_e.destroy(this,g)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Cwe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[Lh]&&r[wn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(g){f=g}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?_e.destroy(e,f):_e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function mwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[cc]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[HC]()}catch(A){t(A)}}async function l5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new yQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vl]()}catch(A){t(A)}}async function xQt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Qp;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[cc]=!0),r[HC]()}catch(A){t(A)}}async function hht(t,e,r,n,s,i,o,a){Lt(i!==0||r[ba]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new zJ({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var zJ=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[qC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[FEe])throw new yQ;process.emitWarning(new yQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[cc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[zi]=!0),r[Vl]()}catch(A){t(A)}}async function Ewe(t,e,r,n,s,i,o,a){Ve(i!==0||r[wn]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[ui]?h(s[ui]):A=d});s.on("close",c).on("drain",c);let l=new cF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ui])throw s[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var cF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Lh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ui])throw r[ui];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[t7])throw new Qp;process.emitWarning(new Qp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[oi].timeout&&r[oi].timeoutType===BD&&r[oi].timeout.refresh&&r[oi].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[wr].timeout&&r[wr].timeoutType===UC&&r[wr].timeout.refresh&&r[wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Lh]=!1,e[ui])throw e[ui];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[FEe])throw new yQ;process.emitWarning(new yQ)}e[oi].timeout&&e[oi].timeoutType===BD&&e[oi].timeout.refresh&&e[oi].timeout.refresh(),n[HC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[qC]=!1,e&&(Lt(n[ba]<=1,"pipeline should only contain this request"),s(e))}};mht.exports=t5r});var Sht=f((rGn,Nht)=>{"use strict";var Hl=B("node:assert"),{pipeline:d5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:HEe,RequestAbortedError:h5r,SocketError:hv,InformationalError:GC,InvalidArgumentError:g5r}=or(),{kUrl:dv,kReset:ZJ,kClient:iu,kRunning:gv,kPending:f5r,kQueue:YC,kPendingIdx:GEe,kRunningIdx:Wd,kError:ou,kSocket:Ps,kStrictContentLength:p5r,kOnError:QD,kMaxConcurrentStreams:KJ,kPingInterval:Cht,kHTTP2Session:Zp,kHTTP2InitialWindowSize:m5r,kHTTP2ConnectionWindowSize:E5r,kResume:xg,kSize:C5r,kHTTPContext:YEe,kClosed:qEe,kBodyTimeout:I5r,kEnableConnectProtocol:uv,kRemoteSettings:lv,kHTTP2Stream:jJ,kHTTP2SessionState:JEe}=Mn(),{channels:Iht}=PC(),Ol=Symbol("open streams"),Bht,XJ;try{XJ=B("node:http2")}catch{XJ={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:B5r,HTTP2_HEADER_METHOD:Qht,HTTP2_HEADER_PATH:yht,HTTP2_HEADER_SCHEME:PEe,HTTP2_HEADER_CONTENT_LENGTH:Q5r,HTTP2_HEADER_EXPECT:y5r,HTTP2_HEADER_STATUS:_Ee,HTTP2_HEADER_PROTOCOL:b5r,NGHTTP2_REFUSED_STREAM:w5r,NGHTTP2_CANCEL:N5r}}=XJ;function OEe(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}function S5r(t,e){t[Ps]=e;let r=t[m5r],n=t[E5r],s=XJ.connect(t[dv],{createConnection:()=>e,peerMaxConcurrentStreams:t[KJ],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Ps]=e,s[Ol]=0,s[iu]=t,s[Ps]=e,s[JEe]={ping:{interval:t[Cht]===0?null:setInterval(T5r,t[Cht],s).unref()}},s[uv]=!1,s[lv]=!1,n&&hr.addListener(s,"connect",D5r.bind(s,n)),hr.addListener(s,"error",k5r),hr.addListener(s,"frameError",F5r),hr.addListener(s,"end",M5r),hr.addListener(s,"goaway",v5r),hr.addListener(s,"close",L5r),hr.addListener(s,"remoteSettings",x5r),s.unref(),t[Zp]=s,e[Zp]=s,hr.addListener(e,"error",P5r),hr.addListener(e,"end",_5r),hr.addListener(e,"close",U5r),e[qEe]=!1,e.on("close",O5r),{version:"h2",defaultPipelining:1/0,write(i){return q5r(t,i)},resume(){R5r(t)},destroy(i,o){e[qEe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[gv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lv]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lv]===!1;return!1}}}function R5r(t){let e=t[Ps];e?.destroyed===!1&&(t[C5r]===0||t[KJ]===0?(e.unref(),t[Zp].unref()):(e.ref(),t[Zp].ref()))}function D5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function x5r(t){if(this[iu][KJ]=t.maxConcurrentStreams??this[iu][KJ],this[lv]===!0&&this[uv]===!0&&t.enableConnectProtocol===!1){let e=new GC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Ps][ou]=e,this[iu][QD](e);return}this[uv]=t.enableConnectProtocol??this[uv],this[lv]=!0,this[iu][xg]()}function T5r(t){let e=t[JEe];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[iu],o=this[iu];if(n!=null){let a=new GC(`HTTP/2: "PING" errored - type ${n.message}`);o[ou]=a,i[QD](a)}else i.emit("ping",s)}}function k5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ps][ou]=t,this[iu][QD](t)}function F5r(t,e,r){if(r===0){let n=new GC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ps][ou]=n,this[iu][QD](n)}}function M5r(){let t=new hv("other side closed",hr.getSocketInfo(this[Ps]));this.destroy(t),hr.destroy(this[Ps],t)}function v5r(t){let e=this[ou]||new hv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[Ps])),r=this[iu];if(r[Ps]=null,r[YEe]=null,this.close(),this[Zp]=null,hr.destroy(this[Ps],e),r[Wd]<r[YC].length){let n=r[YC][r[Wd]];r[YC][r[Wd]++]=null,hr.errorRequest(r,n,e),r[GEe]=r[Wd]}Hl(r[gv]===0),r.emit("disconnect",r[dv],[r],e),r.emit("connectionError",r[dv],[r],e),r[xg]()}function L5r(){let{[iu]:t,[JEe]:e}=this,{[Ps]:r}=t,n=this[Ps][ou]||this[ou]||new hv("closed",hr.getSocketInfo(r));if(t[Ps]=null,t[YEe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[f5r]===0);let s=t[YC].splice(t[Wd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function U5r(){let t=this[ou]||new hv("closed",hr.getSocketInfo(this)),e=this[Zp][iu];e[Ps]=null,e[YEe]=null,this[Zp]!==null&&this[Zp].destroy(t),e[GEe]=e[Wd],Hl(e[gv]===0),e.emit("disconnect",e[dv],[e],t),e[xg]()}function P5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ou]=t,this[iu][QD](t)}function _5r(){hr.destroy(this,new hv("other side closed",hr.getSock Line truncated
`;Iht.sendHeaders.publish({request:e,headers:F,socket:n[Ps]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[y5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[jJ]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[jJ]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[_Ee]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),OEe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[YC][t[Wd]++]=null,t[xg]()):(m(new GC("HTTP/2: stream half-closed (remote)")),t[YC][t[Wd]++]=null,t[GEe]=t[Wd],t[xg]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new GC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new GC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?bht(m,g,null,t,e,t[Ps],y,I):hr.isBuffer(d)?bht(m,g,d,t,e,t[Ps],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?wht(m,g,d.stream(),t,e,t[Ps],y,I):Y5r(m,g,d,t,e,t[Ps],y,I):hr.isStream(d)?G5r(m,t[Ps],I,g,d,t,e,y):hr.isIterable(d)?wht(m,g,d,t,e,t[Ps],y,I):Hl(!1)}}function bht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[ZJ]=!0),s.onRequestSent(),n[xg]()}catch(A){t(A)}}function G5r(t,e,r,n,s,i,o,a){Hl(a!==0||i[gv]===0,"stream body cannot be pipelined");let A=d5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[ZJ]=!0),i[xg]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Y5r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new HEe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[ZJ]=!0),n[xg]()}catch(A){t(A)}}async function wht(t,e,r,n,s,i,o,a){Hl(o!==0||n[gv]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Hl(A===null),i[ou]?d(i[ou]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ou])throw i[ou];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[ZJ]=!0),n[xg]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Nht.exports=S5r});var jC=f((nGn,Lht)=>{"use strict";var $p=B("node:assert"),kht=B("node:net"),fv=B("node:http"),bQ=Wt(),{ClientStats:J5r}=qme(),{channels:yD}=PC(),V5r=jlt(),W5r=hD(),{InvalidArgumentError:us,InformationalError:z5r,ClientDestroyedError:j5r}=or(),K5r=gD(),{kUrl:Tg,kServerName:zC,kClient:X5r,kBusy:VEe,kConnect:Z5r,kResuming:wQ,kRunning:Cv,kPending:Iv,kSize:pv,kQueue:zd,kConnected:$5r,kConnecting:bD,kNeedDrain:VC,kKeepAliveDefaultTimeout:Rht,kHostHeader:e6r,kPendingIdx:jd,kRunningIdx:em,kError:t6r,kPipelining:$J,kKeepAliveTimeoutValue:r6r,kMaxHeadersSize:n6r,kKeepAliveMaxTimeout:s6r,kKeepAliveTimeoutThreshold:i6r,kHeadersTimeout:o6r,kBodyTimeout:a6r,kStrictContentLength:A6r,kConnector:mv,kMaxRequests:WEe,kCounter:c6r,kClose:u6r,kDestroy:l6r,kDispatch:d6r,kLocalAddress:Ev,kMaxResponseSize:h6r,kOnError:g6r,kHTTPContext:yi,kMaxConcurrentStreams:f6r,kHTTP2InitialWindowSize:p6r,kHTTP2ConnectionWindowSize:m6r,kResume:WC,kPingInterval:E6r}=Mn(),C6r=Eht(),I6r=Sht(),JC=Symbol("kClosedResolve"),B6r=fv&&fv.maxHeaderSize&&Number.isInteger(fv.maxHeaderSize)&&fv.maxHeaderSize>0?()=>fv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Dht=()=>{};function Fht(t){return t[$J]??t[yi]?.defaultPipelining??1}var zEe=class extends W5r{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[a6r]=a??3e5,this[o6r]=n??3e5,this[A6r]=m??!0,this[WEe]=w,this[JC]=null,this[h6r]=z>-1?z:-1,this[yi]=null,this[f6r]=U??100,this[p6r]=Z??262144,this[m6r]=he??524288,this[E6r]=Se??6e4,this[zd]=[],this[em]=0,this[jd]=0,this[WC]=Je=>jEe(this,Je),this[g6r]=Je=>Mht(this,Je)}get pipelining(){return this[$J]}set pipelining(e){this[$J]=e,this[WC](!0)}get stats(){return new J5r(this)}get[Iv](){return this[zd].length-this[jd]}get[Cv](){return this[jd]-this[em]}get[pv](){return this[zd].length-this[em]}get[$5r](){return!!this[yi]&&!this[bD]&&!this[yi].destroyed}get[VEe](){return!!(this[yi]?.busy(null)||this[pv]>=(Fht(this)||1)||this[Iv]>0)}[Z5r](e){vht(this),this.once("connect",e)}[d6r](e,r){let n=new V5r(this[Tg].origin,e,r);return this[zd].push(n),this[wQ]||(bQ.bodyLength(n.body)==null&&bQ.isIterable(n.body)?(this[wQ]=1,queueMicrotask(()=>jEe(this))):this[WC](!0)),this[wQ]&&this[VC]!==2&&this[VEe]&&(this[VC]=2),this[VC]<2}[u6r](){return new Promise(e=>{this[pv]?this[JC]=e:e(null)})}[l6r](e){return new Promise(r=>{let n=this[zd].splice(this[jd]);for(let i=0;i<n.length;i++){let o=n[i];bQ.errorRequest(this,o,e)}let s=()=>{this[JC]&&(this[JC](),this[JC]=null),r(null)};this[yi]?(this[yi].destroy(e,s),this[yi]=null):queueMicrotask(s),this[WC]()})}};function Mht(t,e){if(t[Cv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$p(t[jd]===t[em]);let r=t[zd].splice(t[em]);for(let n=0;n<r.length;n++){let s=r[n];bQ.errorRequest(t,s,e)}$p(t[pv]===0)}}function vht(t){$p(!t[bD]),$p(!t[yi]);let{host:e,hostname:r,protocol:n,port:s}=t[Tg];if(r[0]==="["){let i=r.indexOf("]");$p(i!==-1);let o=r.substring(1,i);$p(kht.isIPv6(o)),r=o}t[bD]=!0,yD.beforeConnect.hasSubscribers&&yD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv]}),t[mv]({host:e,hostname:r,protocol:n,port:s,servername:t[zC],localAddress:t[Ev]},(i,o)=>{if(i){xht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[WC]();return}if(t.destroyed){bQ.destroy(o.on("error",Dht),new j5r),t[WC]();return}$p(o);try{t[yi]=o.alpnProtocol==="h2"?I6r(t,o):C6r(t,o)}catch(a){o.destroy().on("error",Dht),xht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[WC]();return}t[bD]=!1,o[c6r]=0,o[WEe]=t[WEe],o[X5r]=t,o[t6r]=null,yD.connected.hasSubscribers&&yD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv],socket:o}),t.emit("connect",t[Tg],[t]),t[WC]()})}function xht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[bD]=!1,yD.connectError.hasSubscribers&&yD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($p(t[Cv]===0);t[Iv]>0&&t[zd][t[jd]].servername===t[zC];){let o=t[zd][t[jd]++];bQ.errorRequest(t,o,e)}else Mht(t,e);t.emit("connectionError",t[Tg],[t],e)}}function Tht(t){t[VC]=0,t.emit("drain",t[Tg],[t])}function jEe(t,e){t[wQ]!==2&&(t[wQ]=2,Q6r(t,e),t[wQ]=0,t[em]>256&&(t[zd].splice(0,t[em]),t[jd]-=t[em],t[em]=0))}function Q6r(t,e){for(;;){if(t.destroyed){$p(t[Iv]===0);return}if(t[JC]&&!t[pv]){t[JC](),t[JC]=null;return}if(t[yi]&&t[yi].resume(),t[VEe])t[VC]=2;else if(t[VC]===2){e?(t[VC]=1,queueMicrotask(()=>Tht(t))):Tht(t);continue}if(t[Iv]===0||t[Cv]>=(Fht(t)||1))return;let r=t[zd][t[jd]];if(t[Tg].protocol==="https:"&&t[zC]!==r.servername){if(t[Cv]>0)return;t[zC]=r.servername,t[yi]?.destroy(new z5r("servername changed"),()=>{t[yi]=null,jEe(t)})}if(t[bD])return;if(!t[yi]){vht(t);return}if(t[yi].destroyed||t[yi].busy(r))return;!r.aborted&&t[yi].write(r)?t[jd]++:t[zd].splice(t[jd],1)}}Lht.exports=zEe});var KEe=f((iGn,Uht)=>{"use strict";var eV=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Uht.exports=class{constructor(){this.head=this.tail=new eV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eV),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var tV=f((oGn,Vht)=>{"use strict";var{PoolStats:y6r}=qme(),b6r=hD(),w6r=KEe(),{kConnected:XEe,kSize:Pht,kRunning:_ht,kPending:Oht,kQueued:Bv,kBusy:N6r,kFree:S6r,kUrl:R6r,kClose:D6r,kDestroy:x6r,kDispatch:T6r}=Mn(),So=Symbol("clients"),oA=Symbol("needDrain"),Qv=Symbol("queue"),ZEe=Symbol("closed resolve"),$Ee=Symbol("onDrain"),Hht=Symbol("onConnect"),qht=Symbol("onDisconnect"),Ght=Symbol("onConnectionError"),eCe=Symbol("get dispatcher"),Yht=Symbol("add client"),Jht=Symbol("remove client"),tCe=class extends b6r{[Qv]=new w6r;[Bv]=0;[So]=[];[oA]=!1;[$Ee](e,r,n){let s=this[Qv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[t7])throw new Qp;process.emitWarning(new Qp)}e[wr].timeout&&e[wr].timeoutType===UC&&e[wr].timeout.refresh&&e[wr].timeout.refresh(),n[Vl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Lh]=!1,e&&(Ve(n[wn]<=1,"pipeline should only contain this request"),s(e))}};bwe.exports=EQt});var vwe=C((Iwr,kwe)=>{"use strict";var qa=Q("node:assert"),{pipeline:RQt}=Q("node:stream"),gt=st(),{RequestContentLengthMismatchError:u7,RequestAbortedError:DQt,SocketError:Uw,InformationalError:Uh,InvalidArgumentError:kQt,HeadersTimeoutError:vQt,BodyTimeoutError:FQt}=et(),{kUrl:Lw,kReset:dF,kClient:Lo,kRunning:Pw,kPending:MQt,kQueue:Fw,kPendingIdx:Tp,kRunningIdx:tu,kError:Uo,kSocket:qr,kStrictContentLength:_Qt,kOnError:PC,kMaxConcurrentStreams:l7,kPingInterval:wwe,kHTTP2Session:Jl,kHTTP2InitialWindowSize:LQt,kHTTP2ConnectionWindowSize:UQt,kResume:ru,kSize:PQt,kHTTPContext:h7,kClosed:d7,kBodyTimeout:OQt,kHeadersTimeout:HQt,kEnableConnectProtocol:Mw,kRemoteSettings:_w,kHTTP2Stream:uF,kHTTP2SessionState:f7}=sr(),{channels:Swe}=Fh(),Ga=Symbol("open streams"),Nwe,lF;try{lF=Q("node:http2")}catch{lF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:GQt,HTTP2_HEADER_METHOD:Twe,HTTP2_HEADER_PATH:xwe,HTTP2_HEADER_SCHEME:a7,HTTP2_HEADER_CONTENT_LENGTH:qQt,HTTP2_HEADER_EXPECT:YQt,HTTP2_HEADER_STATUS:A7,HTTP2_HEADER_PROTOCOL:VQt,NGHTTP2_REFUSED_STREAM:JQt,NGHTTP2_CANCEL:WQt}}=lF;function c7(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}function zQt(t,e){t[qr]=e;let r=t[LQt],n=t[UQt],s=lF.connect(t[Lw],{createConnection:()=>e,peerMaxConcurrentStreams:t[l7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[qr]=e,s[Ga]=0,s[Lo]=t,s[qr]=e,s[f7]={ping:{interval:t[wwe]===0?null:setInterval(ZQt,t[wwe],s).unref()}},s[Mw]=!1,s[_w]=!1,n&&gt.addListener(s,"connect",KQt.bind(s,n)),gt.addListener(s,"error",$Qt),gt.addListener(s,"frameError",ewt),gt.addListener(s,"end",twt),gt.addListener(s,"goaway",rwt),gt.addListener(s,"close",nwt),gt.addListener(s,"remoteSettings",XQt),s.unref(),t[Jl]=s,e[Jl]=s,gt.addListener(e,"error",iwt),gt.addListener(e,"end",owt),gt.addListener(e,"close",swt),e[d7]=!1,e.on("close",awt),{version:"h2",defaultPipelining:1/0,write(i){return cwt(t,i)},resume(){jQt(t)},destroy(i,o){e[d7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Pw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[_w]===!1||gt.bodyLength(i.body)!==0&&(gt.isStream(i.body)||gt.isAsyncIterable(i.body)||gt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[_w]===!1;return!1}}}function jQt(t){let e=t[qr];e?.destroyed===!1&&(t[PQt]===0?(e.unref(),t[Jl].unref()):(e.ref(),t[Jl].ref()))}function KQt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function XQt(t){if(this[Lo][l7]=t.maxConcurrentStreams??this[Lo][l7],this[_w]===!0&&this[Mw]===!0&&t.enableConnectProtocol===!1){let e=new Uh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[qr][Uo]=e,this[Lo][PC](e);return}this[Mw]=t.enableConnectProtocol??this[Mw],this[_w]=!0,this[Lo][ru]()}function ZQt(t){let e=t[f7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Lo],o=this[Lo];if(n!=null){let a=new Uh(`HTTP/2: "PING" errored - type ${n.message}`);o[Uo]=a,i[PC](a)}else i.emit("ping",s)}}function $Qt(t){qa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qr][Uo]=t,this[Lo][PC](t)}function ewt(t,e,r){if(r===0){let n=new Uh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[qr][Uo]=n,this[Lo][PC](n)}}function twt(){let t=new Uw("other side closed",gt.getSocketInfo(this[qr]));this.destroy(t),gt.destroy(this[qr],t)}function vw(t,e,r=!1){let n=t[Fw],s=t[tu];if(s<t[Tp]&&n[s]===e){n[s]=null,t[tu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Tp]||(n.splice(i,1),t[Tp]--,r&&t[Tp]<t[tu]&&(t[Tp]=t[tu]))}function rwt(t){let e=this[Uo]||new Uw(`HTTP/2: "GOAWAY" frame received with code ${t}`,gt.getSocketInfo(this[qr])),r=this[Lo];if(r[qr]=null,r[h7]=null,this.close(),this[Jl]=null,gt.destroy(this[qr],e),r[tu]<r[Fw].length){let n=r[Fw][r[tu]];r[Fw][r[tu]++]=null,n!=null&&gt.errorRequest(r,n,e),r[Tp]=r[tu]}qa(r[Pw]===0),r.emit("disconnect",r[Lw],[r],e),r.emit("connectionError",r[Lw],[r],e),r[ru]()}function nwt(){let{[Lo]:t,[f7]:e}=this,{[qr]:r}=t,n=this[qr][Uo]||this[Uo]||new Uw("closed",gt.getSocketInfo(r));if(t[qr]=null,t[h7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){qa(t[MQt]===0);let s=t[Fw].splice(t[tu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&gt.errorRequest(t,o,n)}}}function swt(){let t=this[Uo]||new Uw("closed",gt.getSocketInfo(this)),e=this[Jl][Lo];e[qr]=null,e[h7]=null,this[Jl]!==null&&this[ Line truncated
`;Swe.sendHeaders.publish({request:e,headers:P,socket:s[qr]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[YQt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[uF]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[uF]=!0,L()),++s[Ga],g.setTimeout(r);let Y=!1;return g.once("response",P=>{let{[A7]:k,...j}=P;if(e.onResponseStarted(),Y=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),c7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),Y?(!e.aborted&&!e.completed&&e.onComplete({}),vw(t,e),t[ru]()):(I(new Uh("HTTP/2: stream half-closed (remote)")),vw(t,e,!0),t[ru]())}),g.once("close",()=>{g.removeAllListeners("data"),s[Ga]-=1,s[Ga]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Uh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Uh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=Y?new FQt(`HTTP/2: "body timeout after ${n}"`):new vQt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[Ga]-=1,s[Ga]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Rwe(I,g,null,t,e,t[qr],B,y):gt.isBuffer(h)?Rwe(I,g,h,t,e,t[qr],B,y):gt.isBlobLike(h)?typeof h.stream=="function"?Dwe(I,g,h.stream(),t,e,t[qr],B,y):lwt(I,g,h,t,e,t[qr],B,y):gt.isStream(h)?uwt(I,t[qr],y,g,h,t,e,B):gt.isIterable(h)?Dwe(I,g,h,t,e,t[qr],B,y):qa(!1)}}function Rwe(t,e,r,n,s,i,o,a){try{r!=null&&gt.isBuffer(r)&&(qa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[dF]=!0),s.onRequestSent(),n[ru]()}catch(A){t(A)}}function uwt(t,e,r,n,s,i,o,a){qa(a!==0||i[Pw]===0,"stream body cannot be pipelined");let A=RQt(s,n,u=>{u?(gt.destroy(A,u),t(u)):(gt.removeAllListeners(A),o.onRequestSent(),r||(e[dF]=!0),i[ru]())});gt.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function lwt(t,e,r,n,s,i,o,a){qa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new u7;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[dF]=!0),n[ru]()}catch(A){t(A)}}async function Dwe(t,e,r,n,s,i,o,a){qa(o!==0||n[Pw]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{qa(A===null),i[Uo]?d(i[Uo]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Uo])throw i[Uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[dF]=!0),n[ru]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}kwe.exports=zQt});var Gh=C((ywr,Hwe)=>{"use strict";var Wl=Q("node:assert"),Lwe=Q("node:net"),Ow=Q("node:http"),xp=st(),{ClientStats:dwt}=aW(),{channels:OC}=Fh(),hwt=Xbe(),fwt=Cp(),{InvalidArgumentError:Sr,InformationalError:gwt,ClientDestroyedError:pwt}=et(),mwt=Ip(),{kUrl:nu,kServerName:Hh,kClient:Ewt,kBusy:p7,kConnect:Cwt,kResuming:Rp,kRunning:Yw,kPending:Vw,kSize:Hw,kQueue:OA,kConnected:Iwt,kConnecting:HC,kNeedDrain:Oh,kKeepAliveDefaultTimeout:Fwe,kHostHeader:ywt,kPendingIdx:HA,kRunningIdx:jl,kError:Bwt,kPipelining:hF,kKeepAliveTimeoutValue:bwt,kMaxHeadersSize:Qwt,kKeepAliveMaxTimeout:wwt,kKeepAliveTimeoutThreshold:Swt,kHeadersTimeout:Nwt,kBodyTimeout:Twt,kStrictContentLength:xwt,kConnector:Gw,kMaxRequests:m7,kCounter:Rwt,kClose:Dwt,kDestroy:kwt,kDispatch:vwt,kLocalAddress:qw,kMaxResponseSize:Fwt,kOnError:Mwt,kHTTPContext:pn,kMaxConcurrentStreams:_wt,kHTTP2InitialWindowSize:Lwt,kHTTP2ConnectionWindowSize:Uwt,kResume:zl,kPingInterval:Pwt}=sr(),Owt=Qwe(),Hwt=vwe(),Ph=Symbol("kClosedResolve"),Gwt=Ow&&Ow.maxHeaderSize&&Number.isInteger(Ow.maxHeaderSize)&&Ow.maxHeaderSize>0?()=>Ow.maxHeaderSize:()=>{throw new Sr("http module not available or http.maxHeaderSize invalid")},Mwe=()=>{};function Uwe(t){return t[hF]??t[pn]?.defaultPipelining??1}var E7=class extends fwt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:F,maxResponseSize:Y,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:re,connectionWindowSize:Ae,pingInterval:de,webSocket:ke}={}){if(c!==void 0)throw new Sr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Sr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Sr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[Twt]=a??3e5,this[Nwt]=n??3e5,this[xwt]=m??!0,this[m7]=B,this[Ph]=null,this[Fwt]=Y>-1?Y:-1,this[pn]=null,this[_wt]=k??100,this[Lwt]=re??262144,this[Uwt]=Ae??524288,this[Pwt]=de??6e4,this[OA]=[],this[jl]=0,this[HA]=0,this[zl]=ve=>C7(this,ve),this[Mwt]=ve=>Pwe(this,ve)}get pipelining(){return this[hF]}set pipelining(e){this[hF]=e,this[zl](!0)}get stats(){return new dwt(this)}get[Vw](){return this[OA].length-this[HA]}get[Yw](){return this[HA]-this[jl]}get[Hw](){return this[OA].length-this[jl]}get[Iwt](){return!!this[pn]&&!this[HC]&&!this[pn].destroyed}get[p7](){return!!(this[pn]?.busy(null)||this[Hw]>=(Uwe(this)||1)||this[Vw]>0)}[Cwt](e){Owe(this),this.once("connect",e)}[vwt](e,r){let n=new hwt(this[nu].origin,e,r);return this[OA].push(n),this[Rp]||(xp.bodyLength(n.body)==null&&xp.isIterable(n.body)?(this[Rp]=1,queueMicrotask(()=>C7(this))):this[zl](!0)),this[Rp]&&this[Oh]!==2&&this[p7]&&(this[Oh]=2),this[Oh]<2}[Dwt](){return new Promise(e=>{this[Hw]?this[Ph]=e:e(null)})}[kwt](e){return new Promise(r=>{let n=this[OA].splice(this[HA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&xp.errorRequest(this,o,e)}let s=()=>{this[Ph]&&(this[Ph](),this[Ph]=null),r(null)};this[pn]?(this[pn].destroy(e,s),this[pn]=null):queueMicrotask(s),this[zl]()})}};function Pwe(t,e){if(t[Yw]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wl(t[HA]===t[jl]);let r=t[OA].splice(t[jl]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&xp.errorRequest(t,s,e)}Wl(t[Hw]===0)}}function Owe(t){Wl(!t[HC]),Wl(!t[pn]);let{host:e,hostname:r,protocol:n,port:s}=t[nu];if(r[0]==="["){let i=r.indexOf("]");Wl(i!==-1);let o=r.substring(1,i);Wl(Lwe.isIPv6(o)),r=o}t[HC]=!0,OC.beforeConnect.hasSubscribers&&OC.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw]});try{t[Gw]({host:e,hostname:r,protocol:n,port:s,servername:t[Hh],localAddress:t[qw]},(i,o)=>{if(i){g7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[zl]();return}if(t.destroyed){xp.destroy(o.on("error",Mwe),new pwt),t[zl]();return}Wl(o);try{t[pn]=o.alpnProtocol==="h2"?Hwt(t,o):Owt(t,o)}catch(a){o.destroy().on("error",Mwe),g7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[zl]();return}t[HC]=!1,o[Rwt]=0,o[m7]=t[m7],o[Ewt]=t,o[Bwt]=null,OC.connected.hasSubscribers&&OC.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw],socket:o}),t.emit("connect",t[nu],[t]),t[zl]()})}catch(i){g7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[zl]()}}function g7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[HC]=!1,OC.connectError.hasSubscribers&&OC.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wl(t[Yw]===0);t[Vw]>0&&t[OA][t[HA]].servername===t[Hh];){let o=t[OA][t[HA]++];xp.errorRequest(t,o,e)}else Pwe(t,e);t.emit("connectionError",t[nu],[t],e)}}function _we(t){t[Oh]=0,t.emit("drain",t[nu],[t])}function C7(t,e){t[Rp]!==2&&(t[Rp]=2,qwt(t,e),t[Rp]=0,t[jl]>256&&(t[OA].splice(0,t[jl]),t[HA]-=t[jl],t[jl]=0))}function qwt(t,e){for(;;){if(t.destroyed){Wl(t[Vw]===0);return}if(t[Ph]&&!t[Hw]){t[Ph](),t[Ph]=null;return}if(t[pn]&&t[pn].resume(),t[p7])t[Oh]=2;else if(t[Oh]===2){e?(t[Oh]=1,queueMicrotask(()=>_we(t))):_we(t);continue}if(t[Vw]===0||t[Yw]>=(Uwe(t)||1))return;let r=t[OA][t[HA]];if(r===null)return;if(t[nu].protocol==="https:"&&t[Hh]!==r.servername){if(t[Yw]>0)return;t[Hh]=r.servername,t[pn]?.destroy(new gwt("servername changed"),()=>{t[pn]=null,C7(t)})}if(t[HC])return;if(!t[pn]){Owe(t);return}if(t[pn].destroyed||t[pn].busy(r))return;!r.aborted&&t[pn].write(r)?t[HA]++:t[OA].splice(t[HA],1)}}Hwe.exports=E7});var I7=C((bwr,Gwe)=>{"use strict";var fF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Gwe.exports=class{constructor(){this.head=this.tail=new fF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new fF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var gF=C((Qwr,Xwe)=>{"use strict";var{PoolStats:Ywt}=aW(),Vwt=Cp(),Jwt=I7(),{kConnected:y7,kSize:qwe,kRunning:Ywe,kPending:Vwe,kQueued:Jw,kBusy:Wwt,kFree:zwt,kUrl:jwt,kClose:Kwt,kDestroy:Xwt,kDispatch:Zwt}=sr(),is=Symbol("clients"),li=Symbol("needDrain"),Ww=Symbol("queue"),B7=Symbol("closed resolve"),b7=Symbol("onDrain"),Jwe=Symbol("onConnect"),Wwe=Symbol("onDisconnect"),zwe=Symbol("onConnectionError"),Q7=Symbol("get dispatcher"),jwe=Symbol("add client"),Kwe=Symbol("remove client"),w7=class extends Vwt{[Ww]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";var{InvalidArgumentError:uVr}=or(),{runtimeFeatures:lVr}=Kp();function dVr(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var rpt=lVr.has("crypto")?B("node:crypto"):null,hVr=rpt?.hash?t=>rpt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function spt(t){return Array.isArray(t)&&(t.length&1)===0}function gVr(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function fVr(t){let e={};if(!t)return e;if(spt(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var npt=["record","playback","update"];function pVr(t){if(!npt.includes(t))throw new uVr(`Invalid snapshot mode: ${t}. Must be one of: ${npt.join(", ")}`)}ipt.exports={createHeaderFilters:dVr,hashId:hVr,isUndiciHeaders:spt,normalizeHeaders:fVr,isUrlExcludedFactory:gVr,validateSnapshotMode:pVr}});var gpt=f((vGn,hpt)=>{"use strict";var{writeFile:mVr,readFile:EVr,mkdir:CVr}=B("node:fs/promises"),{dirname:IVr,resolve:opt}=B("node:path"),{setTimeout:BVr,clearTimeout:apt}=B("node:timers"),{InvalidArgumentError:Apt,UndiciError:QVr}=or(),{hashId:yVr,isUrlExcludedFactory:bVr,normalizeHeaders:cpt,createHeaderFilters:upt}=fIe();function Mv(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||cpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:lpt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function lpt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function dpt(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function vv(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return yVr(r)}var pIe=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=upt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=bVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Mv(e,this.#a,this.matchOptions),s=vv(n),i=cpt(r.headers),o={statusCode:r.statusCode,headers:dpt(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Mv(e,this.#a,this.matchOptions),n=vv(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Apt("Snapshot path is required");try{let n=await EVr(opt(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new QVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Apt("Snapshot path is required");let n=opt(r);await CVr(IVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await mVr(n,JS Line truncated
${e.format(r)}`.trim())}};BNe.exports=qz});var Vz=C((t1r,SNe)=>{"use strict";var{InvalidArgumentError:zNt}=et(),{runtimeFeatures:jNt}=ql();function KNt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var bNe=jNt.has("crypto")?Q("node:crypto"):null,XNt=bNe?.hash?t=>bNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wNe(t){return Array.isArray(t)&&(t.length&1)===0}function ZNt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function $Nt(t){let e={};if(!t)return e;if(wNe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var QNe=["record","playback","update"];function eTt(t){if(!QNe.includes(t))throw new zNt(`Invalid snapshot mode: ${t}. Must be one of: ${QNe.join(", ")}`)}SNe.exports={createHeaderFilters:KNt,hashId:XNt,isUndiciHeaders:wNe,normalizeHeaders:$Nt,isUrlExcludedFactory:ZNt,validateSnapshotMode:eTt}});var MNe=C((r1r,FNe)=>{"use strict";var{writeFile:tTt,readFile:rTt,mkdir:nTt}=Q("node:fs/promises"),{dirname:sTt,resolve:NNe}=Q("node:path"),{setTimeout:iTt,clearTimeout:TNe}=Q("node:timers"),{InvalidArgumentError:xNe,UndiciError:oTt}=et(),{hashId:aTt,isUrlExcludedFactory:ATt,normalizeHeaders:RNe,createHeaderFilters:DNe}=Vz();function o1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||RNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function vNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function a1(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return aTt(r)}var Jz=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=DNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ATt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=o1(e,this.#a,this.matchOptions),s=a1(n),i=RNe(r.headers),o={statusCode:r.statusCode,headers:vNe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=o1(e,this.#a,this.matchOptions),n=a1(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new xNe("Snapshot path is required");try{let n=await rTt(NNe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new oTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new xNe("Snapshot path is required");let n=NNe(r);await nTt(sTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await tTt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${cu} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Oo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${cu}_getValuesQuery ON cacheInterceptorV${cu}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${cu}_deleteByUrlQuery ON cacheInterceptorV${cu}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Oo}_getValuesQuery ON cacheInterceptorV${Oo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Oo}_deleteByUrlQuery ON cacheInterceptorV${Oo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${cu}
FROM cacheInterceptorV${Oo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${cu} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Oo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${cu} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Oo} (
url,
method,
body,
@@ -331,137 +182,141 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${cu} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${cu}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${cu} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${cu}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${Oo} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Oo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Oo} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Oo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${cu}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Oo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){PIe(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){PIe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){PIe(e),szr(r);let n=0,s=[],i=this;return new nzr({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#h(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!izr(s[l],u[l])){c=!1;break}}if(c)return A}}};function izr(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var vQ=f((n8n,Cmt)=>{"use strict";var{kConstruct:ozr}=Mn(),{kEnumerableProperty:_D}=Wt(),{iteratorMixin:azr,isValidHeaderName:_v,isValidHeaderValue:gmt}=su(),{webidl:Pr}=zo(),OIe=B("node:assert"),kV=B("node:util");function hmt(t){return t===10||t===13||t===9||t===32}function fmt(t){let e=0,r=t.length;for(;r>e&&hmt(t.charCodeAt(r-1));)--r;for(;r>e&&hmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function pmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});HIe(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)HIe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function HIe(t,e,r){if(r=fmt(r),_v(e)){if(!gmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Emt(t)==="immutable")throw new TypeError("immutable");return MV(t).append(e,r,!1)}function Azr(t){let e=MV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function mmt(t,e){return t[0]<e[0]?-1:1}var FV=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${i}`;break;case"retry":wCt(i)&&(r[s]=i);break;case"id":NCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&wCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&NCt(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,event:void 0,id:void 0,retry:void 0}}};SCt.exports={EventSourceStream:yBe}});var LCt=f((R8n,vCt)=>{"use strict";var{pipeline:bXr}=B("node:stream"),{fetching:wXr}=Yv(),{makeRequest:NXr}=HD(),{webidl:AA}=zo(),{EventSourceStream:SXr}=RCt(),{parseMIMEType:RXr}=Ll(),{createFastMessageEvent:DXr}=iW(),{isNetworkError:DCt}=Hv(),{kEnumerableProperty:GQ}=Wt(),{environmentSettingsObject:xCt}=su(),TCt=!1,kCt=3e3,Kv=0,FCt=1,Xv=2,xXr="anonymous",TXr="use-credentials",XD=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Kv;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),AA.util.markAsUncloneable(this);let n="EventSource constructor";AA.argumentLengthCheck(arguments,1,n),TCt||(TCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=AA.converters.USVString(e),r=AA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=xCt,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=xXr;r.withCredentials===!0&&(o=TXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xCt.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=NXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===Xv)return;this.#r=Kv;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!DCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(DCt(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?RXr(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=FCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new SXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(DXr(A.type,A.options))}});bXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wXr(e)}#c(){this.#r!==Xv&&(this.#r=Kv,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===Kv&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){AA.brandCheck(this,t),this.#r!==Xv&&(this.#r=Xv,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},MCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:FCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xv,writable:!1}};Object.defineProperties(XD,MCt);Object.defineProperties(XD.prototype,MCt);Object.defineProperties(XD.prototype,{close:GQ,onerror:GQ,onmessage:GQ,onopen:GQ,readyState:GQ,url:GQ,withCredentials:GQ});AA.converters.EventSourceInitDict=AA.dictionaryConverter([{key:"withCredentials",converter:AA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:AA.converters.any},{key:"node",converter:AA.dictionaryConverter([{key:"reconnectionTime",converter:AA.converters["unsigned long"],defaultValue:()=>kCt},{key:"dispatcher",converter:AA.converters.any}]),defaultValue:()=>({})}]);vCt.exports={EventSource:XD,defaultReconnectionTime:kCt}});var qCt=f((D8n,Oe)=>{"use strict";var kXr=jC(),PCt=XM(),FXr=wD(),MXr=egt(),vXr=sgt(),LXr=RQ(),UXr=ECe(),PXr=Rgt(),_Xr=Mgt(),OXr=Ugt(),_Ct=or(),CW=Wt(),{InvalidArgumentError:EW}=_Ct,ZD=Eft(),HXr=gD(),qXr=rIe(),{MockCallHistory:GXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){yj(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){yj(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){yj(e),dRt(r);let n=0,s=[],i=this;return new lRt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!hRt(s[l],u[l])){c=!1;break}}if(c)return A}}};function hRt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Kp=C((Q1r,ixe)=>{"use strict";var{kConstruct:fRt}=sr(),{kEnumerableProperty:nI}=st(),{iteratorMixin:gRt,isValidHeaderName:d1,isValidHeaderValue:exe}=Mo(),{webidl:Mt}=Cs(),bj=Q("node:assert"),WF=Q("node:util");function $Te(t){return t===10||t===13||t===9||t===32}function txe(t){let e=0,r=t.length;for(;r>e&&$Te(t.charCodeAt(r-1));)--r;for(;r>e&&$Te(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});Qj(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)Qj(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Qj(t,e,r){if(r=txe(r),d1(e)){if(!exe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sxe(t)==="immutable")throw new TypeError("immutable");return jF(t).append(e,r,!1)}function pRt(t){let e=jF(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function nxe(t,e){return t[0]<e[0]?-1:1}var zF=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(kM(e,s,Lvt)){Uvt(e,i)&&(r.retry=e.toString("utf8",i));return}if(kM(e,s,_vt)){Pvt(e,i)&&(r.id=e.toString("utf8",i));return}if(kM(e,s,Mvt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Rvt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Dvt(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,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===gI[0]||(this.checkBOM=!1),!0):n===void 0?e===gI[0]&&r===gI[1]?!0:(this.checkBOM=!1,!1):(e===gI[0]&&r===gI[1]&&n===gI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};uDe.exports={EventSourceStream:uK}});var CDe=C((j1r,EDe)=>{"use strict";var{pipeline:Ovt}=Q("node:stream"),{fetching:Hvt}=m1(),{makeRequest:Gvt}=iI(),{webidl:hi}=Cs(),{EventSourceStream:qvt}=lDe(),{parseMIMEType:Yvt}=Pa(),{createFastMessageEvent:Vvt}=IM(),{isNetworkError:dDe}=f1(),{kEnumerableProperty:sm}=st(),{environmentSettingsObject:hDe}=Mo(),fDe=!1,gDe=3e3,Q1=0,pDe=1,w1=2,Jvt="anonymous",Wvt="use-credentials",pI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Q1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hi.util.markAsUncloneable(this);let n="EventSource constructor";hi.argumentLengthCheck(arguments,1,n),fDe||(fDe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hi.converters.USVString(e),r=hi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=hDe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Jvt;r.withCredentials===!0&&(o=Wvt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hDe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Gvt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===w1)return;this.#r=Q1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!dDe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dDe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?Yvt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=pDe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new qvt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Vvt(A.type,A.options))}});Ovt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Hvt(e)}#c(){this.#r!==w1&&(this.#r=Q1,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return eZr(e,r).catch(n=>{throw UCt?HCt(n,UCt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=vQ().Headers;Oe.exports.Response=Hv().Response;Oe.exports.Request=HD().Request;Oe.exports.FormData=HJ().FormData;var{setGlobalOrigin:tZr,getGlobalOrigin:rZr}=oEe();Oe.exports.setGlobalOrigin=tZr;Oe.exports.getGlobalOrigin=rZr;var{CacheStorage:nZr}=QEt(),{kConstruct:sZr}=Mn();Oe.exports.caches=new nZr(sZr);var{deleteCookie:iZr,getCookies:oZr,getSetCookies:aZr,setCookie:AZr,parseCookie:cZr}=vEt();Oe.exports.deleteCookie=iZr;Oe.exports.getCookies=oZr;Oe.exports.getSetCookies=aZr;Oe.exports.setCookie=AZr;Oe.exports.parseCookie=cZr;var{parseMIMEType:uZr,serializeAMimeType:lZr}=Ll();Oe.exports.parseMIMEType=uZr;Oe.exports.serializeAMimeType=lZr;var{CloseEvent:dZr,ErrorEvent:hZr,MessageEvent:gZr}=iW(),{WebSocket:fZr,ping:pZr}=gCt();Oe.exports.WebSocket=fZr;Oe.exports.CloseEvent=dZr;Oe.exports.ErrorEvent=hZr;Oe.exports.MessageEvent=gZr;Oe.exports.ping=pZr;Oe.exports.WebSocketStream=QCt().WebSocketStream;Oe.exports.WebSocketError=EBe().WebSocketError;Oe.exports.request=Zv(ZD.request);Oe.exports.stream=Zv(ZD.stream);Oe.exports.pipeline=Zv(ZD.pipeline);Oe.exports.connect=Zv(ZD.connect);Oe.exports.upgrade=Zv(ZD.upgrade);Oe.exports.MockClient=qXr;Oe.exports.MockCallHistory=GXr;Oe.exports.MockCallHistoryLog=YXr;Oe.exports.MockPool=VXr;Oe.exports.MockAgent=JXr;Oe.exports.SnapshotAgent=WXr;Oe.exports.mockErrors=zXr;var{EventSource:mZr}=LCt();Oe.exports.EventSource=mZr;function EZr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=EZr});var $v=f(sI=>{"use strict";sI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");sI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");sI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";sI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);sI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);sI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());sI.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var YCt=f((k8n,GCt)=>{"use strict";var{asciiLowercase:IW,solelyContainsHTTPTokenCodePoints:CZr,soleyContainsHTTPQuotedStringTokenCodePoints:IZr}=$v();GCt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=IW(String(e)),this._map.get(e)}has(e){return e=IW(String(e)),this._map.has(e)}set(e,r){if(e=IW(String(e)),r=String(r),!CZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!IZr(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=IW(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var WCt=f((F8n,VCt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:BZr,removeTrailingHTTPWhitespace:JCt,isHTTPWhitespaceChar:QZr,solelyContainsHTTPTokenCodePoints:bBe,soleyContainsHTTPQuotedStringTokenCodePoints:yZr,asciiLowercase:wBe,collectAnHTTPQuotedString:bZr}=$v();VCt.exports=t=>{t=BZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!bBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=JCt(n),n.length===0||!bBe(n))return null;let s={type:wBe(r),subtype:wBe(n),parameters:new Map};for(;e<t.length;){for(++e;QZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=wBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=bZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=JCt(o),o==="")continue}i.length>0&&bBe(i)&&yZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var jCt=f((M8n,zCt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:wZr}=$v();zCt.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!wZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var $Ct=f((L8n,ZCt)=>{"use strict";var NZr=YCt(),SZr=WCt(),RZr=jCt(),{asciiLowercase:KCt,solelyContainsHTTPTokenCodePoints:XCt}=$v();ZCt.exports=class{constructor(e){e=String(e);let r=SZr(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new NZr(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=KCt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!XCt(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=KCt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!XCt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return RZr(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var fIt=f((V3n,zZr)=>{zZr.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return uyt(this.pattern,this.options)}parse(e,r){Bj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return oh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=ENe,i=!0;break;case"?":s+=BNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;ayt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:oyt[c].open,close:oyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+Rin(Nin(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),ayt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,CNe),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?ENe:g.type==="?"?BNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=yin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==CNe?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===CNe)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return win(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?ENe:r.dot?Bin:Qin,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Sin(a):a===oh?oh:a._src).reduce((a,A)=>(a[a.length-1]===oh&&A===oh||a.push(A),a),[]),o.forEach((a,A)=>{a!==oh||o[A-1]===oh||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=oh))}),o.filter(a=>a!==oh).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;INe.sep!=="/"&&(e=e.split(INe.sep).join("/")),e=e.split(Ayt),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Cu.defaults(e).Minimatch}};Cu.Minimatch=Qx});var pyt=f((Hrs,fyt)=>{fyt.exports=gyt;var bNe=B("fs"),{EventEmitter:Din}=B("events"),{Minimatch:yNe}=lyt(),{resolve:xin}=B("path");function Tin(t,e){return new Promise((r,n)=>{bNe.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function dyt(t,e){return new Promise((r,n)=>{(e?bNe.stat:bNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?dyt(t,!1):null):r(null):r(o)})})}async function*hyt(t,e,r,n,s,i){let o=await Tin(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await dyt(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*hyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*kin(t,e,r,n){yield*hyt("",t,e,r,n,!0)}function Fin(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Qj=class extends Din{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Fin(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new yNe(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new yNe(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new yNe(i,{dot:!0}))}this.iterator=kin(xin(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Fm(D){let S=GI(D.toString()),T=S.match(HI);if(T||(T=S.match(ET)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return mFt(e,r).catch(n=>{throw IDe?QDe(n,IDe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ee.exports.fetch),n})};Ee.exports.Headers=Kp().Headers;Ee.exports.Response=f1().Response;Ee.exports.Request=iI().Request;Ee.exports.FormData=tF().FormData;var{setGlobalOrigin:EFt,getGlobalOrigin:CFt}=TW();Ee.exports.setGlobalOrigin=EFt;Ee.exports.getGlobalOrigin=CFt;var{CacheStorage:IFt}=ARe(),{kConstruct:yFt}=sr();Ee.exports.caches=new IFt(yFt);var{deleteCookie:BFt,getCookies:bFt,getSetCookies:QFt,setCookie:wFt,parseCookie:SFt}=IRe();Ee.exports.deleteCookie=BFt;Ee.exports.getCookies=bFt;Ee.exports.getSetCookies=QFt;Ee.exports.setCookie=wFt;Ee.exports.parseCookie=SFt;var{parseMIMEType:NFt,serializeAMimeType:TFt}=Pa();Ee.exports.parseMIMEType=NFt;Ee.exports.serializeAMimeType=TFt;var{CloseEvent:xFt,ErrorEvent:RFt,MessageEvent:DFt}=IM(),{WebSocket:kFt,ping:vFt}=$Re();Ee.exports.WebSocket=kFt;Ee.exports.CloseEvent=xFt;Ee.exports.ErrorEvent=RFt;Ee.exports.MessageEvent=DFt;Ee.exports.ping=vFt;Ee.exports.WebSocketStream=aDe().WebSocketStream;Ee.exports.WebSocketError=iK().WebSocketError;Ee.exports.request=S1(mI.request);Ee.exports.stream=S1(mI.stream);Ee.exports.pipeline=S1(mI.pipeline);Ee.exports.connect=S1(mI.connect);Ee.exports.upgrade=S1(mI.upgrade);Ee.exports.MockClient=iFt;Ee.exports.MockCallHistory=oFt;Ee.exports.MockCallHistoryLog=aFt;Ee.exports.MockPool=cFt;Ee.exports.MockAgent=AFt;Ee.exports.SnapshotAgent=uFt;Ee.exports.mockErrors=lFt;var{EventSource:FFt}=CDe();Ee.exports.EventSource=FFt;function MFt(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=MFt});var N1=C(tf=>{"use strict";tf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");tf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");tf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";tf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);tf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);tf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());tf.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var NDe=C(($1r,SDe)=>{"use strict";var{asciiLowercase:MM,solelyContainsHTTPTokenCodePoints:_Ft,soleyContainsHTTPQuotedStringTokenCodePoints:LFt}=N1();SDe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=MM(String(e)),this._map.get(e)}has(e){return e=MM(String(e)),this._map.has(e)}set(e,r){if(e=MM(String(e)),r=String(r),!_Ft(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!LFt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=MM(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var RDe=C((eSr,xDe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:UFt,removeTrailingHTTPWhitespace:TDe,isHTTPWhitespaceChar:PFt,solelyContainsHTTPTokenCodePoints:lK,soleyContainsHTTPQuotedStringTokenCodePoints:OFt,asciiLowercase:dK,collectAnHTTPQuotedString:HFt}=N1();xDe.exports=t=>{t=UFt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!lK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=TDe(n),n.length===0||!lK(n))return null;let s={type:dK(r),subtype:dK(n),parameters:new Map};for(;e<t.length;){for(++e;PFt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=dK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=HFt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=TDe(o),o==="")continue}i.length>0&&lK(i)&&OFt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var kDe=C((tSr,DDe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:GFt}=N1();DDe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!GFt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _De=C((nSr,MDe)=>{"use strict";var qFt=NDe(),YFt=RDe(),VFt=kDe(),{asciiLowercase:vDe,solelyContainsHTTPTokenCodePoints:FDe}=N1();MDe.exports=class{constructor(e){e=String(e);let r=YFt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new qFt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=vDe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!FDe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=vDe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!FDe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return VFt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var XDe=C((ENr,oMt)=>{oMt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,L,L,f,s);let P=f.type==="*"?nX:f.type==="?"?oX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=QMt[s.charAt(0)];for(let L=A.length-1;L>-1;L--){let P=A[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),re=s.slice(P.reEnd-8,P.reEnd)+Z,Ae=k.split(")").length,de=k.split("(").length-Ae,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==sX?"(?:$|\\/)":"";s=k+j+Z+ve+re}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===sX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return SMt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?nX:r.dot?BMt:bMt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?TMt(a):a===fi?fi:a._src).reduce((a,A)=>(a[a.length-1]===fi&&A===fi||a.push(A),a),[]),o.forEach((a,A)=>{a!==fi||o[A-1]===fi||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=fi))}),o.filter(a=>a!==fi).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;iX.sep!=="/"&&(e=e.split(iX.sep).join("/")),e=e.split(x2e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Vo.defaults(e).Minimatch}};Vo.Minimatch=QI});var L2e=C((jNr,_2e)=>{_2e.exports=M2e;var cX=Q("fs"),{EventEmitter:RMt}=Q("events"),{Minimatch:AX}=k2e(),{resolve:DMt}=Q("path");function kMt(t,e){return new Promise((r,n)=>{cX.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function v2e(t,e){return new Promise((r,n)=>{(e?cX.stat:cX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?v2e(t,!1):null):r(null):r(o)})})}async function*F2e(t,e,r,n,s,i){let o=await kMt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await v2e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*F2e(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*vMt(t,e,r,n){yield*F2e("",t,e,r,n,!0)}function FMt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var HM=class extends RMt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=FMt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new AX(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new AX(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new AX(i,{dot:!0}))}this.iterator=vMt(DMt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,N);N=q===-1?w.length:q}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let q=w.indexOf("*/",N);q!==-1?(N=q+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function On(w){let b=Ys(w.toString()),N=b.match(ro);if(N||(N=b.match(Lu)),!N)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(qI).map(te=>te.replace(km,"").trim())}function YI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Fm(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),mc(T,S)}class JI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):VI(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):VI(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function VI(D,S){D.length=1,D.head=D.tail=S}function Mm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,no;function Nu(KI,...yT){if(KI)return Nt?no(KI):fs();if(yT.length<=1)return fs(yT[0]);fs(yT)}var Jy=Xr._createTaskItem(wt,Nt?Nu:Or||Nu);if(tt?Xr._tasks.unshift(Jy):Xr._tasks.push(Jy),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((KI,yT)=>{fs=KI,no=yT})}function wu(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var no=wt[Or],Nu=se.indexOf(no);Nu===0?se.shift():Nu>0&&se.splice(Nu,1),no.callback(tt,...Nt),tt!=null&&vr("error",tt,no.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Yy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let jI=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,no)=>{if(fs)return Or(fs);Nt(no)})});nt(wt),de(wt,tt)};var QT=!1,Xr={_tasks:new JI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!QT){for(QT=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var no=Z(wu(wt));G(tt,no)}QT=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:jI("saturated")},unsaturated:{writable:!1,value:jI("unsaturated")},empty:{writable:!1,value:jI("empty")},drain:{writable:!1,value:jI("drain")},error:{writable:!1,value:jI("error")}}),Xr}function WI(D,S){return Mm(D,1,S)}function Tf(D,S,T){return Mm(D,S,T)}function mA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var EA=m(mA,4);function vm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),EA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function zI(...D){return vm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Os[Ko]||(Nyt=global[Ko]||[],Ryt(Os,Nyt),Os.close=(function(t){function e(r,n){return t.call(Os,r,function(s){s||Syt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Sj,{value:t}),e})(Os.close),Os.closeSync=(function(t){function e(r){t.apply(Os,arguments),Syt()}return Object.defineProperty(e,Sj,{value:t}),e})(Os.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gy(Os[Ko]),B("assert").equal(Os[Ko].length,0)}));var Nyt;global[Ko]||Ryt(global,Os[Ko]);RNe.exports=NNe(qin(Os));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Os.__patched&&(RNe.exports=NNe(Os),Os.__patched=!0);function NNe(t){Oin(t),t.gracefulify=NNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?yx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?yx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=Hin(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function yx(t){gy("ENQUEUE",t[0].name,t[1]),Os[Ko].push(t),SNe()}var Nj;function Syt(){for(var t=Date.now(),e=0;e<Os[Ko].length;++e)Os[Ko][e].length>2&&(Os[Ko][e][3]=t,Os[Ko][e][4]=t);SNe()}function SNe(){if(clearTimeout(Nj),Nj=void 0,Os[Ko].length!==0){var t=Os[Ko].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)gy("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){gy("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(gy("RETRY",e.name,r),e.apply(null,r.concat([s]))):Os[Ko].push(t)}Nj===void 0&&(Nj=setTimeout(SNe,0))}}});var Rj=f((Vrs,Dyt)=>{"use strict";var mf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mf.writable=t=>mf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};aNt.exports={AggregateError:uSe,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var lSe=f((rss,ANt)=>{"use strict";ANt.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Fa=f((nss,lNt)=>{"use strict";var{format:lun,inspect:Wj}=lSe(),{AggregateError:dun}=Ds(),hun=globalThis.AggregateError||dun,gun=Symbol("kIsNodeError"),fun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],pun=/^([A-Z][a-z0-9]*)+$/,mun="__node_internal_",zj={};function my(t,e){if(!t)throw new zj.ERR_INTERNAL_ASSERTION(e)}function cNt(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Eun(t,e,r){if(typeof e=="function")return my(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return my(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:lun(e,...r)}function Zo(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Eun(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[gun]=!0,zj[t]=n}function uNt(t){let e=mun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Cun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new hun([e,t],e.message);return r.code=e.code,r}return t||e}var dSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new zj.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Zo("ERR_ASSERTION","%s",Error);Zo("ERR_INVALID_ARG_TYPE",(t,e,r)=>{my(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)my(typeof A=="string","All expected entries have to be of type string"),fun.includes(A)?s.push(A.toLowerCase()):pun.test(A)?i.push(A):(my(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,L7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(WEn))?s=r.dot?jEn:zEn:(n=e.match(UEn))?s=(r.nocase?r.dot?HEn:OEn:r.dot?_En:PEn)(n[1]):(n=e.match(KEn))?s=(r.nocase?r.dot?ZEn:XEn:r.dot?$En:eCn)(n):(n=e.match(qEn))?s=r.dot?YEn:GEn:(n=e.match(JEn))&&(s=VEn);let i=CTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?rCn:r.dot?nCn:sCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?uCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Dy;var lCn=LRe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return lCn.AST}});var dCn=URe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return dCn.escape}});var hCn=T7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return hCn.unescape}});et.minimatch.AST=CTt.AST;et.minimatch.Minimatch=Dy;et.minimatch.escape=MEn.escape;et.minimatch.unescape=vEn.unescape});var STt=f(P7=>{"use strict";Object.defineProperty(P7,"__esModule",{value:!0});P7.LRUCache=void 0;var Xx=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bTt=new Set,PRe=typeof process=="object"&&process?process:{},wTt=(t,e,r,n)=>{typeof PRe.emitWarning=="function"?PRe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},U7=globalThis.AbortController,yTt=globalThis.AbortSignal;if(typeof U7>"u"){yTt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},U7=class{constructor(){e()}signal=new yTt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=PRe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,wTt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var gCn=t=>!bTt.has(t),wI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),NTt=t=>wI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Zx:null:null,Zx=class extends Array{constructor(e){super(e),this.fill(0)}},_Re=class t{heap;length;static#e=!1;static create(e){let r=NTt(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ORe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=YDe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=YDe(" "+s+"="+n[s]+`
`);return zr.from(r)};uT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(zr.toString(e.subarray(0,n)),10);if(!s)return r;let i=zr.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};uT.encode=function(e){let r=zr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),zr.byteLength(n)!==n.length)return null;for(;zr.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return zr.byteLength(n)>100||zr.byteLength(s)>155||e.linkname&&zr.byteLength(e.linkname)>100?null:(zr.write(r,n),zr.write(r,FI(e.mode&R0n,6),100),zr.write(r,FI(e.uid,6),108),zr.write(r,FI(e.gid,6),116),v0n(e.size,r,124),zr.write(r,FI(e.mtime.getTime()/1e3|0,11),136),r[156]=BK+F0n(e.type),e.linkname&&zr.write(r,e.linkname,157),zr.copy(kkt,r,iP),zr.copy(w0n,r,JDe),e.uname&&zr.write(r,e.uname,265),e.gname&&zr.write(r,e.gname,297),zr.write(r,FI(e.devmajor||0,6),329),zr.write(r,FI(e.devminor||0,6),337),s&&zr.write(r,s,345),zr.write(r,FI(Mkt(r),6),148),r)};uT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-BK,i=cT(e,0,100,r),o=kI(e,100,8),a=kI(e,108,8),A=kI(e,116,8),c=kI(e,124,12),u=kI(e,136,12),l=k0n(s),d=e[157]===0?null:cT(e,157,100,r),h=cT(e,265,32),g=cT(e,297,32),p=kI(e,329,8),C=kI(e,337,8),m=Mkt(e);if(m===256)return null;if(m!==kI(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(D0n(e))e[345]&&(i=cT(e,345,155,r)+"/"+i);else if(!x0n(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function D0n(t){return zr.equals(kkt,t.subarray(iP,iP+6))}function x0n(t){return zr.equals(N0n,t.subarray(iP,iP+6))&&zr.equals(S0n,t.subarray(JDe,JDe+2))}function T0n(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k0n(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function F0n(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function Fkt(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function Mkt(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function FI(t,e){return t=t.toString(8),t.length>e?b0n.slice(0,e)+" ":y0n.slice(0,e-t.length)+t+" "}function M0n(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function v0n(t,e,r){t.toString(8).length>11?M0n(t,e,r):zr.write(e,FI(t,11),r)}function L0n(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function kI(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return L0n(t);{for(;e<t.length&&t[e]===32;)e++;let n=T0n(Fkt(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(zr.toString(t.subarray(e,n)),8)}}function cT(t,e,r,n){return zr.toString(t.subarray(e,Fkt(t,0,e,e+r)),n)}function YDe(t){let e=zr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var _kt=f((Dos,Pkt)=>{var{Writable:U0n,Readable:P0n,getStreamError:vkt}=GDe(),_0n=RDe(),Lkt=sT(),lT=VDe(),O0n=Lkt.alloc(0),zDe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _0n,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return O0n;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return Lkt.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},jDe=class extends P0n{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(vkt(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=Ukt(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},KDe=class extends U Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function vO(t){process.exitCode=pee.Failure,LO(t)}function yB(){return process.env.RUNNER_DEBUG==="1"}function _e(t){Ff("debug",{},t)}function LO(t,e={}){Ff("error",xP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){Ff("warning",xP(e),t instanceof Error?t.toString():t)}function UUe(t,e={}){Ff("notice",xP(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+LUe.EOL)}function VYt(t){LK("group",t)}function WYt(){LK("endgroup")}function iE(t,e){return JYt(this,void 0,void 0,function*(){VYt(t);let r;try{r=yield e()}finally{WYt()}return r})}function bB(t,e){if(process.env.GITHUB_STATE||"")return UK("STATE",PK(t,e));Ff("save-state",{name:t},kf(e))}function NA(t){return process.env[`STATE_${t}`]||""}var Rje=Xe(V2(),1),XIr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",ZIr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",$Ir="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",eBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.";var Bje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",tBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Qje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",Dje="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",xje="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",gY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=XIr;this.cacheCleanupMessage=Qje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Rje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=ZIr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Bje}setDisabled(e=$Ir){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Bje}setWriteOnly(e=eBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=tBr}setCacheCleanupDisabled(e=Qje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new fY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new fY(i.entryName),i)}return r}},fY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function Tje(t){let e=t.cacheEntries;return`
<details>
<summary><h4>Caching for Gradle actions was ${t.cacheStatus} - expand for details</h4></summary>
`+b);let[,M]=N;return M.replace(/\s/g,"").split(XA).map(q=>q.replace(_m,"").trim())}function iA(w,b){var N={};return Object.keys(w).forEach(M=>{var q=w[M],W,K=h(q),$=!K&&q.length===1||K&&q.length===0;if(Array.isArray(q))W=[...q],q=W.pop(),N[M]=W.concat(W.length>0?ne:q);else if($)N[M]=q;else{if(W=On(q),q.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(ne)}function ne(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(q)(...Jt)}}),_u(N,b)}class oA{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Ed(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Ed(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Ed(w,b){w.length=1,w.head=w.tail=b}function ZA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),q=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(We,Ne){K[We].push(Ne)}function ne(We,Ne){let ze=(...Pt)=>{xe(We,ze),Ne(...Pt)};K[We].push(ze)}function xe(We,Ne){if(!We)return Object.keys(K).forEach(ze=>K[ze]=[]);if(!Ne)return K[We]=[];K[We]=K[We].filter(ze=>ze!==Ne)}function kt(We,...Ne){K[We].forEach(ze=>ze(...Ne))}var Jt=!1;function Ut(We,Ne,ze,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var Dr,qn;function $o(_f,...vy){if(_f)return ze?qn(_f):Dr();if(vy.length<=1)return Dr(vy[0]);Dr(vy)}var zm=Wt._createTaskItem(We,ze?$o:Pt||$o);if(Ne?Wt._tasks.unshift(zm):Wt._tasks.push(zm),Jt||(Jt=!0,c(()=>{Jt=!1,Wt.process()})),ze||!Pt)return new Promise((_f,vy)=>{Dr=_f,qn=vy})}function Zo(We){return function(Ne,...ze){q-=1;for(var Pt=0,Dr=We.length;Pt<Dr;Pt++){var qn=We[Pt],$o=W.indexOf(qn);$o===0?W.shift():$o>0&&W.splice($o,1),qn.callback(Ne,...ze),Ne!=null&&kt("error",Ne,qn.data)}q<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function Wm(We){return We.length===0&&Wt.idle()?(c(()=>kt("drain")),!0):!1}let Mf=We=>Ne=>{if(!Ne)return new Promise((ze,Pt)=>{ne(We,(Dr,qn)=>{if(Dr)return Pt(Dr);ze(qn)})});xe(We),$(We,Ne)};var ky=!1,Wt={_tasks:new oA,_createTaskItem(We,Ne){return{data:We,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!1,!1,Ne)):Ut(We,!1,!1,Ne)},pushAsync(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!1,!0,Ne)):Ut(We,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!0,!1,Ne)):Ut(We,!0,!1,Ne)},unshiftAsync(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!0,!0,Ne)):Ut(We,!0,!0,Ne)},remove(We){Wt._tasks.remove(We)},process(){if(!ky){for(ky=!0;!Wt.paused&&q<Wt.concurrency&&Wt._tasks.length;){var We=[],Ne=[],ze=Wt._tasks.length;Wt.payload&&(ze=Math.min(ze,Wt.payload));for(var Pt=0;Pt<ze;Pt++){var Dr=Wt._tasks.shift();We.push(Dr),W.push(Dr),Ne.push(Dr.data)}q+=1,Wt._tasks.length===0&&kt("empty"),q===Wt.concurrency&&kt("saturated");var qn=re(Zo(We));M(Ne,qn)}ky=!1}},length(){return Wt._tasks.length},running(){return q},workersList(){return W},idle(){return Wt._tasks.length+q===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,c(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Mf("saturated")},unsaturated:{writable:!1,value:Mf("unsaturated")},empty:{writable:!1,value:Mf("empty")},drain:{writable:!1,value:Mf("drain")},error:{writable:!1,value:Mf("error")}}),Wt}function Uu(w,b){return ZA(w,1,b)}function Pu(w,b,N){return ZA(w,b,N)}function Ii(w,b,N,M){M=Y(M);var q=E(N);return us(w,(W,K,$)=>{q(b,W,(ne,xe)=>{b=xe,$(ne)})},W=>M(W,b))}var Vs=m(Ii,4);function Ou(...w){var b=w.map(E);return function(...N){var M=this,q=N[N.length-1];return typeof q=="function"?N.pop():q=KA(),Vs(b,N,(W,K,$)=>{K.apply(M,W.concat((ne,...xe)=>{$(ne,xe)}))},(W,K)=>q(W,...K)),q[sA]}}function Rf(...w){return Ou(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var G=m(Se,4);function x(w,b,N,M){var q=E(N);return G(w,b,(W,K)=>{q(W,($,...ne)=>$?K($):K($,ne))},(W,K)=>{for(var $=[],ne=0;ne<K.length;ne++)K[ne]&&($=$.concat(...K[ne]));return M(W,$)})}var V=m(x,4);function X(w,b,N){return V(w,1/0,b,N)}var ee=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Vr[ys]||(W2e=global[ys]||[],j2e(Vr,W2e),Vr.close=(function(t){function e(r,n){return t.call(Vr,r,function(s){s||z2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,JM,{value:t}),e})(Vr.close),Vr.closeSync=(function(t){function e(r){t.apply(Vr,arguments),z2e()}return Object.defineProperty(e,JM,{value:t}),e})(Vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Am(Vr[ys]),Q("assert").equal(Vr[ys].length,0)}));var W2e;global[ys]||j2e(global,Vr[ys]);hX.exports=lX(qMt(Vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Vr.__patched&&(hX.exports=lX(Vr),Vr.__patched=!0);function lX(t){HMt(t),t.gracefulify=lX,t.createReadStream=F,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),re(k,j,Z);function re(Ae,de,ke,ve){return e(Ae,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?wI([re,[Ae,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return n(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return i(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=0),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return a(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var re=u.test(process.version)?function(ke,ve,rt,_t){return c(ke,Ae(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return c(ke,ve,Ae(ke,ve,rt,_t))};return re(k,j,Z);function Ae(de,ke,ve,rt){return function(_t,Dt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?wI([re,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Dt&&Dt.sort&&Dt.sort(),typeof ve=="function"&&ve.call(this,_t,Dt))}}}if(process.version.substr(0,4)==="v0.8"){var d=GMt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function Y(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return L(de,ke,ve,function(Dt,Cr){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function wI(t){Am("ENQUEUE",t[0].name,t[1]),Vr[ys].push(t),dX()}var VM;function z2e(){for(var t=Date.now(),e=0;e<Vr[ys].length;++e)Vr[ys][e].length>2&&(Vr[ys][e][3]=t,Vr[ys][e][4]=t);dX()}function dX(){if(clearTimeout(VM),VM=void 0,Vr[ys].length!==0){var t=Vr[ys].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Am("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Am("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Am("RETRY",e.name,r),e.apply(null,r.concat([s]))):Vr[ys].push(t)}VM===void 0&&(VM=setTimeout(dX,0))}}});var WM=C((eTr,K2e)=>{"use strict";var yu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yu.writable=t=>yu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yu.readable=t=>yu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};TFe.exports={AggregateError:jX,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var KX=C((uxr,xFe)=>{"use strict";xFe.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Os=C((lxr,kFe)=>{"use strict";var{format:dOt,inspect:d_}=KX(),{AggregateError:hOt}=Pr(),fOt=globalThis.AggregateError||hOt,gOt=Symbol("kIsNodeError"),pOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mOt=/^([A-Z][a-z0-9]*)+$/,EOt="__node_internal_",h_={};function lm(t,e){if(!t)throw new h_.ERR_INTERNAL_ASSERTION(e)}function RFe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function COt(t,e,r){if(typeof e=="function")return lm(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return lm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:dOt(e,...r)}function bs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(COt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[gOt]=!0,h_[t]=n}function DFe(t){let e=EOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function IOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new fOt([e,t],e.message);return r.code=e.code,r}return t||e}var XX=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new h_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};bs("ERR_ASSERTION","%s",Error);bs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{lm(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)lm(typeof A=="string","All expected entries have to be of type string"),pOt.includes(A)?s.push(A.toLowerCase()):mOt.test(A)?i.push(A):(lm(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=Dee(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=Dee(" "+s+"="+n[s]+`
`);return Yt.from(r)};dy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};dy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,bf(e.mode&_Jt,6),100),Yt.write(r,bf(e.uid,6),108),Yt.write(r,bf(e.gid,6),116),qJt(e.size,r,124),Yt.write(r,bf(e.mtime.getTime()/1e3|0,11),136),r[156]=HL+HJt(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(c8e,r,HS),Yt.copy(vJt,r,kee),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,bf(e.devmajor||0,6),329),Yt.write(r,bf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,bf(l8e(r),6),148),r)};dy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-HL,i=ly(e,0,100,r),o=Bf(e,100,8),a=Bf(e,108,8),A=Bf(e,116,8),c=Bf(e,124,12),u=Bf(e,136,12),l=OJt(s),d=e[157]===0?null:ly(e,157,100,r),h=ly(e,265,32),f=ly(e,297,32),g=Bf(e,329,8),E=Bf(e,337,8),m=l8e(e);if(m===256)return null;if(m!==Bf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(LJt(e))e[345]&&(i=ly(e,345,155,r)+"/"+i);else if(!UJt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function LJt(t){return Yt.equals(c8e,t.subarray(HS,HS+6))}function UJt(t){return Yt.equals(FJt,t.subarray(HS,HS+6))&&Yt.equals(MJt,t.subarray(kee,kee+2))}function PJt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function OJt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function HJt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function u8e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function l8e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function bf(t,e){return t=t.toString(8),t.length>e?kJt.slice(0,e)+" ":DJt.slice(0,e-t.length)+t+" "}function GJt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function qJt(t,e,r){t.toString(8).length>11?GJt(t,e,r):Yt.write(e,bf(t,11),r)}function YJt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Bf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return YJt(t);{for(;e<t.length&&t[e]===32;)e++;let n=PJt(u8e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function ly(t,e,r,n){return Yt.toString(t.subarray(e,u8e(t,0,e,e+r)),n)}function Dee(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var p8e=C((ODr,g8e)=>{var{Writable:VJt,Readable:JJt,getStreamError:d8e}=Ree(),WJt=fee(),h8e=oy(),hy=vee(),zJt=h8e.alloc(0),jJt=4*1024*1024,Mee=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new WJt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return zJt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return h8e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},_ee=class extends JJt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(d8e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=f8e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function o8(t){process.exitCode=s8.Failure,oa(t)}function Vd(){return process.env.RUNNER_DEBUG==="1"}function J(t){Qd("debug",{},t)}function oa(t,e={}){Qd("error",hN(e),t instanceof Error?t.toString():t)}function $e(t,e={}){Qd("warning",hN(e),t instanceof Error?t.toString():t)}function Ix(t,e={}){Qd("notice",hN(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+rue.EOL)}function nue(t){mU("group",t)}function sue(){mU("endgroup")}function UB(t,e){if(process.env.GITHUB_STATE||"")return dte("STATE",hte(t,e));Qd("save-state",{name:t},bd(e))}function hc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as iXe,existsSync as oXe}from"fs";import{EOL as aXe}from"os";var J0=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(oXe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(iXe(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${aXe}`)}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 u8=Ie(cue(),1),uue=Ie(dx(),1),IXe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function lue(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}`}function due(t){return new u8.HttpClient().getAgent(t)}function yXe(t){return new u8.HttpClient().getAgentDispatcher(t)}function hue(t){let e=yXe(t);return(n,s)=>IXe(this,void 0,void 0,function*(){return(0,uue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function fue(){return process.env.GITHUB_API_URL||"https://api.github.com"}function l8(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}function Jd(){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>"}function Nx(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,i)=>Nx.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function gue(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function pue(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)}var mue=Function.bind,Eue=mue.bind(mue);function Cue(t,e,r){let n=Eue(pue,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Eue(gue,null).apply(null,i)})}function bXe(){let t=Symbol("Singular"),e={registry:{}},r=Nx.bind(null,e,t);return Cue(r,e,t),r}function QXe(){let t={registry:{}},e=Nx.bind(null,t);return Cue(e,t),e}var Iue={Singular:bXe,Collection:QXe};var wXe="0.0.0-development",SXe=`octokit-endpoint.js/${wXe} ${Jd()}`,NXe={method:"GET",baseUrl:"h Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(E8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=C8(m);if(I&&!y){if(h.has(m))throw new TypeError("Converting circular structure to JSON");h.add(m),d.push({parent:f.val,key:String(f.index),val:m,isArray:Array.isArray(m),keys:Array.isArray(m)?null:Object.keys(m),index:0,first:!0}),f.first=!1,f.index++}else u.push(Wd(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(E8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+Wd(m)+": "):u.push(Wd(m)+":");let F=B!==null&&typeof B=="object",Y=C8(B);if(F&&!Y){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(Wd(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Pue=(t,e,r)=>{try{return"rawJSON"in JSON?Wd(t,(a,A)=>typeof A=="bigint"?JSON.rawJSON(A.toString()):typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r):t?Wd(t,(a,A)=>typeof A=="string"&&xx.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(Fue,"$1$2$3").replace(Mue,"$1$2$3"):Wd(t,e,r)}catch(n){if(n instanceof RangeError){let s=qXe(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Fue,"$1$2$3").replace(Mue,"$1$2$3")}throw n}},Tx=new Map,YXe=()=>{let t=JSON.parse.toString();if(Tx.has(t))return Tx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return Tx.set(t,e),e}catch{return Tx.set(t,!1),!1}},VXe=(t,e,r,n)=>typeof e=="string"&&Uue.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&xx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,JXe=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,A=s&&GXe.test(s.source);return a&&A?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Oue=Number.MAX_SAFE_INTEGER.toString(),_ue=Oue.length,WXe=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,zXe=/^"-?\d+n+"$/,jXe=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Uue.test(a)?a=BigInt(a.slice(0,-1)):xx.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let A=a.length-1;A>=0;A--)n.push({parent:i,key:a[A],visited:!1})}}}return r[""]},Lue=t=>t.replace(WXe,(e,r,n,s)=>{let i=e[0]==='"';if(i&&zXe.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,A=r&&(r.length<_ue||r.length===_ue&&r<=Oue);return i||a||A?e:'"'+e+'n"'}),Hue=(t,e)=>{if(!t)return m8(t,e);try{if(YXe())return JXe(t,e);let r=Lue(t);return m8(r,(n,s,i)=>VXe(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Lue(t),s=m8(n);return jXe(s,e)}throw r}};var al=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var KXe="10.0.16",XXe={headers:{"user-agent":`octokit-request.js/${KXe} ${Jd()}`}};function ZXe(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Gue=()=>"";async function que(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=ZXe(t.body)||Array.isArray(t.body)?Pue(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new al(d,500,{request:t});throw h.cause=l,h}let a=o.status,A=o.url,c={};for(let[l,d]of o.headers)c[l]=d;let u={url:A,status:a,headers:c,data:""};if("deprecation"in c){let l=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new al(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await I8(o),new al("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await I8(o),new al(eZe(u.data),a,{response:u,request:t});return u.data=n?await I8(o):o.body,u}async function I8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Gue);let r=Rue(e);if($Xe(r)){let n="";try{return n=await t.text(),Hue(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var nZe=class extends Error{constructor(t,e,r){super(rZe(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)}request;headers;response;name="GraphqlResponseError";errors;data},sZe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iZe=["query","method","url"],Yue=/\/api\/v3\/?$/;function oZe(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 o in r)if(iZe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>sZe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Yue.test(i)&&(s.url=i.replace(Yue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new nZe(s,a,o.data)}return o.data.data})}function B8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>oZe(r,s,i),{defaults:B8.bind(null,r),endpoint:r.endpoint})}var QKt=B8(HB,{headers:{"user-agent":`octokit-graphql.js/${tZe} ${Jd()}`},method:"POST",url:"/graphql"});function Vue(t){return B8(t,{method:"POST",url:"/graphql"})}var b8="(?:[a-zA-Z0-9_-]+)",Jue="\\.",Wue=new RegExp(`^${b8}${Jue}${b8}${Jue}${b8}$`),aZe=Wue.test.bind(Wue);async function AZe(t){let e=aZe(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"}}function cZe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function uZe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=cZe(t),e(s)}var zue=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(AZe.bind(null,e),{hook:uZe.bind(null,e)})};var Q8="7.0.8";var jue=()=>{},lZe=console.warn.bind(console),dZe=console.error.bind(console);function hZe(t={}){return typeof t.debug!="function"&&(t.debug=jue),typeof t.info!="function"&&(t.info=jue),typeof t.warn!="function"&&(t.warn=lZe),typeof t.error!="function"&&(t.error=dZe),t}var Kue=`octokit-core.js/${Q8} ${Jd()}`,Rx=class{static VERSION=Q8;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Iue.Collection,n={baseUrl:HB.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} ${Kue}`:Kue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HB.defaults(n),this.graphql=Vue(this.request).defaults(n),this.log=hZe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=zue(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var w8="17.0.0";var fZe={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
`)}
`:`${rle(t.status,e)}
${rBr(e)}
${D8[t.status]}
`}function Ale(t){return t==="enabled"||t==="read-only"||t==="write-only"}function rle(t,e){if(!Ale(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function bZe(t){return t?yZe[t]:void 0}function QZe(t){return t?BZe[t]:void 0}function wZe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Zs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${IZe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Zs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Zs}#enhanced-caching)** provider.`}function SZe(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=cle(e)?`Entries: ${r} restored (${kx(e,u=>u.restoredSize)}Mb), ${n} saved (${kx(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?bZe(t.cleanup):void 0,o=QZe(t.projectCache),a=NZe(t.entries),A=`<pre>
${TZe(t.entries)}</pre>`,c=[D8[t.status],i,o,a,A].filter(Boolean).join(`
<h5>Cache Entry Details</h5>
<pre>
${nBr(t)}
</pre>
</details>
`}function rBr(t){return`
<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</tr>
`);return`<details>
<summary>${s}</summary>
${c}
</details>`}function cle(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function NZe(t){return cle(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${yje(t,e=>e.restoredSize)}</td>
<td>${bje(t,e=>e.restoredSize)}</td>
<td>${wje(t,e=>e.restoredTime)}</td>
<td>${nle(t,e=>e.restoredSize)}</td>
<td>${kx(t,e=>e.restoredSize)}</td>
<td>${sle(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${yje(t,e=>e.savedSize)}</td>
<td>${bje(t,e=>e.savedSize)}</td>
<td>${wje(t,e=>e.savedTime)}</td>
<td>${nle(t,e=>e.savedSize)}</td>
<td>${kx(t,e=>e.savedSize)}</td>
<td>${sle(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function nBr(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function TZe(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Nje(e.restoredSize)}
Time: ${Sje(e.restoredTime)}
${sBr(e,t.cacheWriteOnly)}
Size: ${ile(e.restoredSize)}
Time: ${ole(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Nje(e.savedSize)}
Time: ${Sje(e.savedTime)}
${iBr(e,t.cacheReadOnly)}
Size: ${ile(e.savedSize)}
Time: ${ole(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function sBr(t,e){return t.notRestored?`(Entry not restored: ${t.notRestored})`:e?"(Entry not restored: cache is write-only)":t.requestedKey===void 0?"(Entry not restored: not requested)":t.restoredKey===void 0?"(Entry not restored: no match found)":t.restoredKey===t.requestedKey?"(Entry restored: exact match found)":"(Entry restored: partial match found)"}function iBr(t,e){return t.notSaved?`(Entry not saved: ${t.notSaved})`:t.savedKey===void 0?e?"(Entry not saved: cache is read-only)":t.notRestored?"(Entry not saved: not restored)":"(Entry not saved: reason unknown)":t.savedSize===0?"(Entry not saved: entry with key already exists)":"(Entry saved)"}function yje(t,e){return t.filter(r=>e(r)).length}function bje(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function wje(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Nje(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Sje(t){return t===void 0||t===0?"":`${t} ms`}import*as LS from"fs";function Nue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,_e(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,_e(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,_e(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,_e(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,_e(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as EY from"path";import*as MS from"path";import b0 from"assert";var $E=process.platform==="win32";function Ip(t){if(t=Cp(t),$E&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=MS.dirname(t);return $E&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Cp(e)),e}function pY(t,e){if(b0(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),b0(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),W2(e))return e;if($E){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return b0(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Rd(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return b0(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return b0(W2(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||$E&&t.endsWith("\\")||(t+=MS.sep),t+e}function W2(t){return b0(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Rd(t),$E?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function z2(t){return b0(t,"isRooted parameter 'itemPath' must not be empty"),t=Rd(t),$E?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Rd(t){return t=t||"",$E?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Cp(t){return t?(t=Rd(t),!t.endsWith(MS.sep)||t===MS.sep||$E&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Dd;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Dd||(Dd={}));var kje=process.platform==="win32";function Rue(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=kje?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=kje?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Ip(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Ip(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Fje(t,e){let r=Dd.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Mje(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as vje from"os";import*as vS from"path";var Lje=Xe(zne(),1);import S0 from"assert";import*as w0 from"path";import j2 from"assert";var ABr=process.platform==="win32",N0=class{constructor(e){if(this.segments=[],typeof e=="string")if(j2(e,"Parameter 'itemPath' must not be empty"),e=Cp(e),!z2(e))this.segments=e.split(w0.sep);else{let r=e,n=Ip(r);for(;n!==r;){let s=w0.basename(r);this.segments.unshift(s),r=n,n=Ip(r)}this.segments.unshift(r)}else{j2(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];j2(n,"Parameter 'itemPath' must not contain any empty segments"),n=Rd(e[r]),r===0&&z2(n)?(n=Cp(n),j2(n===Ip(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push( Line truncated
`)}function nle(t,e){return t.filter(r=>e(r)).length}function kx(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function sle(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function ile(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function ole(t){return t===void 0||t===0?"":`${t} ms`}import*as NQ from"path";import*as X0 from"fs";function k8(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,J(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,J(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,J(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,J(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,J(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as Lx from"path";import*as j0 from"path";import dg from"assert";var zd=process.platform==="win32";function ul(t){if(t=cl(t),zd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=j0.dirname(t);return zd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=cl(e)),e}function vx(t,e){if(dg(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),dg(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),GB(e))return e;if(zd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return dg(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(IA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return dg(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return dg(GB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||zd&&t.endsWith("\\")||(t+=j0.sep),t+e}function GB(t){return dg(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=IA(t),zd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function qB(t){return dg(t,"isRooted parameter 'itemPath' must not be empty"),t=IA(t),zd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function IA(t){return t=t||"",zd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function cl(t){return t?(t=IA(t),!t.endsWith(j0.sep)||t===j0.sep||zd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var yA;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(yA||(yA={}));var ule=process.platform==="win32";function F8(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=ule?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=ule?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=ul(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=ul(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function lle(t,e){let r=yA.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function dle(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Fle from"os";import*as K0 from"path";var Mle=Ie(vle(),1);import pg from"assert";import*as fg from"path";import JB from"assert";var e$e=process.platform==="win32",gg=class{constructor(e){if(this.segments=[],typeof e=="string")if(JB(e,"Parameter 'itemPath' must not be empty"),e=cl(e),!qB(e))this.segments=e.split(fg.sep);else{let r=e,n=ul(r);for(;n!==r;){let s=fg.basename(r);this.segments.unshift(s),r=n,n=ul(r)}this.segments.unshift(r)}else{JB(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];JB(n,"Parameter 'itemPath' must not contain any empty segments"),n=IA(e[r]),r===0&&qB(n)?(n=cl(n),JB(n===ul(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(JB(!n.includes(fg.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(fg.sep)||e$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=fg.sep,e+=this.segments[n];return e}};var{Minimatch:t$e}=Mle.default,ll=process.platform==="win32",WB=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],pg(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);pg(c&&GB(c),"Parameter 'segments' first element must be a root path"),i=new gg(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new K2(i));return n.searchPaths.push(...Rue(n.patterns)),n})}static stat(e,r,n){return Due(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield LS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_e(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield LS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield LS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){_e(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as xue from"crypto";import*as CY from"fs";import*as Uje from"stream";import*as Pje from"util";import*as _je from"path";var hBr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},gBr=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Oje(t,e){return hBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?pe:_e,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=xue.createHash("sha256"),g=0;try{for(var p=!0,C=gBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${_je.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(CY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=xue.createHash("sha256");yield Pje.promisify(Uje.pipeline)(CY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Hje=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function tC(t,e){return Hje(this,void 0,void 0,function*(){return yield mY.create(t,e)})}function qje(t){return Hje(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield tC(e,{followSymbolicLinks:i});return Oje(o,r,s)})}import Pp from"path";import rc from"fs";import{readFileSync as fBr,existsSync as pBr}from"fs";import{EOL as mBr}from"os";var US=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(pBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(fBr(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${mBr}`)}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 ege=Xe(pnt(),1),mnt=Xe(Khe(),1),Pkr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var U2r=class extends Error{constructor(t,e,r){super(L2r(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},P2r=["method","baseUrl","url","headers","request","query","mediaType","operationName"],_2r=["query","method","url"],Znt=/\/api\/v3\/?$/;function O2r(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 o in r)if(_2r.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>P2r.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Znt.test(i)&&(s.url=i.replace(Znt,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new U2r(s,a,o.data)}return o.data.data})}function gge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>O2r(r,s,i),{defaults:gge.bind(null,r),endpoint:r.endpoint})}var OMn=gge($nt.request,{headers:{"user-agent":`octokit-graphql.js/${v2r} ${B6()}`},method:"POST",url:"/graphql"});function est(t){return gge(t,{method:"POST",url:"/graphql"})}var fge="(?:[a-zA-Z0-9_-]+)",tst="\\.",rst=new RegExp(`^${fge}${tst}${fge}${tst}${fge}$`),H2r=rst.test.bind(rst);async function q2r(t){let e=H2r(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"}}function G2r(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Y2r(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=G2r(t),e(s)}var nst=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(q2r.bind(null,e),{hook:Y2r.bind(null,e)})};var pge="7.0.6";var sst=()=>{},J2r=console.warn.bind(console),V2r=console.error.bind(console);function W2r(t={}){return typeof t.debug!="function"&&(t.debug=sst),typeof t.info!="function"&&(t.info=sst),typeof t.warn!="function"&&(t.warn=J2r),typeof t.error!="function"&&(t.error=V2r),t}var ist=`octokit-core.js/${pge} ${B6()}`,w6=class{static VERSION=pge;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Snt.Collection,n={baseUrl:mge.request.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} ${ist}`:ist,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=mge.request.defaults(n),this.graphql=est(this.request).defaults(n),this.log=W2r(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=nst(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var Ege="17.0.0";var z2r={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await pFr()}`),n;Vo(`Attempt to delete ${t} failed. Will try again.`),await fFr(1e3)}}}async function fFr(t){return new Promise(e=>setTimeout(e,t))}async function pFr(){return(await nE("jps",["-lm"])).stdout}var mFr="v1",EFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",CFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",IFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",BFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",QFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",M6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function Rge(t,e){let s=`${`${process.env[EFr]||""}${v6(t,mFr)}`}|${yFr()}`,i=`${s}|${bFr()}`,o=`${i}[${wFr()}]`,a=`${o}-${NFr()}`;return e.isCacheStrictMatch()?new M6(a,[o]):new M6(a,[o,i,s])}function v6(t,e){return`gradle-${t}-${e}`}function yFr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[CFr]||`${t}-${e}`}function bFr(){return process.env[IFr]||Cl.job}function wFr(){let t=process.env[BFr];if(t)return t;let e=Cl.workflow,r=Nge();return Sge([e,r])}function NFr(){return process.env[QFr]||Cl.sha}import OR from"path";import gM from"fs";import*as yl from"fs";import*as Up from"path";var tat=Xe(qst(),1),sQ=Xe(z6(),1);import*as _R from"fs";import*as Kot from"os";import*as nQ from"path";var t9=Xe(V2(),1);import{ok as GLr}from"assert";import*as Cg from"path";import*as j6 from"fs";import*as yC from"path";var MLr=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},{chmod:vLr,copyFile:LLr,lstat:ULr,mkdir:kot,open:dLn,readdir:Fot,rename:PLr,rm:Mot,rmdir:hLn,stat:jge,symlink:_Lr,unlink:OLr}=j6.promises,QC=process.platform==="win32";var gLn=j6.constants.O_RDONLY;function vot(t){if(t=HLr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return QC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Kge(t,e){return MLr(this,void 0,void 0,function*(){let r;try{r=yield jge(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(QC){let s=yC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(Tot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield jge(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(QC){try{let i=yC.dirname(t),o=yC.basename(t).toUpperCase();for(let a of yield Fot(i))if(o===a.toUpperCase()){t=yC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(Tot(r))return t}}return""})}function HLr(t){return t=t||"",QC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Tot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var K6=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Lot(t){return K6(this,void 0,void 0,function*(){if(QC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Mot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function Xge(t){return K6(this,void 0,void 0,function*(){GLr(t,"a path argument must be provided"),yield kot(t,{recursive:!0})})}function dM(t,e){return K6(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield dM(t,!1);if(!n)throw QC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield YLr(t);return r&&r.length>0?r[0]:""})}function YLr(t){return K6(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(QC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(Cg.delimiter))s&&e.push(s);if(vot(t)){let s=yield Kge(t,e);return s?[s]:[]}if(t.includes(Cg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(Cg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield Kge(Cg.join(s,t),e)Line truncated
`),r,[],s)?new fM(e,n,r):(pe(`Did not restore ${e} with key ${r} to ${n}`),new fM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();Vo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await tC(a,{implicitDescendants:!1})).glob();if(c.length===0){Vo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(Vo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await F6(n.split(`
`),a,o);for(let c of e)sM(c);return new fM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>OR.relative(this.gradleUserHome,i)),s=Nst(n);return Vo(`Generating cache key for ${e} from file names: ${n}`),`${v6(e,sat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await qje(r);return Vo(`Generating cache key for ${e} from files matching: ${r}`),`${v6(e,sat)}-${n}`}async awaitForDebugging(e){return rM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!gM.existsSync(e))return[];let r=gM.readFileSync(e,"utf-8");return Vo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new sfe;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);Vo(`Saving cache metadata for ${this.extractorName}: ${n}`),gM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=OR.resolve(this.gradleUserHome,UR);return gM.mkdirSync(e,{recursive:!0}),OR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},pM=class extends i9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=OR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await tC(e,{implicitDescendants:!1});for(let n of await r.glob())Vo(`Deleting wrapper zip: ${n}`),await sM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=OR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new s9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},mM=class extends i9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){pe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){pe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new s9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!bC(i.gradleVersion,"8.6.0"))&&(pe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return n9().results.reduce((e,r)=>{let n=OR.resolve(r.rootProjectDir,".gradle/configuration-cache");return gM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import iat from"path";import pUr from"fs";import{fileURLToPath as mUr}from"url";function oat(...t){let e=iat.dirname(mUr(import.meta.url)),r=iat.resolve(e,"..","..","..","sources","src","resources",...t);return pUr.readFileSync(r,"utf8")}function aat(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
<type>jdk</type>
<provides>
<version>${e}</version>
</provides>
<configuration>
<jdkHome>${r}</jdkHome>
</configuration>
</toolchain>`).join(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new WB(i));return n.searchPaths.push(...F8(n.patterns)),n})}static stat(e,r,n){return O8(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield X0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){J(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield X0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield X0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){J(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var i$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function _le(t,e){return i$e(this,void 0,void 0,function*(){return yield _x.create(t,e)})}var xhe=Ie(Nhe(),1);import*as $x from"crypto";import*as tE from"fs";import*as mg from"path";import*as Rhe from"util";var eb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(eb||(eb={}));var ei;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ei||(ei={}));var mo;(function(t){t.GNU="gnu",t.BSD="bsd"})(mo||(mo={}));var Kx=2,Xx=5e3,a4=5e3,A4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,The=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,tb="cache.tar",c4="manifest.txt",gZt=10*Math.pow(1024,3),Zx="cache read denied:";var eE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},prt=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},mrt="1.0";function rb(){return eE(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=mg.join(n,"actions","temp")}let r=mg.join(e,$x.randomUUID());return yield px(r),r})}function gc(t){return tE.statSync(t).size}function u4(t){return eE(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield _le(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=prt(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=mg.relative(a,s).replace(new RegExp(`\\${mg.sep}`,"g"),"/");J(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function nb(t){return eE(this,void 0,void 0,function*(){return Rhe.promisify(tE.unlink)(t)})}function Dhe(t){return eE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),J(`Checking ${e} ${r.join(" ")}`);try{yield Cx(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){J(s.message)}return n=n.trim(),J(n),n})}function sb(){return eE(this,void 0,void 0,function*(){let t=yield Dhe("zstd",["--quiet"]),e=xhe.clean(t);return J(`zstd version: ${e}`),t===""?ei.Gzip:ei.ZstdWithoutLong})}function Zd(t){return t===ei.Gzip?eb.Gzip:eb.Zstd}function khe(){return eE(this,void 0,void 0,function*(){return tE.existsSync(A4)?A4:(yield Dhe("tar")).toLowerCase().includes("gnu tar")?il("tar"):""})}function l4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function rE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(mrt),$x.createHash("sha256").update(n.join("|")).digest("hex")}function vhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as UE from"fs";import{URL as Nut}from"url";var pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Ert}from"node:os";import Crt from"node:util";import Irt from"node:process";function Fhe(t,...e){Irt.stderr.write(`${Crt.format(t,...e)}${Ert}`)}import ib from"node:process";function tR(t){return ib.env[t]}var Mhe=typeof ib.versions.deno=="string"&&ib.versions.deno.length>0,_he=typeof ib.versions.bun=="string"&&ib.versions.bun.length>0,rR=!0;var Lhe=tR("DEBUG"),Phe,d4=[],h4=[],nR=[];Lhe&&f4(Lhe);var Ohe=Object.assign(t=>Hhe(t),{enable:f4,enabled:g4,disable:yrt,log:Fhe});function f4(t){Phe=t,d4=[],h4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?h4.push(r.substring(1)):d4.push(r);for(let r of nR)r.enabled=g4(r.namespace)}function g4(t){if(t.endsWith("*"))return!0;for(let e of h4)if(Uhe(t,e))return!1;for(let e of d4)if(Uhe(t,e))return!0;return!1}function Uhe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function yrt(){let t=Phe||"";return f4(""),t}function Hhe(t){let e=Object.assign(r,{enabled:g4(t),destroy:Brt,log:Ohe.log,namespace:t,extend:brt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return nR.push(e),e}function Brt(){let t=nR.indexOf(this);return t>=0?(nR.splice(t,1),!0):!1}function brt(t){let e=Hhe(`${this.namespace}:${t}`);return e.log=this.log,e}var nE=Ohe;var p4=["verbose","info","warning","error"],Ghe={verbose:400,info:300,warning:200,error:100};function qhe(t,e){e.log=(...r)=>{t.log(...r)}}function Yhe(t){return p4.includes(t)}function sR(t){let e=new Set,r=tR(t.logLevelEnvVarName),n,s=nE(t.namespace);s.log=(...u)=>{nE.log(...u)};function i(u){if(u&&!Yhe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${p4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);nE.enable(l.join(","))}r&&(Yhe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${p4.join(", ")}.`));function o(u){return!!(n&&Ghe[u.level]<=Ghe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(qhe(u,d),o(d)){let h=nE.disable();nE.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return qhe(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var Vhe=sR({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Qrt=Vhe.logger;function ob(t){return Vhe.createClientLogger(t)}function iR(t){return t.toLowerCase()}function wrt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Srt(t){for(let e of t.values())yield[e.name,e.value]}var m4=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(iR(e),{name:e,value:wrt(r)})}get(e){return this._headersMap.get(iR(e))?.value}has(e){return this._ Line truncated
${Rrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sE(t){return t instanceof ti?!0:Cg(t)&&t.name==="RestError"}function ab(t,e){return Buffer.from(t).toString(e)}function ri(t,e){return Buffer.from(t,e)}import y4 from"node:http";import B4 from"node:https";import zhe from"node:zlib";import{Transform as Drt}from"node:stream";var Ti=ob("ts-http-runtime");var krt={};function Ab(t){return t&&typeof t.pipe=="function"}function jhe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Khe(t){return t&&typeof t.byteLength=="number"}var AR=class extends Drt{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}},b4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new pc("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new BA;Ti.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=_rt(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new AR(f);g.on("error",E=>{Ti.error("Error in upload progress",E)}),Ab(a)?a.pipe(g):g.end(a),a=g}let c=await this.makeRequest(e,r,a),u=vrt(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Frt(c,u):c;let h=e.onDownloadProgress;if(h){let f=new AR(h);f.on("error",g=>{Ti.error("Error in download progress",g)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Mrt(A),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let c=Promise.resolve();Ab(a)&&(c=jhe(a));let u=Promise.resolve();Ab(A)&&(u=jhe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ti.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?y4.request(a,A):B4.request(a,A);u.once("error",l=>{c(new ti(l.message,{code:l.code??ti.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Ab(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Khe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Ti.error("Unrecognized body type",n),c(new ti("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?y4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new y4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return B4.globalAgent;let s=e.tlsSettings??krt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ti.info("No cached TLS Agent exist, creating a new Agent"),i=new B4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function vrt(t){let e=Eo();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}function Frt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=zhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=zhe.createInflate();return t.pipe(n),n}return t}function Mrt(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 ti(`Error reading response as text: ${s.message}`,{code:ti.PARSE_ERROR}))})})}function _rt(t){return t?Buffer.isBuffer(t)?t.length:Ab(t)?null:Khe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Xhe(){return new b4}function cR(){return Xhe()}var Q4="logPolicy";function uR(t={}){let e=t.logger??Ti.info,r=new BA({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function nst(t){return t instanceof Uint8Array?t.byteLength:ub(t)?t.size===-1?void 0:t.size:void 0}function sst(t){let e=0;for(let r of t){let n=nst(r);if(n===void 0)return;e+=n}return e}async function ist(t,e,r){let n=[ri(`--${r}`,"utf-8"),...e.flatMap(i=>[ri(`\r
`,"utf-8"),ri(rst(i.headers),"utf-8"),ri(`\r
`,"utf-8"),i.body,ri(`\r
--${r}`,"utf-8")]),ri(`--\r
\r
`,"utf-8")],s=sst(n);s&&t.headers.set("Content-Length",s),t.body=await qfe(n)}var lb="multipartPolicy",ost=70,ast=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ast(t){if(t.length>ost)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ast.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function vR(){return{name:lb,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Ast(r):r=tst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ist(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function FR(){return aR()}var Yfe=sR({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),mrr=Yfe.logger;function ha(t){return Yfe.createClientLogger(t)}var Ec=ha("core-rest-pipeline");function H4(t={}){return uR({logger:Ec.info,...t})}var G4=DR;function q4(t={}){return kR(t)}import Y4 from"node:os";import th from"node:process";function Vfe(){return"User-Agent"}async function Jfe(t){if(th&&th.versions){let e=`${Y4.type()} ${Y4.release()}; ${Y4.arch()}`;th.versions.bun?t.set("Bun",`${th.versions.bun} (${e})`):th.versions.deno?t.set("Deno",`${th.versions.deno} (${e})`):th.versions.node&&t.set("Node",`${th.versions.node} (${e})`)}}var MR="1.25.0";function pst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Wfe(){return Vfe()}async function _R(t){let e=new Map;e.set("core-rest-pipeline",MR),await Jfe(e);let r=pst(e);return t?`${t} ${r}`:r}var zfe=Wfe(),jfe="userAgentPolicy";function V4(t={}){let e=_R(t.userAgentPrefix);return{name:jfe,async sendRequest(r,n){return r.headers.has(zfe)||r.headers.set(zfe,await e),n(r)}}}var Kfe=Symbol("rawContent");function J4(t){return typeof t[Kfe]=="function"}function Xfe(t){return J4(t)?t[Kfe]():t}var LR=lb;function W4(){let t=vR();return{name:LR,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)J4(n.body)&&(n.body=Xfe(n.body));return t.sendRequest(e,r)}}}var z4=xR;function j4(){return RR()}function K4(t={}){return fR(t)}function X4(){return gR()}var ps=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Z4(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ps(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var wst="The delay was aborted.";function uE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Z4(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??wst})}function rh(t){if(Cg(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}`}}function Zfe(t){return Cg(t)}function lE(){return Eg()}var br=rR;function e6(t,e){return ab(t,e)}function t6(t,e){return ri(t,e)}function nh(t){return U4(t)}function r6(t,e){return TR(t,e)}var $fe="setClientRequestIdPolicy";function n6(t="x-ms-client-request-id"){return{name:$fe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function s6(t){return pR(t)}function i6(t){return mR(t)}var dE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function ege(t={}){let e=new o6(t.parentContext);return t.span&&(e=e.setValue(dE.span,t.span)),t.namespace&&(e=e.setValue(dE.namespace,t.namespace)),e}var o6=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var rge=Ie(tge(),1),PR=rge.state;function Sst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Nst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Sst(),tracingContext:ege({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function db(){return PR.instrumenterImplementation||(PR.instrumenterImplementation=Nst()),PR.instrumenterImplementation}function hb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(c,u,l){let d=db().startSpan(c,{...l,packageName:r,packageVersion:n,tracingContext Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Kit(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",dn("InvalidTag",l,ni(t,i))}let c=Vit(t,i);if(c===!1)return dn("InvalidAttr","Attributes for '"+A+"' have open quote.",ni(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Lge(u,e);if(d===!0)n=!0;else return dn(d.err.code,d.err.msg,ni(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return dn("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",ni(t,o));if(r.length===0)return dn("InvalidTag","Closing tag '"+A+"' has not been opened.",ni(t,o));{let l=r.pop();if(A!==l.tagName){let d=ni(t,l.tagStartPos);return dn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",ni(t,o))}r.length==0&&(s=!0)}}else return dn("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",ni(t,i));else{let l=Lge(u,e);if(l!==!0)return dn(l.err.code,l.err.msg,ni(t,i-u.length+l.err.line));if(s===!0)return dn("InvalidXml","Multiple possible root nodes found.",ni(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=_ge(t,i);continue}else if(t[i+1]==="?"){if(i=Mge(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zit(t,i);if(l==-1)return dn("InvalidChar","char '&' is not expected.",ni(t,i));i=l}else if(s===!0&&!gE(t[i]))return dn("InvalidXml","Extra text at the end",ni(t,i));t[i]==="<"&&i--}}else{if(gE(t[i]))continue;return dn("InvalidChar","char '"+t[i]+"' is not expected.",ni(t,i))}if(n){if(r.length==1)return dn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ni(t,r[0].tagStartPos));if(r.length>0)return dn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return dn("InvalidXml","Start tag expected.",1);return!0}function gE(t){return t===" "||t===" "||t===`
`||t==="\r"}function Mge(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 dn("InvalidXml","XML declaration allowed only at the start of the document.",ni(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function _ge(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}var qit='"',Yit="'";function Vit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===qit||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}}function Jit(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&gE(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!gE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),A,c=n;for(;c<r&&gE(t[c]);)c++;c<r&&t[c]==="="&&(A=t.slice(n,c+1),n=c+1);let u,l,d=n;for(;d<r&&gE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=A,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function Lge(t,e){let r=Jit(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return dn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Qb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return dn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Qb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return dn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Qb(r[s]));let i=r[s][2];if(!jit(i))return dn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Qb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return dn("InvalidAttr","Attribute '"+i+"' is repeated.",Qb(r[s]))}return!0}function Wit(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}function zit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Wit(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}function dn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function jit(t){return Q6(t)}function Kit(t){return Q6(t)}function ni(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Qb(t){return t.startIndex+t[1].length}var w6={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var wb={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},S6={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var pE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Xit=new Set("!?\\\\/[]$%{}^&*()<>|+");function Uge(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Xit.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Sb(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var wg="external",jR="base",N6="all";function Zit(t){return!t||t===wg?new Set([wg]):t===N6?new Set([N6]):t===jR?new Set([jR]):Array.isArray(t)?new Set(t):new Set([wg])}var Di=Object.freeze({allow:0,leave:1,remove:2,throw:3}),$it=new Set([9,10,13]);function eot(t){if(!t)return{xmlVersion:1,onLevel:Di.allow,nullLevel:Di.remove};let e=t.xmlVersion===1.1?1.1:1,r=Di[t.onNCR]??Di.allow,n=Di[t.nullNCR]??Di.remove,s=Math.max(n,Di.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var mE=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=Zit(this._limit.applyLimitsTo??wg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Sb(wb,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new ki("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new Tb(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=BE(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=O6(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(c===63){let u=H6(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ki(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=BE(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=BE(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=H6(t,a,s.removeNSPrefix);if(!u){let Y=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Y}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=O6(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);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 m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=_ot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Mot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let Y="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,Y=P.tagContent}let L=new ki(l);I&&(L[":@"]=I),L.add(s.textNodeName,Y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=O6(s.transformTagName,l,h,s));let Y=new ki(l);I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let Y=new ki(l);I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let Y=new ki(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),r=Y}n="",a=g}}}else n+=t[a];return e.child};function Got(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function qot(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)}function Yot(t,e,Line truncated
`;function eat(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(W6(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function npe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function J6(t,e){let r="";e.format&&(r=$ot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let A=e.stopNodes[a];typeof A=="string"?n.push(new Bo(A)):A instanceof Bo&&n.push(A)}let s=eat(t,e),i=KR("qName",{xmlVersion:s}),o=new yc;return spe(t,e,r,o,n,i)}function spe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let A=ms(t);return A=V6(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=W6(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:npe(u,!1,e,n,i),h=tat(c[":@"],e);n.push(d,h);let f=nat(n,s);if(d===e.textNodeName){let y=c[u];f||(y=e.tagValueProcessor(d,y),y=V6(y,e)),y=ms(y),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=c[u][0][e.textNodeName],B=tD(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=c[u][0][e.textNodeName],B=Db(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=rpe(c[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=rpe(c[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=ipe(c[u],e):I=spe(c[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function tat(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 i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Bc(t[s]),n=!0}return n?r:null}function ipe(t,e){if(!Array.isArray(t))return t!=null?ms(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=W6(s);if(i===e.textNodeName)r+=ms(s[i]);else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=rat(s[":@"],e),a=ipe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function rat(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)}="${Bc(s)}"`}return r}function W6(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}}function rpe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:npe(a,!0,e,n,s),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=V6(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Bc(c)}"`}return i}function nat(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}function V6(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}function z6(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}var sat={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 Fi(t){if(this.options=Object.assign({},sat,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&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Bo(r)):r instanceof Bo&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function iat(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"}function j6(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Fi.prototype.build=function(t){if(this.options.preserveOrder)return J6(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new yc,r=iat(t,this.options),n=KR("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:j6(A,!1,this.options,r,n);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=j6(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,ms(t[A]),a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,ms(t[A]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=ms(t[A]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",h="";for(let f=0;f<l;f++){let g=t[A][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),E=ms(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=ms(g);m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=j6(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,ms(t[A][l[h]]),a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,n)}return{attrStr:s,val:i}};Fi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,ms(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Bc(e)+'"'};function oat(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Fi.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 i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Bc(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]=Bc(t[n]),r=!0)}return r?e:null};Fi.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(lt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===lt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE));r.sort((s,i)=>gD(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=dD(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=hD(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var jr=class extends xg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Ub(e,r,this)}computeHMACSHA256(e){return Sat("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var kn=ha("storage-common");var fa;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(fa||(fa={}));var ah={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:fa.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Nat=new ps("The operation was aborted."),Pb=class extends bc{retryOptions;constructor(e,r,n=ah){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ah.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ah.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ah.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ah.maxRetryDelayInMs):ah.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ah.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ah.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=lD(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=uD(s.url,Lb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(kn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(kn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return kn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return kn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return kn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return kn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(lt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(kn.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 fa.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case fa.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return kn.info(`RetryPolicy: Delay for ${s}ms`),fD(s,n,Nat)}};var Ob=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Pb(e,r,this.retryOptions)}};var Tat="storageBrowserPolicy";function Epe(){return{name:Tat,async sendRequest(t,e){return e(t)}}}var xat="StorageCorrectContentLengthPolicy";function Cpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(lt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:xat,async sendRequest(e,r){return t(e),r(e)}}}var Rat="storageRetryPolicy",wE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:fa.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Dat=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],kat=new ps("The operation was aborted.");function Ipe(t={}){let e=t.retryPolicyType??wE.retryPolicyType,r=t.maxTries??wE.maxTries,n=t.retryDelayInMs??wE.retryDelayInMs,s=t.maxRetryDelayInMs??wE.maxRetryDelayInMs,i=t.secondaryHost??wE.secondaryHost,o=t.tryTimeoutInMs??wE.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return kn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Dat)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return kn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return kn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=vat("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(lt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===lt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>gD(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=dD(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=hD(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:Fat,async sendRequest(i,o){return e(i),o(i)}}}var Mat="storageRequestFailureDetailsParserPolicy";function ype(){return{name:Mat,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as _at}from"node:crypto";var pD=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return _at("sha256",this.key).update(e,"utf8").digest("base64")}};var mD="12.33.0",ED="2026-06-06";var CD="https://storage.azure.com/.default",gl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var bA="",sH="*",Lat=1*1024*1024;var Uat=4*Lat;var Bpe="AES256",bpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Qpe=["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"],wpe=["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"],Spe="BlobUsesCustomerSpecifiedEncryption",Npe="BlobDoesNotUseCustomerSpecifiedEncryption",Tpe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Hb=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function hn(t,e={}){t||(t=new _r);let r=new Hb([],e);return r._credential=t,r}function Pat(t){let e=[Oat,xpe,Hat,Gat,qat,Yat,Jat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Vat(s));return{wrappedPolicies:B6(r),afterRetry:n}}}}function iH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?b6(e):rH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${mD}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pb({...r,loggingOptions:{additionalAllowedHeaderNames:Qpe,additionalAllowedQueryParameters:wpe,logger:nD.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:rD,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:X6,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:z4}),s.addPolicy(Cpe()),s.addPolicy(Ipe(r.retryOptions),{phase:"Retry"}),s.addPolicy(ype()),s.addPolicy(Epe());let a=Pat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=oH(t);Io(A)?s.addPolicy(hE({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new No(t.version,i,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}}function Oct(t,e){if(t=Ql(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=Ca.parse(t.permissions.toString()).toString():s=Ia.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new No(t.version,o,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:i}}function Hct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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 No(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Gct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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 No(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function qct(t,e){if(t=Ql(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=Ca.parse(t.permissions.toString()).toString():s=Ia.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?So(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new No(t.version,o,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:i}}function Yct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?So(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 No(t.version,a,i,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Vct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?So(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 No(t.version,a,i,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,void 0,void 0,void 0,s),stringToSign:o}}function Jct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?So(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 No(t.version,a,i,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,void 0,void 0,s),stringToSign:o}}function Wct(t,e){if(t=Ql(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?So(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,zct(t.requestHeaders),jct(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new No(t.version,a,i,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,Mme(t.requestHeaders),Mme(t.requestQueryParameters),s),stringToSign:o}}function zct(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function jct(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function Mme(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function bl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ql(t){let e=t.version?t.version:ED;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}function FE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var eQ=class{_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=lE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==bA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==bA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==bA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==bA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};_E.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=class extends Error{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"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var AQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Eut=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},v9=class{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);se(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Jme(t,e,r){return Eut(this,void 0,void 0,function*(){var n;let s=new NA(t),i=s.getBlockBlobClient(),o=new v9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),J(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new h2(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw $e(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as zme from"buffer";import*as Oc from"fs";import*as jme from"stream";import*as Kme from"util";var f2=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function g2(t){return t?t>=200&&t<300:!1}function Cut(t){return t?t>=500:!0}function Iut(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function yut(t){return f2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Wme(t,e,r){return f2(this,arguments,void 0,function*(n,s,i,o=Kx,a=Xx,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Cut(d)))return l;if(d&&(h=Iut(d),c=`Cache service responded with ${d}`),J(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){J(`${n} - Error is not retryable`);break}yield yut(a),u++}throw Error(`${n} failed: ${c}`)})}function cQ(t,e){return f2(this,arguments,void 0,function*(r,n,s=Kx,i=Xx){return yield Wme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof uc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function LE(t,e){return f2(this,arguments,void 0,function*(r,n,s=Kx,i=Xx){return yield Wme(r,n,o=>o.message.statusCode,s,i)})}var ya=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function But(t,e){return ya(this,void 0,void 0,function*(){yield Kme.promisify(jme.pipeline)(t.message,e)})}var p2=class{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,J(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);se(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])J(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function U9(t,e,r){return Ui(this,void 0,void 0,function*(){let n=new Nut(t),s=e0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Zme(t,e,s):s.concurrentBlobDownloads?yield Xme(t,e,s):yield m2(t,e):yield m2(t,e)})}function u0e(t,e,r){return Ui(this,void 0,void 0,function*(){let n=L9(),s=rE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield cQ("reserveCache",()=>Ui(this,void 0,void 0,function*(){return n.postJson(lQ("caches"),i)}))})}function A0e(t,e){return`bytes ${t}-${e}/*`}function Dut(t,e,r,n,s){return Ui(this,void 0,void 0,function*(){J(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${A0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":A0e(n,s)},o=yield LE(`uploadChunk (start: ${n}, end: ${s})`,()=>Ui(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!g2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function kut(t,e,r,n){return Ui(this,void 0,void 0,function*(){let s=gc(r),i=lQ(`caches/${e.toString()}`),o=UE.openSync(r,"r"),a=F9(n),A=l4("uploadConcurrency",a.uploadConcurrency),c=l4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];J("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ui(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Dut(t,i,()=>UE.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{UE.closeSync(o)}})}function vut(t,e,r){return Ui(this,void 0,void 0,function*(){let n={size:r};return yield cQ("commitCache",()=>Ui(this,void 0,void 0,function*(){return t.postJson(lQ(`caches/${e.toString()}`),n)}))})}function P9(t,e,r,n){return Ui(this,void 0,void 0,function*(){if(F9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Jme(r,e,n)}else{let i=L9();J("Upload cache"),yield kut(i,t,e,n),J("Commiting cache");let o=gc(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield vut(i,t,o);if(!g2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var nEe=Ie(Rq(),1),gn=Ie(ft(),1),xo=Ie(ft(),1),Wg=Ie(ft(),1),zg=Ie(ft(),1),jg=Ie(ft(),1);var Fq=Ie(ft(),1),Mq=Ie(ft(),1),eEe=Ie(ft(),1),tEe=Ie(ft(),1),rEe=Ie(ft(),1);var Dq=Ie(ft(),1),kq=Ie(ft(),1),X0e=Ie(ft(),1),Z0e=Ie(ft(),1),$0e=Ie(ft(),1),vq=class extends $0e.MessageType{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,Z0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,X0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?kq.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Dq.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Dq.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?kq.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},sk=new vq;var _q=class extends rEe.MessageType{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:()=>sk}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,tEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,eEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(sk.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Mq.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,Fq.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)sk.internalBinaryWrite(e.scope[i],r.tag(2,Fq.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?Mq.UnknownFieldHandler.onWrite Line truncated
`));let n=yield Xq(r,"create");yield Zq(n,t)})}var eC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},RA=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Kg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},tY="cache write denied:",ak=class t extends Kg{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},aEe=Zx,Ak=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},ck=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function AEe(t){if(!t||t.length===0)throw new RA("Path Validation Error: At least one directory or file path is required")}function rY(t){if(t.length>512)throw new RA(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new RA(`Key Validation Error: ${t} cannot contain commas.`)}function cEe(){return uQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function uEe(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=uQ();J(`Cache service version: ${c}`),AEe(s);let u=_9();if(!r0e(u)){se(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),J(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield Kdt(s,i,o,a,A):yield jdt(s,i,o,a,A)})}function jdt(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new RA("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)rY(h);let l=yield sb(),d="";try{let h;try{h=yield c0e(u,s,{compressionMethod:l,enableCrossOsArchive:A})}catch(g){let E=(c=g?.message)!==null&&c!==void 0?c:"";throw E.includes(aEe)?new Ak(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),h.cacheKey;d=NQ.join(yield rb(),Zd(l)),J(`Archive Path: ${d}`),yield U9(h.archiveLocation,d,a),Vd()&&(yield SQ(d,l));let f=gc(d);return se(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield $q(d,l),se("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===RA.name)throw h;f instanceof uc&&typeof f.statusCode=="number"&&f.statusCode>=500?oa(`Failed to restore: ${h.message}`):$e(`Failed to restore: ${h.message}`)}finally{try{yield nb(d)}catch(h){J(`Failed to delete archive: ${h}`)}}})}function Kdt(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new RA("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)rY(d);let l="";try{let d=Kq(),h=yield sb(),f={key:i,restoreKeys:o,version:rE(s,h,A)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(c=I?.message)!==null&&c!==void 0?c:"";throw y.includes(aEe)?new Ak(y):I}if(!g.ok){J(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?se(`Cache hit for restore-key: ${g.matchedKey}`):se(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),g.matchedKey;l=NQ.join(yield rb(),Zd(h)),J(`Archive path: ${l}`),J(`Starting download of archive to: ${l}`),yield U9(g.signedDownloadUrl,l,a);let m=gc(l);return se(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Vd()&&(yield SQ(l,h)),yield $q(l,h),se("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===RA.name)throw d;h instanceof uc&&typeof h.statusCode=="number"&&h.statusCode>=500?oa(`Failed to restore: ${d.message}`):$e(`Failed to restore: ${d.message}`)}finally{try{l&&(yield nb(l))}catch(d){J(`Failed to delete archive: ${d}`)}}})}function lEe(t,e,r){return eC(this,arguments,void 0,function*(n,s,i,o=!1){let a=uQ();J(`Cache service version: ${a}`),AEe(n),rY(s);let A=_9();return n0e(A)?a==="v2"?yield Zdt(n,s,i,o):yield Xdt(n,s,i,o):(se(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),J(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Xdt(t,e,r){return eC(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l,d;let h=yield sb(),f=-1,g=yield u4(n);if(J("Cache Paths:"),J(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield rb(),m=NQ.join(E,Zd(h));J(`Archive Path: ${m}`);try{yield eY(E,g,h),Vd()&&(yield SQ(m,h));let I=10*1024*1024*1024 Line truncated
${r.join(`
`)}
</toolchains>
`}function Aat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var cat="restored-cache-key",o9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&sE("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Pp.resolve(this.gradleUserHome,"caches");return rc.existsSync(e)?(Vo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=Rge(this.cacheName,this.cacheConfig);Vo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await k6(s,n.key,n.restoreKeys,r);if(!i){pe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}bB(cat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new pM(this.gradleUserHome,this.cacheConfig).restore(e),await new mM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=Rge(this.cacheName,this.cacheConfig).key,n=NA(cat),s=e.entry(this.cacheDescription);if(n&&r===n){pe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await F6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new pM(this.gradleUserHome,this.cacheConfig).extract(e),new mM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Pp.resolve(this.gradleUserHome,n));for(let n of r){Vo(`Removing excluded path: ${n}`);let s=await tC(n,{implicitDescendants:!1});for(let i of await s.glob())Vo(`Removing excluded file: ${i}`),await sM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(UR);let r=e.map(n=>this.resolveCachePath(n));return Vo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Pp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Pp.resolve(this.gradleUserHome,UR);rc.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),yB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Pp.resolve(this.gradleUserHome,"init.d");rc.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=oat("init-scripts",n),i=Pp.resolve(e,n);rc.writeFileSync(i,s)}}registerToolchains(){let e=aat();if(e==null)return;let r=Pp.resolve(this.userHome,".m2"),n=Pp.resolve(r,"toolchains.xml");if(!rc.existsSync(n))rc.mkdirSync(r,{recursive:!0}),rc.writeFileSync(n,e),pe(`Wrote default JDK locations to ${n}`);else{let s=rc.readFileSync(n,"utf8"),i=Aat(s,e);rc.writeFileSync(n,i),pe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Pp.resolve(this.gradleUserHome,"gradle.properties");if(rc.existsSync(r)){pe(`Merged --info and --stacktrace into existing ${r} file`);let n=rc.readFileSync(r,"utf-8");rc.writeFileSync(r,`${e}
${n}`)}else pe(`Created a new ${r} with --info and --stacktrace`),rc.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!rM()&&!yB()||!rc.existsSync(this.gradleUserHome))return;let r=await nE("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});pe(`Gradle User Home (directories >5M): ${e}`),pe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),pe("-----------------------")}};import a9 from"fs";import EM from"path";var A9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return bB("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=NA("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&bC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await rfe(r,n)}catch{pe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await rfe("8.11")}findGradleWrapperScript(e){try{let r=tfe(e.rootProjectDir);return EM.resolve(e.rootProjectDir,r)}catch(r){return _e(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=EM.resolve(this.tmpDir,"dummy-cleanup-project");a9.mkdirSync(n,{recursive:!0}),a9.writeFileSync(EM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),a9.writeFileSync(EM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),a9.writeFileSync(EM.resolve(n,"build.gradle"),'task("noop") {}'),await iE("Executing Gradle to clean up caches",async()=>{pe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await Nh(e,n,{cwd:r})}};var EUr="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function uat(t,e,r,n,s,i){if(i.isCacheDisabled()){pe("Cache is disabled: will not save state for later builds.");return}if(!NA(EUr)){pe("Cache will not be saved: not restored in main action step.");return}if(i.isCacheReadOnly()){pe("Cache is read-only: will not save state for use in subsequent builds."),r.setReadOnly();return}await iE("Stopping Gradle daemons",async()=>{await n.stopAllDaemons()}),i.isCacheCleanupEnabled()&&(s.anyConfigCacheHit()?(pe("Not performing cache-cleanup due to config-cache reuse"),r.setCacheCleanupDisabled(xje)):i.shouldPerformCacheCleanup(s.anyFailed())?(r.setCacheCleanupEnabled(),await CUr(e,s)):(pe("Not performing cache-cleanup due to build failure"),r.setCacheCleanupDisabled(Dje))),await iE("Caching Gradle state",async()=>new o9(t,e,i).save(r))}async function CUr(t,e){let r=new A9(t,process.env.RUNNER_TEMP);try{await r.forceCleanup(e)}catch(n){tr(`Cache cleanup failed. Will continue. ${String(n)}`)}}async function dat(t,e,r){let n=bUr();if(n){IB.addRaw(n),await IB.write();return}let s=yUr(t.results),i=t.anyFailed();r.shouldGenerateJobSummary(i)?(pe("Generating Job Summary"),IB.addRaw(s),IB.addRaw(e),await IB.write()):(pe("============================"),pe(s),pe("============================"),pe(e),pe("============================")),r.shouldAddPRComment(i)&&await BUr(s)}async function BUr(t){let e=Cl;if(e.payload.pull_request==null){pe("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;pe(`Adding Job Summary as comment to PR #${r}.`);let n=`<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
`:""}function aht(t){return`<details>
<summary>${oY.eol} ${yEe(t)}</summary>
<p>${BEe(t)}</p>
<p>If you cannot upgrade, see the <a href="${CEe}">Gradle Security Subscription</a> for options.</p>
</details>`}async function TEe(t,e,r,n){nue("Generating Job Summary");let s=xEe(),i=lht();if(i){sl.addRaw(s),sl.addRaw(i),await sl.write();return}let o=uht(t),a=ale(e,r),A=ght(t);se(o),se("============================"),se(a),n.shouldGenerateJobSummary(A)&&(sl.addRaw(s),sl.addRaw(o),sl.addRaw(a),await sl.write()),sue(),n.canAddPRComment()&&await Iht(),n.shouldAddPRComment(A)&&await Aht(o)}async function Aht(t){let e=Al;if(e.payload.pull_request==null){se("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;se(`Adding Job Summary as comment to PR #${r}.`);let n=`${REe(e)}
${xEe()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=T6(),i=Il(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")tr(QUr(o));else throw o}}function QUr(t){let e=`Failed to generate PR comment.
${t}`,s=kQ(),i=go(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")$e(cht(o));else throw o}}function cht(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function yUr(t){return`${wUr()}
${SUr(t)}`}function bUr(){let t=Cst();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function wUr(){let t=Est();return t.length===0?"":`
`:e}function uht(t){return`${dht()}
${fht(t)}
${SEe(t.map(e=>e.gradleVersion))}`}function xEe(){let t=TQ();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function lht(){let t=gEe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function dht(){let t=fEe();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${S6()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${TQ()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${NUr(e)}</li>`).join("")}
${t.map(e=>`<li>${hht(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function NUr(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function SUr(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function hht(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function fht(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -469,104 +324,90 @@ This job uses deprecated functionality from the <code>${S6()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>RUr(e)).join("")}
</table>
`}function RUr(t){return`
</tr>${t.map(e=>pht(e)).join("")}
</table>`}function ght(t){return t.some(e=>e.buildFailed)}function pht(t){return`
<tr>
<td>${lat(t.rootProjectName,30)}</td>
<td>${lat(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${DUr(t)}</td>
<td>${xUr(t)}</td>
</tr>`}function DUr(t){return t.buildFailed?":x:":":white_check_mark:"}function xUr(t){return t.buildScanFailed?ife({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?ife({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):ife({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function ife({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function lat(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var hat=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as gat from"fs";import*as fat from"path";var c9=class{constructor(e){this.gradleHomes=e.uniqueGradleHomes()}async stopAllDaemons(){let e=[],r=["--stop"];for(let n of this.gradleHomes){let s=fat.resolve(n,"bin","gradle");if(!gat.existsSync(s)){tr(`Gradle executable not found at ${s}. Could not stop Gradle daemons.`);continue}pe(`Stopping Gradle daemons for ${n}`),e.push(Nh(s,r,{ignoreReturnCode:!0}))}await Promise.all(e)}};import*as Iat from"util";var PUr=Xe(Cat(),1);import*as ofe from"fs";var xUn=Iat.promisify(ofe.readdir);var OUr={_useHtmlParser2:!1};function HR(t,e){if(!t)return e??OUr;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var xfe={};Su(xfe,{contains:()=>b9,extract:()=>MPr,html:()=>xPr,merge:()=>Gat,parseHTML:()=>kPr,root:()=>FPr,text:()=>uQ,xml:()=>TPr});var RC={};Su(RC,{DocumentPosition:()=>Nl,append:()=>dPr,appendChild:()=>lPr,compareDocumentPosition:()=>_at,existsOne:()=>Uat,filter:()=>VR,find:()=>I9,findAll:()=>pPr,findOne:()=>B9,findOneChild:()=>fPr,getAttributeValue:()=>aPr,getChildren:()=>JR,getElementById:()=>IPr,getElements:()=>CPr,getElementsByClassName:()=>BPr,getElementsByTagName:()=>cQ,getElementsByTagType:()=>QPr,getFeed:()=>Dfe,getInnerHTML:()=>oPr,getName:()=>cPr,getOuterHTML:()=>vat,getParent:()=>Lat,getSiblings:()=>Sfe,getText:()=>m9,hasAttrib:()=>APr,hasChildren:()=>kn,innerText:()=>yM,isCDATA:()=>qR,isComment:()=>AQ,isDocument:()=>wl,isTag:()=>rt,isText:()=>nc,nextElementSibling:()=>E9,prepend:()=>gPr,prependChild:()=>hPr,prevElementSibling:()=>C9,removeElement:()=>Hp,removeSubsets:()=>yPr,replaceElement:()=>uPr,testElement:()=>EPr,textContent:()=>Op,uniqueSort:()=>NC});var bl={};Su(bl,{CDATA:()=>ffe,Comment:()=>lfe,Directive:()=>ufe,Doctype:()=>pfe,ElementType:()=>Lr,Root:()=>Afe,Script:()=>dfe,Style:()=>hfe,Tag:()=>gfe,Text:()=>cfe,isTag:()=>afe});var Lr;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Lr||(Lr={}));function afe(t){return t.type===Lr.Tag||t.type===Lr.Script||t.type===Lr.Style}var Afe=Lr.Root,cfe=Lr.Text,ufe=Lr.Directive,lfe=Lr.Comment,dfe=Lr.Script,hfe=Lr.Style,gfe=Lr.Tag,ffe=Lr.CDATA,pfe=Lr.Doctype;var u9=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return GR(this,e)}},CM=class extends u9{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Ig=class extends CM{constructor(){super(...arguments),this.type=Lr.Text}get nodeType(){return 3}},iQ=class extends CM{constructor(){super(...arguments),this.type=Lr.Comment}get nodeType(){return 8}},oQ=class extends CM{constructor(e,r){super(r),this.name=e,this.type=Lr.Directive}get nodeType(){return 1}},IM=class extends u9{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},BM=class extends IM{constructor(){super(...arguments),this.type=Lr.CDATA}get nodeType(){return 4}},eu=class extends IM{constructor(){super(...arguments),this.type=Lr.Root}get nodeType(){return 9}},aQ=class e Line truncated
`:m9(t.children):qR(t)?m9(t.children):nc(t)?t.data:""}function Op(t){return Array.isArray(t)?t.map(Op).join(""):kn(t)&&!AQ(t)?Op(t.children):nc(t)?t.data:""}function yM(t){return Array.isArray(t)?t.map(yM).join(""):kn(t)&&(t.type===Lr.Tag||qR(t))?yM(t.children):nc(t)?t.data:""}function JR(t){return kn(t)?t.children:[]}function Lat(t){return t.parent||null}function Sfe(t){let e=Lat(t);if(e!=null)return JR(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function aPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function APr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function cPr(t){return t.name}function E9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function C9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function Hp(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function uPr(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function lPr(t,e){if(Hp(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function dPr(t,e){Hp(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function hPr(t,e){if(Hp(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function gPr(t,e){Hp(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function VR(t,e,r=!0,n=1/0){return I9(t,Array.isArray(e)?e:[e],r,n)}function I9(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function fPr(t,e){return e.find(t)}function B9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=B9(t,i.children,!0);if(o)return o}}return null}function Uat(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&Uat(t,r.children))}function pPr(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Q9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>nc(e)&&t(e.data):e=>nc(e)&&e.data===t}};function Rfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function mPr(t,e){return r=>t(r)||e(r)}function Pat(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Q9,r)?Q9[r](n):Rfe(r,n)});return e.length===0?null:e.reduce(mPr)}function EPr(t,e){let r=Pat(t);return r?r(e):!0}function CPr(t,e,r,n=1/0){let s=Pat(t);return s?VR(s,e,r,n):[]}function IPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),B9(Rfe("id",t),e,r)}function cQ(t,e,r=!0,n=1/0){return VR(Q9.tag_name(t),e,r,n)}function BPr(t,e,r=!0,n=1/0){return VR(Rfe("class",t),e,r,n)}function QPr(t,e,r=!0,n=1/0){return VR(Q9.tag_type(t),e,r,n)}function yPr(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Nl;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Nl||(Nl={}));function _at(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function NC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=_at(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Dfe(t){let e=y9(RPr,t);return e?e.name==="feed"?bPr(e):wPr(e):null}function bPr(t){var e;let r=t.children,n={type:"atom",items:cQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:Oat(A)};sc(c,"id","id",A),sc(c,"title","title",A);let u=(a=y9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=SC("summary",A)||SC(" Line truncated
<td>${NEe(t.rootProjectName,30)}</td>
<td>${NEe(t.requestedTasks,60)}</td>
<td align='center'>${mht(t.gradleVersion)}</td>
<td align='center'>${Eht(t)}</td>
<td>${Cht(t)}</td>
</tr>`}function mht(t){let e=QEe(t);return e?`${t} ${e}`:t}function Eht(t){return t.buildFailed?":x:":":white_check_mark:"}function Cht(t){return t.buildScanFailed?AY({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?AY({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):AY({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function AY({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function NEe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function Iht(){let t=Al;if(t.payload.pull_request==null){se("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;se(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=REe(t),n=go(kQ()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
comments(last: 100) {
nodes { id body isMinimized url }
}
}
}
}
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return $e(`Failed to fetch comments: ${u}`)}let A=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(A,{id:u.id}).then(()=>se(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>$e(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function REe(t){return`<!-- gradle-job-summary: ${rC.constructJobCorrelator(t.workflow,t.job,sY())} -->`}var DEe=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let n=new Array,s=r.split(this.keyDelimiter);for(let[i,o]of s.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,s.length,`no '${this.hostDelimiter}' separator`);let A=o.substring(0,a),c=o.substring(a+1);if(!A)return this.warnBadlyFormed(i,s.length,"empty server name");if(!c)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:A,key:c})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return $e(`Ignoring badly formed Develocity access key: ${n} in ${s}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as wa from"fs";import*as Tl from"path";function kEe(){return FEe().map(e=>{let r=wa.readFileSync(e,"utf8"),n=JSON.parse(r);return bht(e,n),n})}function vEe(){FEe().forEach(wht)}function FEe(){let t=Tl.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return wa.existsSync(t)?wa.readdirSync(t).map(e=>Tl.resolve(t,e)).filter(e=>Tl.extname(e)===".json"&&!Qht(e)):[]}function bht(t,e){let r=Tl.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!wa.existsSync(r))return;let n=Tl.resolve(r,Tl.basename(t));if(wa.existsSync(n)){let s=wa.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Qht(t){let e=`${t}.processed`;return wa.existsSync(e)}function wht(t){let e=`${t}.processed`;wa.writeFileSync(e,"")}import*as gCe from"fs";import*as pCe from"path";import{pathToFileURL as qft}from"url";import*as iC from"fs";function cY(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,J(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,J(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,J(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,J(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,J(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as Ek from"path";import*as nC from"path";import $g from"assert";var mh=process.platform==="win32";function Rl(t){if(t=xl(t),mh&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=nC.dirname(t);return mh&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=xl(e)),e}function gk(t,e){if($g(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$g(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),FQ(e))return e;if(mh){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $g(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(DA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return $g(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return $g(FQ(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||mh&&t.endsWith("\\")||(t+=nC.sep),t+e}function FQ(t){return $g(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=DA(t),mh?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function MQ(t){return $g(t,"isRooted parameter 'itemPath' must not be empty"),t=DA(t),mh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function DA(t){return t=t||"",mh?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function xl(t){return t?(t=DA(t),!t.endsWith(nC.sep)||t===nC.sep||mh&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var kA;(function(t){t[t.None=0]=" Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new OQ(i));return n.searchPaths.push(...lY(n.patterns)),n})}static stat(e,r,n){return CY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield iC.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){J(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield iC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield iC.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){J(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as IY from"crypto";import*as Ck from"fs";import*as sCe from"stream";import*as iCe from"util";import*as oCe from"path";var Uft=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Pft=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function aCe(t,e){return Uft(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?se:J,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=IY.createHash("sha256"),f=0;try{for(var g=!0,E=Pft(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){A=m.value,g=!1;let I=A;if(u(I),!I.startsWith(`${d}${oCe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(Ck.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=IY.createHash("sha256");yield iCe.promisify(sCe.pipeline)(Ck.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var ACe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function yY(t,e){return ACe(this,void 0,void 0,function*(){return yield mk.create(t,e)})}function cCe(t){return ACe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield yY(e,{followSymbolicLinks:i});return aCe(o,r,s)})}import*as BY from"path";var Oft="Gradle User Home",lCe="BASIC_CACHE_PRIMARY_KEY",dCe="BASIC_CACHE_RESTORED_KEY",Hft="setup-java",hCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Ik=class{async restore(e,r){let n=fCe(e),s=await Gft();UB(lCe,s);try{let i=await uEe(n,s);i?(UB(dCe,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){$e(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=hc(lCe),i=hc(dCe);if(n.readOnly)return{status:"read-only",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return se(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=fCe(e);try{return await lEe(o,s)===-1?($e(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(se(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return $e(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${hCe}], make sure you have checked out the target repository`);return`${Hft}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Yft="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Vft="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Jft="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Bk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function mCe(t){return t.getCacheProvider()==="external"?(yk(Jft),new Bk("external")):t.isCacheDisabled()?(yk("Cache is disabled: will not restore state from previous builds."),new Bk("disabled")):t.getCacheProvider()==="basic"?(yk(Vft),new Ik):(yk(Yft),Wft())}function ECe(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function Wft(){let t=zft();return await import(qft(t).href)}function zft(){let t=import.meta.dirname,e=pCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(gCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function yk(t){console.info(t)}import*as bCe from"util";var tgt=Ie(BCe(),1);import*as bY from"fs";var zCr=bCe.promisify(bY.readdir);var ngt={_useHtmlParser2:!1};function oC(t,e){if(!t)return e??ngt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var WY={};cA(WY,{contains:()=>Lk,extract:()=>Xgt,html:()=>Wgt,merge:()=>JCe,parseHTML:()=>jgt,root:()=>Kgt,text:()=>cp,xml:()=>zgt});var Qh={};cA(Qh,{DocumentPosition:()=>xa,append:()=>xgt,appendChild:()=>Tgt,compareDocumentPosition:()=>GCe,existsOne:()=>OCe,filter:()=>lC,find:()=>vk,findAll:()=>vgt,findOne:()=>Fk,findOneChild:()=>kgt,getAttributeValue:()=>Qgt,getChildren:()=>uC,getElementById:()=>Lgt,getElements:()=>_gt,getElementsByClassName:()=>Ugt,getElementsByTagName:()=>Ap,getElementsByTagType:()=>Pgt,getFeed:()=>JY,getInnerHTML:()=>bgt,getName:()=>Sgt,getOuterHTML:()=>UCe,getParent:()=>PCe,getSiblings:()=>YY,getText:()=>Rk,hasAttrib:()=>wgt,hasChildren:()=>lr,innerText:()=>WQ,isCDATA:()=>aC,isComment:()=>ap,isDocument:()=>Ta,isTag:()=>Te,isText:()=>Gi,nextElementSibling:()=>Dk,prepend:()=>Dgt,prependChild:()=>Rgt,prevElementSibling:()=>kk,removeElement:()=>Fl,removeSubsets:()=>Ogt,replaceElement:()=>Ngt,testElement:()=>Mgt,textContent:()=>vl,uniqueSort:()=>Bh});var Na={};cA(Na,{CDATA:()=>kY,Comment:()=>TY,Directive:()=>NY,Doctype:()=>vY,ElementType:()=>vt,Root:()=>wY,Script:()=>xY,Style:()=>RY,Tag:()=>DY,Text:()=>SY,isTag:()=>QY});var vt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(vt||(vt={}));function QY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var wY=vt.Root,SY=vt.Text,NY=vt.Directive,TY=vt.Comment,xY=vt.Script,RY=vt.Style,DY=vt.Tag,kY=vt.CDATA,vY=vt.Doctype;var bk=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return AC(this,e)}},qQ=class extends bk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Jc=class extends qQ{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},sp=class extends qQ{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},ip=class extends qQ{constructor(e,r){super(r),this.name=e,this.type=vt.Directive}get nodeType(){return 1}},YQ=class extends bk{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},VQ=class extends YQ{constructor(){super(...arguments),this.type=vt.CDATA}get nodeType(){return 4}},Do=class extends YQ{constructor(){super(...arguments),this.type=vt.Root}get nodeType(){return 9}},op=class extends YQ{constructor(e,r,n=[],s=e==="script"?vt.Script:e==="style"?vt.Style:vt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret Line truncated
`:Rk(t.children):aC(t)?Rk(t.children):Gi(t)?t.data:""}function vl(t){return Array.isArray(t)?t.map(vl).join(""):lr(t)&&!ap(t)?vl(t.children):Gi(t)?t.data:""}function WQ(t){return Array.isArray(t)?t.map(WQ).join(""):lr(t)&&(t.type===vt.Tag||aC(t))?WQ(t.children):Gi(t)?t.data:""}function uC(t){return lr(t)?t.children:[]}function PCe(t){return t.parent||null}function YY(t){let e=PCe(t);if(e!=null)return uC(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Qgt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function wgt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Sgt(t){return t.name}function Dk(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function kk(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function Fl(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Ngt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Tgt(t,e){if(Fl(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function xgt(t,e){Fl(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Rgt(t,e){if(Fl(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Dgt(t,e){Fl(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function lC(t,e,r=!0,n=1/0){return vk(t,Array.isArray(e)?e:[e],r,n)}function vk(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function kgt(t,e){return e.find(t)}function Fk(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=Fk(t,i.children,!0);if(o)return o}}return null}function OCe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&OCe(t,r.children))}function vgt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Mk={tag_name(t){return typeof t=="function"?e=>Te(e)&&t(e.name):t==="*"?Te:e=>Te(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Gi(e)&&t(e.data):e=>Gi(e)&&e.data===t}};function VY(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function Fgt(t,e){return r=>t(r)||e(r)}function HCe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Mk,r)?Mk[r](n):VY(r,n)});return e.length===0?null:e.reduce(Fgt)}function Mgt(t,e){let r=HCe(t);return r?r(e):!0}function _gt(t,e,r,n=1/0){let s=HCe(t);return s?lC(s,e,r,n):[]}function Lgt(t,e,r=!0){return Array.isArray(e)||(e=[e]),Fk(VY("id",t),e,r)}function Ap(t,e,r=!0,n=1/0){return lC(Mk.tag_name(t),e,r,n)}function Ugt(t,e,r=!0,n=1/0){return lC(VY("class",t),e,r,n)}function Pgt(t,e,r=!0,n=1/0){return lC(Mk.tag_type(t),e,r,n)}function Ogt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var xa;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(xa||(xa={}));function GCe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return xa.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?xa.FOLLOWING|xa.CONTAINED_BY:xa.FOLLOWING:a===t?xa.PRECEDING|xa.CONTAINS:xa.PRECEDING}function Bh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=GCe(e,r);return n&xa.PRECEDING?-1:n&xa.FOLLOWING?1:0}),t}function JY(t){let e=_k(Vgt,t);return e?e.name==="feed"?Hgt(e):Ggt(e):null}function Hgt(t){var e;let r=t.children,n={type:"atom",items:Ap("entry",r).map(o=>{var a;let{children:A}=o,c={media:qCe(A)};qi(c,"id","id",A),qi(c,"title","title",A);let u=(a=_k("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=bh("summary",A)||bh("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Dl=Xe(DC(),1);var Vfe={};function Wfe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function zfe(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function Jfe(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Yfe=(t,e,r,n,s)=>{let i=s(e,Jfe(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},L9={is:Yfe,matches:Yfe,where:Yfe,not(t,e,r,n,s){let i=s(e,Jfe(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Jfe(r);o.relativeSelector=!0;let a=e.some(u=>u.some(xM))?[Vfe]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=Wfe(A,i);if(a&&A!==Dl.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...zfe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function RAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in L9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return L9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:v9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,SAt.parse)(c);return L9.is(t,u,r,n,s)}if(typeof A=="function")return Gfe(A,o,a,1),u=>A(u,a)&&t(u);if(o in tD)return tD[o](t,a,r,n);if(o in kM){let u=kM[o];return Gfe(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe($R(),1);function jfe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function DAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),yAt[e.action](t,e,r)}case xl.SelectorType.Pseudo:return RAt(t,e,r,n,s);case xl.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=jfe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=jfe(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=jfe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case xl.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function xAt(t,e,r){let n=U9(t,e,r);return Wfe(n,e.adapter)}function U9(t,e,r){let n=typeof t=="string"?(0,Hd.parse)(t):t;return P9(n,e,r)}function TAt(t){return t.type===Hd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(TAt)))}var C_r={type:Hd.SelectorType.Descendant},I_r={type:"_flexibleDescendant"},B_r={type:Hd.SelectorType.Pseudo,name:"scope",data:null};function Q_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===V Line truncated
`)})):{name:s,value:i.replace(WAt,`\r
`)}}).toArray()}var lpe={};Su(lpe,{extract:()=>UOr});function LOr(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function UOr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=LOr(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var kC=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};kC.prototype.cheerio="[cheerio object]";kC.prototype.splice=Array.prototype.splice;kC.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(kC.prototype,Pfe,ape,Ape,cpe,upe,lpe);function zAt(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=HR(s),a=t(n,o,i,null);class A extends kC{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=HR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&bM(u)?t(u,g,!1,null).children:POr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?bM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,xfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function POr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var _Or=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Zn="\uFFFD",k;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));var sA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y9(t){return t>=55296&&t<=57343}function jAt(t){return t>=56320&&t<=57343}function KAt(t,e){return(t-55296)*1024+9216+e}function J9(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function V9(t){return t>=64976&&t<=65007||_Or.has(t)}var Ae;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-pu Line truncated
`," Line feed \\n"]]),hIt=new Map([...g0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of hIt)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ka=Ie(wh(),1);var cV={};function uV(t,e){return t===ka.default.falseFunc?ka.default.falseFunc:r=>e.isTag(r)&&t(r)}function lV(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function AV(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var aV=(t,e,r,n,s)=>{let i=s(e,AV(r),n);return i===ka.default.trueFunc?t:i===ka.default.falseFunc?ka.default.falseFunc:o=>i(o)&&t(o)},jk={is:aV,matches:aV,where:aV,not(t,e,r,n,s){let i=s(e,AV(r),n);return i===ka.default.falseFunc?t:i===ka.default.trueFunc?ka.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=AV(r);o.relativeSelector=!0;let a=e.some(u=>u.some(ew))?[cV]:void 0,A=s(e,o,a);if(A===ka.default.falseFunc)return ka.default.falseFunc;let c=uV(A,i);if(a&&A!==ka.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...lV(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function DIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in jk))throw new Error(`Unknown pseudo-class :${o}(${a})`);return jk[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:zk[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,RIe.parse)(c);return jk.is(t,u,r,n,s)}if(typeof A=="function")return oV(A,o,a,1),u=>A(u,a)&&t(u);if(o in IC)return IC[o](t,a,r,n);if(o in rw){let u=rw[o];return oV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var va=Ie(EC(),1);function dV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function kIe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case va.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case va.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case va.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),SIe[e.action](t,e,r)}case va.SelectorType.Pseudo:return DIe(t,e,r,n,s);case va.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case va.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=dV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=dV(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=dV(c,i));return!1};case va.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case va.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case va.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case va.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case va.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function vIe(t,e,r){let n=Kk(t,e,r);return uV(n,e.adapter)}function Kk(t,e,r){let n=typeof t=="string"?(0,FA.parse)(t):t;return Xk(n,e,r)}function FIe(t){return t.type===FA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(FIe)))}var _pt={type:FA.SelectorType.Descendant},Lpt={type:"_flexibleDescendant"},Upt={type:FA.SelectorType.Pseudo,name:"scope",data:null};function Ppt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===cV||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(KIe,`\r
`)}}).toArray()}var TV={};cA(TV,{extract:()=>e0t});function $mt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function e0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=$mt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Th=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Th.prototype.cheerio="[cheerio object]";Th.prototype.splice=Array.prototype.splice;Th.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Th.prototype,tV,QV,wV,SV,NV,TV);function XIe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=oC(s),a=t(n,o,i,null);class A extends Th{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Ra(u))return u;let f=oC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=Ra(g)?g:new A(g,null,f);if(E._root=E,!u)return new A(void 0,E,f);let m=typeof u=="string"&&zQ(u)?t(u,f,!1,null).children:t0t(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?zQ(l)?new A([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):Ra(l)?l:new A(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(c,WY,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function t0t(t){return!!t.name||t.type===Na.Root||t.type===Na.Text||t.type===Na.Comment}var r0t=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Er="\uFFFD",T;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function nv(t){return t>=55296&&t<=57343}function ZIe(t){return t>=56320&&t<=57343}function $Ie(t,e){return(t-55296)*1024+9216+e}function sv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function iv(t){return t>=64976&&t<=65007||r0t.has(t)}var z;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),jDe=new Map([...XK,["\\"," Backslash \\"],["/"," Forward slash /"]]);function KDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of jDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(hIt.values()).toString()}
Invalid characters include: ${Array.from(jDe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);pe("Artifact name is valid!")}function f0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of g0e)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);se("Artifact name is valid!")}function ZK(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of XK)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(g0e.values()).toString()}
Invalid characters include: ${Array.from(XK.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var EIt=Xe(mIt(),1);function Yg(){return`@actions/artifact-${EIt.version}`}var yW=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},im=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},om=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},iI=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},am=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};am.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var YQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
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"}};YQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var JQ=class extends Error{};JQ.prototype.name="InvalidTokenError";function KZr(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function XZr(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return KZr(e)}catch{return atob(e)}}function CIt(t,e){if(typeof t!="string")throw new JQ("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new JQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=XZr(n)}catch(i){throw new JQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new JQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var bW=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Jg(){let t=BW(),e=CIt(t);if(!e.scp)throw bW;let r=e.scp.split(" ");if(r.length===0)throw bW;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw bW;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return _e(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),_e(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw bW}function IIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(N1(r),N1(encodeURIComponent(r)))}catch(e){_e(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BIt(t){if(typeof t!="object"||t===null){_e("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&IIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&IIt(t.signed_url)}var wW=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},p0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=BW();this.baseUrl=rIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new wA(e,[new w1(i)])}request(e,r,n,s){return wW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;_e(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>wW(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return wW(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),_e(`[Response] - ${a.message.statusCode}`),_e(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(BIt(c),_e(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(YQ.isUsageErrorMessage(c.msg))throw new YQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&_e(`Raw Body: ${s}`),a instanceof YQ)throw a;if(am.isNetworkErrorCode(a?.code))throw new am(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);pe(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[oo.BadGateway,oo.GatewayTimeout,oo.InternalServerError,oo.ServiceUnavailable,oo.TooManyRequests].includes(e):!1}sleep(e){return wW(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Vg(t){let e=new p0e(Yg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new QW(e)}import*as nx from"fs";import{normalize as QIt,resolve as yIt}from"path";function bIt(t){if(!nx.existsSync Line truncated
${u$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xW(t){return t instanceof cA?!0:WQ(t)&&t.name==="RestError"}function gc(t,e){return Buffer.from(t,e)}import N0e from"node:http";import S0e from"node:https";import PIt from"node:zlib";import{Transform as l$r}from"node:stream";var Vl=rL("ts-http-runtime");var d$r={};function nL(t){return t&&typeof t.pipe=="function"}function _It(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function OIt(t){return t&&typeof t.byteLength=="number"}var TW=class extends l$r{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}},R0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wg("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Zd;Vl.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=p$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new TW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),nL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=h$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?g$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new TW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await f$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();nL(a)&&(c=_It(a));let u=Promise.resolve();nL(A)&&(u=_It(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),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((A,c)=>{let u=i?N0e.request(a,A):S0e.request(a,A);u.once("error",l=>{c(new cA(l.message,{code:l.code??cA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Wg("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&nL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):OIt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new cA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?N0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new N0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return S0e.globalAgent;let s=e.tlsSettings??d$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new S0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function h$r(t){let e=gu();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}function g$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=PIt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=PIt.createInflate();return t.pipe(n),n}return t}function f$r(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 cA(`Error reading response as text: ${s.message}`,{code:cA.PARSE_ERROR}))})})}function p$r(t){return t?Buffer.isBuffer(t)?t.length:nL(t)?null:OIt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function HIt(){return new R0e}function kW(){return HIt()}var D0e="logPolicy";function FW(t={}){let e=t.logger??Vl.info,r=new Zd({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:D0e,async sendRequest Line truncated
`;return e}function O$r(t){return t instanceof Uint8Array?t.byteLength:VW(t)?t.size===-1?void 0:t.size:void 0}function H$r(t){let e=0;for(let r of t){let n=O$r(r);if(n===void 0)return;e+=n}return e}async function q$r(t,e,r){let n=[gc(`--${r}`,"utf-8"),...e.flatMap(i=>[gc(`\r
`,"utf-8"),gc(_$r(i.headers),"utf-8"),gc(`\r
`,"utf-8"),i.body,gc(`\r
--${r}`,"utf-8")]),gc(`--\r
\r
`,"utf-8")],s=H$r(n);s&&t.headers.set("Content-Length",s),t.body=await uBt(n)}var iL="multipartPolicy",G$r=70,Y$r=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function J$r(t){if(t.length>G$r)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Y$r.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function WW(){return{name:iL,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[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?J$r(r):r=P$r(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await q$r(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function zW(){return DW()}import{EOL as W$r}from"node:os";import z$r from"node:util";import*as lBt from"node:process";function dBt(t,...e){lBt.stderr.write(`${z$r.format(t,...e)}${W$r}`)}var hBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,gBt,H0e=[],q0e=[],jW=[];hBt&&G0e(hBt);var fBt=Object.assign(t=>pBt(t),{enable:G0e,enabled:Y0e,disable:j$r,log:dBt});function G0e(t){gBt=t,H0e=[],q0e=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?q0e.push(new RegExp(`^${n.substr(1)}$`)):H0e.push(new RegExp(`^${n}$`));for(let n of jW)n.enabled=Y0e(n.namespace)}function Y0e(t){if(t.endsWith("*"))return!0;for(let e of q0e)if(e.test(t))return!1;for(let e of H0e)if(e.test(t))return!0;return!1}function j$r(){let t=gBt||"";return G0e(""),t}function pBt(t){let e=Object.assign(r,{enabled:Y0e(t),destroy:K$r,log:fBt.log,namespace:t,extend:X$r});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return jW.push(e),e}function K$r(){let t=jW.indexOf(this);return t>=0?(jW.splice(t,1),!0):!1}function X$r(t){let e=pBt(`${this.namespace}:${t}`);return e.log=this.log,e}var ox=fBt;var EBt=new Set,KW=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,J0e,V0e=ox("azure");V0e.log=(...t)=>{ox.log(...t)};var W0e=["verbose","info","warning","error"];KW&&(BBt(KW)?Z$r(KW):console.error(`AZURE_LOG_LEVEL set to unknown log level '${KW}'; logging is not enabled. Acceptable values: ${W0e.join(", ")}.`));function Z$r(t){if(t&&!BBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${W0e.join(",")}`);J0e=t;let e=[];for(let r of EBt)IBt(r)&&e.push(r.namespace);ox.enable(e.join(","))}var mBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=V0e.extend(t);return CBt(V0e,e),{error:XW(e,"error"),warning:XW(e,"warning"),info:XW(e,"info"),verbose:XW(e,"verbose")}}function CBt(t,e){e.log=(...r)=>{t.log(...r)}}function XW(t,e){let r=Object.assign(t.extend(e),{level:e});if(CBt(t,r),IBt(r)){let n=ox.disable();ox.enable(n+","+r.namespace)}return EBt.add(r),r}function IBt(t){return!!(J0e&&mBt[t.level]<=mBt[J0e])}function BBt(t){return W0e.includes(t)}var zg=Wl("core-rest-pipeline");function z0e(t={}){return FW({logger:zg.info,...t})}var j0e=MW;function K0e(t={}){return vW(t)}import X0e from"node:os";import Z0e from"node:process";function QBt(){return"User-Agent"}async function yBt(t){if(Z0e&&Z0e.versions){let e=`${X0e.type()} ${X0e.release()}; ${X0e.arch()}`,r=Z0e.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})`)}}var ZW="1.22.2";function ien(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bBt(){return QBt()}async function $W(t){let e=new Map;e.set("core-rest-pipeline",ZW),await yBt(e);let r=ien(e);return t?`${t} ${r}`:r}var wBt=bBt(),NBt="userAgentPolicy";function $0e(t={}){let e=$W(t.userAgentPrefix);return{name:NBt,async sendRequest(r,n){return r.headers.has(wBt)||r.headers.set(wBt,await e),n(r)}}}var oL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function eQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new oL(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var uen="The delay was aborted.";function ax(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return eQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??uen})}function oI(t){if(WQ(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}`}}function SBt(t){return WQ(t)}fun Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Mtn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",bi("InvalidTag",l,uA(t,i))}let c=Dtn(t,i);if(c===!1)return bi("InvalidAttr","Attributes for '"+A+"' have open quote.",uA(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=d0t(u,e);if(d===!0)n=!0;else return bi(d.err.code,d.err.msg,uA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return bi("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",uA(t,o));if(r.length===0)return bi("InvalidTag","Closing tag '"+A+"' has not been opened.",uA(t,o));{let l=r.pop();if(A!==l.tagName){let d=uA(t,l.tagStartPos);return bi("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",uA(t,o))}r.length==0&&(s=!0)}}else return bi("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",uA(t,i));else{let l=d0t(u,e);if(l!==!0)return bi(l.err.code,l.err.msg,uA(t,i-u.length+l.err.line));if(s===!0)return bi("InvalidXml","Multiple possible root nodes found.",uA(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=l0t(t,i);continue}else if(t[i+1]==="?"){if(i=u0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ktn(t,i);if(l==-1)return bi("InvalidChar","char '&' is not expected.",uA(t,i));i=l}else if(s===!0&&!c0t(t[i]))return bi("InvalidXml","Extra text at the end",uA(t,i));t[i]==="<"&&i--}}else{if(c0t(t[i]))continue;return bi("InvalidChar","char '"+t[i]+"' is not expected.",uA(t,i))}if(n){if(r.length==1)return bi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",uA(t,r[0].tagStartPos));if(r.length>0)return bi("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return bi("InvalidXml","Start tag expected.",1);return!0}function c0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function u0t(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 bi("InvalidXml","XML declaration allowed only at the start of the document.",uA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function l0t(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}var Stn='"',Rtn="'";function Dtn(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Stn||t[e]===Rtn)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}}var xtn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d0t(t,e){let r=cz(t,xtn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return bi("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",EL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return bi("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",EL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return bi("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",EL(r[s]));let i=r[s][2];if(!Ftn(i))return bi("InvalidAttr","Attribute '"+i+"' is an invalid name.",EL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return bi("InvalidAttr","Attribute '"+i+"' is repeated.",EL(r[s]))}return!0}function Ttn(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}function ktn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ttn(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}function bi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Ftn(t){return mL(t)}function Mtn(t){return mL(t)}function uA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function EL(t){return t.startIndex+t[1].length}var vtn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},h0t=function(t){return Object.assign({},vtn,t)};var lz;typeof Symbol!="function"?lz="@@xmlMetadata":lz=Symbol("XML Node Metadata");var mu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][lz]={startIndex:r})}static getMetaDataSymbol(){return lz}};function xQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&Ptn(t,e)){e+=7;let a,A;[a,A,e]=Ltn(t,e+1),A.indexOf("&")===-1&&(r[qtn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&_tn(t,e))e+=8;else if(s&&Otn(t,e))e+=8;else if(s&&Htn(t,e))e+=9;else if(Utn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function Ltn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Utn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function Ptn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function _tn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function Otn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function Htn(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new mu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=$Q(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=kQe(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new mu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=$Q(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=xQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=$Q(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=kQe(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new mu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new mu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new mu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function ern(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var trn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function rrn(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}function nrn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function srn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function $Q(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function kQe(t,e,r,n=">"){let s=srn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function irn(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=$Q(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),p0t(t,e,"",r)}function p0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=crn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];urn(c,e)||(g=e.tagValueProcessor(A,g),g=m0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=f0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=f0t(a[":@"],e),d=n+`<${A}${l}`,h=p0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function crn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function f0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=m0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function urn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function m0t(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}var lrn={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function $d(t){this.options=Object.assign({},lrn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=CL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=grn),this.processTextOrObjNode=drn,this.options.format?(this.indentate=hrn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}$d.prototype.build=function(t){return this.options.preserveOrder?LQe(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};$d.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};$d.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function drn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}$d.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};$d.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};$d.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};$d.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function hrn(t){return this.options.indentBy.repeat(t)}function grn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var E0t={validate:uz};function B0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function frn(t={}){var e,r;return Object.assign(Object.assign({},B0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function prn(t={}){return Object.assign(Object.assign({},B0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function dz(t,e={}){let r=frn(e),n=new $d(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function UQe(t,e={}){if(!t)throw new Error("Document is empty");let r=E0t.validate(t);if(r!==!0)throw r;let s=new dx(prn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Qz(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Cz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Iz(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ai=class extends ty{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new bL(e,r,this)}computeHMACSHA256(e){return brn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ry=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Zi=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var lI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wrn=new ry("The operation was aborted."),wL=class extends Xg{retryOptions;constructor(e,r,n=lI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:lI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):lI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:lI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:lI.maxRetryDelayInMs):lI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:lI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:lI.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Ez(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=uI(s.url,lm.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Zi.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(Zi.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Zi.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Zi.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return Zi.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Zi.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Zi.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Zi.info(`RetryPolicy: Delay for ${s}ms`),Bz(s,n,wrn)}};var NL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new wL(e,r,this.retryOptions)}};var Nrn="storageBrowserPolicy";function Q0t(){return{name:Nrn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=uI(t.url,lm.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Srn="StorageCorrectContentLengthPolicy";function y0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Srn,async sendRequest(e,r){return t(e),r(e)}}}var Rrn="storageRetryPolicy",hx={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Drn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],xrn=new ry("The operation was aborted.");function b0t(t={}){let e=t.retryPolicyType??hx.retryPolicyType,r=t.maxTries??hx.maxTries,n=t.retryDelayInMs??hx.retryDelayInMs,s=t.maxRetryDelayInMs??hx.maxRetryDelayInMs,i=t.secondaryHost??hx.secondaryHost,o=t.tryTimeoutInMs??hx.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return Zi.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Drn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Trn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Qz(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=Cz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Iz(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:krn,async sendRequest(i,o){return e(i),o(i)}}}var Frn="storageRequestFailureDetailsParserPolicy";function w0t(){return{name:Frn,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}}}}import{createHmac as Mrn}from"node:crypto";var yz=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Mrn("sha256",this.key).update(e,"utf8").digest("base64")}};var bz="12.31.0",wz="2026-02-06";var Nz="https://storage.azure.com/.default",dm={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var eh="",HQe="*",vrn=1*1024*1024;var Lrn=4*vrn;var N0t="AES256",S0t="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",R0t=["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"],D0t=["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"],x0t="BlobUsesCustomerSpecifiedEncryption",T0t="BlobDoesNotUseCustomerSpecifiedEncryption",k0t=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hm(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var SL=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function wi(t,e={}){t||(t=new Ss);let r=new SL([],e);return r._credential=t,r}function Urn(t){let e=[Prn,F0t,_rn,Orn,Hrn,qrn,Yrn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Grn(s));return{wrappedPolicies:RQe(r),afterRetry:n}}}}function qQe(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?DQe(e):_Qe(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${bz}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=lL({...r,loggingOptions:{additionalAllowedHeaderNames:R0t,additionalAllowedQueryParameters:D0t,logger:hz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:dz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:UQe,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:sQe}),s.addPolicy(y0t()),s.addPolicy(b0t(r.retryOptions),{phase:"Retry"}),s.addPolicy(w0t()),s.addPolicy(Q0t());let a=Urn(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=GQe(t);fu(A)?s.addPolicy(ux({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ih(t.version,i,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}}function Psn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sh(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function _sn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sh(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function Osn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?sh(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function Hsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sh(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function qsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sh(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function Gsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?sh(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ih(t.version,o,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:i}}function uy(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function ly(t){let e=t.version?t.version:wz;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}var _L=class{_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=Ax()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==eh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==eh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==eh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==eh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);pe(`Redirecting to blob download url: ${j2t(u)}`);try{pe(`Starting download of artifact to: ${r}`);let l=yield K2t(u,r,e?.skipDecompress);pe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,_e(`Computed digest: ${l.sha256Digest}`),_e(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function $2t(){return fT(this,arguments,void 0,function*(t=nIt()){return(yield UQn(t))?_e(`Artifact destination folder already exists: ${t}`):(_e(`Artifact destination folder does not exist, creating: ${t}`),yield Y2t.mkdir(t,{recursive:!0})),t})}var _Qn=5,OQn=[400,401,403,404,422];function pT(t,e=_Qn,r=OQn){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return _e(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var eFt="6.0.0";function qy(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}qy.VERSION=eFt;var nFt=Xe(tFt(),1),sFt=Xe(cge(),1),HQn="0.0.0-development";async function rFt(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function qQn(t,e,r,n){let s=new nFt.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(GQn.bind(null,t,e,r),n)}async function GQn(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new sFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return rFt(t,e,i,n)}return s}function Gy(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",rFt.bind(null,r,t)),t.hook.wrap("request",qQn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Gy.VERSION=HQn;var iFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function wK(t,e,r,n,s){return iFt(this,void 0,void 0,function*(){var i;let[o,a]=pT(Z0),A={log:void 0,userAgent:Yg(),previews:void 0,retry:o,request:a},u=yield Il(s,A,Gy,qy).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new im(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new om(`Artifact not found for name: ${t}
`)}var e2e=Ie($De(),1);function Eu(){return`@actions/artifact-${e2e.version}`}var BI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},td=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},rf=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},nd=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};nd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var om=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};om.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var am=class extends Error{};am.prototype.name="InvalidTokenError";function AMt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function cMt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return AMt(e)}catch{return atob(e)}}function t2e(t,e){if(typeof t!="string")throw new am("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new am(`Invalid token specified: missing part #${r+1}`);let s;try{s=cMt(n)}catch(i){throw new am(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new am(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var UM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Cu(){let t=_M(),e=t2e(t);if(!e.scp)throw UM;let r=e.scp.split(" ");if(r.length===0)throw UM;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw UM;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return J(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),J(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw UM}function r2e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(lc(r),lc(encodeURIComponent(r)))}catch(e){J(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function n2e(t){if(typeof t!="object"||t===null){J("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&r2e(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&r2e(t.signed_url)}var PM=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},$K=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=_M();this.baseUrl=UDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new hs(e,[new nl(i)])}request(e,r,n,s){return PM(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;J(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>PM(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return PM(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),J(`[Response] - ${a.message.statusCode}`),J(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(n2e(c),J(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(om.isUsageErrorMessage(c.msg))throw new om;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&J(`Raw Body: ${s}`),a instanceof om)throw a;if(nd.isNetworkErrorCode(a?.code))throw new nd(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);se(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return PM(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Iu(t){let e=new $K(Eu(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new LM(e)}import*as bI from"fs";import{normalize as s2e,resolve as i2e}from"path";function o2e(t){if(!bI.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&$e("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${D4e(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield k4e(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,J(`Computed digest: ${l.sha256Digest}`),J(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function M4e(){return my(this,arguments,void 0,function*(t=PDe()){return(yield jWt(t))?J(`Artifact destination folder already exists: ${t}`):(J(`Artifact destination folder does not exist, creating: ${t}`),yield S4e.mkdir(t,{recursive:!0})),t})}var XWt=5,ZWt=[400,401,403,404,422];function Ey(t,e=XWt,r=ZWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return J(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var _4e="6.0.0";function vm(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}vm.VERSION=_4e;var P4e=Ie(L4e(),1);var $Wt="0.0.0-development";function e7t(t){return t.request!==void 0}async function U4e(t,e,r,n){if(!e7t(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function t7t(t,e,r,n){let s=new P4e.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,A=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(r7t.bind(null,t,e,r),n)}async function r7t(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new al(s.data.errors[0].message,500,{request:n,response:s});return U4e(t,e,i,n)}return s}function Fm(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",U4e.bind(null,r,n)),t.hook.wrap("request",t7t.bind(null,r,n))),n}Fm.VERSION=$Wt;var O4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function JL(t,e,r,n,s){return O4e(this,void 0,void 0,function*(){var i;let[o,a]=Ey(lg),A={log:void 0,userAgent:Eu(),previews:void 0,retry:o,request:a},u=yield go(s,A,Fm,vm).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new td(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new rd(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],_e(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function oFt(t){return iFt(this,void 0,void 0,function*(){var e;let r=Vg(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Jg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Sa.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new om(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],J(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function H4e(t){return O4e(this,void 0,void 0,function*(){var e;let r=Iu(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Cu(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Nn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new rd(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],_e(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Na.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var aFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function AFt(t,e,r,n,s){return aFt(this,void 0,void 0,function*(){var i;let[o,a]=pT(Z0),A={log:void 0,userAgent:Yg(),previews:void 0,retry:o,request:a},c=Il(s,A,Gy,qy),u=yield wK(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new im(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function cFt(t){return aFt(this,void 0,void 0,function*(){let e=Vg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Jg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Sa.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new om(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],_e(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return pe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var uFt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},NK=oIt(),SK=100,YQn=Math.ceil(NK/SK);function lFt(t,e,r,n){return uFt(this,arguments,void 0,function*(s,i,o,a,A=!1){pe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=pT(Z0),d={log:void 0,userAgent:Yg(),previews:void 0,retry:u,request:l},h=Il(a,d,Gy,qy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:SK,page:g}),C=Math.ceil(p.total_count/SK),m=p.total_count;m>NK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${NK}. Results will be incomplete as only the first ${NK} artifacts will be returned`),C=YQn);for(let I of p.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(g++,g;g<=C;g++){_e(`Fetching page ${g} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:SK,page:g});for(let y of I.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=hFt(c)),pe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function dFt(){return uFt(this,arguments,void 0,function*(t=!1){let e=Vg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Jg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Na.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=hFt(o)),pe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function hFt(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var lP=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},JQn=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},mT=class{uploadArtifact(e,r,n,s){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;return c2t(e,r,n,s)}catch(i){throw tr(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],J(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Yo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var G4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function q4e(t,e,r,n,s){return G4e(this,void 0,void 0,function*(){var i;let[o,a]=Ey(lg),A={log:void 0,userAgent:Eu(),previews:void 0,retry:o,request:a},c=go(s,A,Fm,vm),u=yield JL(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new td(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function Y4e(t){return G4e(this,void 0,void 0,function*(){let e=Iu(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Cu(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Nn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new rd(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],J(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var V4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},WL=GDe(),zL=100,n7t=Math.ceil(WL/zL);function J4e(t,e,r,n){return V4e(this,arguments,void 0,function*(s,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=Ey(lg),d={log:void 0,userAgent:Eu(),previews:void 0,retry:u,request:l},h=go(a,d,Fm,vm),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:zL,page:f}),E=Math.ceil(g.total_count/zL),m=g.total_count;m>WL&&($e(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${WL}. Results will be incomplete as only the first ${WL} artifacts will be returned`),E=n7t);for(let I of g.artifacts)c.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){J(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:zL,page:f});for(let y of I.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=z4e(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function W4e(){return V4e(this,arguments,void 0,function*(t=!1){let e=Iu(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Cu(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Yo.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=z4e(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function z4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var zS=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},s7t=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Cy=class{uploadArtifact(e,r,n,s){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;return V8e(e,r,n,s)}catch(i){throw $e(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JQn(r,["findBy"]);return X2t(e,n,s,i,o)}return Z2t(e,r)}catch(n){throw tr(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=s7t(r,["findBy"]);return v4e(e,n,s,i,o)}return F4e(e,r)}catch(n){throw $e(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return lFt(r,n,s,i,e?.latest)}return dFt(e?.latest)}catch(r){throw tr(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return J4e(r,n,s,i,e?.latest)}return W4e(e?.latest)}catch(r){throw $e(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return wK(e,n,s,i,o)}return oFt(e)}catch(n){throw tr(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return JL(e,n,s,i,o)}return H4e(e)}catch(n){throw $e(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return AFt(e,i,n,s,o)}return cFt(e)}catch(n){throw tr(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return q4e(e,i,n,s,o)}return Y4e(e)}catch(n){throw $e(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var IAs=new mT;import*as RK from"path";import dxe from"fs";var VQn="dependency-graph_";async function fFt(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await gFt(t,!1);return;case"generate-submit-and-upload":await gFt(t,!0);return;case"generate-and-upload":await WQn(t)}}catch(r){eyn(t,e,r)}}async function gFt(t,e){if(mFt()){pe("Dependency graph not supported in the ACT environment.");return}let r=await pFt();try{await zQn(r)}catch(n){try{await lxe(r,t)}catch(s){pe(String(s))}throw n}e&&await lxe(r,t)}async function WQn(t){if(mFt()){pe("Dependency graph not supported in the ACT environment.");return}await lxe(await pFt(),t)}async function pFt(){let r=(await(await tC(`${XQn()}/**/*.json`)).glob()).filter(n=>!ZQn(n));return r.forEach($Qn),pe(`Found dependency graph files: ${r.join(", ")}`),r}async function lxe(t,e){if(t.length===0){pe("No dependency graph files found to upload.");return}let r=tM(),n=new mT;for(let s of t){let i=hxe(s);pe(`Uploading dependency graph file: ${i}`);let o=`${VQn}${RK.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zQn(t){if(t.length===0){pe("No dependency graph files found to submit.");return}for(let e of t)try{await KQn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jQn(e,r)),r}}function jQn(t,e){let n=`Dependency submission failed for ${hxe(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var Pkr=new Cy;import*as jL from"path";import Zee from"fs";var i7t="dependency-graph_";async function K4e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await j4e(t,!1);return;case"generate-submit-and-upload":await j4e(t,!0);return;case"generate-and-upload":await o7t(t)}}catch(r){h7t(t,e,r)}}async function j4e(t,e){if(Z4e()){se("Dependency graph not supported in the ACT environment.");return}let r=await X4e();try{await a7t(r)}catch(n){try{await Xee(r,t)}catch(s){se(String(s))}throw n}e&&await Xee(r,t)}async function o7t(t){if(Z4e()){se("Dependency graph not supported in the ACT environment.");return}await Xee(await X4e(),t)}async function X4e(){let r=(await(await yY(`${u7t()}/**/*.json`)).glob()).filter(n=>!l7t(n));return r.forEach(d7t),se(`Found dependency graph files: ${r.join(", ")}`),r}async function Xee(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=vQ(),n=new Cy;for(let s of t){let i=$ee(s);se(`Uploading dependency graph file: ${i}`);let o=`${i7t}${jL.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function a7t(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await c7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=A7t(e,r)),r}}function A7t(t,e){let n=`Dependency submission failed for ${$ee(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function KQn(t){let e=tyn(),r=dxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Cl.repo.owner,n.repo=Cl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=hxe(t);UUe(`Submitted ${i}: ${s.data.message}`)}function XQn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZQn(t){let e=`${t}.processed`;return dxe.existsSync(e)}function $Qn(t){let e=`${t}.processed`;dxe.writeFileSync(e,"")}function eyn(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $D(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function tyn(){return Il(T6())}function hxe(t){let e=tM();return RK.relative(e,t)}function mFt(){return process.env.ACT!==void 0}process.on("uncaughtException",t=>RBe(t));async function nyn(){try{Bst(),Ist(),await tIt(new LR,new D6)&&await fFt(new R6)}catch(t){RBe(t)}process.exit()}nyn();export{nyn as run};
`:n}async function c7t(t){let e=f7t(),r=Zee.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Al.repo.owner,n.repo=Al.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=$ee(t);Ix(`Submitted ${i}: ${s.data.message}`)}function u7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function l7t(t){let e=`${t}.processed`;return Zee.existsSync(e)}function d7t(t){let e=`${t}.processed`;Zee.writeFileSync(e,"")}function h7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new EI(r);$e(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function f7t(){return go(kQ())}function $ee(t){let e=vQ();return jL.relative(e,t)}function Z4e(){return process.env.ACT!==void 0}function p7t(t=process.platform){return t==="win32"?50:0}async function $4e(t=process.platform){let e=p7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>gK(t));async function m7t(){try{mEe(),pEe(),await LDe(new lk,new RQ,new dk)&&await K4e(new rC)}catch(t){gK(t)}await $4e()}m7t();export{m7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
@@ -639,5 +480,22 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+123 -254
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var V9e=Object.create;var QR=Object.defineProperty;var W9e=Object.getOwnPropertyDescriptor;var z9e=Object.getOwnPropertyNames;var j9e=Object.getPrototypeOf,K9e=Object.prototype.hasOwnProperty;var I=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var X9e=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oa=(t,e)=>{for(var r in e)QR(t,r,{get:e[r],enumerable:!0})},RAe=(t,e,r,A)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of z9e(e))!K9e.call(t,s)&&s!==r&&QR(t,s,{get:()=>e[s],enumerable:!(A=W9e(e,s))||A.enumerable});return t};var Fr=(t,e,r)=>(r=t!=null?V9e(j9e(t)):{},RAe(e||!t||!t.__esModule?QR(r,"default",{value:t,enumerable:!0}):r,t)),xr=t=>RAe(QR({},"__esModule",{value:!0}),t);var MAe=E(BC=>{"use strict";var hur=I("net"),AJe=I("tls"),RO=I("http"),FAe=I("https"),sJe=I("events"),Eur=I("assert"),nJe=I("util");BC.httpOverHttp=iJe;BC.httpsOverHttp=oJe;BC.httpOverHttps=aJe;BC.httpsOverHttps=cJe;function iJe(t){var e=new Al(t);return e.request=RO.request,e}function oJe(t){var e=new Al(t);return e.request=RO.request,e.createSocket=xAe,e.defaultPort=443,e}function aJe(t){var e=new Al(t);return e.request=FAe.request,e}function cJe(t){var e=new Al(t);return e.request=FAe.request,e.createSocket=xAe,e.defaultPort=443,e}function Al(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,s,n,i){for(var o=UAe(s,n,i),a=0,c=e.requests.length;a<c;++a){var u=e.requests[a];if(u.host===o.host&&u.port===o.port){e.requests.splice(a,1),u.request.onSocket(A);return}}A.destroy(),e.removeSocket(A)})}nJe.inherits(Al,sJe.EventEmitter);Al.prototype.addRequest=function(e,r,A,s){var n=this,i=SO({request:e},n.options,UAe(r,A,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){n.emit("free",o,i)}function c(u){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Al.prototype.createSocket=function(e,r){var A=this,s={};A.sockets.push(s);var n=SO({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Rg("making CONNECT request");var i=A.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",u),i.end();function o(l){l.upgrade=!0}function a(l,g,d){process.nextTick(function(){c(l,g,d)})}function c(l,g,d){if(i.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Rg("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var h=new Error("tunneling socket could not be established, statusCode="+l.statusCode);h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}if(d.length>0){Rg("got illegal response body from proxy"),g.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}return Rg("tunneling connection has established"),A.sockets[A.sockets.indexOf(s)]=g,r(g)}function u(l){i.removeAllListeners(),Rg(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),A.removeSocket(s)}};Al.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var A=this.requests.shift();A&&this.createSocket(A,function(s){A.request.onSocket(s)})}};function xAe(t,e){var r=this;Al.prototype.createSocket.call(r,t,function(A){var s=t.request.getHeader("host"),n=SO({},r.options,{socket:A,servername:s?s.replace(/:.*$/,""):t.host}),i=AJe.connect(0,n);r.sockets[r.sockets.indexOf(A)]=i,e(i)})}function UAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function SO(t){for(var e=1,r=arguments.length;e<r;++e){var A=arguments[e];if(typeof A=="object")for(var s=Object.keys(A),n=0,i=s.length;n<i;++n){var o=s[n];A[o]!==void 0&&(t[o]=A[o])}}return t}var Rg;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rg=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)}:Rg=function(){};BC.debug=Rg});var bR=E((Cur,LAe)=>{LAe.exports=MAe()});var Jr=E((Bur,vAe)=>{vAe.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 Jt=E((Iur,ose)=>{"use strict";var _Ae=Symbol.for("undici.error.UND_ERR"),rA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_Ae]===!0}[_Ae]=!0},PAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TO=class extends rA{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[PAe]===!0}[PAe]=!0},OAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),kO=class extends rA{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[OAe]===!0}[OAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FO=class extends rA{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[HAe]===!0}[HAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),xO=class extends rA{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[GAe]===!0}[GAe]=!0},YAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),UO=class extends rA{constructor(e,r,A,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function wVe(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(cVe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function DVe(){return"allowed"}function NVe(){return"success"}function RVe(){return"success"}function SVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TVe(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&&yH(t.origin)&&!yH(wm(t))&&(e=null);break;case"same-origin":JR(t,wm(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function RC(t,e){return t}function kVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:RC(t.domainLookupStartTime,r),domainLookupEndTime:RC(t.domainLookupEndTime,r),connectionStartTime:RC(t.connectionStartTime,r),connectionEndTime:RC(t.connectionEndTime,r),secureConnectionStartTime:RC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FVe(t){return RC(hVe.now(),t)}function xVe(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}}function mne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function UVe(t){return{referrerPolicy:t.referrerPolicy}}function MVe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let o=fne();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=mH(r),s=mH(r,!0);A.toString().length>4096&&(A=s);let n=JR(t,A),i=bm(A)&&!bm(t.url);switch(e){case"origin":return s??mH(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=wm(t);return JR(A,o)?A:bm(A)&&!bm(o)?"no-referrer":s}default:return i?"no-referrer":s}}function mH(t,e){return Yh(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)}function bm(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function LVe(t,e){if(qR===void 0)return!0;let r=yne(e);if(r==="no metadata"||r.length===0)return!0;let A=_Ve(r),s=PVe(r,A);for(let n of s){let i=n.algo,o=n.hash,a=qR.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),OVe(a,o))return!0}return!1}var vVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function yne(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=vVe.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Bne.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Ve(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function PVe(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function OVe(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}function HVe(t){}function JR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GVe(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function YVe(t){return t.controller.state==="aborted"}function qVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function JVe(t){return CVe[t.toLowerCase()]??t}function VVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var WVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function bne(t,e,r=0,A=1){class s{ Line truncated
`);function yWe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function bWe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function wWe(t,e){WR(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&zR(t,pWe,n)||n.position===t.length-4&&zR(t,mWe,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=DWe(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let h=t.indexOf(A.subarray(2),n.position);if(h===-1)return"failure";g=t.subarray(n.position,h-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",yWe(u)||(u=""),d=new IWe([g],c,{type:u})):d=hWe(Buffer.from(g)),WR(Lne(a)),WR(typeof d=="string"&&Lne(d)||fWe(d)),s.push(CWe(a,d,c))}}function DWe(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=TC(o=>o!==10&&o!==13&&o!==58,t,e);if(i=TH(i,!0,!0,o=>o===9||o===32),!EWe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,TC(o=>o===32||o===9,t,e),dWe(i)){case"content-disposition":{if(r=A=null,!zR(t,QWe,e)||(e.position+=17,r=Pne(t,e),r===null))return"failure";if(zR(t,_ne,e)){let o=e.position+_ne.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=Pne(t,e),A===null))return"failure"}break}case"content-type":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),s=vne(o);break}case"content-transfer-encoding":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),n=vne(o);break}default:TC(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Pne(t,e){WR(t[e.position-1]===34);let r=TC(A=>A!==10&&A!==13&&A!==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)}function TC(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function TH(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function zR(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}One.exports={multipartFormDataParser:wWe,validateBoundary:bWe}});var xC=E((qur,Xne)=>{"use strict";var Rm=Qt(),{ReadableStreamFrom:NWe,isBlobLike:Gne,isReadableStreamLike:RWe,readableStreamClose:SWe,createDeferredPromise:TWe,fullyReadBody:kWe,extractMimeType:FWe,utf8DecodeBytes:Jne}=Di(),{FormData:Yne}=Nm(),{kState:FC}=Sg(),{webidl:xWe}=Ts(),{Blob:UWe}=I("node:buffer"),kH=I("node:assert"),{isErrored:Vne,isDisturbed:MWe}=I("node:stream"),{isArrayBuffer:LWe}=I("node:util/types"),{serializeAMimeType:vWe}=Un(),{multipartFormDataParser:_We}=Hne(),FH;try{let t=I("node:crypto");FH=e=>t.randomInt(0,e)}catch{FH=t=>Math.floor(Math.random(t))}var jR=new TextEncoder;function PWe(){}var Wne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,zne;Wne&&(zne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!MWe(e)&&!Vne(e)&&e.cancel("Response object has been garbage collected").catch(PWe)}));function jne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Gne(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?jR.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>SWe(a))},start(){},type:"bytes"}),kH(RWe(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(LWe(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(Rm.isFormDataLike(t)){let a=`----formdata-undici-0${`${FH(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=jR.encode(c+`; name="${u(l(Q))}"\r
var Roe=Object.create;var MQ=Object.defineProperty;var koe=Object.getOwnPropertyDescriptor;var Foe=Object.getOwnPropertyNames;var Moe=Object.getPrototypeOf,Uoe=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var p=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Sn=(t,e)=>{for(var r in e)MQ(t,r,{get:e[r],enumerable:!0})},Loe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Foe(e))!Uoe.call(t,n)&&n!==r&&MQ(t,n,{get:()=>e[n],enumerable:!(s=koe(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?Roe(Moe(t)):{},Loe(e||!t||!t.__esModule?MQ(r,"default",{value:t,enumerable:!0}):r,t));var eU=p(Pc=>{"use strict";var M7e=w("net"),Goe=w("tls"),HQ=w("http"),jM=w("https"),Yoe=w("events"),U7e=w("assert"),qoe=w("util");Pc.httpOverHttp=Joe;Pc.httpsOverHttp=Voe;Pc.httpOverHttps=Woe;Pc.httpsOverHttps=zoe;function Joe(t){var e=new _i(t);return e.request=HQ.request,e}function Voe(t){var e=new _i(t);return e.request=HQ.request,e.createSocket=ZM,e.defaultPort=443,e}function Woe(t){var e=new _i(t);return e.request=jM.request,e}function zoe(t){var e=new _i(t);return e.request=jM.request,e.createSocket=ZM,e.defaultPort=443,e}function _i(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HQ.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=$M(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}qoe.inherits(_i,Yoe.EventEmitter);_i.prototype.addRequest=function(e,r,s,n){var i=this,o=_Q({request:e},i.options,$M(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};_i.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=_Q({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Ro("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,g,h){process.nextTick(function(){c(l,g,h)})}function c(l,g,h){if(o.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Ro("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){Ro("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return Ro("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Ro(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};_i.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function ZM(t,e){var r=this;_i.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=_Q({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Goe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function $M(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function _Q(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ro;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ro=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)}:Ro=function(){};Pc.debug=Ro});var GQ=p((v7e,tU)=>{tU.exports=eU()});var At=p((P7e,rU)=>{rU.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 Le=p((O7e,SU)=>{"use strict";var sU=Symbol.for("undici.error.UND_ERR"),ct=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sU]===!0}[sU]=!0},nU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YQ=class extends ct{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[nU]===!0}[nU]=!0},iU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qQ=class extends ct{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[iU]===!0}[iU]=!0},oU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JQ=class extends ct{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[oU]===!0}[oU]=!0},aU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VQ=class extends ct{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[aU]===!0}[aU]=!0},AU=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WQ=class extends ct{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function uce(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(zAe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function lce(){return"allowed"}function dce(){return"success"}function gce(){return"success"}function hce(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function fce(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&&Py(t.origin)&&!Py(Jd(t))&&(e=null);break;case"same-origin":vm(t,Jd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function zc(t,e){return t}function mce(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:zc(t.domainLookupStartTime,r),domainLookupEndTime:zc(t.domainLookupEndTime,r),connectionStartTime:zc(t.connectionStartTime,r),connectionEndTime:zc(t.connectionEndTime,r),secureConnectionStartTime:zc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function pce(t){return zc($Ae.now(),t)}function Ece(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}}function _L(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Cce(t){return{referrerPolicy:t.referrerPolicy}}function Ice(t){let e=t.referrerPolicy;ja(e);let r=null;if(t.referrer==="client"){let a=UL();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vy(r),n=vy(r,!0);s.toString().length>4096&&(s=n);let i=vm(t,s),o=qd(s)&&!qd(t.url);switch(e){case"origin":return n??vy(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Jd(t);return vm(s,a)?s:qd(s)&&!qd(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vy(t,e){return ja(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)}function qd(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Bce(t,e){if(Lm===void 0)return!0;let r=GL(e);if(r==="no metadata"||r.length===0)return!0;let s=yce(r),n=bce(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Lm.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),wce(A,a))return!0}return!1}var Qce=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Qce.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();vL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function yce(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function bce(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function wce(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}function Nce(t){}function vm(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Sce(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Dce(t){return t.controller.state==="aborted"}function Tce(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xce(t){return rce[t.toLowerCase()]??t}function Rce(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ja(typeof e=="string"),e}var kce=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YL(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Aue(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function cue(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function uue(t,e){Om(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Hm(t,oue,i)||i.position===t.length-4&&Hm(t,aue,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=lue(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Aue(u)||(u=""),h=new nue([g],c,{type:u})):h=$ce(Buffer.from(g)),Om(tv(A)),Om(typeof h=="string"&&tv(h)||tue(h)),n.push(rue(A,h,c))}}function lue(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Xc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Jy(o,!0,!0,a=>a===9||a===32),!eue.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xc(a=>a===32||a===9,t,e),Zce(o)){case"content-disposition":{if(r=s=null,!Hm(t,iue,e)||(e.position+=17,r=nv(t,e),r===null))return"failure";if(Hm(t,sv,e)){let a=e.position+sv.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=nv(t,e),s===null))return"failure"}break}case"content-type":{let a=Xc(A=>A!==10&&A!==13,t,e);a=Jy(a,!1,!0,A=>A===9||A===32),n=rv(a);break}case"content-transfer-encoding":{let a=Xc(A=>A!==10&&A!==13,t,e);a=Jy(a,!1,!0,A=>A===9||A===32),i=rv(a);break}default:Xc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function nv(t,e){Om(t[e.position-1]===34);let r=Xc(s=>s!==10&&s!==13&&s!==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)}function Xc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Jy(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Hm(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}iv.exports={multipartFormDataParser:uue,validateBoundary:cue}});var $c=p((uWe,mv)=>{"use strict";var zd=we(),{ReadableStreamFrom:due,isBlobLike:av,isReadableStreamLike:gue,readableStreamClose:hue,createDeferredPromise:fue,fullyReadBody:mue,extractMimeType:pue,utf8DecodeBytes:uv}=as(),{FormData:Av}=Wd(),{kState:Zc}=ko(),{webidl:Eue}=rr(),{Blob:Cue}=w("node:buffer"),Vy=w("node:assert"),{isErrored:lv,isDisturbed:Iue}=w("node:stream"),{isArrayBuffer:Bue}=w("node:util/types"),{serializeAMimeType:Que}=Pr(),{multipartFormDataParser:yue}=ov(),Wy;try{let t=w("node:crypto");Wy=e=>t.randomInt(0,e)}catch{Wy=t=>Math.floor(Math.random(t))}var _m=new TextEncoder;function bue(){}var dv=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,gv;dv&&(gv=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Iue(e)&&!lv(e)&&e.cancel("Response object has been garbage collected").catch(bue)}));function hv(t,e=!1){let r=null;t instanceof ReadableStream?r=t:av(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?_m.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>hue(A))},start(){},type:"bytes"}),Vy(gue(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Bue(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(zd.isFormDataLike(t)){let A=`----formdata-undici-0${`${Wy(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=B=>B.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[B,E]of t)if(typeof E=="string"){let b=_m.encode(c+`; name="${u(l(B))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=jR.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${l(E)}\r
`);g.push(b),i+=b.byteLength}else{let b=_m.encode(`${c}; name="${u(l(B))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=jR.encode(`--${a}--\r
`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(Gne(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Rm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:NWe(t)}if((typeof s=="string"||Rm.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Vne(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:r,source:s,length:n},i]}function OWe(t,e=!1){return t instanceof ReadableStream&&(kH(!Rm.isDisturbed(t),"The body has already been consumed."),kH(!t.locked,"The stream is locked.")),jne(t,e)}function HWe(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function GWe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YWe(t){return{blob(){return kC(this,r=>{let A=qne(this);return A===null?A="":A&&(A=vWe(A)),new UWe([r],{type:A})},t)},arrayBuffer(){return kC(this,r=>new Uint8Array(r).buffer,t)},text(){return kC(this,Jne,t)},json(){return kC(this,JWe,t)},formData(){return kC(this,r=>{let A=qne(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=_We(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new Yne;return n[FC]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new Yne;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return kC(this,r=>new Uint8Array(r),t)}}}function qWe(t){Object.assign(t.prototype,YWe(t))}async function kC(t,e,r){if(xWe.brandCheck(t,r),Kne(t))throw new TypeError("Body is unusable: Body has already been read");GWe(t[FC]);let A=TWe(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[FC].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await kWe(t[FC].body,n,s),A.promise)}function Kne(t){let e=t[FC].body;return e!=null&&(e.stream.locked||Rm.isDisturbed(e.stream))}function JWe(t){return JSON.parse(Jne(t))}function qne(t){let e=t[FC].headersList,r=FWe(e);return r==="failure"?null:r}Xne.exports={extractBody:jne,safelyExtractBody:OWe,cloneBody:HWe,mixinBody:qWe,streamRegistry:zne,hasFinalizationRegistry:Wne,bodyUnusable:Kne}});var aie=E((Jur,oie)=>{"use strict";var Je=I("node:assert"),st=Qt(),{channels:Zne}=QC(),xH=hH(),{RequestContentLengthMismatchError:qh,ResponseContentLengthMismatchError:VWe,RequestAbortedError:sie,HeadersTimeoutError:WWe,HeadersOverflowError:zWe,SocketError:tS,InformationalError:UC,BodyTimeoutError:jWe,HTTPParserError:KWe,ResponseExceededMaxSizeError:XWe}=Jt(),{kUrl:nie,kReset:Mn,kClient:vH,kParser:lA,kBlocking:km,kRunning:Hs,kPending:ZWe,kSize:$ne,kWriting:kg,kQueue:Ha,kNoRef:Sm,kKeepAliveDefaultTimeout:$We,kHostHeader:eze,kPendingIdx:tze,kRunningIdx:Do,kError:No,kPipelining:$R,kSocket:MC,kKeepAliveTimeoutValue:rS,kMaxHeadersSize:UH,kKeepAliveMaxTimeout:rze,kKeepAliveTimeoutThreshold:Aze,kHeadersTimeout:sze,kBodyTimeout:nze,kStrictContentLength:_H,kMaxRequests:eie,kCounter:ize,kMaxResponseSize:oze,kOnError:aze,kResume:Tg,kHTTPContext:iie}=Jr(),Mc=zse(),cze=Buffer.alloc(0),KR=Buffer[Symbol.species],XR=st.addListener,uze=st.removeAllListeners,MH;async function lze(){let t=process.env.JEST_WORKER_ID?CH():void 0,e;try{e=await WebAssembly.compile(Xse())}catch{e=await WebAssembly.compile(t||CH())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onStatus(new KR(Lc.buffer,n,s))||0},wasm_on_message_begin:r=>(Je(es.ptr===r),es.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderField(new KR(Lc.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderValue(new KR(Lc.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Je(es.ptr===r),es.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onBody(new KR(Lc.buffer,n,s))||0},wasm_on_message_complete:r=>(Je(es.ptr===r),es.onMessageComplete()||0)}})}var LH=null,PH=lze();PH.catch();var es=null,Lc=null,ZR=0,vc=null,gze=0,Tm=1,LC=2|Tm,eS=4|Tm,OH=8|gze,HH=class{constructor(e,r,{exports:A}){Je(Number.isFinite(e[UH])&&e[UH]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[eze],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[$R]&&!d[Mn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return Zne.sendHeaders.hasSubscribers&&Zne.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?rie(h,null,t,e,d,u,B,l):st.isBuffer(a)?rie(h,a,t,e,d,u,B,l):st.isBlobLike(a)?typeof a.stream=="function"?Aie(h,a.stream(),t,e,d,u,B,l):Bze(h,a,t,e,d,u,B,l):st.isStream(a)?Cze(h,a,t,e,d,u,B,l):st.isIterable(a)?Aie(h,a,t,e,d,u,B,l):Je(!1),!0}function Cze(t,e,r,A,s,n,i,o){Je(n!==0||r[Hs]===0,"stream body cannot be pipelined");let a=!1,c=new AS({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){st.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new sie;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Je(s.destroyed||s[kg]&&r[Hs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?st.destroy(e,h):st.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function rie(t,e,r,A,s,n,i,o){try{e?st.isBuffer(e)&&(Je(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let m=_m.encode(`--${A}--\r
`);g.push(m),i+=m.byteLength,f&&(i=null),n=t,s=async function*(){for(let B of g)B.stream?yield*B.stream():yield B},o=`multipart/form-data; boundary=${A}`}else if(av(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(zd.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:due(t)}if((typeof n=="string"||zd.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!lv(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function wue(t,e=!1){return t instanceof ReadableStream&&(Vy(!zd.isDisturbed(t),"The body has already been consumed."),Vy(!t.locked,"The stream is locked.")),hv(t,e)}function Nue(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Sue(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Due(t){return{blob(){return jc(this,r=>{let s=cv(this);return s===null?s="":s&&(s=Que(s)),new Cue([r],{type:s})},t)},arrayBuffer(){return jc(this,r=>new Uint8Array(r).buffer,t)},text(){return jc(this,uv,t)},json(){return jc(this,xue,t)},formData(){return jc(this,r=>{let s=cv(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=yue(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Av;return i[Zc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Av;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return jc(this,r=>new Uint8Array(r),t)}}}function Tue(t){Object.assign(t.prototype,Due(t))}async function jc(t,e,r){if(Eue.brandCheck(t,r),fv(t))throw new TypeError("Body is unusable: Body has already been read");Sue(t[Zc]);let s=fue(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Zc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await mue(t[Zc].body,i,n),s.promise)}function fv(t){let e=t[Zc].body;return e!=null&&(e.stream.locked||zd.isDisturbed(e.stream))}function xue(t){return JSON.parse(uv(t))}function cv(t){let e=t[Zc].headersList,r=pue(e);return r==="failure"?null:r}mv.exports={extractBody:hv,safelyExtractBody:wue,cloneBody:Nue,mixinBody:Tue,streamRegistry:gv,hasFinalizationRegistry:dv,bodyUnusable:fv}});var kv=p((lWe,Rv)=>{"use strict";var ee=w("node:assert"),se=we(),{channels:pv}=Hc(),zy=Ty(),{RequestContentLengthMismatchError:Za,ResponseContentLengthMismatchError:Ev,RequestAbortedError:Nv,InvalidArgumentError:Rue,HeadersTimeoutError:kue,HeadersOverflowError:Fue,SocketError:eu,InformationalError:tu,BodyTimeoutError:Mue,HTTPParserError:Uue,ResponseExceededMaxSizeError:Lue}=Le(),{kUrl:Sv,kReset:Or,kClient:Jm,kParser:rt,kBlocking:jd,kRunning:Ft,kPending:Dv,kSize:Cv,kWriting:Fo,kQueue:Dn,kNoRef:Kd,kKeepAliveDefaultTimeout:vue,kHostHeader:Pue,kPendingIdx:Oue,kRunningIdx:Gs,kError:Br,kPipelining:Vm,kSocket:$a,kKeepAliveTimeoutValue:zm,kMaxHeadersSize:Ky,kKeepAliveMaxTimeout:Hue,kKeepAliveTimeoutThreshold:_ue,kHeadersTimeout:Gue,kBodyTimeout:Yue,kStrictContentLength:Zy,kMaxRequests:Iv,kCounter:que,kMaxResponseSize:Jue,kOnError:Bv,kResume:Wi,kHTTPContext:Tv}=At(),As=gL(),Qv=Buffer.alloc(0),Gm=Buffer[Symbol.species],Ym=se.addListener,Vue=se.removeAllListeners,eA=Symbol("kIdleSocketValidation"),ru=Symbol("kIdleSocketValidationTimeout"),rb=Symbol("kSocketUsed"),Xy;async function Wue(){let t=process.env.JEST_WORKER_ID?ky():void 0,e;try{e=await WebAssembly.compile(mL())}catch{e=await WebAssembly.compile(t||ky())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onStatus(new Gm(ei.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(pt.ptr===r),pt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onHeaderField(new Gm(ei.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onHeaderValue(new Gm(ei.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(pt.ptr===r),pt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onBody(new Gm(ei.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(pt.ptr===r),pt.onMessageComplete()||0)}})}var jy=null,$y=Wue();$y.catch();var pt=null,ei=null,qm=0,ti=null,zue=0,Xd=1,su=2|Xd,Wm=4|Xd,eb=8|zue,tb=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[Ky])&&e[Ky]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(As.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?m+=`host: ${n}\r
`:m+=t[Pue],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Vm]&&!h[Or]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],b=c[B+1];if(Array.isArray(b))for(let S=0;S<b.length;S++)m+=`${E}: ${b[S]}\r
`;else m+=`${E}: ${b}\r
`}return pv.sendHeaders.hasSubscribers&&pv.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?bv(f,null,t,e,h,u,m,l):se.isBuffer(A)?bv(f,A,t,e,h,u,m,l):se.isBlobLike(A)?typeof A.stream=="function"?wv(f,A.stream(),t,e,h,u,m,l):tle(f,A,t,e,h,u,m,l):se.isStream(A)?ele(f,A,t,e,h,u,m,l):se.isIterable(A)?wv(f,A,t,e,h,u,m,l):ee(!1),!0}function ele(t,e,r,s,n,i,o,a){ee(i!==0||r[Ft]===0,"stream body cannot be pipelined");let A=!1,c=new Km({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(m){se.destroy(this,m)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Nv;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[Fo]&&r[Ft]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(m){f=m}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?se.destroy(e,f):se.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function bv(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Mn]=!0)):n===0?s.write(`${i}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Or]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(Je(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[Tg]()}catch(a){t(a)}}async function Bze(t,e,r,A,s,n,i,o){Je(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new qh;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Wi]()}catch(A){t(A)}}async function tle(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Za;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Mn]=!0),r[Tg]()}catch(a){t(a)}}async function Aie(t,e,r,A,s,n,i,o){Je(n!==0||r[Hs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Je(a===null),s[No]?d(s[No]):a=g});s.on("close",c).on("drain",c);let l=new AS({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[No])throw s[No];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var AS=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[kg]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[No])throw r[No];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[_H])throw new qh;process.emitWarning(new qh)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Mn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Or]=!0),r[Wi]()}catch(A){t(A)}}async function wv(t,e,r,s,n,i,o,a){ee(i!==0||r[Ft]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[Br]?h(n[Br]):A=g});n.on("close",c).on("drain",c);let l=new Km({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Br])throw n[Br];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Km=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Fo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Br])throw r[Br];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[Zy])throw new Za;process.emitWarning(new Za)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Or]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[lA].timeout&&r[lA].timeoutType===LC&&r[lA].timeout.refresh&&r[lA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[kg]=!1,e[No])throw e[No];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[rt].timeout&&r[rt].timeoutType===su&&r[rt].timeout.refresh&&r[rt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fo]=!1,e[Br])throw e[Br];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[_H])throw new qh;process.emitWarning(new qh)}e[lA].timeout&&e[lA].timeoutType===LC&&e[lA].timeout.refresh&&e[lA].timeout.refresh(),A[Tg]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[kg]=!1,e&&(Je(A[Hs]<=1,"pipeline should only contain this request"),s(e))}};oie.exports=dze});var fie=E((Vur,Eie)=>{"use strict";var Ro=I("node:assert"),{pipeline:Ize}=I("node:stream"),Dt=Qt(),{RequestContentLengthMismatchError:GH,RequestAbortedError:cie,SocketError:Fm,InformationalError:YH}=Jt(),{kUrl:sS,kReset:iS,kClient:vC,kRunning:oS,kPending:Qze,kQueue:Fg,kPendingIdx:qH,kRunningIdx:Ga,kError:qa,kSocket:cs,kStrictContentLength:pze,kOnError:JH,kMaxConcurrentStreams:hie,kHTTP2Session:Ya,kResume:xg,kSize:mze,kHTTPContext:yze}=Jr(),cl=Symbol("open streams"),uie,lie=!1,nS;try{nS=I("node:http2")}catch{nS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bze,HTTP2_HEADER_METHOD:wze,HTTP2_HEADER_PATH:Dze,HTTP2_HEADER_SCHEME:Nze,HTTP2_HEADER_CONTENT_LENGTH:Rze,HTTP2_HEADER_EXPECT:Sze,HTTP2_HEADER_STATUS:Tze}}=nS;function kze(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function Fze(t,e){t[cs]=e,lie||(lie=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=nS.connect(t[sS],{createConnection:()=>e,peerMaxConcurrentStreams:t[hie]});r[cl]=0,r[vC]=t,r[cs]=e,Dt.addListener(r,"error",Uze),Dt.addListener(r,"frameError",Mze),Dt.addListener(r,"end",Lze),Dt.addListener(r,"goaway",vze),Dt.addListener(r,"close",function(){let{[vC]:s}=this,{[cs]:n}=s,i=this[cs][qa]||this[qa]||new Fm("closed",Dt.getSocketInfo(n));if(s[Ya]=null,s.destroyed){Ro(s[Qze]===0);let o=s[Fg].splice(s[Ga]);for(let a=0;a<o.length;a++){let c=o[a];Dt.errorRequest(s,c,i)}}}),r.unref(),t[Ya]=r,e[Ya]=r,Dt.addListener(e,"error",function(s){Ro(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qa]=s,this[vC][JH](s)}),Dt.addListener(e,"end",function(){Dt.destroy(this,new Fm("other side closed",Dt.getSocketInfo(this)))}),Dt.addListener(e,"close",function(){let s=this[qa]||new Fm("closed",Dt.getSocketInfo(this));t[cs]=null,this[Ya]!=null&&this[Ya].destroy(s),t[qH]=t[Ga],Ro(t[oS]===0),t.emit("disconnect",t[sS],[t],s),t[xg]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Pze(t,...s)},resume(){xze(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function xze(t){let e=t[cs];e?.destroyed===!1&&(t[mze]===0&&t[hie]===0?(e.unref(),t[Ya].unref()):(e.ref(),t[Ya].ref()))}function Uze(t){Ro(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cs][qa]=t,this[vC][JH](t)}function Mze(t,e,r){if(r===0){let A=new YH(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cs][qa]=A,this[vC][JH](A)}}function Lze(){let t=new Fm("other side closed",Dt.getSocketInfo(this[cs]));this.destroy(t),Dt.destroy(this[cs],t)}function vze(t){let e=this[qa]||new Fm(`HTTP/2: "GOAWAY" frame received with code ${t}`,Dt.getSocketInfo(this)),r=this[vC];if(r[cs]=null,r[yze]=null,this[Ya]!=null&&(this[Ya].destroy(e),this[Ya]=null),Dt.destroy(this[cs],e),r[Ga]<r[Fg].length){let A=r[Fg][r[Ga]];r[Fg][r[Ga]++]=null,Dt.errorRequest(r,A,e),r[qH]=r[Ga]}Ro(r[oS]===0),r.emit("disconnect",r[sS],[r],e),r[xg]()}function _ze(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Pze(t,e){let r=t[Ya],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Dt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:h}=t[sS];l[bze]=n||`${d}${h?`:${h}`:""}`,l[wze]=A;let B=k=>{e.aborted||e.completed||(k=k||new cie,Dt.errorRequest(t,e,k),g!=null&&Dt.destroy(g,k),Dt.destroy(u,k),t[Fg][t[Ga]++]=null,t[xg]())};try{e.onConnect(B)}catch(k){Dt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[cl],t[Fg][t[Ga]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[cl],t[Fg][t[Ga]++]=null}),g.once("close",()=>{r[cl]-=1,r[cl]===0&&r.unref()}),!0;l[Dze]=s,l[Nze]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let C=Dt.bodyLength(u);if(Dt.isFormDataLike(u)){uie??=xC().extractBody;let[k,J]=uie(u);l["content-type"]=J,u=k.stream,C=k.length}if(C==null&&(C=e.contentLength),(C===0||!Q)&&(C=null),_ze(A)&&C>0&&e.contentLength!=null&&e.contentLength!==C){if(t[pze])return Dt.errorRequest(t,e,new GH),!1;process.emitWarning(new GH)}C!=null&&(Ro(u,"no body must not have content length"),l[Rze]=`${C}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[Sze]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[l7e]=a??3e5,this[u7e]=s??3e5,this[g7e]=p??!0,this[d7e]=k,this[jH]=j,this[Mg]=null,this[B7e]=$>-1?$:-1,this[Q7e]=be??100,this[TA]=null,this[Ja]=[],this[ll]=0,this[Va]=0,this[Lm]=le=>XH(this,le),this[I7e]=le=>Rie(this,le)}get pipelining(){return this[lS]}set pipelining(e){this[lS]=e,this[Lm](!0)}get[Pm](){return this[Ja].length-this[Va]}get[_m](){return this[Va]-this[ll]}get[vm](){return this[Ja].length-this[ll]}get[A7e](){return!!this[TA]&&!this[PC]&&!this[TA].destroyed}get[zH](){return!!(this[TA]?.busy(null)||this[vm]>=(Nie(this)||1)||this[Pm]>0)}[r7e](e){Sie(this),this.once("connect",e)}[C7e](e,r){let A=e.origin||this[Pc].origin,s=new Kze(A,e,r);return this[Ja].push(s),this[Vh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[Vh]=1,queueMicrotask(()=>XH(this))):this[Lm](!0)),this[Vh]&&this[Lg]!==2&&this[zH]&&(this[Lg]=2),this[Lg]<2}async[E7e](){return new Promise(e=>{this[vm]?this[Mg]=e:e(null)})}async[f7e](e){return new Promise(r=>{let A=this[Ja].splice(this[Va]);for(let n=0;n<A.length;n++){let i=A[n];Jh.errorRequest(this,i,e)}let s=()=>{this[Mg]&&(this[Mg](),this[Mg]=null),r(null)};this[TA]?(this[TA].destroy(e,s),this[TA]=null):queueMicrotask(s),this[Lm]()})}},y7e=uS();function Rie(t,e){if(t[_m]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ul(t[Va]===t[ll]);let r=t[Ja].splice(t[ll]);for(let A=0;A<r.length;A++){let s=r[A];Jh.errorRequest(t,s,e)}ul(t[vm]===0)}}async function Sie(t){ul(!t[PC]),ul(!t[TA]);let{host:e,hostname:r,protocol:A,port:s}=t[Pc];if(r[0]==="["){let n=r.indexOf("]");ul(n!==-1);let i=r.substring(1,n);ul(Die.isIP(i)),r=i}t[PC]=!0,_C.beforeConnect.hasSubscribers&&_C.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um]});try{let n=await new Promise((i,o)=>{t[Um]({host:e,hostname:r,protocol:A,port:s,servername:t[Ug],localAddress:t[Mm]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){Jh.destroy(n.on("error",bie),new $ze);return}ul(n);try{t[TA]=n.alpnProtocol==="h2"?await m7e(t,n):await p7e(t,n)}catch(i){throw n.destroy().on("error",bie),i}t[PC]=!1,n[h7e]=0,n[jH]=t[jH],n[t7e]=t,n[n7e]=null,_C.connected.hasSubscribers&&_C.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um],socket:n}),t.emit("connect",t[Pc],[t])}catch(n){if(t.destroyed)return;if(t[PC]=!1,_C.connectError.hasSubscribers&&_C.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ul(t[_m]===0);t[Pm]>0&&t[Ja][t[Va]].servername===t[Ug];){let i=t[Ja][t[Va]++];Jh.errorRequest(t,i,n)}else Rie(t,n);t.emit("connectionError",t[Pc],[t],n)}t[Lm]()}function wie(t){t[Lg]=0,t.emit("drain",t[Pc],[t])}function XH(t,e){t[Vh]!==2&&(t[Vh]=2,b7e(t,e),t[Vh]=0,t[ll]>256&&(t[Ja].splice(0,t[ll]),t[Va]-=t[ll],t[ll]=0))}function b7e(t,e){for(;;){if(t.destroyed){ul(t[Pm]===0);return}if(t[Mg]&&!t[vm]){t[Mg](),t[Mg]=null;return}if(t[TA]&&t[TA].resume(),t[zH])t[Lg]=2;else if(t[Lg]===2){e?(t[Lg]=1,queueMicrotask(()=>wie(t))):wie(t);continue}if(t[Pm]===0||t[_m]>=(Nie(t)||1))return;let r=t[Ja][t[Va]];if(t[Pc].protocol==="https:"&&t[Ug]!==r.servername){if(t[_m]>0)return;t[Ug]=r.servername,t[TA]?.destroy(new Zze("servername changed"),()=>{t[TA]=null,XH(t)})}if(t[PC])return;if(!t[TA]){Sie(t);return}if(t[TA].destroyed||t[TA].busy(r))return;!r.aborted&&t[TA].write(r)?t[Va]++:t[Ja].splice(t[Va],1)}}Tie.exports=KH});var ZH=E((Xur,kie)=>{"use strict";var gS=class{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)}};kie.exports=class{constructor(){this.head=this.tail=new gS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new gS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xie=E((Zur,Fie)=>{var{kFree:w7e,kConnected:D7e,kPending:N7e,kQueued:R7e,kRunning:S7e,kSize:T7e}=Jr(),Wh=Symbol("pool"),$H=class{constructor(e){this[Wh]=e}get connected(){return this[Wh][D7e]}get free(){return this[Wh][w7e]}get pending(){return this[Wh][N7e]}get queued(){return this[Wh][R7e]}get running(){return this[Wh][S7e]}get size(){return this[Wh][T7e]}};Fie.exports=$H});var nG=E(($ur,Yie)=>{"use strict";var k7e=bC(),F7e=ZH(),{kConnected:eG,kSize:Uie,kRunning:Mie,kPending:Lie,kQueued:Om,kBusy:x7e,kFree:U7e,kUrl:M7e,kClose:L7e,kDestroy:v7e,kDispatch:_7e}=Jr(),P7e=xie(),Ln=Symbol("clients"),ln=Symbol("needDrain"),Hm=Symbol("queue"),tG=Symbol("closed resolve"),rG=Symbol("onDrain"),vie=Symbol("onConnect"),_ie=Symbol("onDisconnect"),Pie=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[Zy])throw new Za;process.emitWarning(new Za)}e[rt].timeout&&e[rt].timeoutType===su&&e[rt].timeout.refresh&&e[rt].timeout.refresh(),s[Wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Fo]=!1,e&&(ee(s[Ft]<=1,"pipeline should only contain this request"),n(e))}};Rv.exports=Kue});var Hv=p((dWe,Ov)=>{"use strict";var Ys=w("node:assert"),{pipeline:rle}=w("node:stream"),De=we(),{RequestContentLengthMismatchError:sb,RequestAbortedError:Fv,SocketError:Zd,InformationalError:nb}=Le(),{kUrl:Xm,kReset:Zm,kClient:nu,kRunning:$m,kPending:sle,kQueue:Mo,kPendingIdx:ib,kRunningIdx:Tn,kError:Rn,kSocket:Jt,kStrictContentLength:nle,kOnError:ob,kMaxConcurrentStreams:Pv,kHTTP2Session:xn,kResume:Uo,kSize:ile,kHTTPContext:ole}=At(),zi=Symbol("open streams"),Mv,Uv=!1,jm;try{jm=w("node:http2")}catch{jm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ale,HTTP2_HEADER_METHOD:Ale,HTTP2_HEADER_PATH:cle,HTTP2_HEADER_SCHEME:ule,HTTP2_HEADER_CONTENT_LENGTH:lle,HTTP2_HEADER_EXPECT:dle,HTTP2_HEADER_STATUS:gle}}=jm;function hle(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function fle(t,e){t[Jt]=e,Uv||(Uv=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=jm.connect(t[Xm],{createConnection:()=>e,peerMaxConcurrentStreams:t[Pv]});r[zi]=0,r[nu]=t,r[Jt]=e,De.addListener(r,"error",ple),De.addListener(r,"frameError",Ele),De.addListener(r,"end",Cle),De.addListener(r,"goaway",Ile),De.addListener(r,"close",function(){let{[nu]:n}=this,{[Jt]:i}=n,o=this[Jt][Rn]||this[Rn]||new Zd("closed",De.getSocketInfo(i));if(n[xn]=null,n.destroyed){Ys(n[sle]===0);let a=n[Mo].splice(n[Tn]);for(let A=0;A<a.length;A++){let c=a[A];De.errorRequest(n,c,o)}}}),r.unref(),t[xn]=r,e[xn]=r,De.addListener(e,"error",function(n){Ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn]=n,this[nu][ob](n)}),De.addListener(e,"end",function(){De.destroy(this,new Zd("other side closed",De.getSocketInfo(this)))}),De.addListener(e,"close",function(){let n=this[Rn]||new Zd("closed",De.getSocketInfo(this));t[Jt]=null,this[xn]!=null&&this[xn].destroy(n),t[ib]=t[Tn],Ys(t[$m]===0),t.emit("disconnect",t[Xm],[t],n),t[Uo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Qle(t,...n)},resume(){mle(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function mle(t){let e=t[Jt];e?.destroyed===!1&&(t[ile]===0&&t[Pv]===0?(e.unref(),t[xn].unref()):(e.ref(),t[xn].ref()))}function ple(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Jt][Rn]=t,this[nu][ob](t)}function Ele(t,e,r){if(r===0){let s=new nb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Jt][Rn]=s,this[nu][ob](s)}}function Cle(){let t=new Zd("other side closed",De.getSocketInfo(this[Jt]));this.destroy(t),De.destroy(this[Jt],t)}function Ile(t){let e=this[Rn]||new Zd(`HTTP/2: "GOAWAY" frame received with code ${t}`,De.getSocketInfo(this)),r=this[nu];if(r[Jt]=null,r[ole]=null,this[xn]!=null&&(this[xn].destroy(e),this[xn]=null),De.destroy(this[Jt],e),r[Tn]<r[Mo].length){let s=r[Mo][r[Tn]];r[Mo][r[Tn]++]=null,De.errorRequest(r,s,e),r[ib]=r[Tn]}Ys(r[$m]===0),r.emit("disconnect",r[Xm],[r],e),r[Uo]()}function Ble(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Qle(t,e){let r=t[xn],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return De.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let F=c[R+0],L=c[R+1];if(Array.isArray(L))for(let Y=0;Y<L.length;Y++)l[F]?l[F]+=`,${L[Y]}`:l[F]=L[Y];else l[F]=L}let g,{hostname:h,port:f}=t[Xm];l[ale]=i||`${h}${f?`:${f}`:""}`,l[Ale]=s;let m=R=>{e.aborted||e.completed||(R=R||new Fv,De.errorRequest(t,e,R),g!=null&&De.destroy(g,R),De.destroy(u,R),t[Mo][t[Tn]++]=null,t[Uo]())};try{e.onConnect(m)}catch(R){De.errorRequest(t,e,R)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[zi],t[Mo][t[Tn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[zi],t[Mo][t[Tn]++]=null}),g.once("close",()=>{r[zi]-=1,r[zi]===0&&r.unref()}),!0;l[cle]=n,l[ule]="https";let B=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=De.bodyLength(u);if(De.isFormDataLike(u)){Mv??=$c().extractBody;let[R,F]=Mv(u);l["content-type"]=F,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!B)&&(E=null),Ble(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[nle])return De.errorRequest(t,e,new sb),!1;process.emitWarning(new sb)}E!=null&&(Ys(u,"no body must not have content length"),l[lle]=`${E}`),r.ref();let b=s==="GET"||s==="HEAD"||u===null;return a?(l[dle]="100-continue",g=r.request(l,{endStream:b,signal:A}),g.once("continue",S)):(g=r Line truncated
`,this[zle]=A??3e5,this[Wle]=n??3e5,this[Kle]=b??!0,this[Xle]=R,this[ub]=L,this[vo]=null,this[tde]=O>-1?O:-1,this[sde]=Ce??100,this[Nt]=null,this[kn]=[],this[Xi]=0,this[Fn]=0,this[rg]=Ie=>db(this,Ie),this[rde]=Ie=>Zv(this,Ie)}get pipelining(){return this[sp]}set pipelining(e){this[sp]=e,this[rg](!0)}get[ig](){return this[kn].length-this[Fn]}get[ng](){return this[Fn]-this[Xi]}get[sg](){return this[kn].length-this[Xi]}get[Hle](){return!!this[Nt]&&!this[ou]&&!this[Nt].destroyed}get[cb](){return!!(this[Nt]?.busy(null)||this[sg]>=(jv(this)||1)||this[ig]>0)}[Ole](e){$v(this),this.once("connect",e)}[ede](e,r){let s=e.origin||this[si].origin,n=new Fle(s,e,r);return this[kn].push(n),this[rA]||(tA.bodyLength(n.body)==null&&tA.isIterable(n.body)?(this[rA]=1,queueMicrotask(()=>db(this))):this[rg](!0)),this[rA]&&this[Po]!==2&&this[cb]&&(this[Po]=2),this[Po]<2}async[Zle](){return new Promise(e=>{this[sg]?this[vo]=e:e(null)})}async[$le](e){return new Promise(r=>{let s=this[kn].splice(this[Fn]);for(let i=0;i<s.length;i++){let o=s[i];tA.errorRequest(this,o,e)}let n=()=>{this[vo]&&(this[vo](),this[vo]=null),r(null)};this[Nt]?(this[Nt].destroy(e,n),this[Nt]=null):queueMicrotask(n),this[rg]()})}},ode=rp();function Zv(t,e){if(t[ng]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ki(t[Fn]===t[Xi]);let r=t[kn].splice(t[Xi]);for(let s=0;s<r.length;s++){let n=r[s];tA.errorRequest(t,n,e)}Ki(t[sg]===0)}}async function $v(t){Ki(!t[ou]),Ki(!t[Nt]);let{host:e,hostname:r,protocol:s,port:n}=t[si];if(r[0]==="["){let i=r.indexOf("]");Ki(i!==-1);let o=r.substring(1,i);Ki(Xv.isIP(o)),r=o}t[ou]=!0,iu.beforeConnect.hasSubscribers&&iu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg]});try{let i=await new Promise((o,a)=>{t[eg]({host:e,hostname:r,protocol:s,port:n,servername:t[Lo],localAddress:t[tg]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){tA.destroy(i.on("error",zv),new Lle);return}Ki(i);try{t[Nt]=i.alpnProtocol==="h2"?await ide(t,i):await nde(t,i)}catch(o){throw i.destroy().on("error",zv),o}t[ou]=!1,i[jle]=0,i[ub]=t[ub],i[Ple]=t,i[Gle]=null,iu.connected.hasSubscribers&&iu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg],socket:i}),t.emit("connect",t[si],[t])}catch(i){if(t.destroyed)return;if(t[ou]=!1,iu.connectError.hasSubscribers&&iu.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ki(t[ng]===0);t[ig]>0&&t[kn][t[Fn]].servername===t[Lo];){let o=t[kn][t[Fn]++];tA.errorRequest(t,o,i)}else Zv(t,i);t.emit("connectionError",t[si],[t],i)}t[rg]()}function Kv(t){t[Po]=0,t.emit("drain",t[si],[t])}function db(t,e){t[rA]!==2&&(t[rA]=2,ade(t,e),t[rA]=0,t[Xi]>256&&(t[kn].splice(0,t[Xi]),t[Fn]-=t[Xi],t[Xi]=0))}function ade(t,e){for(;;){if(t.destroyed){Ki(t[ig]===0);return}if(t[vo]&&!t[sg]){t[vo](),t[vo]=null;return}if(t[Nt]&&t[Nt].resume(),t[cb])t[Po]=2;else if(t[Po]===2){e?(t[Po]=1,queueMicrotask(()=>Kv(t))):Kv(t);continue}if(t[ig]===0||t[ng]>=(jv(t)||1))return;let r=t[kn][t[Fn]];if(t[si].protocol==="https:"&&t[Lo]!==r.servername){if(t[ng]>0)return;t[Lo]=r.servername,t[Nt]?.destroy(new Ule("servername changed"),()=>{t[Nt]=null,db(t)})}if(t[ou])return;if(!t[Nt]){$v(t);return}if(t[Nt].destroyed||t[Nt].busy(r))return;!r.aborted&&t[Nt].write(r)?t[Fn]++:t[kn].splice(t[Fn],1)}}eP.exports=lb});var gb=p((pWe,tP)=>{"use strict";var np=class{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)}};tP.exports=class{constructor(){this.head=this.tail=new np}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new np),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sP=p((EWe,rP)=>{var{kFree:Ade,kConnected:cde,kPending:ude,kQueued:lde,kRunning:dde,kSize:gde}=At(),sA=Symbol("pool"),hb=class{constructor(e){this[sA]=e}get connected(){return this[sA][cde]}get free(){return this[sA][Ade]}get pending(){return this[sA][ude]}get queued(){return this[sA][lde]}get running(){return this[sA][dde]}get size(){return this[sA][gde]}};rP.exports=hb});var Ib=p((CWe,gP)=>{"use strict";var hde=qc(),fde=gb(),{kConnected:fb,kSize:nP,kRunning:iP,kPending:oP,kQueued:og,kBusy:mde,kFree:pde,kUrl:Ede,kClose:Cde,kDestroy:Ide,kDispatch:Bde}=At(),Qde=sP(),Hr=Symbol("clients"),Qr=Symbol("needDrain"),ag=Symbol("queue"),mb=Symbol("closed resolve"),pb=Symbol("onDrain"),aP=Symbol("onConnect"),AP=Symbol("onDisconnect"),cP=Symbol("onConnectionError"),Eb=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};jae.exports=n8});var TS=E((Nlr,ece)=>{"use strict";var Xae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lXe}=Jt(),gXe=GC();$ae()===void 0&&Zae(new gXe);function Zae(t){if(!t||typeof t.dispatch!="function")throw new lXe("Argument agent must implement Agent");Object.defineProperty(globalThis,Xae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function $ae(){return globalThis[Xae]}ece.exports={setGlobalDispatcher:Zae,getGlobalDispatcher:$ae}});var kS=E((Slr,tce)=>{"use strict";tce.exports=class{#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 Ace=E((Tlr,rce)=>{"use strict";var dXe=cS();rce.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new dXe(r,i,s,n);return r(o,a)}}});var nce=E((klr,sce)=>{"use strict";var hXe=QS();sce.exports=t=>e=>function(A,s){return e(A,new hXe({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var oce=E((Flr,ice)=>{"use strict";var EXe=Qt(),{InvalidArgumentError:fXe,RequestAbortedError:CXe}=Jt(),BXe=kS(),i8=class extends BXe{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new fXe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=EXe.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new CXe(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function IXe({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new i8({maxSize:n},s);return e(A,i)}}ice.exports=IXe});var uce=E((xlr,cce)=>{"use strict";var{isIP:QXe}=I("node:net"),{lookup:pXe}=I("node:dns"),mXe=kS(),{InvalidArgumentError:ZC,InformationalError:yXe}=Jt(),ace=Math.pow(2,31)-1,o8=class{#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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={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,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new yXe("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){pXe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===ace?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===ace?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new a8(this,e,r)}},a8=class extends mXe{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":Yle(n)&&(r[s]=n);break;case"id":qle(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&Yle(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&qle(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,event:void 0,id:void 0,retry:void 0}}};Jle.exports={EventSourceStream:W8}});var ege=E((ugr,$le)=>{"use strict";var{pipeline:xtt}=I("node:stream"),{fetching:Utt}=ey(),{makeRequest:Mtt}=tB(),{webidl:fl}=Ts(),{EventSourceStream:Ltt}=Vle(),{parseMIMEType:vtt}=Un(),{createFastMessageEvent:_tt}=oB(),{isNetworkError:Wle}=Zm(),{delay:Ptt}=J8(),{kEnumerableProperty:aE}=Qt(),{environmentSettingsObject:zle}=Di(),jle=!1,Kle=3e3,gy=0,Xle=1,dy=2,Ott="anonymous",Htt="use-credentials",gB=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=gy;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),fl.util.markAsUncloneable(this);let A="EventSource constructor";fl.argumentLengthCheck(arguments,1,A),jle||(jle=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fl.converters.USVString(e,A,"url"),r=fl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:Kle};let s=zle,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Ott;r.withCredentials&&(i=Htt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=zle.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=Mtt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===dy)return;this.#A=gy;let e={request:this.#s,dispatcher:this.#o},r=A=>{Wle(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Wle(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?vtt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=Xle,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new Ltt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(_tt(a.type,a.options))}});xtt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Utt(e)}async#c(){this.#A!==dy&&(this.#A=gy,this.dispatchEvent(new Event("error")),await Ptt(this.#i.reconnectionTime),this.#A===gy&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){fl.brandCheck(this,t),this.#A!==dy&&(this.#A=dy,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zle={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xle,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dy,writable:!1}};Object.defineProperties(gB,Zle);Object.defineProperties(gB.prototype,Zle);Object.defineProperties(gB.prototype,{close:aE,onerror:aE,onmessage:aE,onopen:aE,readyState:aE,url:aE,withCredentials:aE});fl.converters.EventSourceInitDict=fl.dictionaryConverter([{key:"withCredentials",converter:fl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fl.converters.any}]);$le.exports={EventSource:gB,defaultReconnectionTime:Kle}});var sge=E((lgr,je)=>{"use strict";var Gtt=OC(),tge=Bm(),Ytt=HC(),qtt=Zie(),Jtt=GC(),Vtt=BG(),Wtt=moe(),ztt=Roe(),rge=Jt(),I1=Qt(),{InvalidArgumentError:B1}=rge,dB=hae(),jtt=Qm(),Ktt=$G(),Xtt=Kae(),Ztt=r8(),$tt=OG(),ert=QS(),{getGlobalDispatcher:Age,setGlobalDispatcher:trt}=TS(),rrt=kS(),Art=cS(),srt=uS();Object.assign(tge.prototype,dB);je.exports.Dispatcher=tge;je.exports.Client=Gtt;je.exports.Pool=Ytt;je.exports.BalancedPool=qtt;je.exports.Agent=Jtt;je.exports.ProxyAgent=Vtt;je.exports.EnvHttpProxyAgent=Wtt;je.export Line truncated
`.trim())}};I8.exports=Iw});var Qp=p((WWe,w8)=>{"use strict";var Q8=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:zhe}=Le(),Khe=cu();b8()===void 0&&y8(new Khe);function y8(t){if(!t||typeof t.dispatch!="function")throw new zhe("Argument agent must implement Agent");Object.defineProperty(globalThis,Q8,{value:t,writable:!0,enumerable:!1,configurable:!1})}function b8(){return globalThis[Q8]}w8.exports={setGlobalDispatcher:y8,getGlobalDispatcher:b8}});var yp=p((KWe,N8)=>{"use strict";N8.exports=class{#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 D8=p((XWe,S8)=>{"use strict";var Xhe=tp();S8.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Xhe(r,o,n,i);return r(a,A)}}});var x8=p((jWe,T8)=>{"use strict";var jhe=dp();T8.exports=t=>e=>function(s,n){return e(s,new jhe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var k8=p((ZWe,R8)=>{"use strict";var Zhe=we(),{InvalidArgumentError:$he,RequestAbortedError:efe}=Le(),tfe=yp(),Bw=class extends tfe{#e=1024*1024;#t=null;#r=!1;#n=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new $he("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#n=!0,this.#s=e}onHeaders(e,r,s,n){let o=Zhe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new efe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#n?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#n){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function rfe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Bw({maxSize:i},n);return e(s,o)}}R8.exports=rfe});var U8=p(($We,M8)=>{"use strict";var{isIP:sfe}=w("node:net"),{lookup:nfe}=w("node:dns"),ife=yp(),{InvalidArgumentError:Eu,InformationalError:ofe}=Le(),F8=Math.pow(2,31)-1,Qw=class{#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.#n,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new ofe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#n(e,r,s){nfe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===F8?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===F8?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new yw(this,e,r)}},yw=class extends ife{#e=null;#t=null;#r=null;#n=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#n=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#n.onError(r);le Line truncated
${o}`;return}if(cE(e,n,C0e)){I0e(e,i)&&(r.retry=e.toString("utf8",i));return}if(cE(e,n,E0e)){B0e(e,i)&&(r.id=e.toString("utf8",i));return}if(cE(e,n,p0e)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&d0e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&g0e(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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 s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,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),s=this.peekBufferedByte(2);return r===void 0?(e===ku[0]||(this.checkBOM=!1),!0):s===void 0?e===ku[0]&&r===ku[1]?!0:(this.checkBOM=!1,!1):(e===ku[0]&&r===ku[1]&&s===ku[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};g6.exports={EventSourceStream:d1}});var Q6=p((xze,B6)=>{"use strict";var{pipeline:Q0e}=w("node:stream"),{fetching:y0e}=Ig(),{makeRequest:b0e}=Bu(),{webidl:eo}=rr(),{EventSourceStream:w0e}=h6(),{parseMIMEType:N0e}=Pr(),{createFastMessageEvent:S0e}=Su(),{isNetworkError:f6}=Eg(),{delay:D0e}=u1(),{kEnumerableProperty:CA}=we(),{environmentSettingsObject:m6}=as(),p6=!1,E6=3e3,Mg=0,C6=1,Ug=2,T0e="anonymous",x0e="use-credentials",Fu=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=Mg;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),eo.util.markAsUncloneable(this);let s="EventSource constructor";eo.argumentLengthCheck(arguments,1,s),p6||(p6=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=eo.converters.USVString(e,s,"url"),r=eo.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:E6};let n=m6,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=T0e;r.withCredentials&&(o=x0e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=m6.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=b0e(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Ug)return;this.#n=Mg;let e={request:this.#i,dispatcher:this.#a},r=s=>{f6(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(f6(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?N0e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=C6,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new w0e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(S0e(A.type,A.options))}});Q0e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=y0e(e)}async#c(){this.#n!==Ug&&(this.#n=Mg,this.dispatchEvent(new Event("error") Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var lEe=E(uEe=>{"use strict";var $Y=wl().Buffer;uEe._dbcs=Dl;var ks=-1,cEe=-2,qo=-10,fn=-1e3,MB=new Array(256),zy=-1;for(TT=0;TT<256;TT++)MB[TT]=ks;var TT;function Dl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=MB.slice(0),this.decodeTableSeq=[];for(var A=0;A<r.length;A++)this._addDecodeChunk(r[A]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(MB.slice(0));var n=this.decodeTables.length;this.decodeTables.push(MB.slice(0));for(var i=this.decodeTables[0],A=129;A<=254;A++)for(var o=this.decodeTables[fn-i[A]],a=48;a<=57;a++){if(o[a]===ks)o[a]=fn-s;else if(o[a]>fn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[fn-o[a]],u=129;u<=254;u++){if(c[u]===ks)c[u]=fn-n;else{if(c[u]===fn-n)continue;if(c[u]>fn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[fn-c[u]],g=48;g<=57;g++)l[g]===ks&&(l[g]=cEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var A=0;A<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Ult(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let A=e.length;A!==0;A--){let s=e[A-1].trim();if(Ilt.has(s)){r=s;break}}return r}function Mlt(t,e){let r=Ult(e);r!==""&&(t.referrerPolicy=r)}function Llt(){return"allowed"}function vlt(){return"success"}function _lt(){return"success"}function Plt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Olt(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(DE(t))&&(e=null);break;case"same-origin":sb(t,DE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function GB(t,e){return t}function Hlt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:GB(t.domainLookupStartTime,r),domainLookupEndTime:GB(t.domainLookupEndTime,r),connectionStartTime:GB(t.connectionStartTime,r),connectionEndTime:GB(t.connectionEndTime,r),secureConnectionStartTime:GB(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Glt(t){return GB(ylt.now(),t)}function Ylt(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}}function HCe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function qlt(t){return{referrerPolicy:t.referrerPolicy}}function Jlt(t){let e=t.referrerPolicy;nb(e);let r=null;if(t.referrer==="client"){let n=LCe();if(!n||n.origin==="null")return"no-referrer";r=new URL(n)}else cd.is.URL(t.referrer)&&(r=t.referrer);let A=gq(r),s=gq(r,!0);switch(A.toString().length>4096&&(A=s),e){case"no-referrer":return"no-referrer";case"origin":return s??gq(r,!0);case"unsafe-url":return A;case"strict-origin":{let n=DE(t);return wE(A)&&!wE(n)?"no-referrer":s}case"strict-origin-when-cross-origin":{let n=DE(t);return sb(A,n)?A:wE(A)&&!wE(n)?"no-referrer":s}case"same-origin":return sb(t,A)?A:"no-referrer";case"origin-when-cross-origin":return sb(t,A)?A:s;case"no-referrer-when-downgrade":{let n=DE(t);return wE(A)&&!wE(n)?"no-referrer":A}}}function gq(t,e=!1){return nb(cd.is.URL(t)),t=new URL(t),JCe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Vlt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Wlt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function GCe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Wlt(t)):Vlt(t)}function zlt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||GCe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function wE(t){return cd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:zlt(t.origin):!1}function jlt(t){}function sb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Klt(t){return t.controller.state==="aborted"}function Xlt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Zlt(t){return wlt[t.toLowerCase()]??t}var $lt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YCe(t,e,r=0,A=1){class s{#e;#t;#r;constructor(i,o){this.#e=i,this.#t=o,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let i=this.#r,o=e(this.#e),a=o.length;if(i>=a)return{value:void 0,done:!0};let{[r]:c,[A]:u}=o[i];this.#r=i+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,$lt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(n,i){return new s(n,i)}}function egt(t,e,r,A=0,s=1){let n=YCe(t,r,A,s),i={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cd.brandCheck(this,e),n(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cd.brandCheck(this,e),n(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let i=Wo(o=>mq(o)&&o!==59,t,e);n=Qq.decode(i)}return{name:A,value:n}}function bgt(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Jn("header name is null");return{name:r,filename:A,contentType:s,encoding:n}}let i=Wo(o=>o!==10&&o!==13&&o!==58,t,e);if(i=pq(i,!0,!0,o=>o===9||o===32),!fgt.test(i.toString()))throw Jn("header name does not match the field-name token production");if(t[e.position]!==58)throw Jn("expected :");switch(e.position++,Wo(o=>o===32||o===9,t,e),Egt(i)){case"content-disposition":{if(r=A=null,Wo(a=>mq(a),t,e).toString("ascii").toLowerCase()!=="form-data")throw Jn("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let a=ygt(t,e);if(!a)break;a.name==="name"?r=a.value:a.name==="filename"&&(A=a.value)}if(r===null)throw Jn("name attribute is required in content-disposition header");break}case"content-type":{let o=Wo(a=>a!==10&&a!==13,t,e);o=pq(o,!1,!0,a=>a===9||a===32),s=XCe(o);break}case"content-transfer-encoding":{let o=Wo(a=>a!==10&&a!==13,t,e);o=pq(o,!1,!0,a=>a===9||a===32),n=XCe(o);break}default:Wo(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Jn("expected CRLF");e.position+=2}}function Wo(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function pq(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function wgt(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}function Jn(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Dgt(t){return t<=31||t===127}function Ngt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function mq(t){return t<=127&&t!==32&&t!==9&&!Dgt(t)&&!Ngt(t)}ZCe.exports={multipartFormDataParser:mgt,validateBoundary:pgt}});var ib=E((mBr,eBe)=>{"use strict";function Rgt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}eBe.exports={createDeferredPromise:Rgt}});var JB=E((yBr,nBe)=>{"use strict";var wq=ot(),{ReadableStreamFrom:Sgt,readableStreamClose:Tgt,fullyReadBody:kgt,extractMimeType:Fgt}=_i(),{FormData:tBe,setFormDataState:xgt}=ek(),{webidl:rc}=Fs(),yq=I("node:assert"),{isErrored:bq,isDisturbed:Ugt}=I("node:stream"),{isUint8Array:Mgt}=I("node:util/types"),{serializeAMimeType:Lgt}=Vo(),{multipartFormDataParser:vgt}=$Ce(),{createDeferredPromise:_gt}=ib(),{parseJSONFromBytes:Pgt}=Sl(),{utf8DecodeBytes:Ogt}=tb(),{runtimeFeatures:Hgt}=Tl(),Ggt=Hgt.has("crypto")?I("node:crypto").randomInt:t=>Math.floor(Math.random()*t),tk=new TextEncoder;function Ygt(){}var qgt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ugt(e)&&!bq(e)&&e.cancel("Response object has been garbage collected").catch(Ygt)});function ABe(t,e=!1){let r=null,A=null;rc.is.ReadableStream(t)?r=t:rc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){A=c},cancel(){},type:"bytes"}),yq(rc.is.ReadableStream(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(rc.is.URLSearchParams(t))n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(rc.is.BufferSource(t))n=rc.util.getCopyOfBytesHeldByBufferSource(t);else if(rc.is.FormData(t)){let c=`----formdata-undici-0${`${Ggt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let B=!1;for(let[C,p]of t)if(typeof p=="string"){let w=tk.encode(u+`; name="${l(g(C))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var L5=p(U5=>{"use strict";var pS=co().Buffer;U5._dbcs=uo;var sr=-1,M5=-2,sn=-10,Dr=-1e3,rl=new Array(256),hh=-1;for(b0=0;b0<256;b0++)rl[b0]=sr;var b0;function uo(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=rl.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(rl.slice(0));var i=this.decodeTables.length;this.decodeTables.push(rl.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Dr-o[s]],A=48;A<=57;A++){if(a[A]===sr)a[A]=Dr-n;else if(a[A]>Dr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Dr-a[A]],u=129;u<=254;u++){if(c[u]===sr)c[u]=Dr-i;else{if(c[u]===Dr-i)continue;if(c[u]>Dr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Dr-c[u]],g=48;g<=57;g++)l[g]===sr&&(l[g]=M5)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function ySe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(ASe.has(n)){r=n;break}}return r}function bSe(t,e){let r=ySe(e);r!==""&&(t.referrerPolicy=r)}function wSe(){return"allowed"}function NSe(){return"success"}function SSe(){return"success"}function DSe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TSe(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&&LD(t.origin)&&!LD(OA(t))&&(e=null);break;case"same-origin":bh(t,OA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function al(t,e){return t}function xSe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:al(t.domainLookupStartTime,r),domainLookupEndTime:al(t.domainLookupEndTime,r),connectionStartTime:al(t.connectionStartTime,r),connectionEndTime:al(t.connectionEndTime,r),secureConnectionStartTime:al(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function RSe(t){return al(dSe.now(),t)}function kSe(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}}function lY(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function FSe(t){return{referrerPolicy:t.referrerPolicy}}function MSe(t){let e=t.referrerPolicy;wh(e);let r=null;if(t.referrer==="client"){let i=oY();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else ga.is.URL(t.referrer)&&(r=t.referrer);let s=UD(r),n=UD(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??UD(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=OA(t);return PA(s)&&!PA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=OA(t);return bh(s,i)?s:PA(s)&&!PA(i)?"no-referrer":n}case"same-origin":return bh(t,s)?s:"no-referrer";case"origin-when-cross-origin":return bh(t,s)?s:n;case"no-referrer-when-downgrade":{let i=OA(t);return PA(s)&&!PA(i)?"no-referrer":s}}}function UD(t,e=!1){return wh(ga.is.URL(t)),t=new URL(t),fY(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var USe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),LSe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dY(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),LSe(t)):USe(t)}function vSe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dY(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function PA(t){return ga.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:vSe(t.origin):!1}function PSe(t){}function bh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function OSe(t){return t.controller.state==="aborted"}function HSe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _Se(t){return hSe[t.toLowerCase()]??t}var GSe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gY(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,GSe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function YSe(t,e,r,s=0,n=1){let i=gY(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ga.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ga.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=an(a=>JD(a)&&a!==59,t,e);i=YD.decode(o)}return{name:s,value:i,extended:n}}function gDe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Xr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=an(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qD(o,!0,!0,a=>a===9||a===32),!iDe.test(o.toString()))throw Xr("header name does not match the field-name token production");if(t[e.position]!==58)throw Xr("expected :");switch(e.position++,an(a=>a===32||a===9,t,e),nDe(o)){case"content-disposition":{r=s=null;let a=!1;if(an(c=>JD(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Xr("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=dDe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Xr("name attribute is required in content-disposition header");break}case"content-type":{let a=an(A=>A!==10&&A!==13,t,e);a=qD(a,!1,!0,A=>A===9||A===32),n=BY(a);break}case"content-transfer-encoding":{let a=an(A=>A!==10&&A!==13,t,e);a=qD(a,!1,!0,A=>A===9||A===32),i=BY(a);break}default:an(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Xr("expected CRLF");e.position+=2}}function an(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function qD(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function hDe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Xr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function fDe(t){return t<=31||t===127}function mDe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function JD(t){return t<=127&&t!==32&&t!==9&&!fDe(t)&&!mDe(t)}QY.exports={multipartFormDataParser:lDe,validateBoundary:uDe}});var Nh=p((_et,bY)=>{"use strict";function pDe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}bY.exports={createDeferredPromise:pDe}});var ul=p((Get,TY)=>{"use strict";var zD=me(),{ReadableStreamFrom:EDe,readableStreamClose:CDe,fullyReadBody:IDe,extractMimeType:BDe}=Qs(),{FormData:wY,setFormDataState:QDe}=K0(),{webidl:Yn}=nr(),VD=w("node:assert"),{isErrored:WD,isDisturbed:yDe}=w("node:stream"),{isUint8Array:bDe}=w("node:util/types"),{serializeAMimeType:wDe}=on(),{multipartFormDataParser:NDe}=yY(),{createDeferredPromise:SDe}=Nh(),{parseJSONFromBytes:DDe}=ho(),{utf8DecodeBytes:TDe}=Y0(),{runtimeFeatures:xDe}=fo(),RDe=xDe.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),X0=new TextEncoder;function kDe(){}var FDe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!yDe(e)&&!WD(e)&&e.cancel("Response object has been garbage collected").catch(kDe)});function SY(t,e=!1){let r=null,s=null;Yn.is.ReadableStream(t)?r=t:Yn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),VD(Yn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Yn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Yn.is.BufferSource(t))i=Yn.util.getCopyOfBytesHeldByBufferSource(t);else if(Yn.is.FormData(t)){let c=`----formdata-undici-0${`${RDe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[E,b]of t)if(typeof b=="string"){let S=X0.encode(u+`; name="${l(g(E))}"\r
\r
${g(p)}\r
`);d.push(w),i+=w.byteLength}else{let w=tk.encode(`${u}; name="${l(g(C))}"`+(p.name?`; filename="${l(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${g(b)}\r
`);h.push(S),o+=S.byteLength}else{let S=X0.encode(`${u}; name="${l(g(E))}"`+(b.name?`; filename="${l(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);d.push(w,p,h),typeof p.size=="number"?i+=w.byteLength+p.size+h.byteLength:B=!0}let Q=tk.encode(`--${c}--\r
`);d.push(Q),i+=Q.byteLength,B&&(i=null),n=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${c}`}else if(rc.is.Blob(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(wq.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=rc.is.ReadableStream(t)?t:Sgt(t)}return(typeof n=="string"||Mgt(n))&&(s=()=>(i=typeof n=="string"?Buffer.byteLength(n):n.length,n)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(bq(r))break;l.length&&A.enqueue(new Uint8Array(l))}else c?.length&&!bq(r)&&A.enqueue(typeof c=="string"?tk.encode(c):new Uint8Array(c));queueMicrotask(()=>Tgt(A))})(),[{stream:r,source:n,length:i},o]}function Jgt(t,e=!1){return rc.is.ReadableStream(t)&&(yq(!wq.isDisturbed(t),"The body has already been consumed."),yq(!t.locked,"The stream is locked.")),ABe(t,e)}function Vgt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Wgt(t,e){return{blob(){return qB(this,A=>{let s=rBe(e(this));return s===null?s="":s&&(s=Lgt(s)),new Blob([A],{type:s})},t,e)},arrayBuffer(){return qB(this,A=>new Uint8Array(A).buffer,t,e)},text(){return qB(this,Ogt,t,e)},json(){return qB(this,Pgt,t,e)},formData(){return qB(this,A=>{let s=rBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vgt(A,s),i=new tBe;return xgt(i,n),i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(A.toString()),i=new tBe;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return qB(this,A=>new Uint8Array(A),t,e)}}}function zgt(t,e){Object.assign(t.prototype,Wgt(t,e))}function qB(t,e,r,A){try{rc.brandCheck(t,r)}catch(o){return Promise.reject(o)}if(t=A(t),sBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=_gt(),n=s.reject,i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t.body==null?(i(Buffer.allocUnsafe(0)),s.promise):(kgt(t.body,i,n),s.promise)}function sBe(t){let e=t.body;return e!=null&&(e.stream.locked||wq.isDisturbed(e.stream))}function rBe(t){let e=t.headersList,r=Fgt(e);return r==="failure"?null:r}nBe.exports={extractBody:ABe,safelyExtractBody:Jgt,cloneBody:Vgt,mixinBody:zgt,streamRegistry:qgt,bodyUnusable:sBe}});var fBe=E((bBr,EBe)=>{"use strict";var Ke=I("node:assert"),$e=ot(),{channels:iBe}=od(),Dq=l4(),{RequestContentLengthMismatchError:NE,ResponseContentLengthMismatchError:jgt,RequestAbortedError:gBe,HeadersTimeoutError:Kgt,HeadersOverflowError:Xgt,SocketError:cb,InformationalError:VB,BodyTimeoutError:Zgt,HTTPParserError:$gt,ResponseExceededMaxSizeError:edt}=ut(),{kUrl:dBe,kReset:Vn,kClient:xq,kParser:hA,kBlocking:ub,kRunning:zs,kPending:tdt,kSize:oBe,kWriting:ld,kQueue:Ac,kNoRef:ob,kKeepAliveDefaultTimeout:rdt,kHostHeader:Adt,kPendingIdx:sdt,kRunningIdx:zo,kError:jo,kPipelining:sk,kSocket:WB,kKeepAliveTimeoutValue:ik,kMaxHeadersSize:ndt,kKeepAliveMaxTimeout:idt,kKeepAliveTimeoutThreshold:odt,kHeadersTimeout:adt,kBodyTimeout:cdt,kStrictContentLength:Sq,kMaxRequests:aBe,kCounter:udt,kMaxResponseSize:ldt,kOnError:gdt,kResume:ud,kHTTPContext:hBe,kClosed:Tq}=Er(),Xc=nCe(),ddt=Buffer.alloc(0),rk=Buffer[Symbol.species],hdt=$e.removeAllListeners,Nq;function Edt(){let t=process.env.JEST_WORKER_ID?$4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(aCe())}catch{}return e||(e=new WebAssembly.Module(t||$4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(A,s,n)=>0,wasm_on_status:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onStatus(new rk(Zc.buffer,i,n))},wasm_on_message_begin:A=>(Ke(ts.ptr===A),ts.onMessageBegin()),wasm_on_header_field:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderField(new rk(Zc.buffer,i,n))},wasm_on_header_value:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderValue(new rk(Zc.buffer,i,n))},wasm_on_headers_complete:(A,s,n,i)=>(Ke(ts.ptr===A),ts.onHeadersComplete(s,n===1,i===1)),wasm_on_body:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onBody(new rk(Zc.buffer,i,n))},wasm_on_message_complete:A=>(Ke(ts.ptr===A),ts.onMessageComplete())}})}var Rq=null,ts=null,Zc=null,Ak=0,$c=null,fdt=0,ab=1,zB=2|ab,nk=4|ab,kq=8|fdt,Fq=class{constructor(e,r,{exports:A}){this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Xc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ndt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ldt]}setTi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[Adt],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[sk]&&!d[Vn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return iBe.sendHeaders.hasSubscribers&&iBe.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?uBe(h,null,t,e,d,u,B,l):$e.isBuffer(a)?uBe(h,a,t,e,d,u,B,l):$e.isBlobLike(a)?typeof a.stream=="function"?lBe(h,a.stream(),t,e,d,u,B,l):Ndt(h,a,t,e,d,u,B,l):$e.isStream(a)?Ddt(h,a,t,e,d,u,B,l):$e.isIterable(a)?lBe(h,a,t,e,d,u,B,l):Ke(!1),!0}function Ddt(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"stream body cannot be pipelined");let a=!1,c=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){$e.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new gBe;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Ke(s.destroyed||s[ld]&&r[zs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$e.destroy(e,h):$e.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(d,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(d,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function uBe(t,e,r,A,s,n,i,o){try{e?$e.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);h.push(S,b,f),typeof b.size=="number"?o+=S.byteLength+b.size+f.byteLength:m=!0}let B=X0.encode(`--${c}--\r
`);h.push(B),o+=B.byteLength,m&&(o=null),i=t,n=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Yn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(zD.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Yn.is.ReadableStream(t)?t:EDe(t)}return(typeof i=="string"||bDe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(WD(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!WD(r)&&s.enqueue(typeof c=="string"?X0.encode(c):new Uint8Array(c));queueMicrotask(()=>CDe(s))})(),[{stream:r,source:i,length:o},a]}function MDe(t,e=!1){return Yn.is.ReadableStream(t)&&(VD(!zD.isDisturbed(t),"The body has already been consumed."),VD(!t.locked,"The stream is locked.")),SY(t,e)}function UDe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function LDe(t,e){return{blob(){return cl(this,s=>{let n=NY(e(this));return n===null?n="":n&&(n=wDe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return cl(this,s=>new Uint8Array(s).buffer,t,e)},text(){return cl(this,TDe,t,e)},json(){return cl(this,DDe,t,e)},formData(){return cl(this,s=>{let n=NY(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=NDe(s,n),o=new wY;return QDe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new wY;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return cl(this,s=>new Uint8Array(s),t,e)}}}function vDe(t,e){Object.assign(t.prototype,LDe(t,e))}function cl(t,e,r,s){try{Yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),DY(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=SDe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(IDe(t.body,o,i),n.promise)}function DY(t){let e=t.body;return e!=null&&(e.stream.locked||zD.isDisturbed(e.stream))}function NY(t){let e=t.headersList,r=BDe(e);return r==="failure"?null:r}TY.exports={extractBody:SY,safelyExtractBody:MDe,cloneBody:UDe,mixinBody:vDe,streamRegistry:FDe,bodyUnusable:DY}});var qY=p((Yet,YY)=>{"use strict";var ie=w("node:assert"),Z=me(),{channels:xY}=la(),KD=TS(),{RequestContentLengthMismatchError:HA,ResponseContentLengthMismatchError:RY,RequestAbortedError:OY,InvalidArgumentError:PDe,HeadersTimeoutError:ODe,HeadersOverflowError:HDe,SocketError:_A,InformationalError:ll,BodyTimeoutError:_De,HTTPParserError:GDe,ResponseExceededMaxSizeError:YDe}=le(),{kUrl:HY,kReset:jr,kClient:tC,kParser:it,kBlocking:Th,kRunning:vt,kPending:rT,kSize:kY,kWriting:ha,kQueue:qn,kNoRef:Sh,kKeepAliveDefaultTimeout:qDe,kHostHeader:JDe,kPendingIdx:VDe,kRunningIdx:An,kError:Tr,kPipelining:$0,kSocket:GA,kKeepAliveTimeoutValue:rC,kMaxHeadersSize:WDe,kKeepAliveMaxTimeout:zDe,kKeepAliveTimeoutThreshold:KDe,kHeadersTimeout:XDe,kBodyTimeout:jDe,kStrictContentLength:ZD,kMaxRequests:FY,kCounter:ZDe,kMaxResponseSize:$De,kOnError:MY,kResume:po,kHTTPContext:_Y,kClosed:$D}=Ye(),ys=TG(),UY=Buffer.alloc(0),j0=Buffer[Symbol.species],eTe=Z.removeAllListeners,YA=Symbol("kIdleSocketValidation"),dl=Symbol("kIdleSocketValidationTimeout"),sT=Symbol("kSocketUsed"),XD;function tTe(){let t=process.env.JEST_WORKER_ID?QD():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(kG())}catch{}return e||(e=new WebAssembly.Module(t||QD())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onStatus(new j0(hi.buffer,o,i))},wasm_on_message_begin:s=>(ie(It.ptr===s),It.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onHeaderField(new j0(hi.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onHeaderValue(new j0(hi.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(ie(It.ptr===s),It.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onBody(new j0(hi.buffer,o,i))},wasm_on_message_complete:s=>(ie(It.ptr===s),It.onMessageComplete())}})}var jD=null,It=null,hi=null,Z0=0,fi=null,rTe=0,Dh=1,gl=2|Dh,eC=4|Dh,eT=8|rTe,tT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ys.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[WDe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?m+=`host: ${n}\r
`:m+=t[JDe],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[$0]&&!h[jr]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],b=c[B+1];if(Array.isArray(b))for(let S=0;S<b.length;S++)m+=`${E}: ${b[S]}\r
`;else m+=`${E}: ${b}\r
`}return xY.sendHeaders.hasSubscribers&&xY.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?vY(f,null,t,e,h,u,m,l):Z.isBuffer(A)?vY(f,A,t,e,h,u,m,l):Z.isBlobLike(A)?typeof A.stream=="function"?PY(f,A.stream(),t,e,h,u,m,l):hTe(f,A,t,e,h,u,m,l):Z.isStream(A)?gTe(f,A,t,e,h,u,m,l):Z.isIterable(A)?PY(f,A,t,e,h,u,m,l):ie(!1),!0}function gTe(t,e,r,s,n,i,o,a){ie(i!==0||r[vt]===0,"stream body cannot be pipelined");let A=!1,c=new sC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(m){Z.destroy(this,m)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new OY;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ie(n.destroyed||n[ha]&&r[vt]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(m){f=m}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Z.destroy(e,f):Z.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function vY(t,e,r,s,n,i,o,a){try{e?Z.isBuffer(e)&&(ie(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Vn]=!0)):n===0?s.write(`${i}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[jr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ke(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[ud]()}catch(a){t(a)}}async function Ndt(t,e,r,A,s,n,i,o){Ke(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new NE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(ie(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[po]()}catch(A){t(A)}}async function hTe(t,e,r,s,n,i,o,a){ie(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new HA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Vn]=!0),r[ud]()}catch(a){t(a)}}async function lBe(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ke(a===null),s[jo]?d(s[jo]):a=g});s.on("close",c).on("drain",c);let l=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[jo])throw s[jo];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var ok=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[ld]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[jo])throw r[jo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[Sq])throw new NE;process.emitWarning(new NE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Vn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[jr]=!0),r[po]()}catch(A){t(A)}}async function PY(t,e,r,s,n,i,o,a){ie(i!==0||r[vt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ie(A===null),n[Tr]?h(n[Tr]):A=g});n.on("close",c).on("drain",c);let l=new sC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Tr])throw n[Tr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var sC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[ha]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Tr])throw r[Tr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ZD])throw new HA;process.emitWarning(new HA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[jr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[hA].timeout&&r[hA].timeoutType===zB&&r[hA].timeout.refresh&&r[hA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[ld]=!1,e[jo])throw e[jo];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[it].timeout&&r[it].timeoutType===gl&&r[it].timeout.refresh&&r[it].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ha]=!1,e[Tr])throw e[Tr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[Sq])throw new NE;process.emitWarning(new NE)}e[hA].timeout&&e[hA].timeoutType===zB&&e[hA].timeout.refresh&&e[hA].timeout.refresh(),A[ud]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[ld]=!1,e&&(Ke(A[zs]<=1,"pipeline should only contain this request"),s(e))}};EBe.exports=Cdt});var wBe=E((wBr,bBe)=>{"use strict";var Xo=I("node:assert"),{pipeline:Rdt}=I("node:stream"),Et=ot(),{RequestContentLengthMismatchError:vq,RequestAbortedError:Sdt,SocketError:hb,InformationalError:gd,InvalidArgumentError:Tdt}=ut(),{kUrl:db,kReset:lk,kClient:Pi,kRunning:Eb,kPending:kdt,kQueue:dd,kPendingIdx:Pq,kRunningIdx:sc,kError:Oi,kSocket:iA,kStrictContentLength:Fdt,kOnError:jB,kMaxConcurrentStreams:ck,kPingInterval:CBe,kHTTP2Session:Fl,kHTTP2InitialWindowSize:xdt,kHTTP2ConnectionWindowSize:Udt,kResume:eu,kSize:Mdt,kHTTPContext:Oq,kClosed:_q,kBodyTimeout:Ldt,kEnableConnectProtocol:lb,kRemoteSettings:gb,kHTTP2Stream:ak,kHTTP2SessionState:Hq}=Er(),{channels:BBe}=od(),Ko=Symbol("open streams"),IBe,uk;try{uk=I("node:http2")}catch{uk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vdt,HTTP2_HEADER_METHOD:QBe,HTTP2_HEADER_PATH:pBe,HTTP2_HEADER_SCHEME:Uq,HTTP2_HEADER_CONTENT_LENGTH:_dt,HTTP2_HEADER_EXPECT:Pdt,HTTP2_HEADER_STATUS:Mq,HTTP2_HEADER_PROTOCOL:Odt,NGHTTP2_REFUSED_STREAM:Hdt,NGHTTP2_CANCEL:Gdt}}=uk;function Lq(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}function Ydt(t,e){t[iA]=e;let r=t[xdt],A=t[Udt],s=uk.connect(t[db],{createConnection:()=>e,peerMaxConcurrentStreams:t[ck],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[iA]=e,s[Ko]=0,s[Pi]=t,s[iA]=e,s[Hq]={ping:{interval:t[CBe]===0?null:setInterval(Wdt,t[CBe],s).unref()}},s[lb]=!1,s[gb]=!1,A&&Et.addListener(s,"connect",Jdt.bind(s,A)),Et.addListener(s,"error",zdt),Et.addListener(s,"frameError",jdt),Et.addListener(s,"end",Kdt),Et.addListener(s,"goaway",Xdt),Et.addListener(s,"close",Zdt),Et.addListener(s,"remoteSettings",Vdt),s.unref(),t[Fl]=s,e[Fl]=s,Et.addListener(e,"error",eht),Et.addListener(e,"end",tht),Et.addListener(e,"close",$dt),e[_q]=!1,e.on("close",rht),{version:"h2",defaultPipelining:1/0,write(n){return sht(t,n)},resume(){qdt(t)},destroy(n,i){e[_q]?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){if(n!=null)if(t[Eb]>0){if(n.idempotent===!1||(n.upgrade==="websocket"||n.method==="CONNECT")&&s[gb]===!1||Et.bodyLength(n.body)!==0&&(Et.isStream(n.body)||Et.isAsyncIterable(n.body)||Et.isFormDataLike(n.body)))return!0}else return(n.upgrade==="websocket"||n.method==="CONNECT")&&s[gb]===!1;return!1}}}function qdt(t){let e=t[iA];e?.destroyed===!1&&(t[Mdt]===0||t[ck]===0?(e.unref(),t[Fl].unref()):(e.ref(),t[Fl].ref()))}function Jdt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Vdt(t){if(this[Pi][ck]=t.maxConcurrentStreams??this[Pi][ck],this[gb]===!0&&this[lb]===!0&&t.enableConnectProtocol===!1){let e=new gd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[iA][Oi]=e,this[Pi][jB](e);return}this[lb]=t.enableConnectProtocol??this[lb],this[gb]=!0,this[Pi][eu]()}function Wdt(t){let e=t[Hq];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(A,s){let n=this[Pi],i=this[Pi];if(A!=null){let o=new gd(`HTTP/2: "PING" errored - type ${A.message}`);i[Oi]=o,n[jB](o)}else n.emit("ping",s)}}function zdt(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[iA][Oi]=t,this[Pi][jB](t)}function jdt(t,e,r){if(r===0){let A=new gd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[iA][Oi]=A,this[Pi][jB](A)}}function Kdt(){let t=new hb("other side closed",Et.getSocketInfo(this[iA]));this.destroy(t),Et.destroy(this[iA],t)}function Xdt(t){let e=this[Oi]||new hb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this[iA])),r=this[Pi];if(r[iA]=null,r[Oq]=null,this.close(),this[Fl]=null,Et.destroy(this[iA],e),r[sc]<r[dd].length){let A=r[dd][r[sc]];r[dd][r[sc]++]=null,Et.errorRequest(r,A,e),r[Pq]=r[sc]}Xo(r[Eb]===0),r.emit("disconnect",r[db],[r],e),r.emit("connectionError",r[db],[r],e),r[eu]()}function Zdt(){let{[Pi]:t,[Hq]:e}=this,{[iA]:r}=t,A=this[iA][Oi]||this[Oi]||new hb("closed",Et.getSocketInfo(r));if(t[iA]=null,t[Oq]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Xo(t[kdt]===0);let s=t[dd].splice(t[sc]);for(let n=0;n<s.length;n++){let i=s[n];Et.errorRequest(t,i,A)}}}function $dt(){let t=this[Oi]||new hb("closed",Et.getSocketInfo(this)),e=this[Fl][Pi];e[iA]=null,e[Oq]=null,this[Fl]!==null&&this[Fl].destroy(t),e[Pq]=e[sc],Xo(e[Eb]===0),e.emit("disconnect",e[db],[e],t),e[eu]()}function eht(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Oi]=t,this[Pi][jB](t)}function tht(){Et.destroy(this,new hb("other side closed",Et.getSocketInfo(this)))}func Line truncated
`;BBe.sendHeaders.publish({request:e,headers:H,socket:A[iA]})}let k=s==="GET"||s==="HEAD"||g===null;a?(d[Pdt]="100-continue",h=A.request(d,{endStream:k,signal:c}),h[ak]=!0,h.once("continue",j)):(h=A.request(d,{endStream:k,signal:c}),h[ak]=!0,j()),++A[Ko],h.setTimeout(r);let J=!1;return h.once("response",H=>{let{[Mq]:$,...oe}=H;if(e.onResponseStarted(),J=!0,e.aborted){h.removeAllListeners("data");return}e.onHeaders(Number($),Lq(oe),h.resume.bind(h),"")===!1&&h.pause()}),h.on("data",H=>{e.onData(H)===!1&&h.pause()}),h.once("end",()=>{h.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),t[dd][t[sc]++]=null,t[eu]()):(C(new gd("HTTP/2: stream half-closed (remote)")),t[dd][t[sc]++]=null,t[Pq]=t[sc],t[eu]())}),h.once("close",()=>{h.removeAllListeners("data"),A[Ko]-=1,A[Ko]===0&&A.unref()}),h.once("error",function(H){h.removeAllListeners("data"),C(H)}),h.once("frameError",(H,$)=>{h.removeAllListeners("data"),C(new gd(`HTTP/2: "frameError" received - type ${H}, code ${$}`))}),h.on("aborted",()=>{h.removeAllListeners("data")}),h.on("timeout",()=>{let H=new gd(`HTTP/2: "stream timeout after ${r}"`);h.removeAllListeners("data"),A[Ko]-=1,A[Ko]===0&&A.unref(),C(H)}),h.once("trailers",H=>{e.aborted||e.completed||e.onComplete(H)}),!0;function j(){!g||w===0?mBe(C,h,null,t,e,t[iA],w,p):Et.isBuffer(g)?mBe(C,h,g,t,e,t[iA],w,p):Et.isBlobLike(g)?typeof g.stream=="function"?yBe(C,h,g.stream(),t,e,t[iA],w,p):iht(C,h,g,t,e,t[iA],w,p):Et.isStream(g)?nht(C,t[iA],p,h,g,t,e,w):Et.isIterable(g)?yBe(C,h,g,t,e,t[iA],w,p):Xo(!1)}}function mBe(t,e,r,A,s,n,i,o){try{r!=null&&Et.isBuffer(r)&&(Xo(i===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),o||(n[lk]=!0),s.onRequestSent(),A[eu]()}catch(a){t(a)}}function nht(t,e,r,A,s,n,i,o){Xo(o!==0||n[Eb]===0,"stream body cannot be pipelined");let a=Rdt(s,A,u=>{u?(Et.destroy(a,u),t(u)):(Et.removeAllListeners(a),i.onRequestSent(),r||(e[lk]=!0),n[eu]())});Et.addListener(a,"data",c);function c(u){i.onBodySent(u)}}async function iht(t,e,r,A,s,n,i,o){Xo(i===r.size,"blob body must have content length");try{if(i!=null&&i!==r.size)throw new vq;let a=Buffer.from(await r.arrayBuffer());e.cork(),e.write(a),e.uncork(),e.end(),s.onBodySent(a),s.onRequestSent(),o||(n[lk]=!0),A[eu]()}catch(a){t(a)}}async function yBe(t,e,r,A,s,n,i,o){Xo(i!==0||A[Eb]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let l=a;a=null,l()}}let u=()=>new Promise((l,g)=>{Xo(a===null),n[Oi]?g(n[Oi]):a=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(n[Oi])throw n[Oi];let g=e.write(l);s.onBodySent(l),g||await u()}e.end(),s.onRequestSent(),o||(n[lk]=!0),A[eu]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}bBe.exports=Ydt});var Bd=E((DBr,UBe)=>{"use strict";var xl=I("node:assert"),TBe=I("node:net"),fb=I("node:http"),RE=ot(),{ClientStats:oht}=_4(),{channels:KB}=od(),aht=Wfe(),cht=OB(),{InvalidArgumentError:Lr,InformationalError:uht,ClientDestroyedError:lht}=ut(),ght=HB(),{kUrl:tu,kServerName:Cd,kClient:dht,kBusy:Gq,kConnect:hht,kResuming:SE,kRunning:Qb,kPending:pb,kSize:Cb,kQueue:nc,kConnected:Eht,kConnecting:XB,kNeedDrain:Ed,kKeepAliveDefaultTimeout:DBe,kHostHeader:fht,kPendingIdx:ic,kRunningIdx:Ul,kError:Cht,kPipelining:gk,kKeepAliveTimeoutValue:Bht,kMaxHeadersSize:Iht,kKeepAliveMaxTimeout:Qht,kKeepAliveTimeoutThreshold:pht,kHeadersTimeout:mht,kBodyTimeout:yht,kStrictContentLength:bht,kConnector:Bb,kMaxRequests:Yq,kCounter:wht,kClose:Dht,kDestroy:Nht,kDispatch:Rht,kLocalAddress:Ib,kMaxResponseSize:Sht,kOnError:Tht,kHTTPContext:FA,kMaxConcurrentStreams:kht,kHTTP2InitialWindowSize:Fht,kHTTP2ConnectionWindowSize:xht,kResume:fd,kPingInterval:Uht}=Er(),Mht=fBe(),Lht=wBe(),hd=Symbol("kClosedResolve"),vht=fb&&fb.maxHeaderSize&&Number.isInteger(fb.maxHeaderSize)&&fb.maxHeaderSize>0?()=>fb.maxHeaderSize:()=>{throw new Lr("http module not available or http.maxHeaderSize invalid")},NBe=()=>{};function kBe(t){return t[gk]??t[FA]?.defaultPipelining??1}var qq=class extends cht{constructor(e,{maxHeaderSize:r,headersTimeout:A,socketTimeout:s,requestTimeout:n,connectTimeout:i,bodyTimeout:o,idleTimeout:a,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:d,socketPath:h,pipelining:B,tls:Q,strictContentLength:C,maxCachedSessions:p,connect:w,maxRequestsPerClient:k,localAddress:J,maxResponseSize:j,autoSelectFamily:H,autoSelectFamilyAttemptTimeout:$,maxConcurrentStreams:oe,allowH2:Ie,useH2c:be,initialWindowSize:K,connectionWindowSize:le,pingInterval:Le}={}){if(c!==void 0)throw new Lr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Lr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(n!==void 0)throw new Lr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Lr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new Lr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeou Line truncated
`,this[yht]=o??3e5,this[mht]=A??3e5,this[bht]=C??!0,this[Yq]=k,this[hd]=null,this[Sht]=j>-1?j:-1,this[FA]=null,this[kht]=oe??100,this[Fht]=K??262144,this[xht]=le??524288,this[Uht]=Le??6e4,this[nc]=[],this[Ul]=0,this[ic]=0,this[fd]=Yt=>Jq(this,Yt),this[Tht]=Yt=>FBe(this,Yt)}get pipelining(){return this[gk]}set pipelining(e){this[gk]=e,this[fd](!0)}get stats(){return new oht(this)}get[pb](){return this[nc].length-this[ic]}get[Qb](){return this[ic]-this[Ul]}get[Cb](){return this[nc].length-this[Ul]}get[Eht](){return!!this[FA]&&!this[XB]&&!this[FA].destroyed}get[Gq](){return!!(this[FA]?.busy(null)||this[Cb]>=(kBe(this)||1)||this[pb]>0)}[hht](e){xBe(this),this.once("connect",e)}[Rht](e,r){let A=new aht(this[tu].origin,e,r);return this[nc].push(A),this[SE]||(RE.bodyLength(A.body)==null&&RE.isIterable(A.body)?(this[SE]=1,queueMicrotask(()=>Jq(this))):this[fd](!0)),this[SE]&&this[Ed]!==2&&this[Gq]&&(this[Ed]=2),this[Ed]<2}[Dht](){return new Promise(e=>{this[Cb]?this[hd]=e:e(null)})}[Nht](e){return new Promise(r=>{let A=this[nc].splice(this[ic]);for(let n=0;n<A.length;n++){let i=A[n];RE.errorRequest(this,i,e)}let s=()=>{this[hd]&&(this[hd](),this[hd]=null),r(null)};this[FA]?(this[FA].destroy(e,s),this[FA]=null):queueMicrotask(s),this[fd]()})}};function FBe(t,e){if(t[Qb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){xl(t[ic]===t[Ul]);let r=t[nc].splice(t[Ul]);for(let A=0;A<r.length;A++){let s=r[A];RE.errorRequest(t,s,e)}xl(t[Cb]===0)}}function xBe(t){xl(!t[XB]),xl(!t[FA]);let{host:e,hostname:r,protocol:A,port:s}=t[tu];if(r[0]==="["){let n=r.indexOf("]");xl(n!==-1);let i=r.substring(1,n);xl(TBe.isIPv6(i)),r=i}t[XB]=!0,KB.beforeConnect.hasSubscribers&&KB.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb]}),t[Bb]({host:e,hostname:r,protocol:A,port:s,servername:t[Cd],localAddress:t[Ib]},(n,i)=>{if(n){RBe(t,n,{host:e,hostname:r,protocol:A,port:s}),t[fd]();return}if(t.destroyed){RE.destroy(i.on("error",NBe),new lht),t[fd]();return}xl(i);try{t[FA]=i.alpnProtocol==="h2"?Lht(t,i):Mht(t,i)}catch(o){i.destroy().on("error",NBe),RBe(t,o,{host:e,hostname:r,protocol:A,port:s}),t[fd]();return}t[XB]=!1,i[wht]=0,i[Yq]=t[Yq],i[dht]=t,i[Cht]=null,KB.connected.hasSubscribers&&KB.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb],socket:i}),t.emit("connect",t[tu],[t]),t[fd]()})}function RBe(t,e,{host:r,hostname:A,protocol:s,port:n}){if(!t.destroyed){if(t[XB]=!1,KB.connectError.hasSubscribers&&KB.connectError.publish({connectParams:{host:r,hostname:A,protocol:s,port:n,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(xl(t[Qb]===0);t[pb]>0&&t[nc][t[ic]].servername===t[Cd];){let i=t[nc][t[ic]++];RE.errorRequest(t,i,e)}else FBe(t,e);t.emit("connectionError",t[tu],[t],e)}}function SBe(t){t[Ed]=0,t.emit("drain",t[tu],[t])}function Jq(t,e){t[SE]!==2&&(t[SE]=2,_ht(t,e),t[SE]=0,t[Ul]>256&&(t[nc].splice(0,t[Ul]),t[ic]-=t[Ul],t[Ul]=0))}function _ht(t,e){for(;;){if(t.destroyed){xl(t[pb]===0);return}if(t[hd]&&!t[Cb]){t[hd](),t[hd]=null;return}if(t[FA]&&t[FA].resume(),t[Gq])t[Ed]=2;else if(t[Ed]===2){e?(t[Ed]=1,queueMicrotask(()=>SBe(t))):SBe(t);continue}if(t[pb]===0||t[Qb]>=(kBe(t)||1))return;let r=t[nc][t[ic]];if(t[tu].protocol==="https:"&&t[Cd]!==r.servername){if(t[Qb]>0)return;t[Cd]=r.servername,t[FA]?.destroy(new uht("servername changed"),()=>{t[FA]=null,Jq(t)})}if(t[XB])return;if(!t[FA]){xBe(t);return}if(t[FA].destroyed||t[FA].busy(r))return;!r.aborted&&t[FA].write(r)?t[ic]++:t[nc].splice(t[ic],1)}}UBe.exports=qq});var Vq=E((RBr,MBe)=>{"use strict";var dk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};MBe.exports=class{constructor(){this.head=this.tail=new dk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var hk=E((SBr,qBe)=>{"use strict";var{PoolStats:Pht}=_4(),Oht=OB(),Hht=Vq(),{kConnected:Wq,kSize:LBe,kRunning:vBe,kPending:_Be,kQueued:mb,kBusy:Ght,kFree:Yht,kUrl:qht,kClose:Jht,kDestroy:Vht,kDispatch:Wht}=Er(),fs=Symbol("clients"),Cn=Symbol("needDrain"),yb=Symbol("queue"),zq=Symbol("closed resolve"),jq=Symbol("onDrain"),PBe=Symbol("onConnect"),OBe=Symbol("onDisconnect"),HBe=Symbol("onConnectionError"),Kq=Symbol("get dispatcher"),GBe=Symbol("add client"),YBe=Symbol("remove client"),Xq=class extends Oht{[yb]=new Hht;[mb]=0;[fs]=[];[Cn]=!1;[jq](e,r,A){let s=this[yb],n=!1;for(;!n;){let i=s.shift();if(!i)break;th Line truncated
`,"latin1"),r!==null&&n!==r){if(s[ZD])throw new HA;process.emitWarning(new HA)}e[it].timeout&&e[it].timeoutType===gl&&e[it].timeout.refresh&&e[it].timeout.refresh(),s[po]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ha]=!1,e&&(ie(s[vt]<=1,"pipeline should only contain this request"),n(e))}};YY.exports=sTe});var $Y=p((qet,ZY)=>{"use strict";var un=w("node:assert"),{pipeline:fTe}=w("node:stream"),Qe=me(),{RequestContentLengthMismatchError:aT,RequestAbortedError:mTe,SocketError:Uh,InformationalError:fa,InvalidArgumentError:pTe,HeadersTimeoutError:ETe,BodyTimeoutError:CTe}=le(),{kUrl:Mh,kReset:oC,kClient:bs,kRunning:Lh,kPending:ITe,kQueue:Rh,kPendingIdx:qA,kRunningIdx:mi,kError:ws,kSocket:ft,kStrictContentLength:BTe,kOnError:hl,kMaxConcurrentStreams:AT,kPingInterval:JY,kHTTP2Session:Eo,kHTTP2InitialWindowSize:QTe,kHTTP2ConnectionWindowSize:yTe,kResume:pi,kSize:bTe,kHTTPContext:uT,kClosed:cT,kBodyTimeout:wTe,kHeadersTimeout:NTe,kEnableConnectProtocol:kh,kRemoteSettings:Fh,kHTTP2Stream:nC,kHTTP2SessionState:lT}=Ye(),{channels:VY}=la(),cn=Symbol("open streams"),WY,iC;try{iC=w("node:http2")}catch{iC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:STe,HTTP2_HEADER_METHOD:zY,HTTP2_HEADER_PATH:KY,HTTP2_HEADER_SCHEME:nT,HTTP2_HEADER_CONTENT_LENGTH:DTe,HTTP2_HEADER_EXPECT:TTe,HTTP2_HEADER_STATUS:iT,HTTP2_HEADER_PROTOCOL:xTe,NGHTTP2_REFUSED_STREAM:RTe,NGHTTP2_CANCEL:kTe}}=iC;function oT(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function FTe(t,e){t[ft]=e;let r=t[QTe],s=t[yTe],n=iC.connect(t[Mh],{createConnection:()=>e,peerMaxConcurrentStreams:t[AT],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[ft]=e,n[cn]=0,n[bs]=t,n[ft]=e,n[lT]={ping:{interval:t[JY]===0?null:setInterval(vTe,t[JY],n).unref()}},n[kh]=!1,n[Fh]=!1,s&&Qe.addListener(n,"connect",UTe.bind(n,s)),Qe.addListener(n,"error",PTe),Qe.addListener(n,"frameError",OTe),Qe.addListener(n,"end",HTe),Qe.addListener(n,"goaway",_Te),Qe.addListener(n,"close",GTe),Qe.addListener(n,"remoteSettings",LTe),n.unref(),t[Eo]=n,e[Eo]=n,Qe.addListener(e,"error",qTe),Qe.addListener(e,"end",JTe),Qe.addListener(e,"close",YTe),e[cT]=!1,e.on("close",VTe),{version:"h2",defaultPipelining:1/0,write(i){return zTe(t,i)},resume(){MTe(t)},destroy(i,o){e[cT]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Lh]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Fh]===!1||Qe.bodyLength(i.body)!==0&&(Qe.isStream(i.body)||Qe.isAsyncIterable(i.body)||Qe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Fh]===!1;return!1}}}function MTe(t){let e=t[ft];e?.destroyed===!1&&(t[bTe]===0?(e.unref(),t[Eo].unref()):(e.ref(),t[Eo].ref()))}function UTe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function LTe(t){if(this[bs][AT]=t.maxConcurrentStreams??this[bs][AT],this[Fh]===!0&&this[kh]===!0&&t.enableConnectProtocol===!1){let e=new fa("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[ft][ws]=e,this[bs][hl](e);return}this[kh]=t.enableConnectProtocol??this[kh],this[Fh]=!0,this[bs][pi]()}function vTe(t){let e=t[lT];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[bs],o=this[bs];if(s!=null){let a=new fa(`HTTP/2: "PING" errored - type ${s.message}`);o[ws]=a,i[hl](a)}else i.emit("ping",n)}}function PTe(t){un(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ft][ws]=t,this[bs][hl](t)}function OTe(t,e,r){if(r===0){let s=new fa(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ft][ws]=s,this[bs][hl](s)}}function HTe(){let t=new Uh("other side closed",Qe.getSocketInfo(this[ft]));this.destroy(t),Qe.destroy(this[ft],t)}function xh(t,e,r=!1){let s=t[Rh],n=t[mi];if(n<t[qA]&&s[n]===e){s[n]=null,t[mi]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[qA]||(s.splice(i,1),t[qA]--,r&&t[qA]<t[mi]&&(t[qA]=t[mi]))}function _Te(t){let e=this[ws]||new Uh(`HTTP/2: "GOAWAY" frame received with code ${t}`,Qe.getSocketInfo(this[ft])),r=this[bs];if(r[ft]=null,r[uT]=null,this.close(),this[Eo]=null,Qe.destroy(this[ft],e),r[mi]<r[Rh].length){let s=r[Rh][r[mi]];r[Rh][r[mi]++]=null,s!=null&&Qe.errorRequest(r,s,e),r[qA]=r[mi]}un(r[Lh]===0),r.emit("disconnect",r[Mh],[r],e),r.emit("connectionError",r[Mh],[r],e),r[pi]()}function GTe(){let{[bs]:t,[lT]:e}=this,{[ft]:r}=t,s=this[ft][ws]||this[ws]||new Uh("closed",Qe.getSocketInfo(r));if(t[ft]=null,t[uT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){un(t[ITe]===0);let n=t[Rh].splice(t[mi]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Qe.errorRequest(t,o,s)}}}function YTe(){let t=this[ws]||new Uh("closed",Qe.getSocketInfo(this)),e=this[Eo][bs];e[ft]=null,e[uT]=null,this[Eo]!==null&&this[Eo].destro Line truncated
`;VY.sendHeaders.publish({request:e,headers:O,socket:n[ft]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[TTe]="100-continue",m=n.request(f,{endStream:F,signal:u}),m[nC]=!0,m.once("continue",Y)):(m=n.request(f,{endStream:F,signal:u}),m[nC]=!0,Y()),++n[cn],m.setTimeout(r);let L=!1;return m.once("response",O=>{let{[iT]:v,...de}=O;if(e.onResponseStarted(),L=!0,m.setTimeout(s),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(v),oT(de),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",Ce=>{e.aborted||e.completed||e.onData(Ce)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),L?(!e.aborted&&!e.completed&&e.onComplete({}),xh(t,e),t[pi]()):(b(new fa("HTTP/2: stream half-closed (remote)")),xh(t,e,!0),t[pi]())}),m.once("close",()=>{m.removeAllListeners("data"),n[cn]-=1,n[cn]===0&&n.unref(),!e.aborted&&!e.completed&&b(new fa("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(O){m.removeAllListeners("data"),b(O)}),m.once("frameError",(O,v)=>{m.removeAllListeners("data"),b(new fa(`HTTP/2: "frameError" received - type ${O}, code ${v}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let O=L?new CTe(`HTTP/2: "body timeout after ${s}"`):new ETe(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),n[cn]-=1,n[cn]===0&&n.unref(),b(O)}),m.once("trailers",O=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(O))}),!0;function Y(){!h||R===0?XY(b,m,null,t,e,t[ft],R,S):Qe.isBuffer(h)?XY(b,m,h,t,e,t[ft],R,S):Qe.isBlobLike(h)?typeof h.stream=="function"?jY(b,m,h.stream(),t,e,t[ft],R,S):XTe(b,m,h,t,e,t[ft],R,S):Qe.isStream(h)?KTe(b,t[ft],S,m,h,t,e,R):Qe.isIterable(h)?jY(b,m,h,t,e,t[ft],R,S):un(!1)}}function XY(t,e,r,s,n,i,o,a){try{r!=null&&Qe.isBuffer(r)&&(un(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[oC]=!0),n.onRequestSent(),s[pi]()}catch(A){t(A)}}function KTe(t,e,r,s,n,i,o,a){un(a!==0||i[Lh]===0,"stream body cannot be pipelined");let A=fTe(n,s,u=>{u?(Qe.destroy(A,u),t(u)):(Qe.removeAllListeners(A),o.onRequestSent(),r||(e[oC]=!0),i[pi]())});Qe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function XTe(t,e,r,s,n,i,o,a){un(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new aT;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[oC]=!0),s[pi]()}catch(A){t(A)}}async function jY(t,e,r,s,n,i,o,a){un(o!==0||s[Lh]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,g)=>{un(A===null),i[ws]?g(i[ws]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ws])throw i[ws];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[oC]=!0),s[pi]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}ZY.exports=FTe});var Ca=p((Jet,aq)=>{"use strict";var Co=w("node:assert"),sq=w("node:net"),vh=w("node:http"),JA=me(),{ClientStats:jTe}=nD(),{channels:fl}=la(),ZTe=pG(),$Te=UA(),{InvalidArgumentError:ot,InformationalError:e2e,ClientDestroyedError:t2e}=le(),r2e=LA(),{kUrl:Ei,kServerName:Ea,kClient:s2e,kBusy:gT,kConnect:n2e,kResuming:VA,kRunning:_h,kPending:Gh,kSize:Ph,kQueue:Jn,kConnected:i2e,kConnecting:ml,kNeedDrain:pa,kKeepAliveDefaultTimeout:eq,kHostHeader:o2e,kPendingIdx:Vn,kRunningIdx:Bo,kError:a2e,kPipelining:aC,kKeepAliveTimeoutValue:A2e,kMaxHeadersSize:c2e,kKeepAliveMaxTimeout:u2e,kKeepAliveTimeoutThreshold:l2e,kHeadersTimeout:d2e,kBodyTimeout:g2e,kStrictContentLength:h2e,kConnector:Oh,kMaxRequests:hT,kCounter:f2e,kClose:m2e,kDestroy:p2e,kDispatch:E2e,kLocalAddress:Hh,kMaxResponseSize:C2e,kOnError:I2e,kHTTPContext:Dt,kMaxConcurrentStreams:B2e,kHTTP2InitialWindowSize:Q2e,kHTTP2ConnectionWindowSize:y2e,kResume:Io,kPingInterval:b2e}=Ye(),w2e=qY(),N2e=$Y(),ma=Symbol("kClosedResolve"),S2e=vh&&vh.maxHeaderSize&&Number.isInteger(vh.maxHeaderSize)&&vh.maxHeaderSize>0?()=>vh.maxHeaderSize:()=>{throw new ot("http module not available or http.maxHeaderSize invalid")},tq=()=>{};function nq(t){return t[aC]??t[Dt]?.defaultPipelining??1}var fT=class extends $Te{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:B,strictContentLength:E,maxCachedSessions:b,connect:S,maxRequestsPerClient:R,localAddress:F,maxResponseSize:L,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:v,allowH2:de,useH2c:Ce,initialWindowSize:ce,connectionWindowSize:ae,pingInterval:Ie,webSocket:gt}={}){if(c!==void 0)throw new ot("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new ot("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new ot("unsupported requestTimeout, use headersTimeout & bodyTimeo Line truncated
`,this[g2e]=a??3e5,this[d2e]=s??3e5,this[h2e]=E??!0,this[hT]=R,this[ma]=null,this[C2e]=L>-1?L:-1,this[Dt]=null,this[B2e]=v??100,this[Q2e]=ce??262144,this[y2e]=ae??524288,this[b2e]=Ie??6e4,this[Jn]=[],this[Bo]=0,this[Vn]=0,this[Io]=mt=>mT(this,mt),this[I2e]=mt=>iq(this,mt)}get pipelining(){return this[aC]}set pipelining(e){this[aC]=e,this[Io](!0)}get stats(){return new jTe(this)}get[Gh](){return this[Jn].length-this[Vn]}get[_h](){return this[Vn]-this[Bo]}get[Ph](){return this[Jn].length-this[Bo]}get[i2e](){return!!this[Dt]&&!this[ml]&&!this[Dt].destroyed}get[gT](){return!!(this[Dt]?.busy(null)||this[Ph]>=(nq(this)||1)||this[Gh]>0)}[n2e](e){oq(this),this.once("connect",e)}[E2e](e,r){let s=new ZTe(this[Ei].origin,e,r);return this[Jn].push(s),this[VA]||(JA.bodyLength(s.body)==null&&JA.isIterable(s.body)?(this[VA]=1,queueMicrotask(()=>mT(this))):this[Io](!0)),this[VA]&&this[pa]!==2&&this[gT]&&(this[pa]=2),this[pa]<2}[m2e](){return new Promise(e=>{this[Ph]?this[ma]=e:e(null)})}[p2e](e){return new Promise(r=>{let s=this[Jn].splice(this[Vn]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&JA.errorRequest(this,o,e)}let n=()=>{this[ma]&&(this[ma](),this[ma]=null),r(null)};this[Dt]?(this[Dt].destroy(e,n),this[Dt]=null):queueMicrotask(n),this[Io]()})}};function iq(t,e){if(t[_h]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Co(t[Vn]===t[Bo]);let r=t[Jn].splice(t[Bo]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&JA.errorRequest(t,n,e)}Co(t[Ph]===0)}}function oq(t){Co(!t[ml]),Co(!t[Dt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ei];if(r[0]==="["){let i=r.indexOf("]");Co(i!==-1);let o=r.substring(1,i);Co(sq.isIPv6(o)),r=o}t[ml]=!0,fl.beforeConnect.hasSubscribers&&fl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh]});try{t[Oh]({host:e,hostname:r,protocol:s,port:n,servername:t[Ea],localAddress:t[Hh]},(i,o)=>{if(i){dT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Io]();return}if(t.destroyed){JA.destroy(o.on("error",tq),new t2e),t[Io]();return}Co(o);try{t[Dt]=o.alpnProtocol==="h2"?N2e(t,o):w2e(t,o)}catch(a){o.destroy().on("error",tq),dT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Io]();return}t[ml]=!1,o[f2e]=0,o[hT]=t[hT],o[s2e]=t,o[a2e]=null,fl.connected.hasSubscribers&&fl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh],socket:o}),t.emit("connect",t[Ei],[t]),t[Io]()})}catch(i){dT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Io]()}}function dT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ml]=!1,fl.connectError.hasSubscribers&&fl.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Co(t[_h]===0);t[Gh]>0&&t[Jn][t[Vn]].servername===t[Ea];){let o=t[Jn][t[Vn]++];JA.errorRequest(t,o,e)}else iq(t,e);t.emit("connectionError",t[Ei],[t],e)}}function rq(t){t[pa]=0,t.emit("drain",t[Ei],[t])}function mT(t,e){t[VA]!==2&&(t[VA]=2,D2e(t,e),t[VA]=0,t[Bo]>256&&(t[Jn].splice(0,t[Bo]),t[Vn]-=t[Bo],t[Bo]=0))}function D2e(t,e){for(;;){if(t.destroyed){Co(t[Gh]===0);return}if(t[ma]&&!t[Ph]){t[ma](),t[ma]=null;return}if(t[Dt]&&t[Dt].resume(),t[gT])t[pa]=2;else if(t[pa]===2){e?(t[pa]=1,queueMicrotask(()=>rq(t))):rq(t);continue}if(t[Gh]===0||t[_h]>=(nq(t)||1))return;let r=t[Jn][t[Vn]];if(r===null)return;if(t[Ei].protocol==="https:"&&t[Ea]!==r.servername){if(t[_h]>0)return;t[Ea]=r.servername,t[Dt]?.destroy(new e2e("servername changed"),()=>{t[Dt]=null,mT(t)})}if(t[ml])return;if(!t[Dt]){oq(t);return}if(t[Dt].destroyed||t[Dt].busy(r))return;!r.aborted&&t[Dt].write(r)?t[Vn]++:t[Jn].splice(t[Vn],1)}}aq.exports=fT});var pT=p((Wet,Aq)=>{"use strict";var AC=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Aq.exports=class{constructor(){this.head=this.tail=new AC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var cC=p((zet,pq)=>{"use strict";var{PoolStats:T2e}=nD(),x2e=UA(),R2e=pT(),{kConnected:ET,kSize:cq,kRunning:uq,kPending:lq,kQueued:Yh,kBusy:k2e,kFree:F2e,kUrl:M2e,kClose:U2e,kDestroy:L2e,kDispatch:v2e}=Ye(),Zt=Symbol("clients"),xr=Symbol("needDrain"),qh=Symbol("queue"),CT=Symbol("closed resolve"),IT=Symbol("onDrain"),dq=Symbol("onConnect"),gq=Symbol("onDisconnect"),hq=Symbol("onConnectionError"),BT=Symbol("get dispatcher"),fq=Symbol("add client"),mq=Symbol("remove client"),QT=class extends x2e{[qh]=new R2e;[Yh]=0;[Zt]=[];[xr] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var{InvalidArgumentError:DCt}=ut(),{runtimeFeatures:NCt}=Tl();function RCt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:A=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(n=>s?n:n.toLowerCase())),exclude:new Set(r.map(n=>s?n:n.toLowerCase())),match:new Set(A.map(n=>s?n:n.toLowerCase()))}}var e0e=NCt.has("crypto")?I("node:crypto"):null,SCt=e0e?.hash?t=>e0e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function r0e(t){return Array.isArray(t)&&(t.length&1)===0}function TCt(t=[]){return t.length===0?()=>!1:function(r){let A;for(let s of t)if(typeof s=="string"){if(A||(A=r.toLowerCase()),A.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function kCt(t){let e={};if(!t)return e;if(r0e(t)){for(let r=0;r<t.length;r+=2){let A=t[r],s=t[r+1];if(A&&s!==void 0){let n=Buffer.isBuffer(A)?A.toString():A,i=Buffer.isBuffer(s)?s.toString():s;e[n.toLowerCase()]=i}}return e}if(t&&typeof t=="object")for(let[r,A]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(A)?A.join(", "):String(A));return e}var t0e=["record","playback","update"];function FCt(t){if(!t0e.includes(t))throw new DCt(`Invalid snapshot mode: ${t}. Must be one of: ${t0e.join(", ")}`)}A0e.exports={createHeaderFilters:RCt,hashId:SCt,isUndiciHeaders:r0e,normalizeHeaders:kCt,isUrlExcludedFactory:TCt,validateSnapshotMode:FCt}});var g0e=E((sIr,l0e)=>{"use strict";var{writeFile:xCt,readFile:UCt,mkdir:MCt}=I("node:fs/promises"),{dirname:LCt,resolve:s0e}=I("node:path"),{setTimeout:vCt,clearTimeout:n0e}=I("node:timers"),{InvalidArgumentError:i0e,UndiciError:_Ct}=ut(),{hashId:PCt,isUrlExcludedFactory:OCt,normalizeHeaders:o0e,createHeaderFilters:a0e}=l9();function Mb(t,e,r={}){let A=new URL(t.path,t.origin),s=t._normalizedHeaders||o0e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?A.toString():`${A.origin}${A.pathname}`,headers:c0e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function c0e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{ignore:n,exclude:i,match:o}=e;for(let[a,c]of Object.entries(t)){let u=A?a:a.toLowerCase();i.has(u)||n.has(u)||o.size!==0&&!o.has(u)||(s[u]=c)}return s}function u0e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{exclude:n}=e;for(let[i,o]of Object.entries(t)){let a=A?i:i.toLowerCase();n.has(a)||(s[a]=o)}return s}function Lb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let A=Object.keys(t.headers).sort();for(let s of A){let n=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let i of n.sort())e.push(String(i))}}e.push(t.body);let r=e.join("|");return PCt(r)}var g9=class{#e;#t;#r=new Map;#A;#s=1/0;#n=!1;#o;constructor(e={}){this.#A=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#o=a0e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=OCt(e.excludeUrls),this.#n&&this.#A&&this.#i()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let A=Mb(e,this.#o,this.matchOptions),s=Lb(A),n=o0e(r.headers),i={statusCode:r.statusCode,headers:u0e(n,this.#o,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#s&&!this.#r.has(s)){let a=this.#r.keys().next().value;this.#r.delete(a)}let o=this.#r.get(s);o&&o.responses?(o.responses.push(i),o.timestamp=new Date().toISOString()):this.#r.set(s,{request:A,responses:[i],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#A&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Mb(e,this.#o,this.matchOptions),A=Lb(r),s=this.#r.get(A);if(!s)return;let n=s.callCount||0,i=Math.min(n,s.responses.length-1);return s.callCount=n+1,{...s,response:s.responses[i]}}async loadSnapshots(e){let r=e||this.#A;if(!r)throw new i0e("Snapshot path is required");try{let A=await UCt(s0e(r),"utf8"),s=JSON.parse(A);if(Array.isArray(s)){this.#r.clear();for(let{hash:n,snapshot:i}of s)this.#r.set(n,i)}else this.#r=new Map(Object.entries(s))}catch(A){if(A.code==="ENOENT")this.#r.clear();else throw new _Ct(`Failed to load snapshots from ${r}`,{cause:A})}}async saveSnapshots(e){let r=e||this.#A;if(!r)throw new i0e("Snapshot path is required");let A=s0e(r);await MCt(LCt(A),{recursive:!0});let s=Array.from(this.#r.entries()).map(([n,i])=>({hash:n,snapshot:i}));await xCt(A,JSON.s Line truncated
${e.format(r)}`.trim())}};GV.exports=H2});var G2=p((wtt,VV)=>{"use strict";var{InvalidArgumentError:Fke}=le(),{runtimeFeatures:Mke}=fo();function Uke(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var YV=Mke.has("crypto")?w("node:crypto"):null,Lke=YV?.hash?t=>YV.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function JV(t){return Array.isArray(t)&&(t.length&1)===0}function vke(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function Pke(t){let e={};if(!t)return e;if(JV(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var qV=["record","playback","update"];function Oke(t){if(!qV.includes(t))throw new Fke(`Invalid snapshot mode: ${t}. Must be one of: ${qV.join(", ")}`)}VV.exports={createHeaderFilters:Uke,hashId:Lke,isUndiciHeaders:JV,normalizeHeaders:Pke,isUrlExcludedFactory:vke,validateSnapshotMode:Oke}});var t7=p((Ntt,e7)=>{"use strict";var{writeFile:Hke,readFile:_ke,mkdir:Gke}=w("node:fs/promises"),{dirname:Yke,resolve:WV}=w("node:path"),{setTimeout:qke,clearTimeout:zV}=w("node:timers"),{InvalidArgumentError:KV,UndiciError:Jke}=le(),{hashId:Vke,isUrlExcludedFactory:Wke,normalizeHeaders:XV,createHeaderFilters:jV}=G2();function sf(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||XV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:ZV(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ZV(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function $V(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function nf(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Vke(r)}var Y2=class{#e;#t;#r=new Map;#n;#i=1/0;#s=!1;#a;constructor(e={}){this.#n=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=jV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Wke(e.excludeUrls),this.#s&&this.#n&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=sf(e,this.#a,this.matchOptions),n=nf(s),i=XV(r.headers),o={statusCode:r.statusCode,headers:$V(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#n&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=sf(e,this.#a,this.matchOptions),s=nf(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#n;if(!r)throw new KV("Snapshot path is required");try{let s=await _ke(WV(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new Jke(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#n;if(!r)throw new KV("Snapshot path is required");let s=WV(r);await Gke(Yke(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Hke(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Yi} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Ss} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -117,9 +117,9 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Yi}_getValuesQuery ON cacheInterceptorV${Yi}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Yi}_deleteByUrlQuery ON cacheInterceptorV${Yi}(deleteAt);
`),this.#A=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Ss}_getValuesQuery ON cacheInterceptorV${Ss}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Ss}_deleteByUrlQuery ON cacheInterceptorV${Ss}(deleteAt);
`),this.#n=this.#r.prepare(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Yi}
FROM cacheInterceptorV${Ss}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Yi} SET
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${Ss} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -151,8 +151,8 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Yi} (
`),this.#s=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Ss} (
url,
method,
body,
@@ -166,214 +166,83 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#i=this.#r.prepare(`DELETE FROM cacheInterceptorV${Yi} WHERE url = ?`),this.#a=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Yi}`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Yi} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Yi}
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Ss} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Ss}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${Ss} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Ss}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Yi}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Ss}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){U9(e);let r=this.#g(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){U9(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,i.id):(this.#u(),this.#n.run(A,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){U9(e),QIt(r);let A=0,s=[],n=this;return new IIt({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#l(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!pIt(s[l],u[l])){c=!1;break}}if(c)return a}}};function pIt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,A)=>r===e[A]):t===e}});var PE=E((DIr,Cpe)=>{"use strict";var{kConstruct:mIt}=Er(),{kEnumerableProperty:gI}=ot(),{iteratorMixin:yIt,isValidHeaderName:Ob,isValidHeaderValue:gpe}=_i(),{webidl:Lt}=Fs(),L9=I("node:assert"),Jk=I("node:util");function lpe(t){return t===10||t===13||t===9||t===32}function dpe(t){let e=0,r=t.length;for(;r>e&&lpe(t.charCodeAt(r-1));)--r;for(;r>e&&lpe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function hpe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Lt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});v9(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)v9(t,r[A],e[r[A]])}else throw Lt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function v9(t,e,r){if(r=dpe(r),Ob(e)){if(!gpe(r))throw Lt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Lt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(fpe(t)==="immutable")throw new TypeError("immutable");return Wk(t).append(e,r,!1)}function bIt(t){let e=Wk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function Epe(t,e){return t[0]<e[0]?-1:1}var Vk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${n}`;break;case"retry":yye(n)&&(r[s]=n);break;case"id":bye(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&yye(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bye(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,event:void 0,id:void 0,retry:void 0}}};wye.exports={EventSourceStream:IJ}});var Uye=E((XIr,xye)=>{"use strict";var{pipeline:Omt}=I("node:stream"),{fetching:Hmt}=Jb(),{makeRequest:Gmt}=hI(),{webidl:In}=Fs(),{EventSourceStream:Ymt}=Dye(),{parseMIMEType:qmt}=Vo(),{createFastMessageEvent:Jmt}=B2(),{isNetworkError:Nye}=Gb(),{kEnumerableProperty:WE}=ot(),{environmentSettingsObject:Rye}=_i(),Sye=!1,Tye=3e3,Xb=0,kye=1,Zb=2,Vmt="anonymous",Wmt="use-credentials",bI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=Xb;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),In.util.markAsUncloneable(this);let A="EventSource constructor";In.argumentLengthCheck(arguments,1,A),Sye||(Sye=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=In.converters.USVString(e),r=In.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Rye,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Vmt;r.withCredentials===!0&&(i=Wmt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Rye.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=Gmt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===Zb)return;this.#A=Xb;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Nye(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Nye(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?qmt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=kye,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new Ymt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(Jmt(a.type,a.options))}});Omt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Hmt(e)}#c(){this.#A!==Zb&&(this.#A=Xb,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===Xb&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){In.brandCheck(this,t),this.#A!==Zb&&(this.#A=Zb,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fye={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kye,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zb,writable:!1}};Object.defineProperties(bI,Fye);Object.defineProperties(bI.prototype,Fye);Object.defineProperties(bI.prototype,{close:WE,onerror:WE,onmessage:WE,onopen:WE,readyState:WE,url:WE,withCredentials:WE});In.converters.EventSourceInitDict=In.dictionaryConverter([{key:"withCredentials",converter:In.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:In.converters.any},{key:"node",converter:In.dictionaryConverter([{key:"reconnectionTime",converter:In.converters["unsigned long"],defaultValue:()=>Tye},{key:"dispatcher",converter:In.converters.any}]),defaultValue:()=>({})}]);xye.exports={EventSource:bI,defaultReconnectionTime:Tye}});var Oye=E((ZIr,Ee)=>{"use strict";var zmt=Bd(),Lye=Zy(),jmt=ZB(),Kmt=ZBe(),Xmt=rIe(),Zmt=FE(),$mt=h5(),eyt=DIe(),tyt=FIe(),ryt=MIe(),vye=ut(),F2=ot(),{InvalidArgumentError:k2}=vye,wI=fQe(),Ayt=HB(),syt=Z5(),{MockCallHistory:nyt,MockCal Line truncated
`)}close(){this.#r.close()}get(e){Ex(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){Ex(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){Ex(e),jMe(r);let s=0,n=[],i=this;return new XMe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#n.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!ZMe(n[l],u[l])){c=!1;break}}if(c)return A}}};function ZMe(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var dc=p((ztt,wW)=>{"use strict";var{kConstruct:$Me}=Ye(),{kEnumerableProperty:kl}=me(),{iteratorMixin:eUe,isValidHeaderName:uf,isValidHeaderValue:IW}=Qs(),{webidl:Fe}=nr(),Ix=w("node:assert"),_C=w("node:util");function CW(t){return t===10||t===13||t===9||t===32}function BW(t){let e=0,r=t.length;for(;r>e&&CW(t.charCodeAt(r-1));)--r;for(;r>e&&CW(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function QW(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Fe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Bx(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Bx(t,r[s],e[r[s]])}else throw Fe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Bx(t,e,r){if(r=BW(r),uf(e)){if(!IW(r))throw Fe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Fe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(bW(t)==="immutable")throw new TypeError("immutable");return YC(t).append(e,r,!1)}function tUe(t){let e=YC(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function yW(t,e){return t[0]<e[0]?-1:1}var GC=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.val Line truncated
${o}`;return}if(NI(e,n,Q3e)){y3e(e,i)&&(r.retry=e.toString("utf8",i));return}if(NI(e,n,B3e)){b3e(e,i)&&(r.id=e.toString("utf8",i));return}if(NI(e,n,I3e)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&f3e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&m3e(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}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.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;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 s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,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),s=this.peekBufferedByte(2);return r===void 0?(e===ql[0]||(this.checkBOM=!1),!0):s===void 0?e===ql[0]&&r===ql[1]?!0:(this.checkBOM=!1,!1):(e===ql[0]&&r===ql[1]&&s===ql[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};xK.exports={EventSourceStream:aR}});var OK=p((Crt,PK)=>{"use strict";var{pipeline:w3e}=w("node:stream"),{fetching:N3e}=ff(),{makeRequest:S3e}=Ml(),{webidl:kr}=nr(),{EventSourceStream:D3e}=RK(),{parseMIMEType:T3e}=on(),{createFastMessageEvent:x3e}=hI(),{isNetworkError:kK}=df(),{kEnumerableProperty:Ic}=me(),{environmentSettingsObject:FK}=Qs(),MK=!1,UK=3e3,Qf=0,LK=1,yf=2,R3e="anonymous",k3e="use-credentials",Jl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#n=Qf;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),kr.util.markAsUncloneable(this);let s="EventSource constructor";kr.argumentLengthCheck(arguments,1,s),MK||(MK=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=kr.converters.USVString(e),r=kr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=FK,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=R3e;r.withCredentials===!0&&(o=k3e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FK.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=S3e(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===yf)return;this.#n=Qf;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!kK(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(kK(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?T3e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=LK,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new D3e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(x3e(A.type,A.options))}});w3e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=N3e(e)}#c(){this.#n!==yf&&(this.#n=Qf,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#n Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${n}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return fyt(e,r).catch(A=>{throw Mye?Pye(A,Mye):A&&typeof A=="object"&&Error.captureStackTrace(A,Ee.exports.fetch),A})};Ee.exports.Headers=PE().Headers;Ee.exports.Response=Gb().Response;Ee.exports.Request=hI().Request;Ee.exports.FormData=ek().FormData;var{setGlobalOrigin:Cyt,getGlobalOrigin:Byt}=rq();Ee.exports.setGlobalOrigin=Cyt;Ee.exports.getGlobalOrigin=Byt;var{CacheStorage:Iyt}=Qme(),{kConstruct:Qyt}=Er();Ee.exports.caches=new Iyt(Qyt);var{deleteCookie:pyt,getCookies:myt,getSetCookies:yyt,setCookie:byt,parseCookie:wyt}=xme();Ee.exports.deleteCookie=pyt;Ee.exports.getCookies=myt;Ee.exports.getSetCookies=yyt;Ee.exports.setCookie=byt;Ee.exports.parseCookie=wyt;var{parseMIMEType:Dyt,serializeAMimeType:Nyt}=Vo();Ee.exports.parseMIMEType=Dyt;Ee.exports.serializeAMimeType=Nyt;var{CloseEvent:Ryt,ErrorEvent:Syt,MessageEvent:Tyt}=B2(),{WebSocket:kyt,ping:Fyt}=gye();Ee.exports.WebSocket=kyt;Ee.exports.CloseEvent=Ryt;Ee.exports.ErrorEvent=Syt;Ee.exports.MessageEvent=Tyt;Ee.exports.ping=Fyt;Ee.exports.WebSocketStream=Qye().WebSocketStream;Ee.exports.WebSocketError=hJ().WebSocketError;Ee.exports.request=$b(wI.request);Ee.exports.stream=$b(wI.stream);Ee.exports.pipeline=$b(wI.pipeline);Ee.exports.connect=$b(wI.connect);Ee.exports.upgrade=$b(wI.upgrade);Ee.exports.MockClient=syt;Ee.exports.MockCallHistory=nyt;Ee.exports.MockCallHistoryLog=iyt;Ee.exports.MockPool=ayt;Ee.exports.MockAgent=oyt;Ee.exports.SnapshotAgent=cyt;Ee.exports.mockErrors=uyt;var{EventSource:xyt}=Uye();Ee.exports.EventSource=xyt;function Uyt(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=Uyt});var ew=E(Nd=>{"use strict";Nd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Nd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Nd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Nd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Nd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Nd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Nd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let A=t[e];if(++e,A==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Gye=E((tQr,Hye)=>{"use strict";var{asciiLowercase:x2,solelyContainsHTTPTokenCodePoints:Myt,soleyContainsHTTPQuotedStringTokenCodePoints:Lyt}=ew();Hye.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=x2(String(e)),this._map.get(e)}has(e){return e=x2(String(e)),this._map.has(e)}set(e,r){if(e=x2(String(e)),r=String(r),!Myt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Lyt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=x2(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Jye=E((rQr,qye)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:vyt,removeTrailingHTTPWhitespace:Yye,isHTTPWhitespaceChar:_yt,solelyContainsHTTPTokenCodePoints:QJ,soleyContainsHTTPQuotedStringTokenCodePoints:Pyt,asciiLowercase:pJ,collectAnHTTPQuotedString:Oyt}=ew();qye.exports=t=>{t=vyt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!QJ(r)||e>=t.length)return null;++e;let A="";for(;e<t.length&&t[e]!==";";)A+=t[e],++e;if(A=Yye(A),A.length===0||!QJ(A))return null;let s={type:pJ(r),subtype:pJ(A),parameters:new Map};for(;e<t.length;){for(++e;_yt(t[e]);)++e;let n="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)n+=t[e],++e;if(n=pJ(n),e<t.length){if(t[e]===";")continue;++e}let i=null;if(t[e]==='"')for([i,e]=Oyt(t,e);e<t.length&&t[e]!==";";)++e;else{for(i="";e<t.length&&t[e]!==";";)i+=t[e],++e;if(i=Yye(i),i==="")continue}n.length>0&&QJ(n)&&Pyt(i)&&!s.parameters.has(n)&&s.parameters.set(n,i)}return s}});var Wye=E((AQr,Vye)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Hyt}=ew();Vye.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,A]of t.parameters)e+=";",e+=r,e+="=",(!Hyt(A)||A.length===0)&&(A=A.replace(/(["\\])/ug,"\\$1"),A=`"${A}"`),e+=A;return e}});var Xye=E((nQr,Kye)=>{"use strict";var Gyt=Gye(),Yyt=Jye(),qyt=Wye(),{asciiLowercase:zye,solelyContainsHTTPTokenCodePoints:jye}=ew();Kye.exports=class{constructor(e){e=String(e);let r=Yyt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Gyt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=zye(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!jye(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=zye(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!jye(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return qyt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var obe=E(v2=>{"use strict";Object.defineProperty(v2,"__esModule",{value:!0});v2.getProxyUrl=ibt;v2.checkBypass=ibe;function ibt(t){let e=t.protocol==="https:";if(ibe(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 L2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new L2(`http://${r}`)}else return}function ibe(t){if(!t.hostname)return!1;let e=t.hostname;if(obt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let A;t.port?A=Number(t.port):t.protocol==="http:"?A=80:t.protocol==="https:Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function yDt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(oDt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function bDt(){return"allowed"}function wDt(){return"success"}function DDt(){return"success"}function NDt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function RDt(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&&B6(t.origin)&&!B6(cw(t))&&(e=null);break;case"same-origin":sF(t,cw(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function LI(t,e){return t}function SDt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:LI(t.domainLookupStartTime,r),domainLookupEndTime:LI(t.domainLookupEndTime,r),connectionStartTime:LI(t.connectionStartTime,r),connectionEndTime:LI(t.connectionEndTime,r),secureConnectionStartTime:LI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function TDt(t){return LI(gDt.now(),t)}function kDt(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}}function Wwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function FDt(t){return{referrerPolicy:t.referrerPolicy}}function xDt(t){let e=t.referrerPolicy;XE(e);let r=null;if(t.referrer==="client"){let o=Hwe();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=C6(r),s=C6(r,!0);A.toString().length>4096&&(A=s);let n=sF(t,A),i=aw(A)&&!aw(t.url);switch(e){case"origin":return s??C6(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=cw(t);return sF(A,o)?A:aw(A)&&!aw(o)?"no-referrer":s}default:return i?"no-referrer":s}}function C6(t,e){return XE(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)}function aw(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function UDt(t,e){if(AF===void 0)return!0;let r=zwe(e);if(r==="no metadata"||r.length===0)return!0;let A=LDt(r),s=vDt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=AF.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),_Dt(a,o))return!0}return!1}var MDt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zwe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=MDt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Ywe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function LDt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function vDt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function _Dt(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}function PDt(t){}function sF(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ODt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function HDt(t){return t.controller.state==="aborted"}function GDt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YDt(t){return EDt[t.toLowerCase()]??t}function qDt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return XE(typeof e=="string"),e}var JDt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jwe(t,e,r=0,A=1){class s{ Line truncated
`);function pNt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function mNt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function yNt(t,e){iF(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&oF(t,INt,n)||n.position===t.length-4&&oF(t,QNt,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=bNt(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let h=t.indexOf(A.subarray(2),n.position);if(h===-1)return"failure";g=t.subarray(n.position,h-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",pNt(u)||(u=""),d=new CNt([g],c,{type:u})):d=gNt(Buffer.from(g)),iF(oDe(a)),iF(typeof d=="string"&&oDe(d)||hNt(d)),s.push(ENt(a,d,c))}}function bNt(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=_I(o=>o!==10&&o!==13&&o!==58,t,e);if(i=w6(i,!0,!0,o=>o===9||o===32),!dNt.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,_I(o=>o===32||o===9,t,e),lNt(i)){case"content-disposition":{if(r=A=null,!oF(t,BNt,e)||(e.position+=17,r=uDe(t,e),r===null))return"failure";if(oF(t,cDe,e)){let o=e.position+cDe.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=uDe(t,e),A===null))return"failure"}break}case"content-type":{let o=_I(a=>a!==10&&a!==13,t,e);o=w6(o,!1,!0,a=>a===9||a===32),s=aDe(o);break}case"content-transfer-encoding":{let o=_I(a=>a!==10&&a!==13,t,e);o=w6(o,!1,!0,a=>a===9||a===32),n=aDe(o);break}default:_I(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function uDe(t,e){iF(t[e.position-1]===34);let r=_I(A=>A!==10&&A!==13&&A!==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)}function _I(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function w6(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function oF(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}lDe.exports={multipartFormDataParser:yNt,validateBoundary:mNt}});var HI=E((jQr,mDe)=>{"use strict";var gw=pt(),{ReadableStreamFrom:wNt,isBlobLike:dDe,isReadableStreamLike:DNt,readableStreamClose:NNt,createDeferredPromise:RNt,fullyReadBody:SNt,extractMimeType:TNt,utf8DecodeBytes:fDe}=zi(),{FormData:hDe}=lw(),{kState:OI}=Rd(),{webidl:kNt}=Us(),{Blob:FNt}=I("node:buffer"),D6=I("node:assert"),{isErrored:CDe,isDisturbed:xNt}=I("node:stream"),{isArrayBuffer:UNt}=I("node:util/types"),{serializeAMimeType:MNt}=Xn(),{multipartFormDataParser:LNt}=gDe(),N6;try{let t=I("node:crypto");N6=e=>t.randomInt(0,e)}catch{N6=t=>Math.floor(Math.random(t))}var aF=new TextEncoder;function vNt(){}var BDe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,IDe;BDe&&(IDe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!xNt(e)&&!CDe(e)&&e.cancel("Response object has been garbage collected").catch(vNt)}));function QDe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:dDe(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?aF.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>NNt(a))},start(){},type:"bytes"}),D6(DNt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(UNt(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(gw.isFormDataLike(t)){let a=`----formdata-undici-0${`${N6(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=aF.encode(c+`; name="${u(l(Q))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=aF.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=aF.encode(`--${a}--\r
`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(dDe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:wNt(t)}if((typeof s=="string"||gw.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!CDe(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:r,source:s,length:n},i]}function _Nt(t,e=!1){return t instanceof ReadableStream&&(D6(!gw.isDisturbed(t),"The body has already been consumed."),D6(!t.locked,"The stream is locked.")),QDe(t,e)}function PNt(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function ONt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function HNt(t){return{blob(){return PI(this,r=>{let A=EDe(this);return A===null?A="":A&&(A=MNt(A)),new FNt([r],{type:A})},t)},arrayBuffer(){return PI(this,r=>new Uint8Array(r).buffer,t)},text(){return PI(this,fDe,t)},json(){return PI(this,YNt,t)},formData(){return PI(this,r=>{let A=EDe(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=LNt(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new hDe;return n[OI]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new hDe;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return PI(this,r=>new Uint8Array(r),t)}}}function GNt(t){Object.assign(t.prototype,HNt(t))}async function PI(t,e,r){if(kNt.brandCheck(t,r),pDe(t))throw new TypeError("Body is unusable: Body has already been read");ONt(t[OI]);let A=RNt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[OI].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await SNt(t[OI].body,n,s),A.promise)}function pDe(t){let e=t[OI].body;return e!=null&&(e.stream.locked||gw.isDisturbed(e.stream))}function YNt(t){return JSON.parse(fDe(t))}function EDe(t){let e=t[OI].headersList,r=TNt(e);return r==="failure"?null:r}mDe.exports={extractBody:QDe,safelyExtractBody:_Nt,cloneBody:PNt,mixinBody:GNt,streamRegistry:IDe,hasFinalizationRegistry:BDe,bodyUnusable:pDe}});var xDe=E((KQr,FDe)=>{"use strict";var We=I("node:assert"),nt=pt(),{channels:yDe}=RI(),R6=c6(),{RequestContentLengthMismatchError:ZE,ResponseContentLengthMismatchError:qNt,RequestAbortedError:SDe,HeadersTimeoutError:JNt,HeadersOverflowError:VNt,SocketError:hF,InformationalError:GI,BodyTimeoutError:WNt,HTTPParserError:zNt,ResponseExceededMaxSizeError:jNt}=jt(),{kUrl:TDe,kReset:Zn,kClient:F6,kParser:fA,kBlocking:Ew,kRunning:Ks,kPending:KNt,kSize:bDe,kWriting:Td,kQueue:cc,kNoRef:dw,kKeepAliveDefaultTimeout:XNt,kHostHeader:ZNt,kPendingIdx:$Nt,kRunningIdx:Aa,kError:sa,kPipelining:gF,kSocket:YI,kKeepAliveTimeoutValue:EF,kMaxHeadersSize:S6,kKeepAliveMaxTimeout:eRt,kKeepAliveTimeoutThreshold:tRt,kHeadersTimeout:rRt,kBodyTimeout:ARt,kStrictContentLength:x6,kMaxRequests:wDe,kCounter:sRt,kMaxResponseSize:nRt,kOnError:iRt,kResume:Sd,kHTTPContext:kDe}=Wr(),du=Iwe(),oRt=Buffer.alloc(0),cF=Buffer[Symbol.species],uF=nt.addListener,aRt=nt.removeAllListeners,T6;async function cRt(){let t=process.env.JEST_WORKER_ID?g6():void 0,e;try{e=await WebAssembly.compile(mwe())}catch{e=await WebAssembly.compile(t||g6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onStatus(new cF(hu.buffer,n,s))||0},wasm_on_message_begin:r=>(We(rs.ptr===r),rs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onHeaderField(new cF(hu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onHeaderValue(new cF(hu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(We(rs.ptr===r),rs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onBody(new cF(hu.buffer,n,s))||0},wasm_on_message_complete:r=>(We(rs.ptr===r),rs.onMessageComplete()||0)}})}var k6=null,U6=cRt();U6.catch();var rs=null,hu=null,lF=0,Eu=null,uRt=0,hw=1,qI=2|hw,dF=4|hw,M6=8|uRt,L6=class{constructor(e,r,{exports:A}){We(Number.isFinite(e[S6])&&e[S6]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(du.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[ZNt],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[gF]&&!d[Zn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return yDe.sendHeaders.hasSubscribers&&yDe.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?NDe(h,null,t,e,d,u,B,l):nt.isBuffer(a)?NDe(h,a,t,e,d,u,B,l):nt.isBlobLike(a)?typeof a.stream=="function"?RDe(h,a.stream(),t,e,d,u,B,l):fRt(h,a,t,e,d,u,B,l):nt.isStream(a)?ERt(h,a,t,e,d,u,B,l):nt.isIterable(a)?RDe(h,a,t,e,d,u,B,l):We(!1),!0}function ERt(t,e,r,A,s,n,i,o){We(n!==0||r[Ks]===0,"stream body cannot be pipelined");let a=!1,c=new fF({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){nt.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new SDe;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,We(s.destroyed||s[Td]&&r[Ks]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?nt.destroy(e,h):nt.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function NDe(t,e,r,A,s,n,i,o){try{e?nt.isBuffer(e)&&(We(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Zn]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(We(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[Sd]()}catch(a){t(a)}}async function fRt(t,e,r,A,s,n,i,o){We(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new ZE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Zn]=!0),r[Sd]()}catch(a){t(a)}}async function RDe(t,e,r,A,s,n,i,o){We(n!==0||r[Ks]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{We(a===null),s[sa]?d(s[sa]):a=g});s.on("close",c).on("drain",c);let l=new fF({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[sa])throw s[sa];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var fF=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[Td]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[x6])throw new ZE;process.emitWarning(new ZE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Zn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[fA].timeout&&r[fA].timeoutType===qI&&r[fA].timeout.refresh&&r[fA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[Td]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[x6])throw new ZE;process.emitWarning(new ZE)}e[fA].timeout&&e[fA].timeoutType===qI&&e[fA].timeout.refresh&&e[fA].timeout.refresh(),A[Sd]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[Td]=!1,e&&(We(A[Ks]<=1,"pipeline should only contain this request"),s(e))}};FDe.exports=lRt});var HDe=E((XQr,ODe)=>{"use strict";var na=I("node:assert"),{pipeline:CRt}=I("node:stream"),Rt=pt(),{RequestContentLengthMismatchError:v6,RequestAbortedError:UDe,SocketError:fw,InformationalError:_6}=jt(),{kUrl:CF,kReset:IF,kClient:JI,kRunning:QF,kPending:BRt,kQueue:kd,kPendingIdx:P6,kRunningIdx:uc,kError:gc,kSocket:Bs,kStrictContentLength:IRt,kOnError:O6,kMaxConcurrentStreams:PDe,kHTTP2Session:lc,kResume:Fd,kSize:QRt,kHTTPContext:pRt}=Wr(),ql=Symbol("open streams"),MDe,LDe=!1,BF;try{BF=I("node:http2")}catch{BF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:mRt,HTTP2_HEADER_METHOD:yRt,HTTP2_HEADER_PATH:bRt,HTTP2_HEADER_SCHEME:wRt,HTTP2_HEADER_CONTENT_LENGTH:DRt,HTTP2_HEADER_EXPECT:NRt,HTTP2_HEADER_STATUS:RRt}}=BF;function SRt(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function TRt(t,e){t[Bs]=e,LDe||(LDe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=BF.connect(t[CF],{createConnection:()=>e,peerMaxConcurrentStreams:t[PDe]});r[ql]=0,r[JI]=t,r[Bs]=e,Rt.addListener(r,"error",FRt),Rt.addListener(r,"frameError",xRt),Rt.addListener(r,"end",URt),Rt.addListener(r,"goaway",MRt),Rt.addListener(r,"close",function(){let{[JI]:s}=this,{[Bs]:n}=s,i=this[Bs][gc]||this[gc]||new fw("closed",Rt.getSocketInfo(n));if(s[lc]=null,s.destroyed){na(s[BRt]===0);let o=s[kd].splice(s[uc]);for(let a=0;a<o.length;a++){let c=o[a];Rt.errorRequest(s,c,i)}}}),r.unref(),t[lc]=r,e[lc]=r,Rt.addListener(e,"error",function(s){na(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gc]=s,this[JI][O6](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new fw("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[gc]||new fw("closed",Rt.getSocketInfo(this));t[Bs]=null,this[lc]!=null&&this[lc].destroy(s),t[P6]=t[uc],na(t[QF]===0),t.emit("disconnect",t[CF],[t],s),t[Fd]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return vRt(t,...s)},resume(){kRt(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function kRt(t){let e=t[Bs];e?.destroyed===!1&&(t[QRt]===0&&t[PDe]===0?(e.unref(),t[lc].unref()):(e.ref(),t[lc].ref()))}function FRt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bs][gc]=t,this[JI][O6](t)}function xRt(t,e,r){if(r===0){let A=new _6(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bs][gc]=A,this[JI][O6](A)}}function URt(){let t=new fw("other side closed",Rt.getSocketInfo(this[Bs]));this.destroy(t),Rt.destroy(this[Bs],t)}function MRt(t){let e=this[gc]||new fw(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[JI];if(r[Bs]=null,r[pRt]=null,this[lc]!=null&&(this[lc].destroy(e),this[lc]=null),Rt.destroy(this[Bs],e),r[uc]<r[kd].length){let A=r[kd][r[uc]];r[kd][r[uc]++]=null,Rt.errorRequest(r,A,e),r[P6]=r[uc]}na(r[QF]===0),r.emit("disconnect",r[CF],[r],e),r[Fd]()}function LRt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function vRt(t,e){let r=t[lc],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:h}=t[CF];l[mRt]=n||`${d}${h?`:${h}`:""}`,l[yRt]=A;let B=k=>{e.aborted||e.completed||(k=k||new UDe,Rt.errorRequest(t,e,k),g!=null&&Rt.destroy(g,k),Rt.destroy(u,k),t[kd][t[uc]++]=null,t[Fd]())};try{e.onConnect(B)}catch(k){Rt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[ql],t[kd][t[uc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[ql],t[kd][t[uc]++]=null}),g.once("close",()=>{r[ql]-=1,r[ql]===0&&r.unref()}),!0;l[bRt]=s,l[wRt]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let C=Rt.bodyLength(u);if(Rt.isFormDataLike(u)){MDe??=HI().extractBody;let[k,J]=MDe(u);l["content-type"]=J,u=k.stream,C=k.length}if(C==null&&(C=e.contentLength),(C===0||!Q)&&(C=null),LRt(A)&&C>0&&e.contentLength!=null&&e.contentLength!==C){if(t[IRt])return Rt.errorRequest(t,e,new v6),!1;process.emitWarning(new v6)}C!=null&&(na(u,"no body must not have content length"),l[DRt]=`${C}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[NRt]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[cSt]=a??3e5,this[aSt]=s??3e5,this[uSt]=p??!0,this[lSt]=k,this[q6]=j,this[Ud]=null,this[fSt]=$>-1?$:-1,this[BSt]=be??100,this[UA]=null,this[dc]=[],this[Vl]=0,this[hc]=0,this[Qw]=le=>V6(this,le),this[CSt]=le=>$De(this,le)}get pipelining(){return this[bF]}set pipelining(e){this[bF]=e,this[Qw](!0)}get[yw](){return this[dc].length-this[hc]}get[mw](){return this[hc]-this[Vl]}get[pw](){return this[dc].length-this[Vl]}get[tSt](){return!!this[UA]&&!this[WI]&&!this[UA].destroyed}get[Y6](){return!!(this[UA]?.busy(null)||this[pw]>=(ZDe(this)||1)||this[yw]>0)}[eSt](e){eNe(this),this.once("connect",e)}[ESt](e,r){let A=e.origin||this[Cu].origin,s=new zRt(A,e,r);return this[dc].push(s),this[ef]||($E.bodyLength(s.body)==null&&$E.isIterable(s.body)?(this[ef]=1,queueMicrotask(()=>V6(this))):this[Qw](!0)),this[ef]&&this[Md]!==2&&this[Y6]&&(this[Md]=2),this[Md]<2}async[dSt](){return new Promise(e=>{this[pw]?this[Ud]=e:e(null)})}async[hSt](e){return new Promise(r=>{let A=this[dc].splice(this[hc]);for(let n=0;n<A.length;n++){let i=A[n];$E.errorRequest(this,i,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[UA]?(this[UA].destroy(e,s),this[UA]=null):queueMicrotask(s),this[Qw]()})}},pSt=yF();function $De(t,e){if(t[mw]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jl(t[hc]===t[Vl]);let r=t[dc].splice(t[Vl]);for(let A=0;A<r.length;A++){let s=r[A];$E.errorRequest(t,s,e)}Jl(t[pw]===0)}}async function eNe(t){Jl(!t[WI]),Jl(!t[UA]);let{host:e,hostname:r,protocol:A,port:s}=t[Cu];if(r[0]==="["){let n=r.indexOf("]");Jl(n!==-1);let i=r.substring(1,n);Jl(XDe.isIP(i)),r=i}t[WI]=!0,VI.beforeConnect.hasSubscribers&&VI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw]});try{let n=await new Promise((i,o)=>{t[Bw]({host:e,hostname:r,protocol:A,port:s,servername:t[xd],localAddress:t[Iw]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){$E.destroy(n.on("error",jDe),new XRt);return}Jl(n);try{t[UA]=n.alpnProtocol==="h2"?await QSt(t,n):await ISt(t,n)}catch(i){throw n.destroy().on("error",jDe),i}t[WI]=!1,n[gSt]=0,n[q6]=t[q6],n[$Rt]=t,n[ASt]=null,VI.connected.hasSubscribers&&VI.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw],socket:n}),t.emit("connect",t[Cu],[t])}catch(n){if(t.destroyed)return;if(t[WI]=!1,VI.connectError.hasSubscribers&&VI.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jl(t[mw]===0);t[yw]>0&&t[dc][t[hc]].servername===t[xd];){let i=t[dc][t[hc]++];$E.errorRequest(t,i,n)}else $De(t,n);t.emit("connectionError",t[Cu],[t],n)}t[Qw]()}function KDe(t){t[Md]=0,t.emit("drain",t[Cu],[t])}function V6(t,e){t[ef]!==2&&(t[ef]=2,mSt(t,e),t[ef]=0,t[Vl]>256&&(t[dc].splice(0,t[Vl]),t[hc]-=t[Vl],t[Vl]=0))}function mSt(t,e){for(;;){if(t.destroyed){Jl(t[yw]===0);return}if(t[Ud]&&!t[pw]){t[Ud](),t[Ud]=null;return}if(t[UA]&&t[UA].resume(),t[Y6])t[Md]=2;else if(t[Md]===2){e?(t[Md]=1,queueMicrotask(()=>KDe(t))):KDe(t);continue}if(t[yw]===0||t[mw]>=(ZDe(t)||1))return;let r=t[dc][t[hc]];if(t[Cu].protocol==="https:"&&t[xd]!==r.servername){if(t[mw]>0)return;t[xd]=r.servername,t[UA]?.destroy(new KRt("servername changed"),()=>{t[UA]=null,V6(t)})}if(t[WI])return;if(!t[UA]){eNe(t);return}if(t[UA].destroyed||t[UA].busy(r))return;!r.aborted&&t[UA].write(r)?t[hc]++:t[dc].splice(t[hc],1)}}tNe.exports=J6});var W6=E((r0r,rNe)=>{"use strict";var wF=class{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)}};rNe.exports=class{constructor(){this.head=this.tail=new wF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sNe=E((A0r,ANe)=>{var{kFree:ySt,kConnected:bSt,kPending:wSt,kQueued:DSt,kRunning:NSt,kSize:RSt}=Wr(),tf=Symbol("pool"),z6=class{constructor(e){this[tf]=e}get connected(){return this[tf][bSt]}get free(){return this[tf][ySt]}get pending(){return this[tf][wSt]}get queued(){return this[tf][DSt]}get running(){return this[tf][NSt]}get size(){return this[tf][RSt]}};ANe.exports=z6});var eV=E((s0r,hNe)=>{"use strict";var SSt=FI(),TSt=W6(),{kConnected:j6,kSize:nNe,kRunning:iNe,kPending:oNe,kQueued:bw,kBusy:kSt,kFree:FSt,kUrl:xSt,kClose:USt,kDestroy:MSt,kDispatch:LSt}=Wr(),vSt=sNe(),$n=Symbol("clients"),pn=Symbol("needDrain"),ww=Symbol("queue"),K6=Symbol("closed resolve"),X6=Symbol("onDrain"),aNe=Symbol("onConnect"),cNe=Symbol("onDisconnect"),uNe=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};QSe.exports=eW});var YF=E((F0r,wSe)=>{"use strict";var mSe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ckt}=jt(),ukt=KI();bSe()===void 0&&ySe(new ukt);function ySe(t){if(!t||typeof t.dispatch!="function")throw new ckt("Argument agent must implement Agent");Object.defineProperty(globalThis,mSe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function bSe(){return globalThis[mSe]}wSe.exports={setGlobalDispatcher:ySe,getGlobalDispatcher:bSe}});var qF=E((U0r,DSe)=>{"use strict";DSe.exports=class{#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 RSe=E((M0r,NSe)=>{"use strict";var lkt=mF();NSe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new lkt(r,i,s,n);return r(o,a)}}});var TSe=E((L0r,SSe)=>{"use strict";var gkt=xF();SSe.exports=t=>e=>function(A,s){return e(A,new gkt({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var FSe=E((v0r,kSe)=>{"use strict";var dkt=pt(),{InvalidArgumentError:hkt,RequestAbortedError:Ekt}=jt(),fkt=qF(),tW=class extends fkt{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new hkt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=dkt.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new Ekt(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Ckt({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new tW({maxSize:n},s);return e(A,i)}}kSe.exports=Ckt});var MSe=E((_0r,USe)=>{"use strict";var{isIP:Bkt}=I("node:net"),{lookup:Ikt}=I("node:dns"),Qkt=qF(),{InvalidArgumentError:iQ,InformationalError:pkt}=jt(),xSe=Math.pow(2,31)-1,rW=class{#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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={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,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new pkt("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){Ikt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===xSe?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===xSe?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new AW(this,e,r)}},AW=class extends Qkt{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":hke(n)&&(r[s]=n);break;case"id":Eke(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&hke(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Eke(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,event:void 0,id:void 0,retry:void 0}}};fke.exports={EventSourceStream:GW}});var wke=E((Epr,bke)=>{"use strict";var{pipeline:SUt}=I("node:stream"),{fetching:TUt}=_w(),{makeRequest:kUt}=cQ(),{webidl:Xl}=Us(),{EventSourceStream:FUt}=Cke(),{parseMIMEType:xUt}=Xn(),{createFastMessageEvent:UUt}=EQ(),{isNetworkError:Bke}=Lw(),{delay:MUt}=OW(),{kEnumerableProperty:Cf}=pt(),{environmentSettingsObject:Ike}=zi(),Qke=!1,pke=3e3,Kw=0,mke=1,Xw=2,LUt="anonymous",vUt="use-credentials",QQ=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=Kw;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Xl.util.markAsUncloneable(this);let A="EventSource constructor";Xl.argumentLengthCheck(arguments,1,A),Qke||(Qke=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xl.converters.USVString(e,A,"url"),r=Xl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:pke};let s=Ike,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=LUt;r.withCredentials&&(i=vUt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Ike.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=kUt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===Xw)return;this.#A=Kw;let e={request:this.#s,dispatcher:this.#o},r=A=>{Bke(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Bke(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?xUt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=mke,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new FUt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(UUt(a.type,a.options))}});SUt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=TUt(e)}async#c(){this.#A!==Xw&&(this.#A=Kw,this.dispatchEvent(new Event("error")),await MUt(this.#i.reconnectionTime),this.#A===Kw&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Xl.brandCheck(this,t),this.#A!==Xw&&(this.#A=Xw,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},yke={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mke,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xw,writable:!1}};Object.defineProperties(QQ,yke);Object.defineProperties(QQ.prototype,yke);Object.defineProperties(QQ.prototype,{close:Cf,onerror:Cf,onmessage:Cf,onopen:Cf,readyState:Cf,url:Cf,withCredentials:Cf});Xl.converters.EventSourceInitDict=Xl.dictionaryConverter([{key:"withCredentials",converter:Xl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Xl.converters.any}]);bke.exports={EventSource:QQ,defaultReconnectionTime:pke}});var YW=E((fpr,Xe)=>{"use strict";var _Ut=zI(),Dke=rw(),PUt=jI(),OUt=yNe(),HUt=KI(),GUt=dV(),YUt=WNe(),qUt=$Ne(),Nke=jt(),Fx=pt(),{InvalidArgumentError:kx}=Nke,pQ=PRe(),JUt=sw(),VUt=zV(),WUt=pSe(),zUt=XV(),jUt=MV(),KUt=xF(),{getGlobalDispatcher:Rke,setGlobalDispatcher:XUt}=YF(),ZUt=qF(),$Ut=mF(),eMt=yF();Object.assign(Dke.prototype,pQ);Xe.exports.Dispatcher=Dke;Xe.exports.Client=_Ut;Xe.exports.Pool=PUt;Xe.exports.BalancedPool=OUt;Xe.exports.Agent=HUt;Xe.exports.ProxyAgent=GUt;Xe.exports.EnvHttpProxyAgent=YUt;Xe.exports Line truncated
\r
`),t_t=/\r\n/g,r_t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function NQ(t){aFe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=oFe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=oFe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new $vt(e_t),this.ss.on("info",function(r,A,s,n){A&&!e.maxed&&(e.nread+n-s>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-s,e.buffer+=A.toString("binary",s,n)),r&&e._finish()})}Zvt(NQ,aFe);NQ.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};NQ.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};NQ.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};NQ.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(t_t),e=t.length,r,A;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&A){this.header[A][this.header[A].length-1]+=t[s];continue}let n=t[s].indexOf(":");if(n===-1||n===0)return;if(r=r_t.exec(t[s]),A=r[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};cFe.exports=NQ});var Jz=E((mmr,gFe)=>{"use strict";var qz=I("node:stream").Writable,A_t=I("node:util").inherits,s_t=Gz(),lFe=nFe(),n_t=uFe(),i_t=45,o_t=Buffer.from("-"),a_t=Buffer.from(`\r
`),c_t=function(){};function Ic(t){if(!(this instanceof Ic))return new Ic(t);if(qz.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new n_t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}A_t(Ic,qz);Ic.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else qz.prototype.emit.apply(this,arguments)};Ic.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new lFe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(t);if(!this._inHeader&&A!==void 0&&A<t.length)t=t.slice(A);else return r()}this._firstWrite&&(this._bparser.push(a_t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ic.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ic.prototype.setBoundary=function(t){let e=this;this._bparser=new s_t(`\r
--`+t),this._bparser.on("info",function(r,A,s,n){e._oninfo(r,A,s,n)})};Ic.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",c_t),this._part.resume())};Ic.prototype._oninfo=function(t,e,r,A){let s,n=this,i=0,o,a=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+i<A;)if(e[r+i]===i_t)++i,++this._dashes;else{this._dashes&&(s=o_t),this._dashes=0;break}if(this._dashes===2&&(r+i<A&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+i,A)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new lFe(this._partOpts),this._part._read=function(c){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<A&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(a=this._part.push(s)),a=this._part.push(e.slice(r,A)),a||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(r,A)),!this._inHeader&&o!==void 0&&o<A&&this._oninfo(!1,e,r+o,A))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==A&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ic.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};gFe.exports=Ic});var jx=E((Vz,EFe)=>{"use strict";var dFe=new TextDecoder("utf-8"),hFe=new Map([["utf-8",dFe],["utf8",dFe]]);function u_t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return AD.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return AD.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return AD.utf16le;case"base64":return AD.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return AD.other.bind(t)}}var AD={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),hFe.has(Vz.toString()))try{return hFe.get(Vz).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function l_t(t,e,r){return t&&u_t(r)(t,e)}EFe.exports=l_t});var zz=E((ymr,QFe)=>{"use strict";var Kx=jx(),fFe=/%[a-fA-F0-9][a-fA-F0-9]/g,g_t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function lPt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy")??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(X_t.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function gPt(){return"allowed"}function dPt(){return"success"}function hPt(){return"success"}function EPt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function fPt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&r7(t.origin)&&!r7(iD(t))&&(e=null);break;case"same-origin":tU(t,iD(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function CPt(t){return ePt.now()}function BPt(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}}function IPt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function QPt(t){return{referrerPolicy:t.referrerPolicy}}function pPt(t){let e=t.referrerPolicy;FQ(e);let r=null;if(t.referrer==="client"){let o=$_t();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=e7(r),s=e7(r,!0);A.toString().length>4096&&(A=s);let n=tU(t,A),i=nD(A)&&!nD(t.url);switch(e){case"origin":return s??e7(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=iD(t);return tU(A,o)?A:nD(A)&&!nD(o)?"no-referrer":s}default:return i?"no-referrer":s}}function e7(t,e){return FQ(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function nD(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function mPt(t,e){if(eU===void 0)return!0;let r=WFe(e);if(r==="no metadata"||r.length===0)return!0;let A=bPt(r),s=wPt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=eU.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),DPt(a,o))return!0}return!1}var yPt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function WFe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=yPt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();YFe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function bPt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function wPt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function DPt(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}function NPt(t){}function tU(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function RPt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function SPt(t){return t.controller.state==="aborted"}function TPt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var A7={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(A7,null);function kPt(t){return A7[t.toLowerCase()]??t}function FPt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return FQ(typeof e=="string"),e}var xPt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UPt(t,e,r){let A={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:i,target:o}=A,a=o(),c=a.length;if(n>=c)return{value:void 0,done:!0};let u=a[n];return A.index=n+1,MPt(u,i)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,xPt),Object.setPrototypeOf({},s)}function MPt(t,e){let r;switch(e){case"key":{r=t[0];break}case"va Line truncated
`||t===" "||t===" "}function s7(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&exe(t[A]);A++);if(r)for(;s>0&&exe(t[s]);s--);return t.slice(A,s+1)}function txe(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function eOt(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&txe(t[A]);A++);if(r)for(;s>0&&txe(t[s]);s--);return t.slice(A,s+1)}nxe.exports={dataURLProcessor:KPt,URLSerializer:rxe,collectASequenceOfCodePoints:sU,collectASequenceOfCodePointsFast:xQ,stringPercentDecode:Axe,parseMIMEType:n7,collectAnHTTPQuotedString:sxe,serializeAMimeType:$Pt}});var nU=E((Mmr,uxe)=>{"use strict";var{Blob:axe,File:ixe}=I("buffer"),{types:i7}=I("util"),{kState:ro}=eg(),{isBlobLike:cxe}=da(),{webidl:tr}=yn(),{parseMIMEType:tOt,serializeAMimeType:rOt}=Qc(),{kEnumerableProperty:oxe}=Ht(),AOt=new TextEncoder,oD=class t extends axe{constructor(e,r,A={}){tr.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=tr.converters["sequence<BlobPart>"](e),r=tr.converters.USVString(r),A=tr.converters.FilePropertyBag(A);let s=r,n=A.type,i;e:{if(n){if(n=tOt(n),n==="failure"){n="";break e}n=rOt(n).toLowerCase()}i=A.lastModified}super(sOt(e,A),{type:n}),this[ro]={name:s,lastModified:i,type:n}}get name(){return tr.brandCheck(this,t),this[ro].name}get lastModified(){return tr.brandCheck(this,t),this[ro].lastModified}get type(){return tr.brandCheck(this,t),this[ro].type}},o7=class t{constructor(e,r,A={}){let s=r,n=A.type,i=A.lastModified??Date.now();this[ro]={blobLike:e,name:s,type:n,lastModified:i}}stream(...e){return tr.brandCheck(this,t),this[ro].blobLike.stream(...e)}arrayBuffer(...e){return tr.brandCheck(this,t),this[ro].blobLike.arrayBuffer(...e)}slice(...e){return tr.brandCheck(this,t),this[ro].blobLike.slice(...e)}text(...e){return tr.brandCheck(this,t),this[ro].blobLike.text(...e)}get size(){return tr.brandCheck(this,t),this[ro].blobLike.size}get type(){return tr.brandCheck(this,t),this[ro].blobLike.type}get name(){return tr.brandCheck(this,t),this[ro].name}get lastModified(){return tr.brandCheck(this,t),this[ro].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(oD.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:oxe,lastModified:oxe});tr.converters.Blob=tr.interfaceConverter(axe);tr.converters.BlobPart=function(t,e){if(tr.util.Type(t)==="Object"){if(cxe(t))return tr.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||i7.isAnyArrayBuffer(t))return tr.converters.BufferSource(t,e)}return tr.converters.USVString(t,e)};tr.converters["sequence<BlobPart>"]=tr.sequenceConverter(tr.converters.BlobPart);tr.converters.FilePropertyBag=tr.dictionaryConverter([{key:"lastModified",converter:tr.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:tr.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=tr.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function sOt(t,e){let r=[];for(let A of t)if(typeof A=="string"){let s=A;e.endings==="native"&&(s=nOt(s)),r.push(AOt.encode(s))}else i7.isAnyArrayBuffer(A)||i7.isTypedArray(A)?A.buffer?r.push(new Uint8Array(A.buffer,A.byteOffset,A.byteLength)):r.push(new Uint8Array(A)):cxe(A)&&r.push(A);return r}function nOt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function iOt(t){return ixe&&t instanceof ixe||t instanceof oD||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}uxe.exports={File:oD,FileLike:o7,isFileLike:iOt}});var oU=E((Lmr,Exe)=>{"use strict";var{isBlobLike:iU,toUSVString:oOt,makeIterator:a7}=da(),{kState:$s}=eg(),{File:hxe,FileLike:lxe,isFileLike:aOt}=nU(),{webidl:ur}=yn(),{Blob:cOt,File:c7}=I("buffer"),gxe=c7??hxe,UQ=class t{constructor(e){if(e!==void 0)throw ur.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[$s]=[]}append(e,r,A=void 0){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!iU(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=ur.converters.USVString(e),r=iU(r)?ur.converters.Blob(r,{strict:!1}):ur.converters.USVString(r),A=arguments.length===3?ur.converters.USVString(A):void 0;let s=dxe(e,r,A);this[$s].push(s)}delete(e){ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=ur.converters.USVString(e),this[$s]=this[$s].filter(r=>r.name!==e)}get(e){ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=ur.converters.USVString(e);let r=this[$s].findIndex(A=>A.name===e);return r===-1?null:this[$s][r].value}getAll(e){return ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=ur.converters.USVString(e),this[$s].filter(r=>r.name===e).map(r=>r.value)}has(e){return ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=ur.converters.USVString(e),this[$s].findIndex(r=>r.name===e)!==-1}set(e,r,A=void 0){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!iU(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=ur.converters.USVString(e),r=iU(r)?ur.converters.Blob(r,{strict:!1}):ur.converters.USVString(r),A=arguments.length===3?oOt(A):void 0;let s=dxe(e,r,A),n=this[$s].findIndex(i=>i.name===e);n!==-1?this[$s]=[...this[$s].slice(0,n),s,...this[$s].slice(n+1).filter(i=>i.name!==e)]:this[$s].push(s)}entries(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","key")}values(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[A,s]of this)e.apply(r,[s,A,this])}};UQ.prototype[Symbol.iterator]=UQ.prototype.entries;Object.defineProperties(UQ.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function dxe(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(aOt(e)||(e=e instanceof cOt?new gxe([e],"blob",{type:e.type}):new lxe(e,"blob",{type:e.type})),r!==void 0){let A={type:e.type,lastModified:e.lastModified};e=c7&&e instanceof c7||e instanceof hxe?new gxe([e],r,A):new lxe(e,r,A)}return{name:t,value:e}}Exe.exports={FormData:UQ}});var aD=E((vmr,bxe)=>{"use strict";var uOt=xFe(),MQ=Ht(),{ReadableStreamFrom:lOt,isBlobLike:fxe,isReadableStreamLike:gOt,readableStreamClose:dOt,createDeferredPromise:hOt,fullyReadBody:EOt}=da(),{FormData:Cxe}=oU(),{kState:rg}=eg(),{webidl:u7}=yn(),{DOMException:Qxe,structuredClone:fOt}=zd(),{Blob:COt,File:BOt}=I("buffer"),{kBodyUsed:IOt}=_r(),l7=I("assert"),{isErrored:QOt}=Ht(),{isUint8Array:pxe,isArrayBuffer:pOt}=I("util/types"),{File:mOt}=nU(),{parseMIMEType:yOt,serializeAMimeType:bOt}=Qc(),g7;try{let t=I("node:crypto");g7=e=>t.randomInt(0,e)}catch{g7=t=>Math.floor(Math.random(t))}var tg=globalThis.ReadableStream,Bxe=BOt??mOt,aU=new TextEncoder,wOt=new TextDecoder;function mxe(t,e=!1){tg||(tg=I("stream/web").ReadableStream);let r=null;t instanceof tg?r=t:fxe(t)?r=t.stream():r=new tg({async pull(a){a.enqueue(typeof s=="string"?aU.encode(s):s),queueMicrotask(()=>dOt(a))},start(){},type:void 0}),l7(gOt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(pOt(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(MQ.isFormDataLike(t)){let a=`----formdata-undici-0${`${g7(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=aU.encode(c+`; name="${u(l(Q))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=aU.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=aU.encode(`--${a}--`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i="multipart/form-data; boundary="+a}else if(fxe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(MQ.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof tg?t:lOt(t)}if((typeof s=="string"||MQ.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new tg({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();return l?queueMicrotask(()=>{c.close()}):QOt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await a.return()},type:void 0})}return[{stream:r,source:s,length:n},i]}function DOt(t,e=!1){return tg||(tg=I("stream/web").ReadableStream),t instanceof tg&&(l7(!MQ.isDisturbed(t),"The body has already been consumed."),l7(!t.locked,"The stream is locked.")),mxe(t,e)}function NOt(t){let[e,r]=t.stream.tee(),A=fOt(r,{transfer:[r]}),[,s]=A.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*Ixe(t){if(t)if(pxe(t))yield t;else{let e=t.stream;if(MQ.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[IOt]=!0,yield*e}}function d7(t){if(t.aborted)throw new Qxe("The operation was aborted.","AbortError")}function ROt(t){return{blob(){return cU(this,r=>{let A=FOt(this);return A==="failure"?A="":A&&(A=bOt(A)),new COt([r],{type:A})},t)},arrayBuffer(){return cU(this,r=>new Uint8Array(r).buffer,t)},text(){return cU(this,yxe,t)},json(){return cU(this,kOt,t)},async formData(){u7.brandCheck(this,t),d7(this[rg]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let A={};for(let[o,a]of this.headers)A[o.toLowerCase()]=a;let s=new Cxe,n;try{n=new uOt({headers:A,preservePath:!0})}catch(o){throw new Qxe(`${o}`,"AbortError")}n.on("field",(o,a)=>{s.append(o,a)}),n.on("file",(o,a,c,u,l)=>{let g=[];if(u==="base64"||u.toLowerCase()==="base64"){let d="";a.on("data",h=>{d+=h.toString().replace(/[\r\n]/gm,"");let B=d.length-d.length%4;g.push(Buffer.from(d.slice(0,B),"base64")),d=d.slice(B)}),a.on("end",()=>{g.push(Buffer.from(d,"base64")),s.append(o,new Bxe(g,c,{type:l}))})}else a.on("data",d=>{g.push(d)}),a.on("end",()=>{s.append(o,new Bxe(g,c,{type:l}))})});let i=new Promise((o,a)=>{n.on("finish",o),n.on("error",c=>a(new TypeError(c)))});if(this.body!==null)for await(let o of Ixe(this[rg].body))n.write(o);return n.end(),await i,s}else if(/application\/x-www-form-urlencoded/.test(r)){let A;try{let n="",i=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of Ixe(this[rg].body)){if(!pxe(o))throw new TypeError("Expected Uint8Array chunk");n+=i.decode(o,{stream:!0})}n+=i.decode(),A=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let s=new Cxe;for(let[n,i]of A)s.append(n,i);return s}else throw await Promise.resolve(),d7(this[rg]),u7.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function SOt(t){Object.assign(t.prototype,ROt(t))}async function cU(t,e,r){if(u7.brandCheck(t,r),d7(t[rg]),TOt(t[rg].body))throw new TypeError("Body is unusable");let A=hOt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[rg].body==null?(n(new Uint8Array),A.promise):(await EOt(t[rg].body,n,s),A.promise)}function TOt(t){return t!=null&&(t.stream.locked||MQ.isDisturbed(t.stream))}function yxe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),wOt.decode(t))}function kOt(t){return JSON.parse(yxe(t))}function FOt(t){let{headersList:e}=t[rg],r=e.get("content-type");return r===null?"failure":yOt(r)}bxe.exports={extractBody:mxe,safelyExtractBody:DOt,cloneBody:NOt,mixinBody:SOt}});var Rxe=E((_mr,Nxe)=>{"use strict";var{InvalidArgumentError:wr,NotSupportedError:xOt}=Ir(),Ag=I("assert"),{kHTTP2BuildRequest:UOt,kHTTP2CopyHeaders:MOt,kHTTP1BuildRequest:LOt}=_r(),Ai=Ht(),wxe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Dxe=/[^\t\x20-\x7e\x80-\xff]/,vOt=/[^\u0021-\u00ff]/,pc=Symbol("handler"),zA={},h7;try{let t=I("diagnostics_channel");zA.create=t.channel("undici:request:create"),zA.bodySent=t.channel("undici:request:bodySent"),zA.headers=t.channel("undici:request:headers"),zA.trailers=t.channel("undici:request:trailers"),zA.error=t.channel("undici:request:error")}catch{zA.create={hasSubscribers:!1},zA.bodySent={hasSubscribers:!1},zA.headers={hasSubscribers:!1},zA.trailers={hasSubscribers:!1},zA.error={hasSubscribers:!1}}var E7=class t{constructor(e,{path:r,method:A,body:s,headers:n,query:i,idempotent:o,blocking:a,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:g,throwOnError:d,expectContinue:h},B){if(typeof r!="string")throw new wr("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("httpsLine truncated
`),this.body=Q.stream,this.contentLength=Q.length}else Ai.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);Ai.validateHandler(B,A,c),this.servername=Ai.getServerName(this.host),this[pc]=B,zA.create.hasSubscribers&&zA.create.publish({request:this})}onBodySent(e){if(this[pc].onBodySent)try{return this[pc].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(zA.bodySent.hasSubscribers&&zA.bodySent.publish({request:this}),this[pc].onRequestSent)try{return this[pc].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Ag(!this.aborted),Ag(!this.completed),this.error)e(this.error);else return this.abort=e,this[pc].onConnect(e)}onHeaders(e,r,A,s){Ag(!this.aborted),Ag(!this.completed),zA.headers.hasSubscribers&&zA.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[pc].onHeaders(e,r,A,s)}catch(n){this.abort(n)}}onData(e){Ag(!this.aborted),Ag(!this.completed);try{return this[pc].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,A){return Ag(!this.aborted),Ag(!this.completed),this[pc].onUpgrade(e,r,A)}onComplete(e){this.onFinally(),Ag(!this.aborted),this.completed=!0,zA.trailers.hasSubscribers&&zA.trailers.publish({request:this,trailers:e});try{return this[pc].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),zA.error.hasSubscribers&&zA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[pc].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return cD(this,e,r),this}static[LOt](e,r,A){return new t(e,r,A)}static[UOt](e,r,A){let s=r.headers;r={...r,headers:null};let n=new t(e,r,A);if(n.headers={},Array.isArray(s)){if(s.length%2!==0)throw new wr("headers array must be even");for(let i=0;i<s.length;i+=2)cD(n,s[i],s[i+1],!0)}else if(s&&typeof s=="object"){let i=Object.keys(s);for(let o=0;o<i.length;o++){let a=i[o];cD(n,a,s[a],!0)}}else if(s!=null)throw new wr("headers must be an object or an array");return n}static[MOt](e){let r=e.split(`\r
`),A={};for(let s of r){let[n,i]=s.split(": ");i==null||i.length===0||(A[n]?A[n]+=`,${i}`:A[n]=i)}return A}};function pf(t,e,r){if(e&&typeof e=="object")throw new wr(`invalid ${t} header`);if(e=e!=null?`${e}`:"",Dxe.exec(e)!==null)throw new wr(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function cD(t,e,r,A=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new wr(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(Dxe.exec(r)!==null)throw new wr(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new wr("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,A?t.headers[e]=pf(e,r,A):t.headers+=pf(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new wr("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new wr("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new wr("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new wr("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new xOt("expect header not supported");if(wxe.exec(e)===null)throw new wr("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)A?t.headers[e]?t.headers[e]+=`,${pf(e,r[s],A)}`:t.headers[e]=pf(e,r[s],A):t.headers+=pf(e,r[s]);else A?t.headers[e]=pf(e,r,A):t.headers+=pf(e,r)}}}Nxe.exports=E7});var uU=E((Pmr,Sxe)=>{"use strict";var _Ot=I("events"),f7=class extends _Ot{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};Sxe.exports=f7});var lD=E((Omr,Txe)=>{"use strict";var POt=uU(),{ClientDestroyedError:C7,ClientClosedError:OOt,InvalidArgumentError:LQ}=Ir(),{kDestroy:HOt,kClose:GOt,kDispatch:B7,kInterceptors:mf}=_r(),vQ=Symbol("destroyed"),uD=Symbol("closed"),sg=Symbol("onDestroyed"),_Q=Symbol("onClosed"),lU=Symbol("Intercepted Dispatch"),I7=class extends POt{constructor(){super(),this[vQ]=!1,this[sg]=null,this[uD]=!1,this[_Q]=[]}get destroyed(){return this[vQ]}get closed(){return this[uD]}get interceptors(){return this[mf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[mf][r]!="function")throw new LQ("interceptor must be an function")}this[mf]=e}close(e){if(e===void 0)return new Promise((A,s)=>{this.close((n,i)=>n?s(n):A(i))});if(typeof e!="function")throw new LQ("invalid callback");if(this[vQ]){queueMicrotask(()=>e(new C7,null));return}if(this[uD]){this[_Q]?this[_Q].push(e):queueMicrotask(()=>e(null,null));return}this[uD]=!0,this[_Q].push(e);let r=()=>{let A=this[_Q];this[_Q]=null;for(let s=0;s<A.length;s++)A[s](null,null)};this[GOt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,n)=>{this.destroy(e,(i,o)=>i?n(i):s(o))});if(typeof r!="function")throw new LQ("invalid callback");if(this[vQ]){this[sg]?this[sg].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new C7),this[vQ]=!0,this[sg]=this[sg]||[],this[sg].push(r);let A=()=>{let s=this[sg];this[sg]=null;for(let n=0;n<s.length;n++)s[n](null,null)};this[HOt](e).then(()=>{queueMicrotask(A)})}[lU](e,r){if(!this[mf]||this[mf].length===0)return this[lU]=this[B7],this[B7](e,r);let A=this[B7].bind(this);for(let s=this[mf].length-1;s>=0;s--)A=this[mf][s](A);return this[lU]=A,A(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new LQ("handler must be an object");try{if(!e||typeof e!="object")throw new LQ("opts must be an object.");if(this[vQ]||this[sg])throw new C7;if(this[uD])throw new OOt;return this[lU](e,r)}catch(A){if(typeof r.onError!="function")throw new LQ("invalid onError method");return r.onError(A),!1}}};Txe.exports=I7});var gD=E((Ymr,xxe)=>{"use strict";var YOt=I("net"),kxe=I("assert"),Fxe=Ht(),{InvalidArgumentError:qOt,ConnectTimeoutError:JOt}=Ir(),Q7,p7;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?p7=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let A=this._sessionCache.get(r);A!==void 0&&A.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:p7=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:A}=this._sessionCache.keys().next();this._sessionCache.delete(A)}this._sessionCache.set(e,r)}}};function VOt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:A,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new qOt("maxCachedSessions must be a positive integer or zero");let n={path:r,...s},i=new p7(e??100);return A=A??1e4,t=t??!1,function({h Line truncated
`,this[Kxe]=a??3e5,this[jxe]=s??3e5,this[BD]=p??!0,this[mHt]=k,this[ID]=j,this[Kd]=null,this[Zxe]=$>-1?$:-1,this[Nu]="h1",this[so]=null,this[IU]=be?{openStreams:0,maxConcurrentStreams:K??100}:null,this[$xe]=`${this[Ls].hostname}${this[Ls].port?`:${this[Ls].port}`:""}`,this[Pr]=[],this[Or]=0,this[Ao]=0}get pipelining(){return this[Zd]}set pipelining(e){this[Zd]=e,no(this,!0)}get[wf](){return this[Pr].length-this[Ao]}get[cA](){return this[Ao]-this[Or]}get[bf](){return this[Pr].length-this[Or]}get[pHt](){return!!this[BA]&&!this[OQ]&&!this[BA].destroyed}get[S7](){let e=this[BA];return e&&(e[bn]||e[og]||e[GQ])||this[bf]>=(this[Zd]||1)||this[wf]>0}[QHt](e){AUe(this),this.once("connect",e)}[wHt](e,r){let A=e.origin||this[Ls].origin,s=this[Nu]==="h2"?R7[NHt](A,e,r):R7[SHt](A,e,r);return this[Pr].push(s),this[yf]||(Ue.bodyLength(s.body)==null&&Ue.isIterable(s.body)?(this[yf]=1,process.nextTick(no,this)):no(this,!0)),this[yf]&&this[Xd]!==2&&this[S7]&&(this[Xd]=2),this[Xd]<2}async[yHt](){return new Promise(e=>{this[bf]?this[Kd]=e:e(null)})}async[bHt](e){return new Promise(r=>{let A=this[Pr].splice(this[Ao]);for(let n=0;n<A.length;n++){let i=A[n];wn(this,i,e)}let s=()=>{this[Kd]&&(this[Kd](),this[Kd]=null),r()};this[so]!=null&&(Ue.destroy(this[so],e),this[so]=null,this[IU]=null),this[BA]?Ue.destroy(this[BA].on("close",s),e):queueMicrotask(s),no(this)})}};function vHt(t){Ce(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[BA][vs]=t,yU(this[Du],t)}function _Ht(t,e,r){let A=new wu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[BA][vs]=A,yU(this[Du],A))}function PHt(){Ue.destroy(this,new HQ("other side closed")),Ue.destroy(this[BA],new HQ("other side closed"))}function OHt(t){let e=this[Du],r=new wu(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[BA]=null,e[so]=null,e.destroyed){Ce(this[wf]===0);let A=e[Pr].splice(e[Or]);for(let s=0;s<A.length;s++){let n=A[s];wn(this,n,r)}}else if(e[cA]>0){let A=e[Pr][e[Or]];e[Pr][e[Or]++]=null,wn(e,A,r)}e[Ao]=e[Or],Ce(e[cA]===0),e.emit("disconnect",e[Ls],[e],r),no(e)}var mu=Mxe(),HHt=hU(),GHt=Buffer.alloc(0);async function YHt(){let t=process.env.JEST_WORKER_ID?w7():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Gxe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||w7(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onStatus(new EU(yu.buffer,n,s))||0},wasm_on_message_begin:r=>(Ce.strictEqual(As.ptr,r),As.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onHeaderField(new EU(yu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onHeaderValue(new EU(yu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Ce.strictEqual(As.ptr,r),As.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onBody(new EU(yu.buffer,n,s))||0},wasm_on_message_complete:r=>(Ce.strictEqual(As.ptr,r),As.onMessageComplete()||0)}})}var N7=null,F7=YHt();F7.catch();var As=null,yu=null,fU=0,bu=null,YQ=1,BU=2,x7=3,U7=class{constructor(e,r,{exports:A}){Ce(Number.isFinite(e[CU])&&e[CU]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(mu.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[CU],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Zxe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(D7.clearTimeout(this.timeout),e?(this.timeout=D7.setTimeout(qHt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ce(this.ptr!=null),Ce(As==null),this.llhttp.llhttp_resume(this.ptr),Ce(this.timeoutType===BU),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||GHt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ce(this.ptr!=null),Ce(As==null),Ce(!this.paused);let{socket:r,llhttp:A}=this;e.length>fU&&(bu&&A.free(bu),fU=Math.ceil(e.length/4096)*4096,bu=A.malloc(fU)),new Uint8Array(A.memory.buffer,bu,fU).set(e);try{let s;try{yu=e,As=this,s=A.llhttp_execute(this.ptr,bu,e.length)}catch(i){throw i}finally{As=null,yu=null}let n=A.llhttp_get_error_pos(this.ptr)-bu;if(s===mu.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(s===mu.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(n));else if(s!==mu.ERROR.OK){let i=A.llhttp_get_error_reason(this.ptr),o="";if(i){let a=new Uint8Array(A.memory.buffer,i).indexOf(0);o="Response does not match Line truncated
`;return typeof n=="string"?h+=`host: ${n}\r
`:h+=t[Vxe],i?h+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Zd]&&!d[bn]?h+=`connection: keep-alive\r
`:h+=`connection: close\r
`,o&&(h+=o),en.sendHeaders.hasSubscribers&&en.sendHeaders.publish({request:e,headers:h,socket:d}),!r||l===0?(g===0?d.write(`${h}content-length: 0\r
\r
`,"latin1"):(Ce(g===null,"no body must not have content length"),d.write(`${h}\r
`,"latin1")),e.onRequestSent()):Ue.isBuffer(r)?(Ce(g===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${h}content-length: ${g}\r
\r
`,"latin1"),d.write(r),d.uncork(),e.onBodySent(r),e.onRequestSent(),u||(d[bn]=!0)):Ue.isBlobLike(r)?typeof r.stream=="function"?pU({body:r.stream(),client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):iUe({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ue.isStream(r)?nUe({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ue.isIterable(r)?pU({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ce(!1),!0}function WHt(t,e,r){let{body:A,method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=r,l;if(typeof u=="string"?l=R7[RHt](u.trim()):l=u,o)return wn(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(p=>{r.aborted||r.completed||wn(t,r,p||new L7)})}catch(p){wn(t,r,p)}if(r.aborted)return!1;let g,d=t[IU];if(l[THt]=i||t[$xe],l[kHt]=s,s==="CONNECT")return e.ref(),g=e.request(l,{endStream:!1,signal:c}),g.id&&!g.pending?(r.onUpgrade(null,null,g),++d.openStreams):g.once("ready",()=>{r.onUpgrade(null,null,g),++d.openStreams}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),!0;l[FHt]=n,l[xHt]="https";let h=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let B=Ue.bodyLength(A);if(B==null&&(B=r.contentLength),(B===0||!h)&&(B=null),sUe(s)&&B>0&&r.contentLength!=null&&r.contentLength!==B){if(t[BD])return wn(t,r,new ig),!1;process.emitWarning(new ig)}B!=null&&(Ce(A,"no body must not have content length"),l[UHt]=`${B}`),e.ref();let Q=s==="GET"||s==="HEAD";return a?(l[MHt]="100-continue",g=e.request(l,{endStream:Q,signal:c}),g.once("continue",C)):(g=e.request(l,{endStream:Q,signal:c}),C()),++d.openStreams,g.once("response",p=>{let{[LHt]:w,...k}=p;r.onHeaders(Number(w),k,g.resume.bind(g),"")===!1&&g.pause()}),g.once("end",()=>{r.onComplete([])}),g.on("data",p=>{r.onData(p)===!1&&g.pause()}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),g.once("error",function(p){t[so]&&!t[so].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,Ue.destroy(g,p))}),g.once("frameError",(p,w)=>{let k=new wu(`HTTP/2: "frameError" received - type ${p}, code ${w}`);wn(t,r,k),t[so]&&!t[so].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,Ue.destroy(g,k))}),!0;function C(){A?Ue.isBuffer(A)?(Ce(B===A.byteLength,"buffer body must have content length"),g.cork(),g.write(A),g.uncork(),g.end(),r.onBodySent(A),r.onRequestSent()):Ue.isBlobLike(A)?typeof A.stream=="function"?pU({client:t,request:r,contentLength:B,h2stream:g,expectsPayload:h,body:A.stream(),socket:t[BA],header:""}):iUe({body:A,client:t,request:r,contentLength:B,expectsPayload:h,h2stream:g,header:"",socket:t[BA]}):Ue.isStream(A)?nUe({body:A,client:t,request:r,contentLength:B,expectsPayload:h,socket:t[BA],h2stream:g,header:""}):Ue.isIterable(A)?pU({body:A,client:t,request:r,contentLength:B,expectsPayload:h,header:"",h2stream:g,socket:t[BA]}):Ce(!1):r.onRequestSent()}}function nUe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){if(Ce(n!==0||r[cA]===0,"stream body cannot be pipelined"),r[Nu]==="h2"){let B=function(Q){A.onBodySent(Q)},h=uHt(e,t,Q=>{Q?(Ue.destroy(e,Q),Ue.destroy(t,Q)):A.onRequestSent()});h.on("data",B),h.once("end",()=>{h.removeListener("data",B),Ue.destroy(h)});return}let a=!1,c=new mU({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){Ue.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(a)return;let h=new L7;queueMicrotask(()=>d(h))},d=function(h){if(!a){if(a=!0,Ce(s.destroyed||s[og]&&r[cA]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("error",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ue.destroy(e,h):Ue.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d)}async function iUe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Ce(n===e.size,"blob body must have content length");let a=r[Nu]==="h2";try{if(n!=null&&n!==e.size)throw new ig;let c=Buffer.from(await e.arrayBuffer());a?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(c),s.uncork()),A.onBodySent(c),A.onRequestSent(),o||(s[bn]=!0),no(r)}catch(c){Ue.destroy(a?t:s,c)}}async function pU({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Ce(n!==0||r[cA]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ce(a===null),s[vs]?d(s[vs]):a=g});if(r[Nu]==="h2"){t.on("close",c).on("drain",c);try{for await(let g of e){if(s[vs])throw s[vs];let d=t.write(g);A.onBodySent(g),d||await u()}}catch(g){t.destroy(g)}finally{A.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new mU({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[vs])throw s[vs];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var mU=class{constructor({socket:e,request:r,contentLength:A,client:s,expectsPayload:n,header:i}){this.socket=e,this.request=r,this.contentLength=A,this.client=s,this.bytesWritten=0,this.expectsPayload=n,this.header=i,e[og]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[vs])throw r[vs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[BD])throw new ig;process.emitWarning(new ig)}r.cork(),i===0&&(o||(r[bn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[CA].timeout&&r[CA].timeoutType===YQ&&r[CA].timeout.refresh&&r[CA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[og]=!1,e[vs])throw e[vs];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[BD])throw new ig;process.emitWarning(new ig)}e[CA].timeout&&e[CA].timeoutType===YQ&&e[CA].timeout.refresh&&e[CA].timeout.refresh(),no(A)}}destroy(e){let{socket:r,client:A}=this;r[og]=!1,e&&(Ce(A[cA]<=1,"pipeline should only contain this request"),Ue.destroy(r,e))}};function wn(t,e,r){try{e.onError(r),Ce(e.aborted)}catch(A){t.emit("error",A)}}oUe.exports=k7});var cUe=E((Zmr,aUe)=>{"use strict";var bU=class{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)}};aUe.exports=class{constructor(){this.head=this.tail=new bU}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bU),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var lUe=E(($mr,uUe)=>{var{kFree:zHt,kConnected:jHt,kPending:KHt,kQueued:XHt,kRunning:ZHt,kSize:$Ht}=_r(),Df=Symbol("pool"),v7=class{constructor(e){this[Df]=e}get connected(){return this[Df][jHt]}get free(){return this[Df][zHt]}get pending(){return this[Df][KHt]}get queued(){return this[Df][XHt]}get running(){return this[Df][ZHt]}get size(){return this[Df][$Ht]}};uUe.exports=v7});var Y7=E((eyr,pUe)=>{"use strict";var eGt=lD(),tGt=cUe(),{kConnected:_7,kSize:gUe,kRunning:dUe,kPending:hUe,kQueued:pD,kBusy:rGt,kFree:AGt,kUrl:sGt,kClose:nGt,kDestroy:iGt,kDispatch:oGt}=_r(),aGt=lUe(),si=Symbol("clients"),Dn=Symbol("needDrain"),mD=Symbol("queue"),P7=Symbol("closed resolve"),O7=Symbol("onDrain"),EUe=Symbol("onConnect"),fUe=Symbol("onDisconnect"),CUe=Symbol("onConnectionError"),H7=Symbol("get dispatcher"),IUe=Symbol("add client"),QUe=Symbol("remove client"),BUe=Symbol("stats"),G7=class extends eGt{constructor(){super(),this[mD]=new tGt,this[si]=[],this[pD]=0;let e=this;this[O7]=function(A,s){let n=e[mD],i=!1;for(;!i;){let o=n.shift();if(!o)break;e[pD]--,i=!this.dispatch(o.opts,o.handler)}this[Dn]=i,!this[Dn]&&e[Dn]&&(e[Dn]=!1,e.emit("drain",A,[e,...s])),e[P7]&&n.isEmpty()&&Promise.all(e[si].map(o=>o.close())).then(e[P7])},this[EUe]=(r,A)=>{e.emit("connect",r,[e,...A])},this[fUe]=(r,A,s)=>{e.emit("disconnect",r,[e,...A],s)},this[CUe]=(r,A,s)=>{e.emit("connectionError",r,[e,...A],s)},this[BUe]=new aGt(this)}get[rGt](){return this[Dn]}get[_7](){return this[si].filter(e=>e[_7]).length}get[AGt](){return this[si].filter(e=>e[_7]&&!e[Dn]).length}get[hUe](){let e=this[pD];for(let{[hUe]:r}of this[si])e+=r;return e}get[dUe](){let e=0;for(let{[dUe]:r}of this[si])e+=r;return e}get[gUe](){let e=this[pD];for(let{[gUe]:r}of this[si])e+=r;return e}get stats(){return this[BUe]}async[nGt](){return this[mD].isEmpty()?Promise.all(this[si].map(e=>e.close())):new Promise(e=>{this[P7]=e})}async[iGt](e){for(;;){let r=this[mD].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[si].map(r=>r.destroy(e)))}[oGt](e,r){let A=this[H7]();return A?A.dispatch(e,r)||(A[Dn]=!0,this[Dn]=!this[H7]()):(this[Dn]=!0,this[mD].push({opts:e,handler:r}),this[pD]++),!this[Dn]}[IUe](e){return e.on("drain",this[O7]).on("connect",this[EUe]).on("disconnect",this[fUe]).on("connectionError",this[CUe]),this[si].push(e),this[Dn]&&process.nextTick(()=>{this[Dn]&&this[O7](e[sGt],[this,e])}),this}[QUe](e){e.close(()=>{let r=this[si].indexOf(e);r!==-1&&this[si].splice(r,1)}),this[Dn]=this[si].some(r=>!r[Dn]&&r.closed!==!0&&r.destroyed!==!0)}};pUe.exports={PoolBase:G7,kClients:si,kNeedDrain:Dn,kAddClient:IUe,kRemoveClient:QUe,kGetDispatcher:H7}});var qQ=E((tyr,bUe)=>{"use strict";var{PoolBase:cGt,kClients:wU,kNeedDrain:uGt,kAddClient:lGt,kGetDispatcher:gGt}=Y7(),dGt=QD(),{InvalidArgumentError:q7}=Ir(),J7=Ht(),{kUrl:mUe,kInterceptors:hGt}=_r(),EGt=gD(),V7=Symbol("options"),W7=Symbol("connections"),yUe=Symbol("factory");function fGt(t,e){return new dGt(t,e)}var z7=class extends cGt{constructor(e,{connections:r,factory:A=fGt,connect:s,connectTimeout:n,tls:i,maxCachedSessions:o,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...g}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new q7("invalid connections");if(typeof A!="function")throw new q7("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new q7("connect must be a function or an object");typeof s!="function"&&(s=EGt({...i,maxCachedSessions:o,allowH2:l,socketPath:a,timeout:n,...J7.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[hGt]=g.interceptors&&g.interceptors.Pool&&Array.isArray(g.interceptors.Pool)?g.interceptors.Pool:[],this[W7]=r||null,this[mUe]=J7.parseOrigin(e),this[V7]={...J7.deepClone(g),connect:s,allowH2:l},this[V7].interceptors=g.interceptors?{...g.interceptors}:void 0,this[yUe]=A,this.on("connectionError",(d,h,B)=>{for(let Q of Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};rLe.exports=Fj});var cLe=E((Dyr,aLe)=>{"use strict";var{kProxy:C3t,kClose:B3t,kDestroy:I3t,kInterceptors:Q3t}=_r(),{URL:sLe}=I("url"),nLe=bD(),p3t=qQ(),m3t=lD(),{InvalidArgumentError:SD,RequestAbortedError:y3t}=Ir(),iLe=gD(),ND=Symbol("proxy agent"),VU=Symbol("proxy client"),RD=Symbol("proxy headers"),xj=Symbol("request tls settings"),b3t=Symbol("proxy tls settings"),oLe=Symbol("connect endpoint function");function w3t(t){return t==="https:"?443:80}function D3t(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new SD("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function N3t(t,e){return new p3t(t,e)}var Uj=class extends m3t{constructor(e){if(super(e),this[C3t]=D3t(e),this[ND]=new nLe(e),this[Q3t]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new SD("Proxy opts.uri is mandatory");let{clientFactory:r=N3t}=e;if(typeof r!="function")throw new SD("Proxy opts.clientFactory must be a function.");this[xj]=e.requestTls,this[b3t]=e.proxyTls,this[RD]=e.headers||{};let A=new sLe(e.uri),{origin:s,port:n,host:i,username:o,password:a}=A;if(e.auth&&e.token)throw new SD("opts.auth cannot be used in combination with opts.token");e.auth?this[RD]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[RD]["proxy-authorization"]=e.token:o&&a&&(this[RD]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(a)}`).toString("base64")}`);let c=iLe({...e.proxyTls});this[oLe]=iLe({...e.requestTls}),this[VU]=r(A,{connect:c}),this[ND]=new nLe({...e,connect:async(u,l)=>{let g=u.host;u.port||(g+=`:${w3t(u.protocol)}`);try{let{socket:d,statusCode:h}=await this[VU].connect({origin:s,port:n,path:g,signal:u.signal,headers:{...this[RD],host:i}});if(h!==200&&(d.on("error",()=>{}).destroy(),l(new y3t(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,d);return}let B;this[xj]?B=this[xj].servername:B=u.servername,this[oLe]({...u,servername:B,httpSocket:d},l)}catch(d){l(d)}}})}dispatch(e,r){let{host:A}=new sLe(e.origin),s=R3t(e.headers);return S3t(s),this[ND].dispatch({...e,headers:{...s,host:A}},r)}async[B3t](){await this[ND].close(),await this[VU].close()}async[I3t](){await this[ND].destroy(),await this[VU].destroy()}};function R3t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function S3t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new SD("Proxy-Authorization should be sent in ProxyAgent constructor")}aLe.exports=Uj});var hLe=E((Nyr,dLe)=>{var Ff=I("assert"),{kRetryHandlerDefaultRetry:uLe}=_r(),{RequestRetryError:WU}=Ir(),{isDisturbed:lLe,parseHeaders:T3t,parseRangeHeader:gLe}=Ht();function k3t(t){let e=Date.now();return new Date(t).getTime()-e}var Mj=class t{constructor(e,r){let{retryOptions:A,...s}=e,{retry:n,maxRetries:i,maxTimeout:o,minTimeout:a,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:g,statusCodes:d}=A??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[uLe],retryAfter:g??!0,maxTimeout:o??30*1e3,timeout:a??500,timeoutFactor:c??2,maxRetries:i??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:d??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,A){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,A)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[uLe](e,{state:r,opts:A},s){let{statusCode:n,code:i,headers:o}=e,{method:a,retryOptions:c}=A,{maxRetries:u,timeout:l,maxTimeout:g,timeoutFactor:d,statusCodes:h,errorCodes:B,methods:Q}=c,{counter:C,currentTimeout:p}=r;if(p=p!=null&&p>0?p:l,i&&i!=="UND_ERR_REQ_RETRY"&&i!=="UND_ERR_SOCKET"&&!B.includes(i)){s(e);return}if(Array.isArray(Q)&&!Q.includes(a)){s(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){s(e);return}if(C>u){s(e);return}let w=o!=null&&o["retry-after"];w&&(w=Number(w),w=isNaN(w)?k3t(w):w*1e3);let k=w>0?Math.min(w,g):Math.min(p*d**C,g);r.currentTimeout=k,setTimeout(()=>s(null),k)}onHeaders(e,r,A,s){let n=T3t(r);if(this.retryCount+=1,e>=300)return this.abort(new WU("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=gLe(n["content-range"]);if(!o)return this.abort(new WU("Content-Range mismatch",e,{headers:n,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==n.etag)return this.abort(new WU("ETag mismatch",e,{headers:n,count:this.retryCount})),!1;let{start:a,size:c,end:u=c}=o Line truncated
Error Code : ${i.statusCode}
Error Message: ${i.message}`)})).result)===null||r===void 0?void 0:r.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return y_e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,b_e.debug)(`ID token url is ${r}`);let A=yield t.getCall(r);return(0,b_e.setSecret)(A),A}catch(r){throw new Error(`Error message: ${r.message}`)}})}};E0.OidcClient=bK});var RK=E(ci=>{"use strict";var wK=ci&&ci.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ci,"__esModule",{value:!0});ci.summary=ci.markdownSummary=ci.SUMMARY_DOCS_URL=ci.SUMMARY_ENV_VAR=void 0;var p5t=I("os"),DK=I("fs"),{access:m5t,appendFile:y5t,writeFile:b5t}=DK.promises;ci.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";ci.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var NK=class{constructor(){this._buffer=""}filePath(){return wK(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ci.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${ci.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield m5t(e,DK.constants.R_OK|DK.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,A={}){let s=Object.entries(A).map(([n,i])=>` ${n}="${i}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return wK(this,void 0,void 0,function*(){let r=!!e?.overwrite,A=yield this.filePath();return yield(r?b5t:y5t)(A,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return wK(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(p5t.EOL)}addCodeBlock(e,r){let A=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,r=!1){let A=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),n=this.wrap(A,s);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:u}=i,l=o?"th":"td",g=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,a,g)}).join("");return this.wrap("tr",n)}).join(""),A=this.wrap("table",r);return this.addRaw(A).addEOL()}addDetails(e,r){let A=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(A).addEOL()}addImage(e,r,A){let{width:s,height:n}=A||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:r},i));return this.addRaw(o).addEOL()}addHeading(e,r){let A=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1",n=this.wrap(s,e);return this.addRaw(n).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 A=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,r){let A=this.wrap("a",e,{href:r});return this.addRaw(A).addEOL()}},D_e=new NK;ci.markdownSummary=D_e;ci.summary=D_e});var N_e=E(ui=>{"use strict";var w5t=ui&&ui.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),D5t=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N5t=ui&&ui.__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)&&w5t(e,t,r);return D5t(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.toPlatformPath=ui.toWin32Path=ui.toPosixPath=void 0;var R5t=N5t(I("path"));function S5t(t){return t.replace(/[\\]/g,"/")}ui.toPosixPath=S5t;function T5t(t){return t.replace(/[/]/g,"\\")}ui.toWin32Path=T5t;function k5t(t){return t.replace(/[/\\]/g,R5t.sep)}ui.toPlatformPath=k5t});var TK=E(pe=>{"use strict";var F5t=pe&&pe.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),xLine truncated
`);return{name:e,version:r}});Gt.platform=J_e.default.platform();Gt.arch=J_e.default.arch();Gt.isWindows=Gt.platform==="win32";Gt.isMacOS=Gt.platform==="darwin";Gt.isLinux=Gt.platform==="linux";function u9t(){return YM(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gt.isWindows?o9t():Gt.isMacOS?a9t():c9t()),{platform:Gt.platform,arch:Gt.arch,isWindows:Gt.isWindows,isMacOS:Gt.isMacOS,isLinux:Gt.isLinux})})}Gt.getDetails=u9t});var go=E(Be=>{"use strict";var l9t=Be&&Be.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),g9t=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MK=Be&&Be.__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)&&l9t(e,t,r);return g9t(e,t),e},W_e=Be&&Be.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0});Be.platform=Be.toPlatformPath=Be.toWin32Path=Be.toPosixPath=Be.markdownSummary=Be.summary=Be.getIDToken=Be.getState=Be.saveState=Be.group=Be.endGroup=Be.startGroup=Be.info=Be.notice=Be.warning=Be.error=Be.debug=Be.isDebug=Be.setFailed=Be.setCommandEcho=Be.setOutput=Be.getBooleanInput=Be.getMultilineInput=Be.getInput=Be.addPath=Be.setSecret=Be.exportVariable=Be.ExitCode=void 0;var Qa=F2e(),Of=M2e(),C0=Gx(),z_e=MK(I("os")),d9t=MK(I("path")),h9t=w_e(),UK;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(UK||(Be.ExitCode=UK={}));function E9t(t,e){let r=(0,C0.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,Of.issueFileCommand)("ENV",(0,Of.prepareKeyValueMessage)(t,e));(0,Qa.issueCommand)("set-env",{name:t},r)}Be.exportVariable=E9t;function f9t(t){(0,Qa.issueCommand)("add-mask",{},t)}Be.setSecret=f9t;function C9t(t){process.env.GITHUB_PATH||""?(0,Of.issueFileCommand)("PATH",t):(0,Qa.issueCommand)("add-path",{},t),process.env.PATH=`${t}${d9t.delimiter}${process.env.PATH}`}Be.addPath=C9t;function LK(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}Be.getInput=LK;function B9t(t,e){let r=LK(t,e).split(`
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}Be.getMultilineInput=B9t;function I9t(t,e){let r=["true","True","TRUE"],A=["false","False","FALSE"],s=LK(t,e);if(r.includes(s))return!0;if(A.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Be.getBooleanInput=I9t;function Q9t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,Of.issueFileCommand)("OUTPUT",(0,Of.prepareKeyValueMessage)(t,e));process.stdout.write(z_e.EOL),(0,Qa.issueCommand)("set-output",{name:t},(0,C0.toCommandValue)(e))}Be.setOutput=Q9t;function p9t(t){(0,Qa.issue)("echo",t?"on":"off")}Be.setCommandEcho=p9t;function m9t(t){process.exitCode=UK.Failure,j_e(t)}Be.setFailed=m9t;function y9t(){return process.env.RUNNER_DEBUG==="1"}Be.isDebug=y9t;function b9t(t){(0,Qa.issueCommand)("debug",{},t)}Be.debug=b9t;function j_e(t,e={}){(0,Qa.issueCommand)("error",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.error=j_e;function w9t(t,e={}){(0,Qa.issueCommand)("warning",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.warning=w9t;function D9t(t,e={}){(0,Qa.issueCommand)("notice",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.notice=D9t;function N9t(t){process.stdout.write(t+z_e.EOL)}Be.info=N9t;function K_e(t){(0,Qa.issue)("group",t)}Be.startGroup=K_e;function X_e(){(0,Qa.issue)("endgroup")}Be.endGroup=X_e;function R9t(t,e){return W_e(this,void 0,void 0,function*(){K_e(t);let r;try{r=yield e()}finally{X_e()}return r})}Be.group=R9t;function S9t(t,e){if(process.env.GITHUB_STATE||"")return(0,Of.issueFileCommand)("STATE",(0,Of.prepareKeyValueMessage)(t,e));(0,Qa.issueCommand)("save-state",{name:t},(0,C0.toCommandValue)(e))}Be.saveState=S9t;function T9t(t){return process.env[`STATE_${t}`]||""}Be.getState=T9t;function k9t(t){return W_e(this,void 0,void 0,function*(){return yield h9t.OidcClient.getIDToken(t)})}Be.getIDToken=k9t;var F9t=RK();Object.defineProperty(Be,"summary",{enumerable:!0,get:function(){return F9t.summary}});var x9t=RK();Object.defineProperty(Be,"markdownSummary",{enumerable:!0,get:function(){return x9t.markdownSummary}});var vK=N_e();Object.defineProperty(Be,"toPosixPath",{enumerable:!0,get:function(){return vK.toPosixPath}});Object.defineProperty(Be,"toWin32Path",{enumerable:!0,get:function(){return vK.toWin32Path}});Object.defineProperty(Be,"toPlatformPath",{enumerable:!0,get:function(){return vK.toPlatformPath}});Be.platform=MK(V_e())});var Z_e=E(Mu=>{"use strict";var U9t=Mu&&Mu.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),M9t=Mu&&Mu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L9t=Mu&&Mu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&U9t(e,t,r);return M9t(e,t),e};Object.defineProperty(Mu,"__esModule",{value:!0});Mu.getOptions=void 0;var _K=L9t(go());function v9t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,_K.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,_K.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,_K.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Mu.getOptions=v9t});var JM=E(QA=>{"use strict";var _9t=QA&&QA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),P9t=QA&&QA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),O9t=QA&&QA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&_9t(e,t,r);return P9t(e,t),e},H9t=QA&&QA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(QA,"__esModule",{value:!0});QA.safeTrimTrailingSeparator=QA.normalizeSeparators=QA.hasRoot=QA.hasAbsoluteRoot=QA.ensureAbsoluteRoot=QA.dirname=void 0;var qM=O9t(I("path")),Hf=H9t(I("assert")),ih=process.platform==="win32";function G9t(t){if(t=OK(t),ih&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=qM.dirname(t);return ih&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=OK(e)),e}QA.dirname=G9t;function Y9t(t,e){if(Hf.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Hf.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),PK(e))return e;if(ih){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Hf.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+Line truncated
%s`,J,J,p,A);var j=p.type==="*"?qK:p.type==="?"?YK:"\\"+p.type;s=!0,A=A.slice(0,p.reStart)+j+"\\("+J}h(),n&&(A+="\\\\");var H=!1;switch(A.charAt(0)){case"[":case".":case"(":H=!0}for(var $=o.length-1;$>-1;$--){var oe=o[$],Ie=A.slice(0,oe.reStart),be=A.slice(oe.reStart,oe.reEnd-8),K=A.slice(oe.reEnd-8,oe.reEnd),le=A.slice(oe.reEnd);K+=le;var Le=Ie.split("(").length-1,Yt=le;for(B=0;B<Le;B++)Yt=Yt.replace(/\)[+*?]?/,"");le=Yt;var vt="";le===""&&e!==WM&&(vt="$");var yg=Ie+be+le+vt+K;A=yg}if(A!==""&&s&&(A="(?=.)"+A),H&&(A=g+A),e===WM)return[A,s];if(!s)return BJt(t);var bg=r.nocase?"i":"";try{var mo=new RegExp("^"+A+"$",bg)}catch{return new RegExp("$.")}return mo._glob=t,mo._src=A,mo}ho.makeRe=function(t,e){return new Ps(t,e||{}).makeRe()};Ps.prototype.makeRe=CJt;function CJt(){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?qK:e.dot?cJt:uJt,A=e.nocase?"i":"",s=t.map(function(n){return n.map(function(i){return i===JK?r:typeof i=="string"?IJt(i):i._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,A)}catch{this.regexp=!1}return this.regexp}ho.match=function(t,e,r){r=r||{};var A=new Ps(e,r);return t=t.filter(function(s){return A.match(s)}),A.options.nonull&&!t.length&&t.push(e),t};Ps.prototype.match=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 A=this.options;JD.sep!=="/"&&(e=e.split(JD.sep).join("/")),e=e.split(IPe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,i;for(i=e.length-1;i>=0&&(n=e[i],!n);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;A.matchBase&&o.length===1&&(a=[n]);var c=this.matchOne(a,o,r);if(c)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate};Ps.prototype.matchOne=function(t,e,r){var A=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,i=t.length,o=e.length;s<i&&n<o;s++,n++){this.debug("matchOne loop");var a=e[n],c=t[s];if(this.debug(e,a,c),a===!1)return!1;if(a===JK){this.debug("GLOBSTAR",[e,a,c]);var u=s,l=n+1;if(l===o){for(this.debug("** at the end");s<i;s++)if(t[s]==="."||t[s]===".."||!A.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<i;){var g=t[u];if(this.debug(`
globstar while`,t,u,e,l,g),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,i,g),!0;if(g==="."||g===".."||!A.dot&&g.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===i))}var d;if(typeof a=="string"?(d=c===a,this.debug("string match",a,c,d)):(d=c.match(a),this.debug("pattern match",a,c,d)),!d)return!1}if(s===i&&n===o)return!0;if(s===i)return r;if(n===o)return s===i-1&&t[s]==="";throw new Error("wtf?")};function BJt(t){return t.replace(/\\(.)/g,"$1")}function IJt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var bPe=E(pa=>{"use strict";var QJt=pa&&pa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pJt=pa&&pa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yPe=pa&&pa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&QJt(e,t,r);return pJt(e,t),e},mJt=pa&&pa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pa,"__esModule",{value:!0});pa.Path=void 0;var VD=yPe(I("path")),ah=yPe(JM()),WD=mJt(I("assert")),yJt=process.platform==="win32",VK=class{constructor(e){if(this.segments=[],typeof e=="string")if(WD.default(e,"Parameter 'itemPath' must not be empty"),e=ah.safeTrimTrailingSeparator(e),!ah.hasRoot(e))this.segments=e.split(VD.sep);else{let r=e,A=ah.dirname(r);for(;A!==r;){let s=VD.basename(r);this.segments.unshift(s),r=A,A=ah.dirname(r)}this.segments.unshift(r)}else{WD.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];WD.default(A,"Parameter 'itemPath' must not contain any empty segments"),A=ah.normalizeSeparators(e[r]),r===0&&ah.hasRoot(A)?(A=ah.safeTrimTrailingSeparator(A),WD.default(A===ah.dirname(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)):(WD.default(!A.includes(VD.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(A))}}}toString(){let e=this.segments[0],r=e.endsWith(VD.sep)||yJt&&/^[A-Z]:$/i.test(e);for(let A=1;A<this.segments.length;A++)r?r=!1:e+=VD.sep,e+=this.segments[A];return e}};pa.Path=VK});var wPe=E(ma=>{"use strict";var bJt=ma&&ma.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),wJt=ma&&ma.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jK=ma&&ma.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&bJt(e,t,r);return wJt(e,t),e},DJt=ma&&ma.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ma,"__esModule",{value:!0});ma.Pattern=void 0;var NJt=jK(I("os")),zD=jK(I("path")),Ei=jK(JM()),Gf=DJt(I("assert")),RJt=mPe(),WK=VM(),jM=bPe(),gg=process.platform==="win32",zK=class t{constructor(e,r=!1,A,s){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{A=A||[],Gf.default(A.length,"Parameter 'segments' must not empty");let c=t.getLiteral(A[0]);Gf.default(c&&Ei.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),n=new jM.Path(A).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,s),this.segments=new jM.Path(n).segments,this.trailingSeparator=Ei.normalizeSeparators(n).endsWith(zD.sep),n=Ei.safeTrimTrailingSeparator(n);let i=!1,o=this.segments.map(c=>t.getLiteral(c)).filter(c=>!i&&!(i=c===""));this.searchPath=new jM.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),gg?"i":""),this.isImplicitPattern=r;let a={dot:!0,nobrace:!0,nocase:gg,nocomment:!0,noext:!0,nonegate:!0};n=gg?n.replace(/\\/g,"/"):n,this.minimatch=new RJt.Minimatch(n,a)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Ei.normalizeSeparators(e),!e.endsWith(zD.sep)&&this.isImplicitPattern===!1&&(e=`${e}${zD.sep}`)):e=Ei.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?WK.MatchKind.Directory:WK.MatchKind.All:WK.MatchKind.None}partialMatch(e){return e=Ei.safeTrimTrailingSeparator(e),Ei.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(gg?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(gg?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){Gf.default(e,"pattern cannot be empty");let A=new jM.Path(e).segments.map(s=>t.getLiteral(s));if(Gf.default(A.every((s,n)=>(s!=="."||n===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Gf.default(!Ei.hasRoot(e)||A[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Ei.normalizeSeparators(e),e==="."||e.startsWith(`.${zD.sep}`))e=t.globEscape(process.c Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new SPe.Pattern(n));return A.searchPaths.push(...XM.getSearchPaths(A.patterns)),A})}static stat(e,r,A){return XK(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield jD.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ZK.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield jD.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield jD.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){ZK.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};Qs.DefaultGlobber=$K});var FPe=E(I0=>{"use strict";var MJt=I0&&I0.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(I0,"__esModule",{value:!0});I0.create=void 0;var LJt=kPe();function vJt(t,e){return MJt(this,void 0,void 0,function*(){return yield LJt.DefaultGlobber.create(t,e)})}I0.create=vJt});var _Pe=E((At,vPe)=>{At=vPe.exports=Ct;var sr;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?sr=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:sr=function(){};At.SEMVER_SPEC_VERSION="2.0.0";var XD=256,ZM=Number.MAX_SAFE_INTEGER||9007199254740991,eX=16,_Jt=XD-6,Q0=At.re=[],Ar=At.safeRe=[],X=At.src=[],Y=At.tokens={},MPe=0;function mt(t){Y[t]=MPe++}var rX="[a-zA-Z0-9-]",tX=[["\\s",1],["\\d",XD],[rX,_Jt]];function $D(t){for(var e=0;e<tX.length;e++){var r=tX[e][0],A=tX[e][1];t=t.split(r+"*").join(r+"{0,"+A+"}").split(r+"+").join(r+"{1,"+A+"}")}return t}mt("NUMERICIDENTIFIER");X[Y.NUMERICIDENTIFIER]="0|[1-9]\\d*";mt("NUMERICIDENTIFIERLOOSE");X[Y.NUMERICIDENTIFIERLOOSE]="\\d+";mt("NONNUMERICIDENTIFIER");X[Y.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+rX+"*";mt("MAINVERSION");X[Y.MAINVERSION]="("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")";mt("MAINVERSIONLOOSE");X[Y.MAINVERSIONLOOSE]="("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")";mt("PRERELEASEIDENTIFIER");X[Y.PRERELEASEIDENTIFIER]="(?:"+X[Y.NUMERICIDENTIFIER]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";mt("PRERELEASEIDENTIFIERLOOSE");X[Y.PRERELEASEIDENTIFIERLOOSE]="(?:"+X[Y.NUMERICIDENTIFIERLOOSE]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";mt("PRERELEASE");X[Y.PRERELEASE]="(?:-("+X[Y.PRERELEASEIDENTIFIER]+"(?:\\."+X[Y.PRERELEASEIDENTIFIER]+")*))";mt("PRERELEASELOOSE");X[Y.PRERELEASELOOSE]="(?:-?("+X[Y.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+X[Y.PRERELEASEIDENTIFIERLOOSE]+")*))";mt("BUILDIDENTIFIER");X[Y.BUILDIDENTIFIER]=rX+"+";mt("BUILD");X[Y.BUILD]="(?:\\+("+X[Y.BUILDIDENTIFIER]+"(?:\\."+X[Y.BUILDIDENTIFIER]+")*))";mt("FULL");mt("FULLPLAIN");X[Y.FULLPLAIN]="v?"+X[Y.MAINVERSION]+X[Y.PRERELEASE]+"?"+X[Y.BUILD]+"?";X[Y.FULL]="^"+X[Y.FULLPLAIN]+"$";mt("LOOSEPLAIN");X[Y.LOOSEPLAIN]="[v=\\s]*"+X[Y.MAINVERSIONLOOSE]+X[Y.PRERELEASELOOSE]+"?"+X[Y.BUILD]+"?";mt("LOOSE");X[Y.LOOSE]="^"+X[Y.LOOSEPLAIN]+"$";mt("GTLT");X[Y.GTLT]="((?:<|>)?=?)";mt("XRANGEIDENTIFIERLOOSE");X[Y.XRANGEIDENTIFIERLOOSE]=X[Y.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";mt("XRANGEIDENTIFIER");X[Y.XRANGEIDENTIFIER]=X[Y.NUMERICIDENTIFIER]+"|x|X|\\*";mt("XRANGEPLAIN");X[Y.XRANGEPLAIN]="[v=\\s]*("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:"+X[Y.PRERELEASE]+")?"+X[Y.BUILD]+"?)?)?";mt("XRANGEPLAINLOOSE");X[Y.XRANGEPLAINLOOSE]="[v=\\s]*("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:"+X[Y.PRERELEASELOOSE]+")?"+X[Y.BUILD]+"?)?)?";mt("XRANGE");X[Y.XRANGE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAIN]+"$";mt("XRANGELOOSE");X[Y.XRANGELOOSE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAINLOOSE]+"$";mt("COERCE");X[Y.COERCE]="(^|[^\\d])(\\d{1,"+eX+"})(?:\\.(\\d{1,"+eX+"}))?(?:\\.(\\d{1,"+eX+"}))?(?:$|[^\\d])";mt("COERCERTL");Q0[Y.COERCERTL]=new RegExp(X[Y.COERCE],"g");Ar[Y.COERCERTL]=new RegExp($D(X[Y.COERCE]),"g");mt("LONETILDE");X[Y.LONETILDE]="(?:~>?)";mt("TILDETRIM");X[Y.TILDETRIM]="(\\s*)"+X[Y.LONETILDE]+"\\s+";Q0[Y.TILDETRIM]=new RegExp(X[Y.TILDETRIM],"g");Ar[Y.TILDETRIM]=new RegExp($D(X[Y.TILDETRIM]),"g");var PJt="$1~";mt("TILDE");X[Y.TILDE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAIN]+"$";mt("TILDELOOSE");X[Y.TILDELOOSE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAINLOOSE]+"$";mt("LONECARET");X[Y.LONECARET]="(?:\\^)";mt("CARETTRIM");X[Y.CARETTRIM]="(\\s*)"+X[Y.LONECARET]+"\\s+";Q0[Y.CARETTRIM]=new RegExp(X[Y.CARETTRIM],"g");Ar[Y.CARETTRIM]=new RegExp($D(X[Y.CARETTRIM]),"g");var OJt="$1^";mt("CARET");X[Y.C Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=y6t(a.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let g=s,d=rL.relative(o,g).replace(new RegExp(`\\${rL.sep}`,"g"),"/");eN.debug(`Matched: ${d}`),d===""?i.push("."):i.push(`${d}`)}}catch(g){r={error:g}}finally{try{!c&&!e&&(A=u.return)&&(yield A.call(u))}finally{if(r)throw r.error}}return i})}qt.resolvePaths=k6t;function F6t(t){return y0(this,void 0,void 0,function*(){return N6t.promisify(oX.unlink)(t)})}qt.unlinkFile=F6t;function qPe(t,e=[]){return y0(this,void 0,void 0,function*(){let r="";e.push("--version"),eN.debug(`Checking ${t} ${e.join(" ")}`);try{yield b6t.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:A=>r+=A.toString(),stderr:A=>r+=A.toString()}})}catch(A){eN.debug(A.message)}return r=r.trim(),eN.debug(r),r})}function x6t(){return y0(this,void 0,void 0,function*(){let t=yield qPe("zstd",["--quiet"]),e=D6t.clean(t);return eN.debug(`zstd version: ${e}`),t===""?Jf.CompressionMethod.Gzip:Jf.CompressionMethod.ZstdWithoutLong})}qt.getCompressionMethod=x6t;function U6t(t){return t===Jf.CompressionMethod.Gzip?Jf.CacheFilename.Gzip:Jf.CacheFilename.Zstd}qt.getCacheFileName=U6t;function M6t(){return y0(this,void 0,void 0,function*(){return oX.existsSync(Jf.GnuTarPathOnWindows)?Jf.GnuTarPathOnWindows:(yield qPe("tar")).toLowerCase().includes("gnu tar")?GPe.which("tar"):""})}qt.getGnuTarPathOnWindows=M6t;function L6t(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}qt.assertDefined=L6t;function v6t(t,e,r=!1){let A=t.slice();return e&&A.push(e),process.platform==="win32"&&!r&&A.push("windows-only"),A.push(R6t),YPe.createHash("sha256").update(A.join("|")).digest("hex")}qt.getCacheVersion=v6t;function _6t(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}qt.getRuntimeToken=_6t});var Nr={};Oa(Nr,{__addDisposableResource:()=>EOe,__assign:()=>AL,__asyncDelegator:()=>oOe,__asyncGenerator:()=>iOe,__asyncValues:()=>aOe,__await:()=>w0,__awaiter:()=>eOe,__classPrivateFieldGet:()=>gOe,__classPrivateFieldIn:()=>hOe,__classPrivateFieldSet:()=>dOe,__createBinding:()=>nL,__decorate:()=>WPe,__disposeResources:()=>fOe,__esDecorate:()=>jPe,__exportStar:()=>rOe,__extends:()=>JPe,__generator:()=>tOe,__importDefault:()=>lOe,__importStar:()=>uOe,__makeTemplateObject:()=>cOe,__metadata:()=>$Pe,__param:()=>zPe,__propKey:()=>XPe,__read:()=>uX,__rest:()=>VPe,__rewriteRelativeImportExtension:()=>COe,__runInitializers:()=>KPe,__setFunctionName:()=>ZPe,__spread:()=>AOe,__spreadArray:()=>nOe,__spreadArrays:()=>sOe,__values:()=>sL,default:()=>H6t});function JPe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");aX(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function VPe(t,e){var r={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(r[A]=t[A]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,A=Object.getOwnPropertySymbols(t);s<A.length;s++)e.indexOf(A[s])<0&&Object.prototype.propertyIsEnumerable.call(t,A[s])&&(r[A[s]]=t[A[s]]);return r}function WPe(t,e,r,A){var s=arguments.length,n=s<3?e:A===null?A=Object.getOwnPropertyDescriptor(e,r):A,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,A);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(s<3?i(n):s>3?i(e,r,n):i(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n}function zPe(t,e){return function(r,A){e(r,A,t)}}function jPe(t,e,r,A,s,n){function i(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var o=A.kind,a=o==="getter"?"get":o==="setter"?"set":"value",c=!e&&t?A.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,A.name):{}),l,g=!1,d=r.length-1;d>=0;d--){var h={};for(var B in A)h[B]=B==="access"?{}:A[B];for(var B in A.access)h.access[B]=A.access[B];h.addInitializer=function(C){if(g)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(C||null))};var Q=(0,r[d])(o==="accessor"?{get:u.get,set:u.set}:u[a],h);if(o==="accessor"){if(Q===void 0)continue;if(Q===null||typeof Q!="object")throw new TypeError("Object expected");(l=i(Q.get))&&(u.get=l),(l=i(Q.set))&&(u.set=l),(l=i(Q.init))&&s.unshift(l)}else(l=i(Q))&&(o==="field"?s.unshift(l):u[a]=l)}c&&Object.defineProperty(c,A.name,u),g=!0}function KPe(t,e,r){for(var A=arguments.length>2,s=0;s<e.length;s++)r=A?e[s].call(t,r):e[s].call(t);return A?r:void 0}function XPe(t){return typeof t=="symbol"?t:"".concat(t)}function ZPe(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function $Pe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function eOe(t,e,r,A){function s(n){return Line truncated
${CVt.sanitize({...this,request:{...this.request,agent:A},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};sN.RestError=EL;function BVt(t){return t instanceof EL?!0:(0,hVt.isError)(t)&&t.name==="RestError"}});var Vf=E(fL=>{"use strict";Object.defineProperty(fL,"__esModule",{value:!0});fL.uint8ArrayToString=IVt;fL.stringToUint8Array=QVt;function IVt(t,e){return Buffer.from(t).toString(e)}function QVt(t,e){return Buffer.from(t,e)}});var nN=E(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0});CL.logger=void 0;var pVt=cL();CL.logger=(0,pVt.createClientLogger)("ts-http-runtime")});var HOe=E(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.getBodyLength=OOe;IL.createNodeHttpClient=SVt;var LX=(Rr(),xr(Nr)),xX=LX.__importDefault(I("node:http")),UX=LX.__importDefault(I("node:https")),LOe=LX.__importDefault(I("node:zlib")),mVt=I("node:stream"),vOe=tN(),yVt=lh(),oN=D0(),N0=nN(),bVt=AN(),wVt={};function iN(t){return t&&typeof t.pipe=="function"}function _Oe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function POe(t){return t&&typeof t.byteLength=="number"}var BL=class extends mVt.Transform{loadedBytes=0;progressCallback;_transform(e,r,A){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),A()}catch(s){A(s)}}constructor(e){super(),this.progressCallback=e}},MX=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,A;if(e.abortSignal){if(e.abortSignal.aborted)throw new vOe.AbortError("The operation was aborted. Request has already been canceled.");A=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",A)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new bVt.Sanitizer;N0.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),i=n?.includes("gzip")||n?.includes("deflate"),o=typeof e.body=="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){let c=OOe(o);c!==null&&e.headers.set("Content-Length",c)}let a;try{if(o&&e.onUploadProgress){let h=e.onUploadProgress,B=new BL(h);B.on("error",Q=>{N0.logger.error("Error in upload progress",Q)}),iN(o)?o.pipe(B):B.end(o),o=B}let c=await this.makeRequest(e,r,o);s!==void 0&&clearTimeout(s);let u=DVt(c),g={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),g;a=i?NVt(c,u):c;let d=e.onDownloadProgress;if(d){let h=new BL(d);h.on("error",B=>{N0.logger.error("Error in download progress",B)}),a.pipe(h),a=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(g.status)?g.readableStreamBody=a:g.bodyAsText=await RVt(a),g}finally{if(e.abortSignal&&A){let c=Promise.resolve();iN(o)&&(c=_Oe(o));let u=Promise.resolve();iN(a)&&(u=_Oe(a)),Promise.all([c,u]).then(()=>{A&&e.abortSignal?.removeEventListener("abort",A)}).catch(l=>{N0.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,A){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let o={agent:e.agent??this.getOrCreateAgent(e,n),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((a,c)=>{let u=n?xX.default.request(o,a):UX.default.request(o,a);u.once("error",l=>{c(new oN.RestError(l.message,{code:l.code??oN.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new vOe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),A&&iN(A)?A.pipe(u):A?typeof A=="string"||Buffer.isBuffer(A)?u.end(A):POe(A)?u.end(ArrayBuffer.isView(A)?Buffer.from(A.buffer):Buffer.from(A)):(N0.logger.error("Unrecognized body type",A),c(new oN.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let A=e.disableKeepAlive;if(r)return A?xX.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new xX.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(A&&!e.tlsSettings)return UX.default.globalAgent;let s=e.tlsSettings??wVt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!A||(N0.logger.info("No cached TLS Agent exist, creating a new Agent"),n=new UX.default.Agent({keepAlive:!A,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function DVt(t){let e=(0,yVt.createHttpHeaders)();for(let r of Object.keys(t.headers)){let A=t.headers[r];Array.isArray(A)?A.length>0&&e.set(r,A[0]):A&&e.set(r,A)}return e}function NVt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let A=LOe.default.createGunzip();return t.pipe(A),A}else if(r==="deflate"){let A=LOe.default.createInflate();return t.p Line truncated
${i}`:n.stack}q.exports.fetch=function(e,r=void 0){return r8e(e,r).catch(s=>{throw HK?qK(s,HK):s&&typeof s=="object"&&Error.captureStackTrace(s,q.exports.fetch),s})};q.exports.Headers=dc().Headers;q.exports.Response=df().Response;q.exports.Request=Ml().Request;q.exports.FormData=K0().FormData;var{setGlobalOrigin:s8e,getGlobalOrigin:n8e}=wD();q.exports.setGlobalOrigin=s8e;q.exports.getGlobalOrigin=n8e;var{CacheStorage:i8e}=Dz(),{kConstruct:o8e}=Ye();q.exports.caches=new i8e(o8e);var{deleteCookie:a8e,getCookies:A8e,getSetCookies:c8e,setCookie:u8e,parseCookie:l8e}=Hz();q.exports.deleteCookie=a8e;q.exports.getCookies=A8e;q.exports.getSetCookies=c8e;q.exports.setCookie=u8e;q.exports.parseCookie=l8e;var{parseMIMEType:d8e,serializeAMimeType:g8e}=on();q.exports.parseMIMEType=d8e;q.exports.serializeAMimeType=g8e;var{CloseEvent:h8e,ErrorEvent:f8e,MessageEvent:m8e}=hI(),{WebSocket:p8e,ping:E8e}=CK();q.exports.WebSocket=p8e;q.exports.CloseEvent=h8e;q.exports.ErrorEvent=f8e;q.exports.MessageEvent=m8e;q.exports.ping=E8e;q.exports.WebSocketStream=SK().WebSocketStream;q.exports.WebSocketError=rR().WebSocketError;q.exports.request=bf(Vl.request);q.exports.stream=bf(Vl.stream);q.exports.pipeline=bf(Vl.pipeline);q.exports.connect=bf(Vl.connect);q.exports.upgrade=bf(Vl.upgrade);q.exports.MockClient=q3e;q.exports.MockCallHistory=J3e;q.exports.MockCallHistoryLog=V3e;q.exports.MockPool=z3e;q.exports.MockAgent=W3e;q.exports.SnapshotAgent=K3e;q.exports.mockErrors=X3e;var{EventSource:C8e}=OK();q.exports.EventSource=C8e;function I8e(){globalThis.fetch=q.exports.fetch,globalThis.Headers=q.exports.Headers,globalThis.Response=q.exports.Response,globalThis.Request=q.exports.Request,globalThis.FormData=q.exports.FormData,globalThis.WebSocket=q.exports.WebSocket,globalThis.CloseEvent=q.exports.CloseEvent,globalThis.ErrorEvent=q.exports.ErrorEvent,globalThis.MessageEvent=q.exports.MessageEvent,globalThis.EventSource=q.exports.EventSource}q.exports.install=I8e});var wf=p(ka=>{"use strict";ka.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ka.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ka.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ka.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ka.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ka.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ka.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var WK=p((yrt,VK)=>{"use strict";var{asciiLowercase:TI,solelyContainsHTTPTokenCodePoints:B8e,soleyContainsHTTPQuotedStringTokenCodePoints:Q8e}=wf();VK.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=TI(String(e)),this._map.get(e)}has(e){return e=TI(String(e)),this._map.has(e)}set(e,r){if(e=TI(String(e)),r=String(r),!B8e(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Q8e(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=TI(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var XK=p((brt,KK)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:y8e,removeTrailingHTTPWhitespace:zK,isHTTPWhitespaceChar:b8e,solelyContainsHTTPTokenCodePoints:AR,soleyContainsHTTPQuotedStringTokenCodePoints:w8e,asciiLowercase:cR,collectAnHTTPQuotedString:N8e}=wf();KK.exports=t=>{t=y8e(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!AR(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=zK(s),s.length===0||!AR(s))return null;let n={type:cR(r),subtype:cR(s),parameters:new Map};for(;e<t.length;){for(++e;b8e(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=cR(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=N8e(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=zK(o),o==="")continue}i.length>0&&AR(i)&&w8e(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var ZK=p((wrt,jK)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:S8e}=wf();jK.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!S8e(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var rX=p((Srt,tX)=>{"use strict";var D8e=WK(),T8e=XK(),x8e=ZK(),{asciiLowercase:$K,solelyContainsHTTPTokenCodePoints:eX}=wf();tX.exports=class{constructor(e){e=String(e);let r=T8e(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new D8e(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=$K(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!eX(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=$K(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!eX(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return x8e(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var dX=p(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.getProxyUrl=V8e;FI.checkBypass=lX;function V8e(t){let e=t.protocol==="https:";if(lX(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 kI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new kI(`http://${r}`)}else return}function lX(t){if(!t.hostname)return!1;let e=t.hostname;if(W8e(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostnameLine truncated
%s`,F,F,b,s);var L=b.type==="*"?_R:b.type==="?"?HR:"\\"+b.type;n=!0,s=s.slice(0,b.reStart)+L+"\\("+F}f(),i&&(s+="\\\\");var Y=!1;switch(s.charAt(0)){case"[":case".":case"(":Y=!0}for(var O=a.length-1;O>-1;O--){var v=a[O],de=s.slice(0,v.reStart),Ce=s.slice(v.reStart,v.reEnd-8),ce=s.slice(v.reEnd-8,v.reEnd),ae=s.slice(v.reEnd);ce+=ae;var Ie=de.split("(").length-1,gt=ae;for(m=0;m<Ie;m++)gt=gt.replace(/\)[+*?]?/,"");ae=gt;var mt="";ae===""&&e!==GI&&(mt="$");var wn=de+Ce+ae+mt+ce;s=wn}if(s!==""&&n&&(s="(?=.)"+s),Y&&(s=g+s),e===GI)return[s,n];if(!n)return kOe(t);var Nn=r.nocase?"i":"";try{var Sd=new RegExp("^"+s+"$",Nn)}catch{return new RegExp("$.")}return Sd._glob=t,Sd._src=s,Sd}Rs.makeRe=function(t,e){return new Ot(t,e||{}).makeRe()};Ot.prototype.makeRe=ROe;function ROe(){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?_R:e.dot?yOe:bOe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===yc?r:typeof o=="string"?FOe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}Rs.match=function(t,e,r){r=r||{};var s=new Ot(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Ot.prototype.match=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 s=this.options;Rf.sep!=="/"&&(e=e.split(Rf.sep).join("/")),e=e.split(Qj),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Ot.prototype.matchOne=function(t,e,r){return e.indexOf(yc)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Ot.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===yc){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===yc){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var m=String(t[i]);if(f=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||f}for(var B=[[[],0]],E=B[0],b=0,S=[0],R=0;R<c.length;R++){var F=c[R];F===yc?(S.push(b),E=[[],0],B.push(E)):(E[0].push(F),b++)}for(var L=B.length-1,Y=t.length-g,O=0;O<B.length;O++)B[O][1]=Y-(S[L--]+B[O][0].length);return!!this._matchGlobStarBodySections(t,B,s,0,r,0,!!g)};Ot.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};Ot.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===yc)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function kOe(t){return t.replace(/\\(.)/g,"$1")}function FOe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Xl=p((Snt,Sj)=>{"use strict";var POe="2.0.0",OOe=Number.MAX_SAFE_INTEGER||9007199254740991,HOe=16,_Oe=250,GOe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Sj.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:HOe,MAX_SAFE_BUILD_LENGTH:_Oe,MAX_SAFE_INTEGER:OOe,RELEASE_TYPES:GOe,SEMVER_SPEC_VERSION:POe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kf=p((Dnt,Dj)=>{"use strict";var YOe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Dj.exports=YOe});var jl=p((Ti,Tj)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:GR,MAX_SAFE_BUILD_LENGTH:qOe,MAX_LENGTH:JOe}=Xl(),VOe=kf();Ti=Tj.exports={};var WOe=Ti.re=[],zOe=Ti.safeRe=[],J=Ti.src=[],KOe=Ti.safeSrc=[],V=Ti.t={},XOe=0,YR="[a-zA-Z0-9-]",jOe=[["\\s",1],["\\d",JOe],[YR,qOe]],ZOe=t=>{for(let[e,r]of jOe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+n),t.push(s+"m+"+SL.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=OWt()+e+" "+t[0]}function OWt(){return ms.inspectOpts.hideDate?"":new Date().toISOString()+" "}function HWt(...t){return process.stderr.write(RL.formatWithOptions(ms.inspectOpts,...t)+`
`)}function GWt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function YWt(){return process.env.DEBUG}function qWt(t){t.inspectOpts={};let e=Object.keys(ms.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ms.inspectOpts[e[r]]}SL.exports=eZ()(ms);var{formatters:uHe}=SL.exports;uHe.o=function(t){return this.inspectOpts.colors=this.useColors,RL.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};uHe.O=function(t){return this.inspectOpts.colors=this.useColors,RL.inspect(t,this.inspectOpts)}});var TL=E((hwr,AZ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AZ.exports=sHe():AZ.exports=lHe()});var hHe=E(Ci=>{"use strict";var JWt=Ci&&Ci.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),VWt=Ci&&Ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gHe=Ci&&Ci.__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)&&JWt(e,t,r);return VWt(e,t),e};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.req=Ci.json=Ci.toBuffer=void 0;var WWt=gHe(I("http")),zWt=gHe(I("https"));async function dHe(t){let e=0,r=[];for await(let A of t)e+=A.length,r.push(A);return Buffer.concat(r,e)}Ci.toBuffer=dHe;async function jWt(t){let r=(await dHe(t)).toString("utf8");try{return JSON.parse(r)}catch(A){let s=A;throw s.message+=` (input: ${r})`,s}}Ci.json=jWt;function KWt(t,e={}){let A=((typeof t=="string"?t:t.href).startsWith("https:")?zWt:WWt).request(t,e),s=new Promise((n,i)=>{A.once("response",n).once("error",i).end()});return A.then=s.then.bind(s),A}Ci.req=KWt});var nZ=E(Eo=>{"use strict";var fHe=Eo&&Eo.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),XWt=Eo&&Eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CHe=Eo&&Eo.__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)&&fHe(e,t,r);return XWt(e,t),e},ZWt=Eo&&Eo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fHe(e,t,r)};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.Agent=void 0;var $Wt=CHe(I("net")),EHe=CHe(I("http")),ezt=I("https");ZWt(hHe(),Eo);var vu=Symbol("AgentBaseInternalState"),sZ=class extends EHe.Agent{constructor(e){super(e),this[vu]={}}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(A=>A.indexOf("(https.js:")!==-1||A.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 $Wt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let A=this.sockets[e],s=A.indexOf(r);s!==-1&&(A.splice(s,1),this.totalSocketCount--,A.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?ezt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,A){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),i=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(this.decrementSockets(n,i),o instanceof EHe.Agent)try{return o.addRequest(e,s)}catch(a){return A(a)}this[vu].currentSocket=o,super.createSocket(e,r,A)},o=>{this.decrementSockets(n,i),A(o)})}createConnection(){let e=this[vu].currentSocket;if(this[vu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[vu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[vu]&&(this[vu].defaultPort=e)}get protocol(){return this[vu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[vu]&&(this[vu].protocol=e)}};Eo.Agent=sZ});var BHe=E(P0=>{"use strict";var tzt=P0&&P0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P0,"__esModule",{value:!0});P0.parseProxyResponse=void 0;var rzt=tzt(TL()),kL=(0,rzt.default)("https-proxy-agent:parse-proxy-response");function Azt(t){return new Promise((e,r)=>{let A=0,s=[];function n(){let u=t.read();u?c(u):t.once("readable",n)}function i(){t.removeListener("end",o),t.removeListener("error",a),t.removeListener("readable",n)}function o(){i(),kL("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function a(u){i(),kL("onerror %o",u),r(u)}function c(u){s.push(u),A+=u.length;let l=Buffer.concat(s,A),g=l.indexOf(`\r
`+i),t.push(n+"m+"+lB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=w5e()+e+" "+t[0]}function w5e(){return er.inspectOpts.hideDate?"":new Date().toISOString()+" "}function N5e(...t){return process.stderr.write(uB.formatWithOptions(er.inspectOpts,...t)+`
`)}function S5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function D5e(){return process.env.DEBUG}function T5e(t){t.inspectOpts={};let e=Object.keys(er.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=er.inspectOpts[e[r]]}lB.exports=Ik()(er);var{formatters:q$}=lB.exports;q$.o=function(t){return this.inspectOpts.colors=this.useColors,uB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};q$.O=function(t){return this.inspectOpts.colors=this.useColors,uB.inspect(t,this.inspectOpts)}});var dB=p((cat,yk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?yk.exports=P$():yk.exports=J$()});var z$=p(ns=>{"use strict";var x5e=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),R5e=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),V$=ns&&ns.__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)&&x5e(e,t,r);return R5e(e,t),e};Object.defineProperty(ns,"__esModule",{value:!0});ns.req=ns.json=ns.toBuffer=void 0;var k5e=V$(w("http")),F5e=V$(w("https"));async function W$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}ns.toBuffer=W$;async function M5e(t){let r=(await W$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}ns.json=M5e;function U5e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?F5e:k5e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}ns.req=U5e});var wk=p(ks=>{"use strict";var X$=ks&&ks.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),L5e=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),j$=ks&&ks.__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)&&X$(e,t,r);return L5e(e,t),e},v5e=ks&&ks.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&X$(e,t,r)};Object.defineProperty(ks,"__esModule",{value:!0});ks.Agent=void 0;var P5e=j$(w("net")),K$=j$(w("http")),O5e=w("https");v5e(z$(),ks);var xi=Symbol("AgentBaseInternalState"),bk=class extends K$.Agent{constructor(e){super(e),this[xi]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 P5e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?O5e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof K$.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[xi].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[xi].currentSocket;if(this[xi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[xi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[xi]&&(this[xi].defaultPort=e)}get protocol(){return this[xi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[xi]&&(this[xi].protocol=e)}};ks.Agent=bk});var Z$=p(rd=>{"use strict";var H5e=rd&&rd.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rd,"__esModule",{value:!0});rd.parseProxyResponse=void 0;var _5e=H5e(dB()),gB=(0,_5e.default)("https-proxy-agent:parse-proxy-response");function G5e(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),gB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),gB("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),g=l.indexOf(`\r
\r
`);if(g===-1){kL("have not received end of HTTP headers yet..."),n();return}let d=l.slice(0,g).toString("ascii").split(`\r
`),h=d.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let B=h.split(" "),Q=+B[1],C=B.slice(2).join(" "),p={};for(let w of d){if(!w)continue;let k=w.indexOf(":");if(k===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let J=w.slice(0,k).toLowerCase(),j=w.slice(k+1).trimStart(),H=p[J];typeof H=="string"?p[J]=[H,j]:Array.isArray(H)?H.push(j):p[J]=j}kL("got proxy server response: %o %o",h,p),i(),e({connect:{statusCode:Q,statusText:C,headers:p},buffered:l})}t.on("error",a),t.on("end",o),n()})}P0.parseProxyResponse=Azt});var bHe=E(wa=>{"use strict";var szt=wa&&wa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),nzt=wa&&wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mHe=wa&&wa.__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)&&szt(e,t,r);return nzt(e,t),e},yHe=wa&&wa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wa,"__esModule",{value:!0});wa.HttpsProxyAgent=void 0;var FL=mHe(I("net")),IHe=mHe(I("tls")),izt=yHe(I("assert")),ozt=yHe(TL()),azt=nZ(),czt=I("url"),uzt=BHe(),uN=(0,ozt.default)("https-proxy-agent"),QHe=t=>t.servername===void 0&&t.host&&!FL.isIP(t.host)?{...t,servername:t.host}:t,xL=class extends azt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new czt.URL(e):e,this.proxyHeaders=r?.headers??{},uN("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let A=(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?pHe(r,"headers"):null,host:A,port:s}}async connect(e,r){let{proxy:A}=this;if(!r.host)throw new TypeError('No "host" provided');let s;A.protocol==="https:"?(uN("Creating `tls.Socket`: %o",this.connectOpts),s=IHe.connect(QHe(this.connectOpts))):(uN("Creating `net.Socket`: %o",this.connectOpts),s=FL.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=FL.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(A.username||A.password){let g=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}n.Host=`${i}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(n))o+=`${g}: ${n[g]}\r
`;let a=(0,uzt.parseProxyResponse)(s);s.write(`${o}\r
`);let{connect:c,buffered:u}=await a;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",lzt),r.secureEndpoint?(uN("Upgrading socket connection to TLS"),IHe.connect({...pHe(QHe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FL.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{uN("Replaying proxy buffer for failed request"),(0,izt.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};xL.protocols=["http","https"];wa.HttpsProxyAgent=xL;function lzt(t){t.resume()}function pHe(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var NHe=E(Da=>{"use strict";var gzt=Da&&Da.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),dzt=Da&&Da.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DHe=Da&&Da.__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)&&gzt(e,t,r);return dzt(e,t),e},hzt=Da&&Da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Da,"__esModule",{value:!0});Da.HttpProxyAgent=void 0;var Ezt=DHe(I("net")),fzt=DHe(I("tls")),Czt=hzt(TL()),Bzt=I("events"),Izt=nZ(),wHe=I("url"),O0=(0,Czt.default)("http-proxy-agent"),UL=class extends Izt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new wHe.URL(e):e,this.proxyHeaders=r?.headers??{},O0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let A=(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?Qzt(r,"headers"):null,host:A,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:A}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",i=`${s}//${n}`,o=new wHe.URL(e.path,i);r.port!==80&&(o.port=String(r.port)),e.path=String(o);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(A.username||A.password){let c=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(a)){let u=a[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let A,s;O0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(O0("Patching connection write() output buffer with updated header"),A=e.outputData[0].data,s=A.indexOf(`\r
`);if(g===-1){gB("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=f.split(" "),B=+m[1],E=m.slice(2).join(" "),b={};for(let S of h){if(!S)continue;let R=S.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let F=S.slice(0,R).toLowerCase(),L=S.slice(R+1).trimStart(),Y=b[F];typeof Y=="string"?b[F]=[Y,L]:Array.isArray(Y)?Y.push(L):b[F]=L}gB("got proxy server response: %o %o",f,b),o(),e({connect:{statusCode:B,statusText:E,headers:b},buffered:l})}t.on("error",A),t.on("end",a),i()})}rd.parseProxyResponse=G5e});var nee=p(Cn=>{"use strict";var Y5e=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),q5e=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ree=Cn&&Cn.__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)&&Y5e(e,t,r);return q5e(e,t),e},see=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpsProxyAgent=void 0;var hB=ree(w("net")),$$=ree(w("tls")),J5e=see(w("assert")),V5e=see(dB()),W5e=wk(),z5e=w("url"),K5e=Z$(),Yf=(0,V5e.default)("https-proxy-agent"),eee=t=>t.servername===void 0&&t.host&&!hB.isIP(t.host)?{...t,servername:t.host}:t,fB=class extends W5e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new z5e.URL(e):e,this.proxyHeaders=r?.headers??{},Yf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?tee(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Yf("Creating `tls.Socket`: %o",this.connectOpts),n=$$.connect(eee(this.connectOpts))):(Yf("Creating `net.Socket`: %o",this.connectOpts),n=hB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=hB.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let g=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(i))a+=`${g}: ${i[g]}\r
`;let A=(0,K5e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",X5e),r.secureEndpoint?(Yf("Upgrading socket connection to TLS"),$$.connect({...tee(eee(r),"host","path","port"),socket:n})):n;n.destroy();let l=new hB.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{Yf("Replaying proxy buffer for failed request"),(0,J5e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};fB.protocols=["http","https"];Cn.HttpsProxyAgent=fB;function X5e(t){t.resume()}function tee(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var aee=p(In=>{"use strict";var j5e=In&&In.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Z5e=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oee=In&&In.__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)&&j5e(e,t,r);return Z5e(e,t),e},$5e=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var e9e=oee(w("net")),t9e=oee(w("tls")),r9e=$5e(dB()),s9e=w("events"),n9e=wk(),iee=w("url"),sd=(0,r9e.default)("http-proxy-agent"),mB=class extends n9e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new iee.URL(e):e,this.proxyHeaders=r?.headers??{},sd("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?i9e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new iee.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;sd("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(sd("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+A.substring(s),O0("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(O0("Creating `tls.Socket`: %o",this.connectOpts),n=fzt.connect(this.connectOpts)):(O0("Creating `net.Socket`: %o",this.connectOpts),n=Ezt.connect(this.connectOpts)),await(0,Bzt.once)(n,"connect"),n}};UL.protocols=["http","https"];Da.HttpProxyAgent=UL;function Qzt(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var iZ=E(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.globalNoProxyList=Na.proxyPolicyName=void 0;Na.loadNoProxy=FHe;Na.getDefaultProxySettings=Tzt;Na.proxyPolicy=Fzt;var pzt=bHe(),mzt=NHe(),yzt=nN(),bzt="HTTPS_PROXY",wzt="HTTP_PROXY",Dzt="ALL_PROXY",Nzt="NO_PROXY";Na.proxyPolicyName="proxyPolicy";Na.globalNoProxyList=[];var THe=!1,Rzt=new Map;function ML(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function kHe(){if(!process)return;let t=ML(bzt),e=ML(Dzt),r=ML(wzt);return t||e||r}function Szt(t,e,r){if(e.length===0)return!1;let A=new URL(t).hostname;if(r?.has(A))return r.get(A);let s=!1;for(let n of e)n[0]==="."?(A.endsWith(n)||A.length===n.length-1&&A===n.slice(1))&&(s=!0):A===n&&(s=!0);return r?.set(A,s),s}function FHe(){let t=ML(Nzt);return THe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function Tzt(t){if(!t&&(t=kHe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function kzt(){let t=kHe();return t?new URL(t):void 0}function RHe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function SHe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&yzt.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let n=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new mzt.HttpProxyAgent(r,{headers:n})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new pzt.HttpsProxyAgent(r,{headers:n})),t.agent=e.httpsProxyAgent)}function Fzt(t,e){THe||Na.globalNoProxyList.push(...FHe());let r=t?RHe(t):kzt(),A={};return{name:Na.proxyPolicyName,async sendRequest(s,n){return!s.proxySettings&&r&&!Szt(s.url,e?.customNoProxyList??Na.globalNoProxyList,e?.customNoProxyList?void 0:Rzt)?SHe(s,A,r):s.proxySettings&&SHe(s,A,RHe(s.proxySettings)),n(s)}}}});var oZ=E(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});H0.agentPolicyName=void 0;H0.agentPolicy=xzt;H0.agentPolicyName="agentPolicy";function xzt(t){return{name:H0.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var aZ=E(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.tlsPolicyName=void 0;G0.tlsPolicy=Uzt;G0.tlsPolicyName="tlsPolicy";function Uzt(t){return{name:G0.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var lN=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.isNodeReadableStream=xHe;jf.isWebReadableStream=UHe;jf.isBinaryBody=Mzt;jf.isReadableStream=MHe;jf.isBlob=Lzt;function xHe(t){return!!(t&&typeof t.pipe=="function")}function UHe(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Mzt(t){return t!==void 0&&(t instanceof Uint8Array||MHe(t)||typeof t=="function"||t instanceof Blob)}function MHe(t){return xHe(t)||UHe(t)}function Lzt(t){return typeof t.stream=="function"}});var _He=E(uZ=>{"use strict";Object.defineProperty(uZ,"__esModule",{value:!0});uZ.concat=Ozt;var cZ=I("stream"),vzt=lN();async function*LHe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function _zt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=LHe.bind(t)),t.values||(t.values=LHe.bind(t))}function vHe(t){return t instanceof ReadableStream?(_zt(t),cZ.Readable.fromWeb(t)):t}function Pzt(t){return t instanceof Uint8Array?cZ.Readable.from(Buffer.from(t)):(0,vzt.isBlob)(t)?vHe(t.stream()):vHe(t)}async function Ozt(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(Pzt);return cZ.Readable.from((async function*(){for(let r of e)for await(let A of r)yield A})())}}});var lZ=E(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.multipartPolicyName=void 0;q0.multipartPolicy=Zzt;var Y0=Vf(),Hzt=lN(),Gzt=lL(),Yzt=_He();function qzt(){return`----AzSDKFormBoundary${(0,Gzt.randomUUID)()}`}function Jzt(t){let e="";for(let[r,A]of t)e+=`${r}: ${A}\r
`;return e}function Vzt(t){return t instanceof Uint8Array?t.byteLength:(0,Hzt.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Wzt(t){let e=0;for(let r of t){let A=Vzt(r);if(A===void 0)return;e+=A}return e}async function zzt(t,e,r){let A=[(0,Y0.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(n=>[(0,Y0.stringToUint8Array)(`\r
`,"utf-8"),(0,Y0.stringToUint8Array)(Jzt(n.headers),"utf-8"),(0,Y0.stringToUint8Array)(`\r
`,"utf-8"),n.body,(0,Y0.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,Y0.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Wzt(A);s&&t.headers.set("Content-Length",s),t.body=await(0,Yzt.concat)(A)}q0.multipartPolicyName="multipartPolicy";var jzt=70,Kzt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Xzt(t){if(t.length>jzt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Kzt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Zzt(){return{name:q0.multipartPolicyName,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,A=t.headers.get("Content-Type")??"multipart/mixed",s=A.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${A}`);let[,n,i]=s;if(i&&r&&i!==r)throw new Error(`Multipart boundary was specified as ${i} in the header, but got ${r} in the request body`);return r??=i,r?Xzt(r):r=qzt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await zzt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var HHe=E(gZ=>{"use strict";Object.defineProperty(gZ,"__esModule",{value:!0});gZ.createPipelineFromOptions=c7t;var $zt=PX(),e7t=NX(),t7t=OX(),r7t=YX(),A7t=qX(),s7t=ZX(),n7t=$X(),PHe=cN(),i7t=iZ(),o7t=oZ(),a7t=aZ(),OHe=lZ();function c7t(t){let e=(0,e7t.createEmptyPipeline)();return PHe.isNodeLike&&(t.agent&&e.addPolicy((0,o7t.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,a7t.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,i7t.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,A7t.decompressResponsePolicy)())),e.addPolicy((0,n7t.formDataPolicy)(),{beforePolicies:[OHe.multipartPolicyName]}),e.addPolicy((0,r7t.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,OHe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,s7t.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),PHe.isNodeLike&&e.addPolicy((0,t7t.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,$zt.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var GHe=E(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});J0.apiVersionPolicyName=void 0;J0.apiVersionPolicy=u7t;J0.apiVersionPolicyName="ApiVersionPolicy";function u7t(t){return{name:J0.apiVersionPolicyName,sendRequest:(e,r)=>{let A=new URL(e.url);return!A.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(A.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var YHe=E(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.isOAuth2TokenCredential=l7t;V0.isBearerTokenCredential=g7t;V0.isBasicCredential=d7t;V0.isApiKeyCredential=h7t;function l7t(t){return"getOAuth2Token"in t}function g7t(t){return"getBearerToken"in t}function d7t(t){return"username"in t&&"password"in t}function h7t(t){return"key"in t}});var gN=E(dZ=>{"use strict";Object.defineProperty(dZ,"__esModule",{value:!0});dZ.ensureSecureConnection=B7t;var E7t=nN(),qHe=!1;function f7t(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function C7t(){let t="Sending token over insecure transport. Assume any token issued is compromised.";E7t.logger.warning(t),typeof process?.emitWarning=="function"&&!qHe&&(qHe=!0,process.emitWarning(t))}function B7t(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(f7t(t,e))C7t();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var JHe=E(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.apiKeyAuthenticationPolicyName=void 0;W0.apiKeyAuthenticationPolicy=Q7t;var I7t=gN();W0.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Q7t(t){return{name:W0.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,I7t.ensureSecureConnection)(e,t);let A=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!A)return r(e);if(A.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${A.apiKeyLocation}`);return e.headers.set(A.name,t.credential.key),r(e)}}}});var WHe=E(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.basicAuthenticationPolicyName=void 0;z0.basicAuthenticationPolicy=m7t;var VHe=Vf(),p7t=gN();z0.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function m7t(t){return{name:z0.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,p7t.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(o=>o.kind==="http"&&o.scheme==="basic"))return r(e);let{username:s,password:n}=t.credential,i=(0,VHe.uint8ArrayToString)((0,VHe.stringToUint8Array)(`${s}:${n}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${i}`),r(e)}}}});var zHe=E(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.bearerAuthenticationPolicyName=void 0;j0.bearerA Line truncated
`).join(""))}return e(t)}}}});var G8e=E($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.auxiliaryAuthenticationHeaderPolicyName=void 0;$f.auxiliaryAuthenticationHeaderPolicy=nZt;var rZt=E$(),AZt=EN();$f.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var H8e="x-ms-authorization-auxiliary";async function sZt(t){let{scopes:e,getAccessToken:r,request:A}=t,s={abortSignal:A.abortSignal,tracingOptions:A.tracingOptions};return(await r(e,s))?.token??""}function nZt(t){let{credentials:e,scopes:r}=t,A=t.logger||AZt.logger,s=new WeakMap;return{name:$f.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(n,i){if(!n.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return A.info(`${$f.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),i(n);let o=[];for(let c of e){let u=s.get(c);u||(u=(0,rZt.createTokenCycler)(c),s.set(c,u)),o.push(sZt({scopes:Array.isArray(r)?r:[r],request:n,getAccessToken:u,logger:A}))}let a=(await Promise.all(o)).filter(c=>!!c);return a.length===0?(A.warning(`None of the auxiliary tokens are valid. ${H8e} header will not be set.`),i(n)):(n.headers.set(H8e,a.map(c=>`Bearer ${c}`).join(", ")),i(n))}}}});var ns=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.createFileFromStream=Ae.createFile=Ae.agentPolicyName=Ae.agentPolicy=Ae.auxiliaryAuthenticationHeaderPolicyName=Ae.auxiliaryAuthenticationHeaderPolicy=Ae.ndJsonPolicyName=Ae.ndJsonPolicy=Ae.bearerTokenAuthenticationPolicyName=Ae.bearerTokenAuthenticationPolicy=Ae.formDataPolicyName=Ae.formDataPolicy=Ae.tlsPolicyName=Ae.tlsPolicy=Ae.userAgentPolicyName=Ae.userAgentPolicy=Ae.defaultRetryPolicy=Ae.tracingPolicyName=Ae.tracingPolicy=Ae.retryPolicy=Ae.throttlingRetryPolicyName=Ae.throttlingRetryPolicy=Ae.systemErrorRetryPolicyName=Ae.systemErrorRetryPolicy=Ae.redirectPolicyName=Ae.redirectPolicy=Ae.getDefaultProxySettings=Ae.proxyPolicyName=Ae.proxyPolicy=Ae.multipartPolicyName=Ae.multipartPolicy=Ae.logPolicyName=Ae.logPolicy=Ae.setClientRequestIdPolicyName=Ae.setClientRequestIdPolicy=Ae.exponentialRetryPolicyName=Ae.exponentialRetryPolicy=Ae.decompressResponsePolicyName=Ae.decompressResponsePolicy=Ae.isRestError=Ae.RestError=Ae.createPipelineRequest=Ae.createHttpHeaders=Ae.createDefaultHttpClient=Ae.createPipelineFromOptions=Ae.createEmptyPipeline=void 0;var iZt=bZ();Object.defineProperty(Ae,"createEmptyPipeline",{enumerable:!0,get:function(){return iZt.createEmptyPipeline}});var oZt=b8e();Object.defineProperty(Ae,"createPipelineFromOptions",{enumerable:!0,get:function(){return oZt.createPipelineFromOptions}});var aZt=w8e();Object.defineProperty(Ae,"createDefaultHttpClient",{enumerable:!0,get:function(){return aZt.createDefaultHttpClient}});var cZt=D8e();Object.defineProperty(Ae,"createHttpHeaders",{enumerable:!0,get:function(){return cZt.createHttpHeaders}});var uZt=N8e();Object.defineProperty(Ae,"createPipelineRequest",{enumerable:!0,get:function(){return uZt.createPipelineRequest}});var Y8e=Av();Object.defineProperty(Ae,"RestError",{enumerable:!0,get:function(){return Y8e.RestError}});Object.defineProperty(Ae,"isRestError",{enumerable:!0,get:function(){return Y8e.isRestError}});var q8e=zZ();Object.defineProperty(Ae,"decompressResponsePolicy",{enumerable:!0,get:function(){return q8e.decompressResponsePolicy}});Object.defineProperty(Ae,"decompressResponsePolicyName",{enumerable:!0,get:function(){return q8e.decompressResponsePolicyName}});var J8e=S8e();Object.defineProperty(Ae,"exponentialRetryPolicy",{enumerable:!0,get:function(){return J8e.exponentialRetryPolicy}});Object.defineProperty(Ae,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return J8e.exponentialRetryPolicyName}});var V8e=$Z();Object.defineProperty(Ae,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return V8e.setClientRequestIdPolicy}});Object.defineProperty(Ae,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return V8e.setClientRequestIdPolicyName}});var W8e=xZ();Object.defineProperty(Ae,"logPolicy",{enumerable:!0,get:function(){return W8e.logPolicy}});Object.defineProperty(Ae,"logPolicyName",{enumerable:!0,get:function(){return W8e.logPolicyName}});var z8e=WZ();Object.defineProperty(Ae,"multipartPolicy",{enumerable:!0,get:function(){return z8e.multipartPolicy}});Object.defineProperty(Ae,"multipartPolicyName",{enumerable:!0,get:function(){return z8e.multipartPolicyName}});var f$=ZZ();Object.defineProperty(Ae,"proxyPolicy",{enumerable:!0,get:function(){return f$.proxyPolicy}});Object.defineProperty(Ae,"proxyPolicyName",{enumerable:!0,get:function(){return f$.proxyPolicyName}});Object.defineProperty(Ae,"getDefaultProxySettings",{enumerable:!0,get:function(){return f$.getDefaultProxySettings}});var j8e=UZ();Object.defineProperty(Ae,"redirectPolicy",{enumerable:!0,get:function(){return j8e.redirectPolicy Line truncated
`&&m[v]!=="\r";v++)Z+=m[v];if(Z=Z.trim(),Z[Z.length-1]==="/"&&(Z=Z.substring(0,Z.length-1),v--),!n(Z)){let Ze;return Ze=Z.trim().length===0?"Invalid space after '<'.":"Tag '"+Z+"' is an invalid name.",C("InvalidTag",Ze,w(m,v))}let he=d(m,v);if(he===!1)return C("InvalidAttr","Attributes for '"+Z+"' have open quote.",w(m,v));let ht=he.value;if(v=he.index,ht[ht.length-1]==="/"){let Ze=v-ht.length;ht=ht.substring(0,ht.length-1);let wt=B(ht,y);if(wt!==!0)return C(wt.err.code,wt.err.msg,w(m,Ze+wt.err.line));G=!0}else if(V){if(!he.tagClosed)return C("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",w(m,v));if(ht.trim().length>0)return C("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",w(m,W));if(x.length===0)return C("InvalidTag","Closing tag '"+Z+"' has not been opened.",w(m,W));{let Ze=x.pop();if(Z!==Ze.tagName){let wt=w(m,Ze.tagStartPos);return C("InvalidTag","Expected closing tag '"+Ze.tagName+"' (opened in line "+wt.line+", col "+wt.col+") instead of closing tag '"+Z+"'.",w(m,W))}x.length==0&&(U=!0)}}else{let Ze=B(ht,y);if(Ze!==!0)return C(Ze.err.code,Ze.err.msg,w(m,v-ht.length+Ze.err.line));if(U===!0)return C("InvalidXml","Multiple possible root nodes found.",w(m,v));y.unpairedTags.indexOf(Z)!==-1||x.push({tagName:Z,tagStartPos:W}),G=!0}for(v++;v<m.length;v++)if(m[v]==="<"){if(m[v+1]==="!"){v++,v=u(m,v);continue}if(m[v+1]!=="?")break;if(v=c(m,++v),v.err)return v}else if(m[v]==="&"){let Ze=Q(m,v);if(Ze==-1)return C("InvalidChar","char '&' is not expected.",w(m,v));v=Ze}else if(U===!0&&!a(m[v]))return C("InvalidXml","Extra text at the end",w(m,v));m[v]==="<"&&v--}}}return G?x.length==1?C("InvalidTag","Unclosed tag '"+x[0].tagName+"'.",w(m,x[0].tagStartPos)):!(x.length>0)||C("InvalidXml","Invalid '"+JSON.stringify(x.map((v=>v.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):C("InvalidXml","Start tag expected.",1)}function a(m){return m===" "||m===" "||m===`
`||m==="\r"}function c(m,y){let x=y;for(;y<m.length;y++)if(!(m[y]!="?"&&m[y]!=" ")){let G=m.substr(x,y-x);if(y>5&&G==="xml")return C("InvalidXml","XML declaration allowed only at the start of the document.",w(m,y));if(m[y]=="?"&&m[y+1]==">"){y++;break}}return y}function u(m,y){if(m.length>y+5&&m[y+1]==="-"&&m[y+2]==="-"){for(y+=3;y<m.length;y++)if(m[y]==="-"&&m[y+1]==="-"&&m[y+2]===">"){y+=2;break}}else if(m.length>y+8&&m[y+1]==="D"&&m[y+2]==="O"&&m[y+3]==="C"&&m[y+4]==="T"&&m[y+5]==="Y"&&m[y+6]==="P"&&m[y+7]==="E"){let x=1;for(y+=8;y<m.length;y++)if(m[y]==="<")x++;else if(m[y]===">"&&(x--,x===0))break}else if(m.length>y+9&&m[y+1]==="["&&m[y+2]==="C"&&m[y+3]==="D"&&m[y+4]==="A"&&m[y+5]==="T"&&m[y+6]==="A"&&m[y+7]==="["){for(y+=8;y<m.length;y++)if(m[y]==="]"&&m[y+1]==="]"&&m[y+2]===">"){y+=2;break}}return y}let l='"',g="'";function d(m,y){let x="",G="",U=!1;for(;y<m.length;y++){if(m[y]===l||m[y]===g)G===""?G=m[y]:G!==m[y]||(G="");else if(m[y]===">"&&G===""){U=!0;break}x+=m[y]}return G===""&&{value:x,index:y,tagClosed:U}}let h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function B(m,y){let x=s(m,h),G={};for(let U=0;U<x.length;U++){if(x[U][1].length===0)return C("InvalidAttr","Attribute '"+x[U][2]+"' has no space in starting.",k(x[U]));if(x[U][3]!==void 0&&x[U][4]===void 0)return C("InvalidAttr","Attribute '"+x[U][2]+"' is without value.",k(x[U]));if(x[U][3]===void 0&&!y.allowBooleanAttributes)return C("InvalidAttr","boolean attribute '"+x[U][2]+"' is not allowed.",k(x[U]));let v=x[U][2];if(!p(v))return C("InvalidAttr","Attribute '"+v+"' is an invalid name.",k(x[U]));if(G.hasOwnProperty(v))return C("InvalidAttr","Attribute '"+v+"' is repeated.",k(x[U]));G[v]=1}return!0}function Q(m,y){if(m[++y]===";")return-1;if(m[y]==="#")return(function(G,U){let v=/\d/;for(G[U]==="x"&&(U++,v=/[\da-fA-F]/);U<G.length;U++){if(G[U]===";")return U;if(!G[U].match(v))break}return-1})(m,++y);let x=0;for(;y<m.length;y++,x++)if(!(m[y].match(/\w/)&&x<20)){if(m[y]===";")break;return-1}return y}function C(m,y,x){return{err:{code:m,msg:y,line:x.line||x,col:x.col}}}function p(m){return n(m)}function w(m,y){let x=m.substring(0,y).split(/\r?\n/);return{line:x.length,col:x[x.length-1].length+1}}function k(m){return m.startIndex+m[1].length}let J={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(m,y,x){return m},captureMetaData:!1},j;j=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class H{constructor(y){this.tagname=y,this.child=[],this[":@"]={}}add(y,x){y==="__proto__"&&(y="#__proto__"),this.child.push({[y]:x})}addChild(y,x){y.tagname==="__proto__"&&(y.tagname="#__proto__"),y[":@"]&&Object.keys(y[":@"]).length>0?this.child.push({[y.tagname]:y.child,":@":y[":@"]}):this.child.push({[y.tagname]:y.child}),x!==void 0&&(this.child[this.child.length-1][j]={startIndex:x})}static getMetaDataSymbol(){return j}}function $(m,y){let x={};if(m[y+3]!=="O"||m[y+4]!=="C"||m[y+5]!=="T"||m[y+6]!=="Y"||m[y+7]!=="P"||m[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let G=1,U=!1,v=!1,W="";for(;y<m.length;y++)if(m[y]!=="<"||v)if(m[y]===">"){if(v?m[y-1]==="-"&&m[y-2]==="-"&&(v=!1,G--):G--,G===0)break}else m[y]==="["?U=!0:W+=m[y];else{if(U&&be(m,y)){let V,Z;y+=7,[V,Z,y]=oe(m,y+1),Z.indexOf("&")===-1&&(x[Yt(V)]={regx:RegExp(`&${V};`,"g"),val:Z})}else if(U&&K(m,y))y+=8;else if(U&&le(m,y))y+=8;else if(U&&Le(m,y))y+=9;else{if(!Ie)throw new Error("Invalid DOCTYPE");v=!0}G++,W=""}if(G!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:y}}function oe(m,y){let x="";for(;y<m.length&&m[y]!=="'"&&m[y]!=='"';y++)x+=m[y];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");let G=m[y++],U="";for(;y<m.length&&m[y]!==G;y++)U+=m[y];return[x,U,y]}function Ie(m,y){return m[y+1]==="!"&&m[y+2]==="-"&&m[y+3]==="-"}function be(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="N"&&m[y+4]==="T"&&m[y+5]==="I"&&m[y+6]==="T"&&m[y+7]==="Y"}function K(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="L"&&m[y+4]==="E"&&m[y+5]==="M"&&m[y+6]==="E"&&m[y+7]==="N"&&m[y+8]==="T"}function le(m,y){return m[y+1]==="!"&&m[y+2]==="A"&&m[y+3]==="T"&&m[y+4]==="T"&&m[y+5]==="L"&&m[y+6]==="I"&&m[y+7]==="S"&&m[y+8]==="T"}function Le(m,y){return m[y+1]==="!"&&m[y+2]==="N"&&m[y+3]==="O"&&m[y+4]==="T"&&m[y+5]==="A"&&m[y+6]==="T"&&m[y+7]==="I"&&m[y+8]==="O"&&m[y+9]==="N"}function Yt(m){if(n(m))return m;throw new Error(`Invalid entity name ${m}`)}let vt=/^[-+]?0x[a-fA-Line truncated
`);let y=new H("!xml"),x=y,G="",U="";for(let v=0;v<m.length;v++)if(m[v]==="<")if(m[v+1]==="/"){let W=Ph(m,">",v,"Closing Tag is not closed."),V=m.substring(v+2,W).trim();if(this.options.removeNSPrefix){let ht=V.indexOf(":");ht!==-1&&(V=V.substr(ht+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&(G=this.saveTextToParentTag(G,x,U));let Z=U.substring(U.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${V}>`);let he=0;Z&&this.options.unpairedTags.indexOf(Z)!==-1?(he=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop()):he=U.lastIndexOf("."),U=U.substring(0,he),x=this.tagsNodeStack.pop(),G="",v=W}else if(m[v+1]==="?"){let W=pO(m,v,!1,"?>");if(!W)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,x,U),!(this.options.ignoreDeclaration&&W.tagName==="?xml"||this.options.ignorePiTags)){let V=new H(W.tagName);V.add(this.options.textNodeName,""),W.tagName!==W.tagExp&&W.attrExpPresent&&(V[":@"]=this.buildAttributesMap(W.tagExp,U,W.tagName)),this.addChild(x,V,U,v)}v=W.closeIndex+1}else if(m.substr(v+1,3)==="!--"){let W=Ph(m,"-->",v+4,"Comment is not closed.");if(this.options.commentPropName){let V=m.substring(v+4,W-2);G=this.saveTextToParentTag(G,x,U),x.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}v=W}else if(m.substr(v+1,2)==="!D"){let W=$(m,v);this.docTypeEntities=W.entities,v=W.i}else if(m.substr(v+1,2)==="!["){let W=Ph(m,"]]>",v,"CDATA is not closed.")-2,V=m.substring(v+9,W);G=this.saveTextToParentTag(G,x,U);let Z=this.parseTextData(V,x.tagname,U,!0,!1,!0,!0);Z==null&&(Z=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):x.add(this.options.textNodeName,Z),v=W+2}else{let W=pO(m,v,this.options.removeNSPrefix),V=W.tagName,Z=W.rawTagName,he=W.tagExp,ht=W.attrExpPresent,Ze=W.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&G&&x.tagname!=="!xml"&&(G=this.saveTextToParentTag(G,x,U,!1));let wt=x;wt&&this.options.unpairedTags.indexOf(wt.tagname)!==-1&&(x=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."))),V!==y.tagname&&(U+=U?"."+V:V);let qr=v;if(this.isItStopNode(this.options.stopNodes,U,V)){let $A="";if(he.length>0&&he.lastIndexOf("/")===he.length-1)V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),v=W.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)v=W.closeIndex;else{let kc=this.readStopNodeData(m,Z,Ze+1);if(!kc)throw new Error(`Unexpected end of ${Z}`);v=kc.i,$A=kc.tagContent}let bo=new H(V);V!==he&&ht&&(bo[":@"]=this.buildAttributesMap(he,U,V)),$A&&($A=this.parseTextData($A,V,U,!0,ht,!0,!0)),U=U.substr(0,U.lastIndexOf(".")),bo.add(this.options.textNodeName,$A),this.addChild(x,bo,U,qr)}else{if(he.length>0&&he.lastIndexOf("/")===he.length-1){V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));let $A=new H(V);V!==he&&ht&&($A[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,$A,U,qr),U=U.substr(0,U.lastIndexOf("."))}else{let $A=new H(V);this.tagsNodeStack.push(x),V!==he&&ht&&($A[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,$A,U,qr),x=$A}G="",v=Ze}}else G+=m[v];return y.child};function R9e(m,y,x,G){this.options.captureMetaData||(G=void 0);let U=this.options.updateTag(y.tagname,x,y[":@"]);U===!1||(typeof U=="string"&&(y.tagname=U),m.addChild(y,G))}let S9e=function(m){if(this.options.processEntities){for(let y in this.docTypeEntities){let x=this.docTypeEntities[y];m=m.replace(x.regx,x.val)}for(let y in this.lastEntities){let x=this.lastEntities[y];m=m.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let y in this.htmlEntities){let x=this.htmlEntities[y];m=m.replace(x.regex,x.val)}m=m.replace(this.ampEntity.regex,this.ampEntity.val)}return m};function T9e(m,y,x,G){return m&&(G===void 0&&(G=y.child.length===0),(m=this.parseTextData(m,y.tagname,x,!1,!!y[":@"]&&Object.keys(y[":@"]).length!==0,G))!==void 0&&m!==""&&y.add(this.options.textNodeName,m),m=""),m}function k9e(m,y,x){let G="*."+x;for(let U in m){let v=m[U];if(G===v||y===v)return!0}return!1}function Ph(m,y,x,G){let U=m.indexOf(y,x);if(U===-1)throw new Error(G);return U+y.length-1}function pO(m,y,x,G=">"){let U=(function(Ze,wt,qr=">"){let $A,bo="";for(let kc=wt;kc<Ze.length;kc++){let Ng=Ze[kc];if($A)Ng===$A&&($A="");else if(Ng==='"'||Ng==="'")$A=Ng;else if(Ng===qr[0]){if(!qr[1])return{data:bo,index:kc};if(Ze[kc+1]===qr[1])return{data:bo,index:kc}}else Ng===" "&&(Ng=" ");bo+=Ng}})(m,y+1,G);if(!U)return;let v=U.data,W=U.index,V=v.search(/\s/),Z=v,he=!0;V!==-1&&(Z=v.substring(0,V),v=v.substring(V+1).trimStart());let ht=Z;if(x){let Ze=Z.indexOf(":");Ze!==-1&&(Z=Z.substr(Ze+1),he=Z!==U.data.substr(Ze+1))}return{tagName:Z,tagExp:v,closeIndex:W,attrExpPresent:he,rawTagName:ht}}function F9e(m,y,x){let G=x,U=1;for(;x<m.leLine truncated
`),wAe(m,y,"",x)}function wAe(m,y,x,G){let U="",v=!1;for(let W=0;W<m.length;W++){let V=m[W],Z=P9e(V);if(Z===void 0)continue;let he="";if(he=x.length===0?Z:`${x}.${Z}`,Z===y.textNodeName){let qr=V[Z];O9e(he,y)||(qr=y.tagValueProcessor(Z,qr),qr=NAe(qr,y)),v&&(U+=G),U+=qr,v=!1;continue}if(Z===y.cdataPropName){v&&(U+=G),U+=`<![CDATA[${V[Z][0][y.textNodeName]}]]>`,v=!1;continue}if(Z===y.commentPropName){U+=G+`<!--${V[Z][0][y.textNodeName]}-->`,v=!0;continue}if(Z[0]==="?"){let qr=DAe(V[":@"],y),$A=Z==="?xml"?"":G,bo=V[Z][0][y.textNodeName];bo=bo.length!==0?" "+bo:"",U+=$A+`<${Z}${bo}${qr}?>`,v=!0;continue}let ht=G;ht!==""&&(ht+=y.indentBy);let Ze=G+`<${Z}${DAe(V[":@"],y)}`,wt=wAe(V[Z],y,he,ht);y.unpairedTags.indexOf(Z)!==-1?y.suppressUnpairedNode?U+=Ze+">":U+=Ze+"/>":wt&&wt.length!==0||!y.suppressEmptyNode?wt&&wt.endsWith(">")?U+=Ze+`>${wt}${G}</${Z}>`:(U+=Ze+">",wt&&G!==""&&(wt.includes("/>")||wt.includes("</"))?U+=G+y.indentBy+wt+G:U+=wt,U+=`</${Z}>`):U+=Ze+"/>",v=!0}return U}function P9e(m){let y=Object.keys(m);for(let x=0;x<y.length;x++){let G=y[x];if(m.hasOwnProperty(G)&&G!==":@")return G}}function DAe(m,y){let x="";if(m&&!y.ignoreAttributes)for(let G in m){if(!m.hasOwnProperty(G))continue;let U=y.attributeValueProcessor(G,m[G]);U=NAe(U,y),U===!0&&y.suppressBooleanAttributes?x+=` ${G.substr(y.attributeNamePrefix.length)}`:x+=` ${G.substr(y.attributeNamePrefix.length)}="${U}"`}return x}function O9e(m,y){let x=(m=m.substr(0,m.length-y.textNodeName.length-1)).substr(m.lastIndexOf(".")+1);for(let G in y.stopNodes)if(y.stopNodes[G]===m||y.stopNodes[G]==="*."+x)return!0;return!1}function NAe(m,y){if(m&&m.length>0&&y.processEntities)for(let x=0;x<y.entities.length;x++){let G=y.entities[x];m=m.replace(G.regex,G.val)}return m}let H9e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},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};function Dg(m){this.options=Object.assign({},H9e,m),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=mo(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=q9e),this.processTextOrObjNode=G9e,this.options.format?(this.indentate=Y9e,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function G9e(m,y,x,G){let U=this.j2x(m,x+1,G.concat(y));return m[this.options.textNodeName]!==void 0&&Object.keys(m).length===1?this.buildTextValNode(m[this.options.textNodeName],y,U.attrStr,x):this.buildObjectNode(U.val,y,U.attrStr,x)}function Y9e(m){return this.options.indentBy.repeat(m)}function q9e(m){return!(!m.startsWith(this.options.attributeNamePrefix)||m===this.options.textNodeName)&&m.substr(this.attrPrefixLen)}Dg.prototype.build=function(m){return this.options.preserveOrder?_9e(m,this.options):(Array.isArray(m)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(m={[this.options.arrayNodeName]:m}),this.j2x(m,0,[]).val)},Dg.prototype.j2x=function(m,y,x){let G="",U="",v=x.join(".");for(let W in m)if(Object.prototype.hasOwnProperty.call(m,W))if(m[W]===void 0)this.isAttribute(W)&&(U+="");else if(m[W]===null)this.isAttribute(W)||W===this.options.cdataPropName?U+="":W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(m[W]instanceof Date)U+=this.buildTextValNode(m[W],W,"",y);else if(typeof m[W]!="object"){let V=this.isAttribute(W);if(V&&!this.ignoreAttributesFn(V,v))G+=this.buildAttrPairStr(V,""+m[W]);else if(!V)if(W===this.options.textNodeName){let Z=this.options.tagValueProcessor(W,""+m[W]);U+=this.replaceEntitiesValue(Z)}else U+=this.buildTextValNode(m[W],W,"",y)}else if(Array.isArray(m[W])){let V=m[W].length,Z="",he="";for(let ht=0;ht<V;ht++){let Ze=m[W][ht];if(Ze!==void 0)if(Ze===null)W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(typeof Ze=="object")if(this.options.oneListGroup){let wt=this.j2x(Ze,y+1,x.concat(W));Z+=wt.val,this.options.attributesGroupName&&Ze.hasOwnProperty(this.options.attributesGroupName)&&(he+=wt.attrStr)}else Z+=this.processTextOrObjNode(Ze,W,y,x);else if(this.options.oneListGroup){let wt=this.options.tagValueProcessor(W,Ze);wt=this.replaceEntitiesValue(wt),Z+=wt}else Z+=this.buildTextValNode(Ze,W,"",y)}this.options.oneListGroup&&(Z=this.buildObjectNode(Z,W,he,y)),U+=Z}else if(this.options.attributesGroupName&&W===this.options.attributesGroupName){let V=Object.keys(m[W]),Z=V.length;for(let he=0;he<Z;he++)G+=this.buildAttrPairStr(V[he],""+m[W][V[he]])}else U+=this.processTextOrObjNode(m[W],W,y,x);return{attrStr:G,val:U}},Dg.prototype.buildAttrPairStr=function(m,y){return y=this.options.attributeValueProcessor(m,""+y),y=this.replaceEntitiesValue(y),this.options.suppressBooleanAttributes&&y==="true"?" "+m:" "+m+'="'+y+'"'},Dg.prototype.buildObjectNode=function(m,y,x,G){if(m==="")return y[0]==="?"?this.indentate(G)+"<"+y+x+"?"+this.tagEndChar:this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar;{let U="</"+y+this.tagEndChar,v="";return y[0]==="?"&&(v="?",U=""),!x&&x!==""||m.indexOf("<")!==-1?this.options.commentPropName!==!1&&y===this.options.commentPropName&&v.length===0?this.indentate(G)+`<!--${m}-->`+this.newLine:this.indentate(G)+"<"+y+x+v+this.tagEndChar+m+this.indentate(G)+U:this.indentate(G)+"<"+y+x+v+">"+m+U}},Dg.prototype.closeTag=function(m){let y="";return this.options.unpairedTags.indexOf(m)!==-1?this.options.suppressUnpairedNode||(y="/"):y=this.options.suppressEmptyNode?"/":`></${m}`,y},Dg.prototype.buildTextValNode=function(m,y,x,G){if(this.options.cdataPropName!==!1&&y===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${m}]]>`+this.newLine;if(this.options.commentPropName!==!1&&y===this.options.commentPropName)return this.indentate(G)+`<!--${m}-->`+this.newLine;if(y[0]==="?")return this.indentate(G)+"<"+y+x+"?"+this.tagEndChar;{let U=this.options.tagValueProcessor(y,m);return U=this.replaceEntitiesValue(U),U===""?this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar:this.indentate(G)+"<"+y+x+">"+U+"</"+y+this.tagEndChar}},Dg.prototype.replaceEntitiesValue=function(m){if(m&&m.length>0&&this.options.processEntities)for(let y=0;y<this.options.entities.length;y++){let x=this.options.entities[y];m=m.replace(x.regex,x.val)}return m};let J9e={validate:o};nYe.exports=e})()});var G$=E(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.XML_CHARKEY=Cp.XML_ATTRKEY=void 0;Cp.XML_ATTRKEY="$";Cp.XML_CHARKEY="_"});var cYe=E(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.stringifyXML=per;wv.parseXML=mer;var Y$=iYe(),oYe=G$();function aYe(t){var e;return{attributesGroupName:oYe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:oYe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ier(t={}){var e,r;return Object.assign(Object.assign({},aYe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Qer(t={}){return Object.assign(Object.assign({},aYe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodesLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),A=this.factory.computeHMACSHA256(r);return e.headers.set(nn.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${A}`),e}getHeaderValueToSign(e,r){let A=e.headers.get(r);return!A||r===nn.HeaderConstants.CONTENT_LENGTH&&A==="0"?"":A}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(nn.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,n)=>(0,dtr.compareHeader)(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,i)=>!(n>0&&s.name.toLowerCase()===i[n-1].name.toLowerCase()));let A="";return r.forEach(s=>{A+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),A}getCanonicalizedResourceString(e){let r=(0,TYe.getURLPath)(e.url)||"/",A="";A+=`/${this.factory.accountName}${r}`;let s=(0,TYe.getURLQueries)(e.url),n={};if(s){let i=[];for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o)){let a=o.toLowerCase();n[a]=s[o],i.push(a)}i.sort();for(let o of i)A+=`
${o}:${decodeURIComponent(n[o])}`}return A}};Ov.StorageSharedKeyCredentialPolicy=oee});var kYe=E(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});Hv.StorageSharedKeyCredential=void 0;var htr=I("node:crypto"),Etr=aee(),ftr=_v(),cee=class extends ftr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Etr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,htr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};Hv.StorageSharedKeyCredential=cee});var FYe=E(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});Gv.AbortError=void 0;var uee=class extends Error{constructor(e){super(e),this.name="AbortError"}};Gv.AbortError=uee});var lee=E(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.AbortError=void 0;var Ctr=FYe();Object.defineProperty(Yv,"AbortError",{enumerable:!0,get:function(){return Ctr.AbortError}})});var gee=E(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.logger=void 0;var Btr=Kf();qv.logger=(0,Btr.createClientLogger)("storage-common")});var dee=E(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.StorageRetryPolicyType=void 0;var xYe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(xYe||(Jv.StorageRetryPolicyType=xYe={}))});var MYe=E(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.StorageRetryPolicy=void 0;GN.NewRetryPolicyFactory=ptr;var Itr=lee(),Qtr=HN(),UYe=fg(),hee=tC(),Bh=gee(),Eee=dee();function ptr(t){return{create:(e,r)=>new Vv(e,r,t)}}var Ih={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Eee.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mtr=new Itr.AbortError("The operation was aborted."),Vv=class extends Qtr.BaseRequestPolicy{retryOptions;constructor(e,r,A=Ih){super(e,r),this.retryOptions={retryPolicyType:A.retryPolicyType?A.retryPolicyType:Ih.retryPolicyType,maxTries:A.maxTries&&A.maxTries>=1?Math.floor(A.maxTries):Ih.maxTries,tryTimeoutInMs:A.tryTimeoutInMs&&A.tryTimeoutInMs>=0?A.tryTimeoutInMs:Ih.tryTimeoutInMs,retryDelayInMs:A.retryDelayInMs&&A.retryDelayInMs>=0?Math.min(A.retryDelayInMs,A.maxRetryDelayInMs?A.maxRetryDelayInMs:Ih.maxRetryDelayInMs):Ih.retryDelayInMs,maxRetryDelayInMs:A.maxRetryDelayInMs&&A.maxRetryDelayInMs>=0?A.maxRetryDelayInMs:Ih.maxRetryDelayInMs,secondaryHost:A.secondaryHost?A.secondaryHost:Ih.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,A){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||A%2===1;n||(s.url=(0,hee.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,hee.setURLParameter)(s.url,UYe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if(Bh.logger.info(`RetryPolicy: =====> Try=${A} ${n?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,A,i))return i;r=r||!n&&i.status===404}catch(o){if(Bh.logger.error(`RetryPolicy: Caught error, message: ${o.message}, code: ${o.code}`),!this.shouldRetry(n,A,i,o))throw o}return await this.delay(n,A,e.abortSignal),this.attemptSendRequest(e,r,++A)}shouldRetry(e,r,A,s){if(r>=this.retryOptions.maxTries)return Bh.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of n)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return Bh.logger.info(`RetryPolicy: Network error ${i} found, will retry.`),!0}if(A||s){let i=A?A.status:s?s.statusCode:0;if(!e&&i===404)return Bh.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return Bh.logger.info(`RetryPolicy: Will retry for status code ${i}.`),!0}if(A&&A?.status>=400){let i=A.headers.get(UYe.HeaderConstants.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Bh.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,A){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Eee.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Eee.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Bh.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,hee.delay)(s,A,mtr)}};GN.StorageRetryPolicy=Vv});var Bee=E(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{val Line truncated
`)+`
`+A(n)+s(n),o=(0,Utr.createHmac)("sha256",t.accountKey).update(i,"utf8").digest("base64");n.headers.set(on.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${o}`)}function r(n,i){let o=n.headers.get(i);return!o||i===on.HeaderConstants.CONTENT_LENGTH&&o==="0"?"":o}function A(n){let i=[];for(let[a,c]of n.headers)a.toLowerCase().startsWith(on.HeaderConstants.PREFIX_FOR_STORAGE)&&i.push({name:a,value:c});i.sort((a,c)=>(0,Mtr.compareHeader)(a.name.toLowerCase(),c.name.toLowerCase())),i=i.filter((a,c,u)=>!(c>0&&a.name.toLowerCase()===u[c-1].name.toLowerCase()));let o="";return i.forEach(a=>{o+=`${a.name.toLowerCase().trimRight()}:${a.value.trimLeft()}
`}),o}function s(n){let i=(0,HYe.getURLPath)(n.url)||"/",o="";o+=`/${t.accountName}${i}`;let a=(0,HYe.getURLQueries)(n.url),c={};if(a){let u=[];for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let g=l.toLowerCase();c[g]=a[l],u.push(g)}u.sort();for(let l of u)o+=`
${l}:${decodeURIComponent(c[l])}`}return o}return{name:bp.storageSharedKeyCredentialPolicyName,async sendRequest(n,i){return e(n),i(n)}}}});var YYe=E(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.storageRequestFailureDetailsParserPolicyName=void 0;wp.storageRequestFailureDetailsParserPolicy=vtr;wp.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function vtr(){return{name:wp.storageRequestFailureDetailsParserPolicyName,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}}}}});var qYe=E(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.UserDelegationKeyCredential=void 0;var _tr=I("node:crypto"),mee=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,_tr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};Wv.UserDelegationKeyCredential=mee});var wc=E(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});pA.BaseRequestPolicy=pA.getCachedDefaultHttpClient=void 0;var an=(Rr(),xr(Nr));an.__exportStar(hYe(),pA);var Ptr=EYe();Object.defineProperty(pA,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return Ptr.getCachedDefaultHttpClient}});an.__exportStar(CYe(),pA);an.__exportStar(RYe(),pA);an.__exportStar(SYe(),pA);an.__exportStar(_v(),pA);an.__exportStar(kYe(),pA);an.__exportStar(Bee(),pA);var Otr=HN();Object.defineProperty(pA,"BaseRequestPolicy",{enumerable:!0,get:function(){return Otr.BaseRequestPolicy}});an.__exportStar(ree(),pA);an.__exportStar(Mv(),pA);an.__exportStar(LYe(),pA);an.__exportStar(vYe(),pA);an.__exportStar(OYe(),pA);an.__exportStar(aee(),pA);an.__exportStar(GYe(),pA);an.__exportStar(YYe(),pA);an.__exportStar(qYe(),pA)});var fo=E(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.PathStylePorts=Re.BlobDoesNotUseCustomerSpecifiedEncryption=Re.BlobUsesCustomerSpecifiedEncryptionMsg=Re.StorageBlobLoggingAllowedQueryParameters=Re.StorageBlobLoggingAllowedHeaderNames=Re.DevelopmentConnectionString=Re.EncryptionAlgorithmAES25=Re.HTTP_VERSION_1_1=Re.HTTP_LINE_ENDING=Re.BATCH_MAX_PAYLOAD_IN_BYTES=Re.BATCH_MAX_REQUEST=Re.SIZE_1_MB=Re.ETagAny=Re.ETagNone=Re.HeaderConstants=Re.HTTPURLConnection=Re.URLConstants=Re.StorageOAuthScopes=Re.REQUEST_TIMEOUT=Re.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=Re.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=Re.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=Re.BLOCK_BLOB_MAX_BLOCKS=Re.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=Re.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=Re.SERVICE_VERSION=Re.SDK_VERSION=void 0;Re.SDK_VERSION="12.31.0";Re.SERVICE_VERSION="2026-02-06";Re.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;Re.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;Re.BLOCK_BLOB_MAX_BLOCKS=5e4;Re.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;Re.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;Re.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;Re.REQUEST_TIMEOUT=100*1e3;Re.StorageOAuthScopes="https://storage.azure.com/.default";Re.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};Re.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};Re.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};Re.ETagNone="";Re.ETagAny="*";Re.SIZE_1_MB=1*1024*1024;Re.BATCH_MAX_REQUEST=256;Re.BATCH_MAX_PAYLOAD_IN_BYTES=4*Re.SIZE_1_MB;Re.HTTP_LINE_ENDING=`\r
`;Re.HTTP_VERSION_1_1="HTTP/1.1";Re.EncryptionAlgorithmAES25="AES256";Re.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";Re.StorageBlobLoggingAllowedHeaderNames=["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"];Re.StorageBlobLoggingAllowedQueryParameters=["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"];Re.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";Re.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";Re.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var Qh=E(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.Pipeline=Gu.StorageOAuthScopes=void 0;Gu.isPipelineLike=Gtr;Gu.newPipeline=Ytr;Gu.getCoreClientOptions=Jtr;Gu.getCredentialFromPipeline=jYe;var zYe=bv(),JYe=ns(),VYe=Pu(),WYe=q$(),yee=gp(),Htr=Nv(),Co=wc(),YN=fo();Object.defineProperty(Gu,"StorageOAuthScopes",{enumerable:!0,get:function(){return YN.StorageOAuthScopes}});function Gtr(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var zv=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Gu.Pipeline=zv;function Ytr(t,e={}){t||(t=new Co.AnonymousCredential);let r=new zv([],e);return r._credential=t,r}function qtr(t){let e=[Vtr,KYe,Wtr,ztr,jtr,Ktr,Ztr];if(t.factories.length){let r=t.factories.filter(A=>!e.some(s=>s(A)));if(r.length){let A=r.some(s=>Xtr(s));return{wrappedPolicies:(0,zYe.createRequestPolicyFactoryPolicy)(r),afterRetry:A}}}}function Jtr(t){let{httpClient:e,...r}=t.options,A=t._coreHttpClient;A||(A=e?(0,zYe.convertHttpClient)(e):(0,Co.getCachedDefaultHttpClient)(),t._coreHttpClient=A);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${YN.SDK_VERSION}`,i=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=(0,VYe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:YN.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:YN.StorageBlobLoggingAllowedQueryParameters,logger:Htr.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:WYe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deseriali Line truncated
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new oC.SASQueryParameters(t.version,n,A,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}}function csr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function usr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function lsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function gsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function dsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function hsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(t.version,i,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:n}}function aC(t,e,r){let A=[`/blob/${t}/${e}`];return r&&A.push(`/${r}`),A.join("")}function cC(t){let e=t.version?t.version:M4e.SERVICE_VERSION;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}});var B_=E(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.BlobLeaseClient=void 0;var Esr=Zr(),qu=fo(),JN=AC(),f_=Sa(),Vee=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let A=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=A.container):(this._isContainer=!1,this._containerOrBlobOperation=A.blob),r||(r=(0,Esr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async A=>(0,f_.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:A.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async A=>{let s=(0,f_.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:A.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==qu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,f_.assertResponse)(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!==qu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${rqe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=i(c,r);if(l!==void 0)return{response:await e(l).catch(tqe({state:r,stateProxy:A,isOperationError:o})),status:u}}return{response:c,status:u}}async function Ysr(t){let{poll:e,state:r,stateProxy:A,options:s,getOperationStatus:n,getResourceLocation:i,getOperationLocation:o,isOperationError:a,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:g,updateState:d,setDelay:h,isDone:B,setErrorAsResult:Q}=t,{operationLocation:C}=r.config;if(C!==void 0){let{response:p,status:w}=await Gsr({poll:e,getOperationStatus:n,state:r,stateProxy:A,operationLocation:C,getResourceLocation:i,isOperationError:a,options:s});if(Aqe({status:w,response:p,state:r,stateProxy:A,isDone:B,processResult:l,getError:g,setErrorAsResult:Q}),!rqe.terminalStates.includes(w)){let k=u?.(p);k&&h(k);let J=o?.(p,r);if(J!==void 0){let j=C!==J;r.config.operationLocation=J,c?.(J,j)}else c?.(C,!1)}d?.(r,p)}}Rh.pollOperation=Ysr});var Ete=E(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});yA.pollHttpOperation=yA.isOperationError=yA.getResourceLocation=yA.getOperationStatus=yA.getOperationLocation=yA.initHttpOperation=yA.getStatusFromInitialResponse=yA.getErrorFromResponse=yA.parseRetryAfter=yA.inferLroMode=void 0;var sqe=k_(),gte=S_();function nqe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function iqe(t){return t.headers.location}function oqe(t){return t.headers["operation-location"]}function aqe(t){return t.headers["azure-asyncoperation"]}function qsr(t){var e;let{location:r,requestMethod:A,requestPath:s,resourceLocationConfig:n}=t;switch(A){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=i())!==null&&e!==void 0?e:s;default:return i()}function i(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function cqe(t){let{rawResponse:e,requestMethod:r,requestPath:A,resourceLocationConfig:s}=t,n=oqe(e),i=aqe(e),o=nqe({operationLocation:n,azureAsyncOperation:i}),a=iqe(e),c=r?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:qsr({requestMethod:c,location:a,requestPath:A,resourceLocationConfig:s})}:a!==void 0?{mode:"ResourceLocation",operationLocation:a}:c==="PUT"&&A?{mode:"Body",operationLocation:A}:void 0}yA.inferLroMode=cqe;function uqe(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 dte(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 gte.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Jsr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uqe({status:r,statusCode:t.statusCode})}function Vsr(t){var e,r;let{properties:A,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=A?.provisioningState)!==null&&r!==void 0?r:s;return uqe({status:n,statusCode:t.statusCode})}function dte(t){return t===202?"running":t<300?"succeeded":"failed"}function lqe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Wsr(new Date(e)):r*1e3}}yA.parseRetryAfter=lqe;function gqe(t){let e=Eqe(t,"error");if(!e){gte.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){gte.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}yA.getErrorFromResponse=gqe;function Wsr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function dqe(t){let{response:e,state:r,operationLocation:A}=t;function s(){var i;switch((i=r.config.metadata)===null||i===void 0?void 0:i.mode){case void 0:return dte(e.rawResponse.statusCode);case"Body":return hte(e,r);default:return"running"}}let n=s();return n==="running"&&A===void 0?"succeeded":n}yA.getStatusFromInitialResponse=dqe;async function zsr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:A,lro:s,setErrorAsResult:n}=t;return(0,sqe.initOperation)({init:async()=>{let i=await s.sendInitialRequest(),o=cqe({rawResponse:i.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:i,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:A?({flatResponse:i},o)=>A(i,o):({flatResponse:i})=>i,getOperationStatus:dqe,setErrorAsResult:n})}yA.initHttpOperation=zsr;function hqe({rawResponse:t},e){var r;sLine truncated
`):i=[e.accountName,A,s,n,t.startsOn?(0,gP.truncatedISO8061Date)(t.startsOn,!1):"",(0,gP.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,Yqe.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let o=e.computeHMACSHA256(i);return{sasQueryParameters:new tir.SASQueryParameters(r,o,A.toString(),s,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}});var jqe=E(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});EP.BlobServiceClient=void 0;var sir=gp(),nir=ns(),Jqe=Zr(),jN=Qh(),iir=Ote(),hP=Sa(),dC=wc(),ju=Sa(),Ku=AC(),oir=AP(),air=o_(),Vqe=aP(),Wqe=Jte(),zqe=lP(),Vte=class t extends air.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let A=(0,hP.extractConnectionStringParts)(e);if(A.kind==="AccountConnString")if(Jqe.isNodeLike){let s=new dC.StorageSharedKeyCredential(A.accountName,A.accountKey);r.proxyOptions||(r.proxyOptions=(0,nir.getDefaultProxySettings)(A.proxyUri));let n=(0,jN.newPipeline)(s,r);return new t(A.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(A.kind==="SASConnString"){let s=(0,jN.newPipeline)(new dC.AnonymousCredential,r);return new t(A.url+"?"+A.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,A){let s;(0,jN.isPipelineLike)(r)?s=r:Jqe.isNodeLike&&r instanceof dC.StorageSharedKeyCredential||r instanceof dC.AnonymousCredential||(0,sir.isTokenCredential)(r)?s=(0,jN.newPipeline)(r,A):s=(0,jN.newPipeline)(new dC.AnonymousCredential,A),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new iir.ContainerClient((0,hP.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-createContainer",r,async A=>{let s=this.getContainerClient(e),n=await s.create(A);return{containerClient:s,containerCreateResponse:n}})}async deleteContainer(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async A=>this.getContainerClient(e).delete(A))}async undeleteContainer(e,r,A={}){return Ku.tracingClient.withSpan("BlobServiceClient-undeleteContainer",A,async s=>{let n=this.getContainerClient(A.destinationContainerName||e),i=n.storageClientContext.container,o=(0,ju.assertResponse)(await i.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:n,containerUndeleteResponse:o}})}async getProperties(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-setProperties",r,async A=>(0,ju.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:A.tracingOptions})))}async getStatistics(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async A=>(0,ju.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:A.tracingOptions})))}async findBlobsByTagsSegment(e,r,A={}){return Ku.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",A,async s=>{let n=(0,ju.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:A.abortSignal,where:e,marker:r,maxPageSize:A.maxPageSize,tracingOptions:s.tracingOptions}));return{...n,_response:n._response,blobs:n.blobs.map(o=>{let a="";return o.tags?.blobTagSet.length===1&&(a=o.tags.blobTagSet[0].value),{...o,tags:(0,hP.toTags)(o.tags),tagValue:a}})}})}async*findBlobsByTagsSegments(e,r,A={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,A),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let A;for await(let s of this.findBlobsByTagsSegments(e,A,r))yield*s.blobs}findBlobsByTags(e,r={}){let A={...r},s=this.findBlobsByTagsItems(e,A);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(e,n.continuationToken,{maxPageSize:n.maxPageSize,...A})}}async*listSegments(e,r={}){let A;if(e||e===void 0)do A=await this.listContainersSegment(e,r),A.containerItems=A.containerItems||[],e=A.continuationToken,yield await A;while(e)}async*listItems(e={}){let r;for await(let A of this.listSegments(r,e))yield*A.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};pi.NetworkError=IP;IP.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var QP=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};pi.UsageError=QP;QP.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var e5e=E(mi=>{"use strict";var dir=mi&&mi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),hir=mi&&mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Eir=mi&&mi.__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)&&dir(e,t,r);return hir(e,t),e},fir=mi&&mi.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(mi,"__esModule",{value:!0});mi.uploadCacheArchiveSDK=mi.UploadProgress=void 0;var $te=Eir(go()),Cir=Wte(),Bir=Zte(),pP=class{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),A=Date.now()-this.startTime,s=(e/(1024*1024)/(A/1e3)).toFixed(1);$te.info(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};mi.UploadProgress=pP;function Iir(t,e,r){var A;return fir(this,void 0,void 0,function*(){let s=new Cir.BlobClient(t),n=s.getBlockBlobClient(),i=new pP((A=r?.archiveSizeBytes)!==null&&A!==void 0?A:0),o={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),$te.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let a=yield n.uploadFile(e,o);if(a._response.status>=400)throw new Bir.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${a._response.status}`);return a}catch(a){throw $te.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${a.message}`),a}finally{i.stopDisplayTimer()}})}mi.uploadCacheArchiveSDK=Iir});var tre=E(wA=>{"use strict";var Qir=wA&&wA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pir=wA&&wA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mir=wA&&wA.__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)&&Qir(e,t,r);return pir(e,t),e},yP=wA&&wA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(wA,"__esModule",{value:!0});wA.retryHttpClientResponse=wA.retryTypedResponse=wA.retry=wA.isRetryableStatusCode=wA.isServerErrorStatusCode=wA.isSuccessStatusCode=void 0;var t5e=mir(go()),mP=Pf(),Op=m0();function yir(t){return t?t>=200&&t<300:!1}wA.isSuccessStatusCode=yir;function r5e(t){return t?t>=500:!0}wA.isServerErrorStatusCode=r5e;function A5e(t){return t?[mP.HttpCodes.BadGateway,mP.HttpCodes.ServiceUnavailable,mP.HttpCodes.GatewayTimeout].includes(t):!1}wA.isRetryableStatusCode=A5e;function bir(t){return yP(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ere(t,e,r,A=Op.DefaultRetryAttempts,s=Op.DefaultRetryDelay,n=void 0){return yP(this,void 0,void 0,function*(){let i="",o=1;for(;o<=A;){let a,c,u=!1;try{a=yield e()}catch(l){n&&(a=n(l)),u=!0,i=l.message}if(a&&(c=r(a),!r5e(c)))return a;if(c&&(u=A5e(c),i=`Cache service responded with ${c}`),t5e.debug(`${t} - Attempt ${o} of Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])Qo.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function oor(t,e,r){return yi(this,void 0,void 0,function*(){let A=new $ir.URL(t),s=(0,are.getDownloadOptions)(r);A.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,NP.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,NP.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,NP.downloadCacheHttpClient)(t,e):yield(0,NP.downloadCacheHttpClient)(t,e)})}Ns.downloadCache=oor;function aor(t,e,r){return yi(this,void 0,void 0,function*(){let A=cre(),s=Yp.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,Fh.retryTypedResponse)("reserveCache",()=>yi(this,void 0,void 0,function*(){return A.postJson(tR("caches"),n)}))})}Ns.reserveCache=aor;function E5e(t,e){return`bytes ${t}-${e}/*`}function cor(t,e,r,A,s){return yi(this,void 0,void 0,function*(){Qo.debug(`Uploading chunk of size ${s-A+1} bytes at offset ${A} with content range: ${E5e(A,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":E5e(A,s)},i=yield(0,Fh.retryHttpClientResponse)(`uploadChunk (start: ${A}, end: ${s})`,()=>yi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!(0,Fh.isSuccessStatusCode)(i.message.statusCode))throw new Error(`Cache service responded with ${i.message.statusCode} during upload chunk.`)})}function uor(t,e,r,A){return yi(this,void 0,void 0,function*(){let s=Yp.getArchiveFileSizeInBytes(r),n=tR(`caches/${e.toString()}`),i=ire.openSync(r,"r"),o=(0,are.getUploadOptions)(A),a=Yp.assertDefined("uploadConcurrency",o.uploadConcurrency),c=Yp.assertDefined("uploadChunkSize",o.uploadChunkSize),u=[...new Array(a).keys()];Qo.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>yi(this,void 0,void 0,function*(){for(;l<s;){let g=Math.min(s-l,c),d=l,h=l+g-1;l+=c,yield cor(t,n,()=>ire.createReadStream(r,{fd:i,start:d,end:h,autoClose:!1}).on("error",B=>{throw new Error(`Cache upload failed because file read failed with ${B.message}`)}),d,h)}})))}finally{ire.closeSync(i)}})}function lor(t,e,r){return yi(this,void 0,void 0,function*(){let A={size:r};return yield(0,Fh.retryTypedResponse)("commitCache",()=>yi(this,void 0,void 0,function*(){return t.postJson(tR(`caches/${e.toString()}`),A)}))})}function gor(t,e,r,A){return yi(this,void 0,void 0,function*(){if((0,are.getUploadOptions)(A).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,eor.uploadCacheArchiveSDK)(r,e,A)}else{let n=cre();Qo.debug("Upload cache"),yield uor(n,t,e,A),Qo.debug("Commiting cache");let i=Yp.getArchiveFileSizeInBytes(e);Qo.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let o=yield lor(n,t,i);if(!(0,Fh.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);Qo.info("Cache saved successfully")}})}Ns.saveCache=gor});var RP=E(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.isJsonObject=qp.typeofJsonValue=void 0;function dor(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}qp.typeofJsonValue=dor;function hor(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}qp.isJsonObject=hor});var TP=E(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.base64encode=Jp.base64decode=void 0;var Qg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),SP=[];for(let t=0;t<Qg.length;t++)SP[Qg[t].charCodeAt(0)]=t;SP[45]=Qg.indexOf("+");SP[95]=Qg.indexOf("/");function Eor(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),A=0,s=0,n,i=0;for(let o=0;o<t.length;o++){if(n=SP[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:i=n,s=1;break;case 1:r[A++]=i<<2|(n&48)>>4,i=n,s=2;break;case 2:r[A++]=(i&15)<<4|(n&60)>>2,i=n,s=3;break;case 3:r[A++]=(i&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,A)}Jp.base64decode=Eor;function Cor(t){let e="",r=0,A,s=0;for(let n=0;n<t.length;n++)switch(A=t[n],r){case 0:e+=Qg[A>>2],s=(A&3)<<4,r=1;break;case 1:e+=Qg[s|A>>4],s=(A&15)<<2,r=2;break;case 2:e+=Qg[s|A>>6],e+=Qg[A&63],r=0;break}return r&&(e+=Qg[s],e+="=",r==1&&(e+="=")),e}Jp.base64encode=Cor});var C5e=E(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0});kP.utf8read=void 0;var ure=t=>String.fromCharCode.apply(String,t);function Bor(t){if(t.length<1)return"";let e=0,r=[],A=[],s=0,n,i=t.length;for(;e<i;)n=t[e++],n<128?A[s++]=n:n>191&&n<224?A[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,A[s++]=55296+(n>>10),A[s++]=56320+(n&1023)):A[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(ure(A)),s=0);return r.length?(s&&r.push(ure(A.slice(0,s))),r.join("")):ure(A.slice(0,s))}kP.utf8read=Bor});var rR=E(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.WireType=Xu.mergeBinaryOptions=Xu.UnknownFieldHandler=void 0;var Ior;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,A,s,n,i)=>{(e(A)?A[t.symbol]:A[t.symbol]=[]).push({no:s,wireType:n,data:i})},t.onWrite=(r,A,s)=>{for(let{no:n,wireType:i,data:o}of t.list(A))s.tag(n,i).raw(o)},t.list=(r,A)=>{if(e(r)){let s=r[t.symbol];return A?s.filter(n=>n.no==A):s}return[]},t.last=(r,A)=>t.list(r,A).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Ior=Xu.UnknownFieldHandler||(Xu.UnknownFieldHandler={}));function Qor(t,e){return Object.assign(Object.assign({},t),e)}Xu.mergeBinaryOptions=Qor;var por;(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"})(por=Xu.WireType||(Xu.WireType={}))});var xP=E(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.varint32read=bi.varint32write=bi.int64toString=bi.int64fromString=bi.varint64write=bi.varint64read=void 0;function mor(){let t=0,e=0;for(let A=0;A<28;A+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<A,(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 A=3;A<=31;A+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<A,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}bi.varint64read=mor;function yor(t,e,r){for(let n=0;n<28;n=n+7){let i=t>>>n,o=!(!(i>>>7)&&e==0),a=(o?i|128:i)&255;if(r.push(a),!o)return}let A=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?A|128:A)&255),!!s){for(let n=3;n<31;n=n+7){let i=e>>>n,o=!!(i>>>7),a=(o?i|128:i)&255;if(r.push(a),!o)return}r.push(e>>>31&1)}}bi.varint64write=yor;var FP=65536*65536;function bor(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,A=0,s=0;function n(i,o){let a=Number(t.slice(i,o));s*=r,A=A*r+a,A>=FP&&(s=s+(A/FP|0),A=A%FP)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,A,s]}bi.int64fromString=bor;function wor(t,e){if(e>>>0<=2097151)return""+(FP*e+(t>>>0));let r=t&16777215,A=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+A*6777216+s*6710656,i=A+s*8147497,o=s*2,a=1e7;n>=a&&(i+=Math.floor(n/a),n%=a),i>=a&&(o+=Math.floor(i/a),i%=a);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(o,0)+c(i,o)+c(n,1)}bi.int64toString=wor;function Dor(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)}}bi.varint32write=Dor;function Nor(){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}bi.varint32read=Nor});var Uh=E(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.PbLong=xh.PbULong=xh.detectBi=void 0;var AR=xP(),pr;function B5e(){let t=new DataView(new ArrayBuffer(8));pr=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}xh.detectBi=B5e;B5e();function I5e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Q5e=/^-?[0-9]+$/,MP=4294967296,UP=2147483648, Line truncated
`)}};iO.RpcError=vre});var Pre=E(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0});aO.mergeRpcOptions=void 0;var K5e=OA();function Kar(t,e){if(!e)return t;let r={};oO(t,r),oO(e,r);for(let A of Object.keys(e)){let s=e[A];switch(A){case"jsonOptions":r.jsonOptions=K5e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=K5e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},oO(t.meta,r.meta),oO(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}aO.mergeRpcOptions=Kar;function oO(t,e){if(!t)return;let r=e;for(let[A,s]of Object.entries(t))s instanceof Date?r[A]=new Date(s.getTime()):Array.isArray(s)?r[A]=s.concat():r[A]=s}});var Hre=E(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.Deferred=fC.DeferredState=void 0;var el;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(el=fC.DeferredState||(fC.DeferredState={}));var Ore=class{constructor(e=!0){this._state=el.PENDING,this._promise=new Promise((r,A)=>{this._resolve=r,this._reject=A}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==el.PENDING)throw new Error(`cannot resolve ${el[this.state].toLowerCase()}`);this._resolve(e),this._state=el.RESOLVED}reject(e){if(this.state!==el.PENDING)throw new Error(`cannot reject ${el[this.state].toLowerCase()}`);this._reject(e),this._state=el.REJECTED}resolvePending(e){this._state===el.PENDING&&this.resolve(e)}rejectPending(e){this._state===el.PENDING&&this.reject(e)}};fC.Deferred=Ore});var Yre=E(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0});cO.RpcOutputStreamController=void 0;var X5e=Hre(),CC=OA(),Gre=class{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 A=r.indexOf(e);A>=0&&r.splice(A,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,A){CC.assert((e?1:0)+(r?1:0)+(A?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),A&&this.notifyComplete()}notifyMessage(e){CC.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){CC.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(){CC.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:()=>{let e=this._itState;CC.assert(e,"bad state"),CC.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 X5e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let A=r.p;CC.assert(A.state==X5e.DeferredState.PENDING,"iterator contract broken"),"value"in e?A.resolve(e):A.reject(e),delete r.p}else r.q.push(e)}};cO.RpcOutputStreamController=Gre});var Jre=E(Zp=>{"use strict";var Xar=Zp&&Zp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.UnaryCall=void 0;var qre=class{constructor(e,r,A,s,n,i,o){this.method=e,this.requestHeaders=r,this.request=A,this.headers=s,this.response=n,this.status=i,this.trailers=o}then(e,r){return this.promiseFinished().then(A=>e?Promise.resolve(e(A)):A,A=>r?Promise.resolve(r(A)):Promise.reject(A))}promiseFinished(){return Xar(this,void 0,void 0,function*(){let[e,r,A,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:A,trailers:s}})}};Zp.UnaryCall=qre});var Wre=E($p=>{"use strict";var Zar=$p&&$p.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty($p,"__esModule",{value:!0});$p.ServerStreamingCall=void 0;var Vre=class Line truncated
`));let A=yield EAe(r,"create");yield fAe(A,t)})}cn.createTar=Vcr});var I9e=E(ZA=>{"use strict";var Wcr=ZA&&ZA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),zcr=ZA&&ZA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BR=ZA&&ZA.__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)&&Wcr(e,t,r);return zcr(e,t),e},Em=ZA&&ZA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ZA,"__esModule",{value:!0});ZA.saveCache=ZA.restoreCache=ZA.isFeatureAvailable=ZA.ReserveCacheError=ZA.ValidationError=void 0;var Bt=BR(go()),CO=BR(I("path")),tA=BR(b0()),dm=BR(f5e()),C9e=BR(d9e()),IR=wP(),vh=f9e(),jcr=m0(),S1r=Pf(),_h=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};ZA.ValidationError=_h;var CR=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};ZA.ReserveCacheError=CR;function B9e(t){if(!t||t.length===0)throw new _h("Path Validation Error: At least one directory or file path is required")}function CAe(t){if(t.length>512)throw new _h(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new _h(`Key Validation Error: ${t} cannot contain commas.`)}function Kcr(){return(0,IR.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}ZA.isFeatureAvailable=Kcr;function Xcr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){let n=(0,IR.getCacheServiceVersion)();return Bt.debug(`Cache service version: ${n}`),B9e(t),n==="v2"?yield $cr(t,e,r,A,s):yield Zcr(t,e,r,A,s)})}ZA.restoreCache=Xcr;function Zcr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){r=r||[];let n=[e,...r];if(Bt.debug("Resolved Keys:"),Bt.debug(JSON.stringify(n)),n.length>10)throw new _h("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of n)CAe(a);let i=yield tA.getCompressionMethod(),o="";try{let a=yield dm.getCacheEntry(n,t,{compressionMethod:i,enableCrossOsArchive:s});if(!a?.archiveLocation)return;if(A?.lookupOnly)return Bt.info("Lookup only - skipping download"),a.cacheKey;o=CO.join(yield tA.createTempDirectory(),tA.getCacheFileName(i)),Bt.debug(`Archive Path: ${o}`),yield dm.downloadCache(a.archiveLocation,o,A),Bt.isDebug()&&(yield(0,vh.listTar)(o,i));let c=tA.getArchiveFileSizeInBytes(o);return Bt.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,vh.extractTar)(o,i),Bt.info("Cache restored successfully"),new hm(a.cacheKey,c)}finally{try{yield tA.unlinkFile(o)}catch(a){Bt.debug(`Failed to delete archive: ${a}`)}}})}function $cr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){A=Object.assign(Object.assign({},A),{useAzureSdk:!0}),r=r||[];let n=[e,...r];if(Bt.debug("Resolved Keys:"),Bt.debug(JSON.stringify(n)),n.length>10)throw new _h("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)CAe(o);let i="";try{let o=C9e.internalCacheTwirpClient(),a=yield tA.getCompressionMethod(),c={key:e,restoreKeys:r,version:tA.getCacheVersion(t,a,s)},u=yield o.GetCacheEntryDownloadURL(c);if(!u.ok){Bt.debug(`Cache not found for version ${c.version} of keys: ${n.join(", ")}`);return}if(c.key!==u.matchedKey?Bt.info(`Cache hit for restore-key: ${u.matchedKey}`):Bt.info(`Cache hit for: ${u.matchedKey}`),A?.lookupOnly)return Bt.info("Lookup only - skipping download"),u.matchedKey;i=CO.join(yield tA.createTempDirectory(),tA.getCacheFileName(a)),Bt.debug(`Archive path: ${i}`),Bt.debug(`Starting download of archive to: ${i}`),yield dm.downloadCache(u.signedDownloadUrl,i,A);let g=tA.getArchiveFileSizeInBytes(i);return Bt.info(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),Bt.isDebug()&&(yield(0,vh.listTar)(i,a)),yield(0,vh.extractTar)(i,a),Bt.info("Cache restored successfully"),new hm(u.matchedKey,g)}finally{try{i&&(yield tA.unlinkFile(i))}catch(o){Bt.debug(`Failed to delete archive: ${o}`)}}})}function eur(t,e,r,A=!1){return Em(this,void 0,void 0,function*(){let s=(0,IR.getCacheServiceVersion)();return Bt.debug(`Cache service version: ${s}`),B9e(t),CAe(e),s==="v2"?yield rur(t,e,r,A):yield tur(t,e,r,A)})}ZA.saveCache=eur;function tur(t,e,r,A=!1){var s,n,i,o,a;return Em(this,void 0,void 0,function*(){let c=yield tA.getCompressionMethod(),u=-1,l=yield tA.resolvePaths(t);if(Bt.debug(" Line truncated
`:T1(t.children):EB(t)?T1(t.children):On(t)?t.data:""}function Ql(t){return Array.isArray(t)?t.map(Ql).join(""):dr(t)&&!gE(t)?Ql(t.children):On(t)?t.data:""}function by(t){return Array.isArray(t)?t.map(by).join(""):dr(t)&&(t.type===Ut.Tag||EB(t))?by(t.children):On(t)?t.data:""}function BB(t){return dr(t)?t.children:[]}function Mge(t){return t.parent||null}function m3(t){let e=Mge(t);if(e!=null)return BB(e);let r=[t],{prev:A,next:s}=t;for(;A!=null;)r.unshift(A),{prev:A}=A;for(;s!=null;)r.push(s),{next:s}=s;return r}function yAt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function bAt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function wAt(t){return t.name}function k1(t){let{next:e}=t;for(;e!==null&&!me(e);)({next:e}=e);return e}function F1(t){let{prev:e}=t;for(;e!==null&&!me(e);)({prev:e}=e);return e}function pl(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function DAt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let A=e.next=t.next;A&&(A.prev=e);let s=e.parent=t.parent;if(s){let n=s.children;n[n.lastIndexOf(t)]=e,t.parent=null}}function NAt(t,e){if(pl(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function RAt(t,e){pl(e);let{parent:r}=t,A=t.next;if(e.next=A,e.prev=t,t.next=e,e.parent=r,A){if(A.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(A),0,e)}}else r&&r.children.push(e)}function SAt(t,e){if(pl(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function TAt(t,e){pl(e);let{parent:r}=t;if(r){let A=r.children;A.splice(A.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function IB(t,e,r=!0,A=1/0){return x1(t,Array.isArray(e)?e:[e],r,A)}function x1(t,e,r,A){let s=[],n=[Array.isArray(e)?e:[e]],i=[0];for(;;){if(i[0]>=n[0].length){if(i.length===1)return s;n.shift(),i.shift();continue}let o=n[0][i[0]++];if(t(o)&&(s.push(o),--A<=0))return s;r&&dr(o)&&o.children.length>0&&(i.unshift(0),n.unshift(o.children))}}function kAt(t,e){return e.find(t)}function U1(t,e,r=!0){let A=Array.isArray(e)?e:[e];for(let s=0;s<A.length;s++){let n=A[s];if(me(n)&&t(n))return n;if(r&&dr(n)&&n.children.length>0){let i=U1(t,n.children,!0);if(i)return i}}return null}function Lge(t,e){return(Array.isArray(e)?e:[e]).some(r=>me(r)&&t(r)||dr(r)&&Lge(t,r.children))}function FAt(t,e){let r=[],A=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=A[0].length){if(A.length===1)return r;A.shift(),s.shift();continue}let n=A[0][s[0]++];me(n)&&t(n)&&r.push(n),dr(n)&&n.children.length>0&&(s.unshift(0),A.unshift(n.children))}}var M1={tag_name(t){return typeof t=="function"?e=>me(e)&&t(e.name):t==="*"?me:e=>me(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>On(e)&&t(e.data):e=>On(e)&&e.data===t}};function y3(t,e){return typeof e=="function"?r=>me(r)&&e(r.attribs[t]):r=>me(r)&&r.attribs[t]===e}function xAt(t,e){return r=>t(r)||e(r)}function vge(t){let e=Object.keys(t).map(r=>{let A=t[r];return Object.prototype.hasOwnProperty.call(M1,r)?M1[r](A):y3(r,A)});return e.length===0?null:e.reduce(xAt)}function UAt(t,e){let r=vge(t);return r?r(e):!0}function MAt(t,e,r,A=1/0){let s=vge(t);return s?IB(s,e,r,A):[]}function LAt(t,e,r=!0){return Array.isArray(e)||(e=[e]),U1(y3("id",t),e,r)}function dE(t,e,r=!0,A=1/0){return IB(M1.tag_name(t),e,r,A)}function vAt(t,e,r=!0,A=1/0){return IB(y3("class",t),e,r,A)}function _At(t,e,r=!0,A=1/0){return IB(M1.tag_type(t),e,r,A)}function PAt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let A=r.parent;A;A=A.parent)if(t.includes(A)){t.splice(e,1);break}}return t}var Lo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Lo||(Lo={}));function _ge(t,e){let r=[],A=[];if(t===e)return 0;let s=dr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=dr(e)?e:e.parent;s;)A.unshift(s),s=s.parent;let n=Math.min(r.length,A.length),i=0;for(;i<n&&r[i]===A[i];)i++;if(i===0)return Lo.DISCONNECTED;let o=r[i-1],a=o.children,c=r[i],u=A[i];return a.indexOf(c)>a.indexOf(u)?o===e?Lo.FOLLOWING|Lo.CONTAINED_BY:Lo.FOLLOWING:o===t?Lo.PRECEDING|Lo.CONTAINS:Lo.PRECEDING}function jg(t){return t=t.filter((e,r,A)=>!A.includes(e,r+1)),t.sort((e,r)=>{let A=_ge(e,r);return A&Lo.PRECEDING?-1:A&Lo.FOLLOWING?1:0}),t}function b3(t){let e=L1(qAt,t);return e?e.name==="feed"?OAt(e):HAt(e):null}function OAt(t){var e;let r=t.children,A={type:"atom",items:dE("entry",r).map(i=>{var o;let{children:a}=i,c={media:Pge(a)};Hn(c,"id","id",a),Hn(c,"title","title",a);let u=(o=L1("link",a))===null||o===void 0?void 0:o.attribs.href;u&&(c.link=u);let l=Kg("summary",a)||Kg("conten Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),sd("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(sd("Creating `tls.Socket`: %o",this.connectOpts),i=t9e.connect(this.connectOpts)):(sd("Creating `net.Socket`: %o",this.connectOpts),i=e9e.connect(this.connectOpts)),await(0,s9e.once)(i,"connect"),i}};mB.protocols=["http","https"];In.HttpProxyAgent=mB;function i9e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dee=p(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});EB.state=void 0;EB.state={instrumenterImplementation:void 0}});var Hee=p(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.state=void 0;QB.state={operationRequestMap:new WeakMap}});var Nne=p((Lwt,Rqe)=>{Rqe.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Dne=p((vwt,Sne)=>{var kqe=Nne();Sne.exports={version:kqe.version}});var UB=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.isJsonObject=dd.typeofJsonValue=void 0;function Hqe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}dd.typeofJsonValue=Hqe;function _qe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}dd.isJsonObject=_qe});var vB=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.base64encode=gd.base64decode=void 0;var Do="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),LB=[];for(let t=0;t<Do.length;t++)LB[Do[t].charCodeAt(0)]=t;LB[45]=Do.indexOf("+");LB[95]=Do.indexOf("/");function Gqe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=LB[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}gd.base64decode=Gqe;function Yqe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Do[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Do[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Do[n|s>>6],e+=Do[s&63],r=0;break}return r&&(e+=Do[n],e+="=",r==1&&(e+="=")),e}gd.base64encode=Yqe});var Tne=p(PB=>{"use strict";Object.defineProperty(PB,"__esModule",{value:!0});PB.utf8read=void 0;var DF=t=>String.fromCharCode.apply(String,t);function qqe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(DF(s)),n=0);return r.length?(n&&r.push(DF(s.slice(0,n))),r.join("")):DF(s.slice(0,n))}PB.utf8read=qqe});var Zf=p(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.WireType=Ri.mergeBinaryOptions=Ri.UnknownFieldHandler=void 0;var Jqe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Jqe=Ri.UnknownFieldHandler||(Ri.UnknownFieldHandler={}));function Vqe(t,e){return Object.assign(Object.assign({},t),e)}Ri.mergeBinaryOptions=Vqe;var Wqe;(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"})(Wqe=Ri.WireType||(Ri.WireType={}))});var HB=p(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.varint32read=is.varint32write=is.int64toString=is.int64fromString=is.varint64write=is.varint64read=void 0;function zqe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}is.varint64read=zqe;function Kqe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}is.varint64write=Kqe;var OB=65536*65536;function Xqe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=OB&&(n=n+(s/OB|0),s=s%OB)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}is.int64fromString=Xqe;function jqe(t,e){if(e>>>0<=2097151)return""+(OB*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}is.int64toString=jqe;function Zqe(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)}}is.varint32write=Zqe;function $qe(){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}is.varint32read=$qe});var Ga=p(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.PbLong=_a.PbULong=_a.detectBi=void 0;var $f=HB(),je;function xne(){let t=new DataView(new ArrayBuffer(8));je=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}_a.detectBi=xne;xne();function Rne(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var kne=/^-?[0-9]+$/,GB=4294967296,_B=2147483648,YB=c Line truncated
`)}};gQ.RpcError=tM});var sM=p(fQ=>{"use strict";Object.defineProperty(fQ,"__esModule",{value:!0});fQ.mergeRpcOptions=void 0;var Aie=Rt();function BVe(t,e){if(!e)return t;let r={};hQ(t,r),hQ(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Aie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Aie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hQ(t.meta,r.meta),hQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}fQ.mergeRpcOptions=BVe;function hQ(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var iM=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.Deferred=Rc.DeferredState=void 0;var Mi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Mi=Rc.DeferredState||(Rc.DeferredState={}));var nM=class{constructor(e=!0){this._state=Mi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Mi.PENDING)throw new Error(`cannot resolve ${Mi[this.state].toLowerCase()}`);this._resolve(e),this._state=Mi.RESOLVED}reject(e){if(this.state!==Mi.PENDING)throw new Error(`cannot reject ${Mi[this.state].toLowerCase()}`);this._reject(e),this._state=Mi.REJECTED}resolvePending(e){this._state===Mi.PENDING&&this.resolve(e)}rejectPending(e){this._state===Mi.PENDING&&this.reject(e)}};Rc.Deferred=nM});var aM=p(mQ=>{"use strict";Object.defineProperty(mQ,"__esModule",{value:!0});mQ.RpcOutputStreamController=void 0;var cie=iM(),kc=Rt(),oM=class{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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){kc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){kc.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){kc.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(){kc.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:()=>{let e=this._itState;kc.assert(e,"bad state"),kc.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 cie.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;kc.assert(s.state==cie.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};mQ.RpcOutputStreamController=oM});var cM=p(Id=>{"use strict";var QVe=Id&&Id.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Id,"__esModule",{value:!0});Id.UnaryCall=void 0;var AM=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return QVe(this,void 0,void 0,function*(){let[e,r,s,n]=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:s,trailers:n}})}};Id.UnaryCall=AM});var lM=p(Bd=>{"use strict";var yVe=Bd&&Bd.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Bd,"__esModule",{value:!0});Bd.ServerStreamingCall=void 0;var uM=class{constructor(e Line truncated
`:bE(t.children):Lu(t)?bE(t.children):Jr(t)?t.data:""}function no(t){return Array.isArray(t)?t.map(no).join(""):ze(t)&&!yA(t)?no(t.children):Jr(t)?t.data:""}function qg(t){return Array.isArray(t)?t.map(qg).join(""):ze(t)&&(t.type===Re.Tag||Lu(t))?qg(t.children):Jr(t)?t.data:""}function Ou(t){return ze(t)?t.children:[]}function oH(t){return t.parent||null}function H1(t){let e=oH(t);if(e!=null)return Ou(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function cIe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function uIe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function lIe(t){return t.name}function wE(t){let{next:e}=t;for(;e!==null&&!W(e);)({next:e}=e);return e}function NE(t){let{prev:e}=t;for(;e!==null&&!W(e);)({prev:e}=e);return e}function io(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function dIe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function gIe(t,e){if(io(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function hIe(t,e){io(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function fIe(t,e){if(io(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function mIe(t,e){io(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Hu(t,e,r=!0,s=1/0){return SE(t,Array.isArray(e)?e:[e],r,s)}function SE(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ze(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function pIe(t,e){return e.find(t)}function DE(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(W(i)&&t(i))return i;if(r&&ze(i)&&i.children.length>0){let o=DE(t,i.children,!0);if(o)return o}}return null}function aH(t,e){return(Array.isArray(e)?e:[e]).some(r=>W(r)&&t(r)||ze(r)&&aH(t,r.children))}function EIe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];W(i)&&t(i)&&r.push(i),ze(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var TE={tag_name(t){return typeof t=="function"?e=>W(e)&&t(e.name):t==="*"?W:e=>W(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Jr(e)&&t(e.data):e=>Jr(e)&&e.data===t}};function _1(t,e){return typeof e=="function"?r=>W(r)&&e(r.attribs[t]):r=>W(r)&&r.attribs[t]===e}function CIe(t,e){return r=>t(r)||e(r)}function AH(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(TE,r)?TE[r](s):_1(r,s)});return e.length===0?null:e.reduce(CIe)}function IIe(t,e){let r=AH(t);return r?r(e):!0}function BIe(t,e,r,s=1/0){let n=AH(t);return n?Hu(n,e,r,s):[]}function QIe(t,e,r=!0){return Array.isArray(e)||(e=[e]),DE(_1("id",t),e,r)}function bA(t,e,r=!0,s=1/0){return Hu(TE.tag_name(t),e,r,s)}function yIe(t,e,r=!0,s=1/0){return Hu(_1("class",t),e,r,s)}function bIe(t,e,r=!0,s=1/0){return Hu(TE.tag_type(t),e,r,s)}function wIe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Ks;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ks||(Ks={}));function cH(t,e){let r=[],s=[];if(t===e)return 0;let n=ze(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ze(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Ks.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ks.FOLLOWING|Ks.CONTAINED_BY:Ks.FOLLOWING:a===t?Ks.PRECEDING|Ks.CONTAINS:Ks.PRECEDING}function $o(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=cH(e,r);return s&Ks.PRECEDING?-1:s&Ks.FOLLOWING?1:0}),t}function G1(t){let e=xE(xIe,t);return e?e.name==="feed"?NIe(e):SIe(e):null}function NIe(t){var e;let r=t.children,s={type:"atom",items:bA("entry",r).map(o=>{var a;let{children:A}=o,c={media:uH(A)};Vr(c,"id","id",A),Vr(c,"title","title",A);let u=(a=xE("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ea("summary",A)||ea("content",A);l&&(c.descript Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Po=Fr(Zg(),1);var H3={};function G3(t,e){return t===Po.default.falseFunc?Po.default.falseFunc:r=>e.isTag(r)&&t(r)}function Y3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let A=r.indexOf(t);return A<0||A===r.length-1?[]:r.slice(A+1).filter(e.isTag)}function O3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var P3=(t,e,r,A,s)=>{let n=s(e,O3(r),A);return n===Po.default.trueFunc?t:n===Po.default.falseFunc?Po.default.falseFunc:i=>n(i)&&t(i)},j1={is:P3,matches:P3,where:P3,not(t,e,r,A,s){let n=s(e,O3(r),A);return n===Po.default.falseFunc?t:n===Po.default.trueFunc?Po.default.falseFunc:i=>!n(i)&&t(i)},has(t,e,r,A,s){let{adapter:n}=r,i=O3(r);i.relativeSelector=!0;let o=e.some(u=>u.some(ky))?[H3]:void 0,a=s(e,i,o);if(a===Po.default.falseFunc)return Po.default.falseFunc;let c=G3(a,n);if(o&&a!==Po.default.trueFunc){let{shouldTestNextSiblings:u=!1}=a;return l=>{if(!t(l))return!1;o[0]=l;let g=n.getChildren(l),d=u?[...g,...Y3(l,n)]:g;return n.existsOne(c,d)}}return u=>t(u)&&n.existsOne(c,n.getChildren(u))}};function Nde(t,e,r,A,s){var n;let{name:i,data:o}=e;if(Array.isArray(o)){if(!(i in j1))throw new Error(`Unknown pseudo-class :${i}(${o})`);return j1[i](t,o,r,A,s)}let a=(n=r.pseudos)===null||n===void 0?void 0:n[i],c=typeof a=="string"?a:z1[i];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);let u=(0,Dde.parse)(c);return j1.is(t,u,r,A,s)}if(typeof a=="function")return _3(a,i,o,1),u=>a(u,o)&&t(u);if(i in RB)return RB[i](t,o,r,A);if(i in xy){let u=xy[i];return _3(u,i,o,2),l=>u(l,r,o)&&t(l)}throw new Error(`Unknown pseudo-class :${i}`)}var Oo=Fr(DB(),1);function q3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Rde(t,e,r,A,s){let{adapter:n,equals:i}=r;switch(e.type){case Oo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Oo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Oo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),mde[e.action](t,e,r)}case Oo.SelectorType.Pseudo:return Nde(t,e,r,A,s);case Oo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return n.getName(c)===o&&t(c)}}case Oo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=q3(u,n);)if(t(u))return!0;return!1};let o=new WeakSet;return function(c){let u=c;for(;u=q3(u,n);)if(!o.has(u)){if(n.isTag(u)&&t(u))return!0;o.add(u)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=q3(c,n));return!1};case Oo.SelectorType.Parent:return function(a){return n.getChildren(a).some(c=>n.isTag(c)&&t(c))};case Oo.SelectorType.Child:return function(a){let c=n.getParent(a);return c!=null&&n.isTag(c)&&t(c)};case Oo.SelectorType.Sibling:return function(a){let c=n.getSiblings(a);for(let u=0;u<c.length;u++){let l=c[u];if(i(a,l))break;if(n.isTag(l)&&t(l))return!0}return!1};case Oo.SelectorType.Adjacent:return n.prevElementSibling?function(a){let c=n.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=n.getSiblings(a),u;for(let l=0;l<c.length;l++){let g=c[l];if(i(a,g))break;n.isTag(g)&&(u=g)}return!!u&&t(u)};case Oo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Sde(t,e,r){let A=K1(t,e,r);return G3(A,e.adapter)}function K1(t,e,r){let A=typeof t=="string"?(0,Za.parse)(t):t;return X1(A,e,r)}function Tde(t){return t.type===Za.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Tde)))}var Mst={type:Za.SelectorType.Descendant},Lst={type:"_flexibleDescendant"},vst={type:Za.SelectorType.Pseudo,name:"scope",data:null};function _st(t,{adapter:e},r){let A=!!r?.every(s=>{let n=e.isTag(s)&&e.getParent(s);return s===H3||n&&e.isTag(n)});fo Line truncated
`)})):{name:s,value:n.replace(Vde,`\r
`)}}).toArray()}var iY={};Oa(iY,{extract:()=>$nt});function Znt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function $nt(t){let e={};for(let r in t){let A=t[r],s=Array.isArray(A),{selector:n,value:i}=Znt(s?A[0]:A),o=typeof i=="function"?i:typeof i=="string"?a=>this._make(a).prop(i):a=>this._make(a).extract(i);if(s)e[r]=this._findBySelector(n,Number.POSITIVE_INFINITY).map((a,c)=>o(c,r,e)).get();else{let a=this._findBySelector(n,1);e[r]=a.length>0?o(a[0],r,e):void 0}}return e}var td=class{constructor(e,r,A){if(this.length=0,this.options=A,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};td.prototype.cheerio="[cheerio object]";td.prototype.splice=Array.prototype.splice;td.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(td.prototype,x3,rY,AY,sY,nY,iY);function Wde(t,e){return function r(A,s,n=!0){if(A==null)throw new Error("cheerio.load() expects a string");let i=hB(s),o=t(A,i,n,null);class a extends td{_make(l,g){let d=c(l,g);return d.prevObject=this,d}_parse(l,g,d,h){return t(l,g,d,h)}_render(l){return e(l,this.options)}}function c(u,l,g=o,d){if(u&&vo(u))return u;let h=hB(d,i),B=typeof g=="string"?[t(g,h,!1,null)]:"length"in g?g:[g],Q=vo(B)?B:new a(B,null,h);if(Q._root=Q,!u)return new a(void 0,Q,h);let C=typeof u=="string"&&wy(u)?t(u,h,!1,null).children:eit(u)?[u]:Array.isArray(u)?u:void 0,p=new a(C,Q,h);if(C)return p;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,k=l?typeof l=="string"?wy(l)?new a([t(l,h,!1,null)],Q,h):(w=`${l} ${w}`,Q):vo(l)?l:new a(Array.isArray(l)?l:[l],Q,h):Q;return k?k.find(w):p}return Object.assign(c,w3,{load:r,_root:o,_options:i,fn:a.prototype,prototype:a.prototype}),c}}function eit(t){return!!t.name||t.type===Uo.Root||t.type===Uo.Text||t.type===Uo.Comment}var tit=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),yr="\uFFFD",R;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(R||(R={}));var En={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function AT(t){return t>=55296&&t<=57343}function zde(t){return t>=56320&&t<=57343}function jde(t,e){return(t-55296)*1024+9216+e}function sT(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function nT(t){return t>=64976&&t<=65007||tit.has(t)}var q;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Zs=fe(ra(),1);var iN={};function oN(t,e){return t===Zs.default.falseFunc?Zs.default.falseFunc:r=>e.isTag(r)&&t(r)}function aN(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function nN(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var sN=(t,e,r,s,n)=>{let i=n(e,nN(r),s);return i===Zs.default.trueFunc?t:i===Zs.default.falseFunc?Zs.default.falseFunc:o=>i(o)&&t(o)},YE={is:sN,matches:sN,where:sN,not(t,e,r,s,n){let i=n(e,nN(r),s);return i===Zs.default.falseFunc?t:i===Zs.default.trueFunc?Zs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=nN(r);o.relativeSelector=!0;let a=e.some(u=>u.some(jg))?[iN]:void 0,A=n(e,o,a);if(A===Zs.default.falseFunc)return Zs.default.falseFunc;let c=oN(A,i);if(a&&A!==Zs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let g=i.getChildren(l),h=u?[...g,...aN(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function ZH(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in YE))throw new Error(`Unknown pseudo-class :${o}(${a})`);return YE[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:GE[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jH.parse)(c);return YE.is(t,u,r,s,n)}if(typeof A=="function")return rN(A,o,a,1),u=>A(u,a)&&t(u);if(o in Ku)return Ku[o](t,a,r,s);if(o in $g){let u=$g[o];return rN(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $s=fe(Wu(),1);function AN(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $H(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case $s.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $s.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $s.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),WH[e.action](t,e,r)}case $s.SelectorType.Pseudo:return ZH(t,e,r,s,n);case $s.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case $s.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=AN(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=AN(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=AN(c,i));return!1};case $s.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $s.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $s.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case $s.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let g=c[l];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case $s.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function e_(t,e,r){let s=qE(t,e,r);return oN(s,e.adapter)}function qE(t,e,r){let s=typeof t=="string"?(0,On.parse)(t):t;return JE(s,e,r)}function t_(t){return t.type===On.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(t_)))}var BBe={type:On.SelectorType.Descendant},QBe={type:"_flexibleDescendant"},yBe={type:On.SelectorType.Pseudo,name:"scope",data:null};function bBe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===iN||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(p_,`\r
`)}}).toArray()}var bN={};Sn(bN,{extract:()=>OQe});function PQe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function OQe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=PQe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var ia=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};ia.prototype.cheerio="[cheerio object]";ia.prototype.splice=Array.prototype.splice;ia.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ia.prototype,j1,IN,BN,QN,yN,bN);function E_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Uu(n),a=t(s,o,i,null);class A extends ia{_make(l,g){let h=c(l,g);return h.prevObject=this,h}_parse(l,g,h,f){return t(l,g,h,f)}_render(l){return e(l,this.options)}}function c(u,l,g=a,h){if(u&&Xs(u))return u;let f=Uu(h,o),m=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],B=Xs(m)?m:new A(m,null,f);if(B._root=B,!u)return new A(void 0,B,f);let E=typeof u=="string"&&Jg(u)?t(u,f,!1,null).children:HQe(u)?[u]:Array.isArray(u)?u:void 0,b=new A(E,B,f);if(E)return b;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let S=u,R=l?typeof l=="string"?Jg(l)?new A([t(l,f,!1,null)],B,f):(S=`${l} ${S}`,B):Xs(l)?l:new A(Array.isArray(l)?l:[l],B,f):B;return R?R.find(S):b}return Object.assign(c,Y1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function HQe(t){return!!t.name||t.type===Ws.Root||t.type===Ws.Text||t.type===Ws.Comment}var _Qe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),et="\uFFFD",I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));var Sr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jE(t){return t>=55296&&t<=57343}function C_(t){return t>=56320&&t<=57343}function I_(t,e){return(t-55296)*1024+9216+e}function ZE(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function $E(t){return t>=64976&&t<=65007||_Qe.has(t)}var k;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},M2=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Abt,existsSync as sbt}from"fs";import{EOL as nbt}from"os";var DI=class{constructor(){var e,r,A;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(sbt(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Abt(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${nbt}`)}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=(A=process.env.GITHUB_GRAPHQL_URL)!==null&&A!==void 0?A:"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 WW=Fr(Tke(),1),kke=Fr(YW(),1),DMt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function Fke(t){return new WW.HttpClient().getAgent(t)}function NMt(t){return new WW.HttpClient().getAgentDispatcher(t)}function xke(t){let e=NMt(t);return(A,s)=>DMt(this,void 0,void 0,function*(){return(0,kke.fetch)(A,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Uke(){return process.env.GITHUB_API_URL||"https://api.github.com"}function vx(){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>"}function _x(t,e,r,A){if(typeof r!="function")throw new Error("method for before hook must be a function");return A||(A={}),Array.isArray(e)?e.reverse().reduce((s,n)=>_x.bind(null,t,n,s,A),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,n)=>n.hook.bind(null,s,A),r)():r(A))}function Mke(t,e,r,A){let s=A;t.registry[r]||(t.registry[r]=[]),e==="before"&&(A=(n,i)=>Promise.resolve().then(s.bind(null,i)).then(n.bind(null,i))),e==="after"&&(A=(n,i)=>{let o;return Promise.resolve().then(n.bind(null,i)).then(a=>(o=a,s(o,i))).then(()=>o)}),e==="error"&&(A=(n,i)=>Promise.resolve().then(n.bind(null,i)).catch(o=>s(o,i))),t.registry[r].push({hook:A,orig:s})}function Lke(t,e,r){if(!t.registry[e])return;let A=t.registry[e].map(s=>s.orig).indexOf(r);A!==-1&&t.registry[e].splice(A,1)}var vke=Function.bind,_ke=vke.bind(vke);function Pke(t,e,r){let A=_ke(Lke,null).apply(null,r?[e,r]:[e]);t.api={remove:A},t.remove=A,["before","error","after","wrap"].forEach(s=>{let n=r?[e,s,r]:[e,s];t[s]=t.api[s]=_ke(Mke,null).apply(null,n)})}function SMt(){let t=Symbol("Singular"),e={registry:{}},r=_x.bind(null,e,t);return Pke(r,e,t),r}function TMt(){let t={registry:{}},e=_x.bind(null,t);return Pke(e,t),e}var Oke={Singular:SMt,Collection:TMt};var cz=Fr(nz(),1);var d2e=Fr(nz(),1);var yLt="0.0.0-development";function bLt(t){return`Request failed due to following response errors:
`)}`}},RI=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Y8e,existsSync as q8e}from"fs";import{EOL as J8e}from"os";var Wl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(q8e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Y8e(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${J8e}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 mR=fe(hX(),1),fX=fe(dE(),1),n4e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function mX(t){return new mR.HttpClient().getAgent(t)}function i4e(t){return new mR.HttpClient().getAgentDispatcher(t)}function pX(t){let e=i4e(t);return(s,n)=>n4e(this,void 0,void 0,function*(){return(0,fX.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function EX(){return process.env.GITHUB_API_URL||"https://api.github.com"}function Fa(){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>"}function PI(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>PI.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function CX(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function IX(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var BX=Function.bind,QX=BX.bind(BX);function yX(t,e,r){let s=QX(IX,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=QX(CX,null).apply(null,i)})}function a4e(){let t=Symbol("Singular"),e={registry:{}},r=PI.bind(null,e,t);return yX(r,e,t),r}function A4e(){let t={registry:{}},e=PI.bind(null,t);return yX(e,t),e}var bX={Singular:a4e,Collection:A4e};var c4e="0.0.0-development",u4e=`octokit-endpoint.js/${c4e} ${Fa()}`,l4e={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":u4e},mediaType:{format:""}};function d4e(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function g4e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function SX(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{g4e(e[s])?s in t?r[s]=SX(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function wX(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function ER(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=d4e(r.headers),wX(r),wX(r.headers);let s=SX(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`+s.repeat(l));let B=f.val[f.index],E=o(f.val,String(f.index),B);if(yR(E))u.push("null"),f.first=!1,f.index++;else{let b=E!==null&&typeof E=="object",S=bR(E);if(b&&!S){if(h.has(E))throw new TypeError("Converting circular structure to JSON");h.add(E),g.push({parent:f.val,key:String(f.index),val:E,isArray:Array.isArray(E),keys:Array.isArray(E)?null:Object.keys(E),index:0,first:!0}),f.first=!1,f.index++}else u.push(Ma(E)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let E=f.keys[f.index++];if(i&&!i.has(E))continue;let S=f.val[E],R=o(f.val,E,S);if(yR(R))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+Ma(E)+": "):u.push(Ma(E)+":");let F=R!==null&&typeof R=="object",L=bR(R);if(F&&!L){if(h.has(R))throw new TypeError("Converting circular structure to JSON");h.add(R),g.push({parent:f.val,key:E,val:R,isArray:Array.isArray(R),keys:Array.isArray(R)?null:Object.keys(R),index:0,first:!0}),f.first=!1;break}else u.push(Ma(R)),f.first=!1}f.index>=f.keys.length&&g[g.length-1]===f&&(m=!0)}m&&(l--,!f.first&&s&&u.push(`
`+s.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),g.pop())}return u.join("")},YX=(t,e,r)=>{try{return"rawJSON"in JSON?Ma(t,(a,A)=>typeof A=="bigint"?JSON.rawJSON(A.toString()):typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r):t?Ma(t,(a,A)=>typeof A=="string"&&HI.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(PX,"$1$2$3").replace(OX,"$1$2$3"):Ma(t,e,r)}catch(s){if(s instanceof RangeError){let n=S4e(t,e,r);return n===void 0?void 0:"rawJSON"in JSON?n:n.replace(PX,"$1$2$3").replace(OX,"$1$2$3")}throw s}},OI=new Map,D4e=()=>{let t=JSON.parse.toString();if(OI.has(t))return OI.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return OI.set(t,e),e}catch{return OI.set(t,!1),!1}},T4e=(t,e,r,s)=>typeof e=="string"&&GX.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&HI.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,x4e=(t,e)=>JSON.parse(t,(r,s,n)=>{let i=typeof s=="number",o=s>Number.MAX_SAFE_INTEGER||s<Number.MIN_SAFE_INTEGER,a=i&&o,A=n&&N4e.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),qX=Number.MAX_SAFE_INTEGER.toString(),HX=qX.length,R4e=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,k4e=/^"-?\d+n+"$/,F4e=(t,e)=>{let r={"":t},s=[{parent:r,key:"",visited:!1}];for(;s.length>0;){let n=s[s.length-1];if(n.visited){let{parent:i,key:o}=n,a=i[o];typeof a=="string"&&(GX.test(a)?a=BigInt(a.slice(0,-1)):HI.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,s.pop()}else{n.visited=!0;let i=n.parent[n.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let A=a.length-1;A>=0;A--)s.push({parent:i,key:a[A],visited:!1})}}}return r[""]},_X=t=>t.replace(R4e,(e,r,s,n)=>{let i=e[0]==='"';if(i&&k4e.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<HX||r.length===HX&&r<=qX);return i||a||A?e:'"'+e+'n"'}),JX=(t,e)=>{if(!t)return QR(t,e);try{if(D4e())return x4e(t,e);let r=_X(t);return QR(r,(s,n,i)=>T4e(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=_X(t),n=QR(s);return F4e(n,e)}throw r}};var Bc=class extends Error{name;status;request;response;constructor(e,r,s){super(e,{cause:s.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in s&&(this.response=s.response);let n=Object.assign({},s.request);s.request.headers.authorization&&(n.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}};var M4e="10.0.16",U4e={headers:{"user-agent":`octokit-request.js/${M4e} ${Fa()}`}};function L4e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var VX=()=>"";async function WX(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,s=t.request?.parseSuccessResponseBody!==!1,n=L4e(t.body)||Array.isArray(t.body)?YX(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,g])=>[l,String(g)])),o;try{o=await e(t.url,{method:t.method,body:n,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let g="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;g=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?g=l.cause.message:typeof l.cause=="string"&&(g=l.cause))}let h=new Bc(g,500,{request:t});throw h.cause=l,h}let a=o.status,A=o.url,c={};for(let[l,g]of o.headers)c[l]=g;let u={url:A,status:a,headers:c,data:""};if("deprecation"in c){let l=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),g=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${g?`. See ${g}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new Bc(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await wR(o),new Bc("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await wR(o),new Bc(P4e(u.data),a,{response:u,request:t});return u.data=s?await wR(o):o.body,u}async function wR(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(VX);let r=MX(e);if(v4e(r)){let s="";try{return s=await t.text(),JX(s)}catch{return s}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-stream"?t.text().catch( Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var wLt=class extends Error{constructor(t,e,r){super(bLt(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},DLt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],NLt=["query","method","url"],g2e=/\/api\/v3\/?$/;function RLt(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 i in r)if(NLt.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let A=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(A).reduce((i,o)=>DLt.includes(o)?(i[o]=A[o],i):(i.variables||(i.variables={}),i.variables[o]=A[o],i),{}),n=A.baseUrl||t.endpoint.DEFAULTS.baseUrl;return g2e.test(n)&&(s.url=n.replace(g2e,"/api/graphql")),t(s).then(i=>{if(i.data.errors){let o={};for(let a of Object.keys(i.headers))o[a]=i.headers[a];throw new wLt(s,o,i.data)}return i.data.data})}function iz(t,e){let r=t.defaults(e);return Object.assign((s,n)=>RLt(r,s,n),{defaults:iz.bind(null,r),endpoint:r.endpoint})}var Mpr=iz(d2e.request,{headers:{"user-agent":`octokit-graphql.js/${yLt} ${vx()}`},method:"POST",url:"/graphql"});function h2e(t){return iz(t,{method:"POST",url:"/graphql"})}var oz="(?:[a-zA-Z0-9_-]+)",E2e="\\.",f2e=new RegExp(`^${oz}${E2e}${oz}${E2e}${oz}$`),SLt=f2e.test.bind(f2e);async function TLt(t){let e=SLt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),A=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":A?"user-to-server":"oauth"}}function kLt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function FLt(t,e,r,A){let s=e.endpoint.merge(r,A);return s.headers.authorization=kLt(t),e(s)}var C2e=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(TLt.bind(null,e),{hook:FLt.bind(null,e)})};var az="7.0.6";var B2e=()=>{},xLt=console.warn.bind(console),ULt=console.error.bind(console);function MLt(t={}){return typeof t.debug!="function"&&(t.debug=B2e),typeof t.info!="function"&&(t.info=B2e),typeof t.warn!="function"&&(t.warn=xLt),typeof t.error!="function"&&(t.error=ULt),t}var I2e=`octokit-core.js/${az} ${vx()}`,Hx=class{static VERSION=az;static defaults(e){return class extends this{constructor(...A){let s=A[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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Oke.Collection,A={baseUrl:cz.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(A.headers["user-agent"]=e.userAgent?`${e.userAgent} ${I2e}`:I2e,e.baseUrl&&(A.baseUrl=e.baseUrl),e.previews&&(A.mediaType.previews=e.previews),e.timeZone&&(A.headers["time-zone"]=e.timeZone),this.request=cz.request.defaults(A),this.graphql=h2e(this.request).defaults(A),this.log=MLt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...i}=e,o=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));r.wrap("request",o.hook),this.auth=o}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=C2e(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var uz="17.0.0";var LLt={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
See ${r.getDocumentationLink()}`;sur.push(A),Bl(A)}function p9e(t=!0){if(Q9e.length>0){By(`This job uses deprecated functionality from the '${BO()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Q9e)Yc(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var y9e="GRADLE_ACTION_ID";var m9e=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return w9e("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return dn("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return dn("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dn("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dn("develocity-token-expiry")}getDevelocityInjectionEnabled(){return IO("develocity-injection-enabled")}getDevelocityUrl(){return dn("develocity-url")}getDevelocityAllowUntrustedServer(){return IO("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return IO("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return IO("develocity-enforce-url")}getDevelocityPluginVersion(){return dn("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dn("develocity-ccud-plugin-version")}getPluginRepository(){return new pAe}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(By("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},pAe=class{getUrl(){return QAe("gradle-plugin-repository-url")}getUsername(){return QAe("gradle-plugin-repository-username")}getPassword(){return QAe("gradle-plugin-repository-password")}};function BO(){return process.env[y9e]}function b9e(t){uge(y9e,t)}function QAe(t){let e=dn(t);if(e.length>0)return e}function w9e(t,e=!1){let r=dn(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function IO(t){if(dn(t)!=="")return w9e(t)}var mAe=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function D9e(t){if(t instanceof AggregateError){Bl("Multiple errors returned");for(let e of t.errors)t3(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Yc(e.stack)}else t instanceof mAe?(Bl(String(t)),t.stack&&Yc(t.stack)):(Bl(String(t)),t instanceof Error&&t.stack&&Yc(t.stack))}async function our(){try{BO()==="gradle/wrapper-validation-action"&&IAe("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),b9e("gradle/actions/wrapper-validation");let t=await sbe(N9e.resolve("."),dn("allow-snapshots")==="true",dn("allow-checksums").split(","));if(t.isValid()){Yc(t.toDisplayString());let e=+dn("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Bl(r)}}else Bl(`At least one Gradle Wrapper Jar failed validation!
`)}var _4e=class extends Error{constructor(t,e,r){super(H4e(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)}request;headers;response;name="GraphqlResponseError";errors;data},G4e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y4e=["query","method","url"],zX=/\/api\/v3\/?$/;function q4e(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 o in r)if(Y4e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>G4e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return zX.test(i)&&(n.url=i.replace(zX,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new _4e(n,a,o.data)}return o.data.data})}function SR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>q4e(r,n,i),{defaults:SR.bind(null,r),endpoint:r.endpoint})}var gst=SR(Df,{headers:{"user-agent":`octokit-graphql.js/${O4e} ${Fa()}`},method:"POST",url:"/graphql"});function KX(t){return SR(t,{method:"POST",url:"/graphql"})}var DR="(?:[a-zA-Z0-9_-]+)",XX="\\.",jX=new RegExp(`^${DR}${XX}${DR}${XX}${DR}$`),J4e=jX.test.bind(jX);async function V4e(t){let e=J4e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function W4e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function z4e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=W4e(t),e(n)}var ZX=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(V4e.bind(null,e),{hook:z4e.bind(null,e)})};var TR="7.0.8";var $X=()=>{},K4e=console.warn.bind(console),X4e=console.error.bind(console);function j4e(t={}){return typeof t.debug!="function"&&(t.debug=$X),typeof t.info!="function"&&(t.info=$X),typeof t.warn!="function"&&(t.warn=K4e),typeof t.error!="function"&&(t.error=X4e),t}var ej=`octokit-core.js/${TR} ${Fa()}`,_I=class{static VERSION=TR;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new bX.Collection,s={baseUrl:Df.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${ej}`:ej,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Df.defaults(s),this.graphql=KX(this.request).defaults(s),this.log=j4e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=ZX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var xR="17.0.0";var Z4e={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrg 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"}};FB.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var MB=class extends Error{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"}};MB.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Fqe=fe(Dne(),1);var Qie=fe(fie(),1),kt=fe(Rt(),1),vs=fe(Rt(),1),Fc=fe(Rt(),1),Mc=fe(Rt(),1),Uc=fe(Rt(),1);var BM=fe(Rt(),1),QM=fe(Rt(),1),Cie=fe(Rt(),1),Iie=fe(Rt(),1),Bie=fe(Rt(),1);var EM=fe(Rt(),1),CM=fe(Rt(),1),mie=fe(Rt(),1),pie=fe(Rt(),1),Eie=fe(Rt(),1),IM=class extends Eie.MessageType{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,pie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?CM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,EM.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,EM.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?CM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},CQ=new IM;var yM=class extends Bie.MessageType{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:()=>CQ}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Iie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Cie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(CQ.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?QM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,BM.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CQ.internalBinaryWrite(e.scope[i],r.tag(2,BM.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?QM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ui=new yM;var bM=class extends Uc.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>Ui},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,Mc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fc.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=Ui.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?vs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&Ui.internalBinaryWrite(e.metadata,r.tag(1,kt.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,kt.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,kt.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?vs.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},yie=new bM,wM=class extends Uc.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,Mc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fc.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?vs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,kt.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;jVe.push(s),ro(s)}function xie(t=!0){if(Tie.length>0){jo(`This job uses deprecated functionality from the '${IQ()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Tie)lr(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var kie="GRADLE_ACTION_ID";var Rie=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Mie("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return BQ("develocity-injection-enabled")}getDevelocityUrl(){return br("develocity-url")}getDevelocityAllowUntrustedServer(){return BQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return BQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return BQ("develocity-enforce-url")}getDevelocityPluginVersion(){return br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return br("develocity-ccud-plugin-version")}getPluginRepository(){return new FM}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(jo("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},FM=class{getUrl(){return kM("gradle-plugin-repository-url")}getUsername(){return kM("gradle-plugin-repository-username")}getPassword(){return kM("gradle-plugin-repository-password")}};function IQ(){return process.env[kie]}function Fie(t){U6(kie,t)}function kM(t){let e=br(t);if(e.length>0)return e}function Mie(t,e=!1){let r=br(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function BQ(t){if(br(t)!=="")return Mie(t)}var MM=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function Uie(t){if(t instanceof AggregateError){ro("Multiple errors returned");for(let e of t.errors)hE(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&lr(e.stack)}else t instanceof MM?(ro(String(t)),t.stack&&lr(t.stack)):(ro(String(t)),t instanceof Error&&t.stack&&lr(t.stack))}async function $Ve(){try{IQ()==="gradle/wrapper-validation-action"&&RM("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),Fie("gradle/actions/wrapper-validation");let t=await cX(Lie.resolve("."),br("allow-snapshots")==="true",br("allow-checksums").split(","));if(t.isValid()){lr(t.toDisplayString());let e=+br("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;ro(r)}}else ro(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${t.toDisplayString()}`),t.invalid.length>0&&lge("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);p9e(!1)}catch(t){D9e(t)}}our();export{our as run};
${t.toDisplayString()}`),t.invalid.length>0&&L6("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);xie(!1)}catch(t){Uie(t)}}$Ve();export{$Ve as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine 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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+36 -17
View File
@@ -15,6 +15,15 @@ for vulnerable dependencies, as well as to populate the
If you're confused by the behaviour you're seeing or have specific questions, please check out [the FAQ](dependency-submission-faq.md) before raising an issue.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## General usage
The following workflow will generate a dependency graph for a Gradle project and submit it immediately to the repository via the
@@ -36,14 +45,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
### Gradle execution
@@ -60,6 +69,17 @@ on the command-line will be used.
The action provides the ability to override the Gradle version and task to execute, as well as provide
additional arguments that will be passed to Gradle on the command-line. See [Configuration Parameters](#configuration-parameters) below.
### Selecting a cache provider
See [Selecting a cache provider](setup-gradle.md#selecting-a-cache-provider) for details on choosing between the `enhanced` (default) and `basic` cache providers via the `cache-provider` input.
### Disabling caching
Caching is enabled by default. You can disable caching for the action as follows:
```yaml
cache-disabled: true
```
### Publishing a Develocity Build Scan® from your dependency submission workflow
You can automatically publish a free Develocity Build Scan on every run of `gradle/actions/dependency-submission`.
@@ -68,7 +88,7 @@ Three input parameters are required, one to enable publishing and two more to ac
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
@@ -83,7 +103,7 @@ In some cases, the default action configuration will not be sufficient, and addi
```yaml
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Use a particular Gradle version instead of the configured wrapper.
gradle-version: '8.6'
@@ -130,7 +150,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate dependency graph but only store workflow artifacts for 1 day
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
artifact-retention-days: 1 # Default is 30 days or as configured for repository
```
@@ -139,7 +159,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate and submit dependency graph but do not store as workflow artifact
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: 'generate-and-submit' # Default value is 'generate-submit-and-upload'
```
@@ -299,7 +319,7 @@ For example, if you want to exclude dependencies resolved by the `buildSrc` proj
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Exclude all dependencies that originate solely in the 'buildSrc' project
dependency-graph-exclude-projects: ':buildSrc'
@@ -343,14 +363,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
#### 2. Add a dedicated Dependency Review workflow
@@ -405,14 +425,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: generate-and-upload
```
@@ -435,7 +455,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: download-and-submit # Download saved dependency-graph and submit
```
@@ -443,7 +463,7 @@ jobs:
# Gradle version compatibility
Dependency-graph generation is compatible with most versions of Gradle >= `5.2`, and is tested regularly against
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1` and `7.6.3`, as well as all patched versions of Gradle 8.x.
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1`, `7.6.6`, `8.0.2` and `8.14.4`, as well as all patched versions of Gradle 9.x.
A known exception to this is that Gradle `7.0`, `7.0.1` and `7.0.2` are not supported.
@@ -454,4 +474,3 @@ See [here](https://github.com/gradle/github-dependency-graph-gradle-plugin?tab=r
- Dependency Submission Demo repository: https://github.com/gradle/github-dependency-submission-demo
- GitHub Dependency Graph Gradle Plugin: https://github.com/gradle/github-dependency-graph-gradle-plugin
- Webinar - Gradle at Scale with GitHub and GitHub Actions at Allegro: https://www.youtube.com/watch?v=gV94I28FPos
+4 -4
View File
@@ -20,7 +20,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
```
## The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`
@@ -40,7 +40,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
## Using the action to execute Gradle via the `arguments` parameter is deprecated
@@ -82,7 +82,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Assemble the project
run: ./gradlew assemble
@@ -99,7 +99,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle for a non-wrapper project
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.11'
+287 -165
View File
@@ -2,13 +2,23 @@
This GitHub Action can be used to configure Gradle for optimal execution on any platform supported by GitHub Actions.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## Why use the `setup-gradle` action?
It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v4` action provides a simple way to cache Gradle dependencies.
It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v5` action provides a simple way to cache Gradle dependencies.
However, the `setup-gradle` action offers a several advantages over this approach:
- Easily [configure your workflow to use a specific version of Gradle](#build-with-a-specific-gradle-version) using the `gradle-version` parameter. Gradle distributions are automatically downloaded and cached.
- [Gradle Wrapper files are automatically validated](#gradle-wrapper-validation) against known checksums
- More sophisticated and more efficient caching of Gradle User Home between invocations, compared to `setup-java` and most custom configurations using `actions/cache`. [More details below](#caching-build-state-between-jobs).
- Detailed reporting of cache usage and cache configuration options allow you to [optimize the use of the GitHub actions cache](#optimizing-cache-effectiveness).
- [Generate and Submit a GitHub Dependency Graph](#github-dependency-graph-support) for your project, enabling Dependabot security alerts.
@@ -38,14 +48,14 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Execute Gradle build
run: ./gradlew build
@@ -58,7 +68,7 @@ Downloaded Gradle versions are stored in the GitHub Actions cache, to avoid havi
```yaml
- name: Setup Gradle 8.10
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.10' # Quotes required to prevent YAML converting to number
- name: Build with Gradle 8.10
@@ -90,13 +100,13 @@ jobs:
gradle-rc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
gradle-version: release-candidate
@@ -112,24 +122,45 @@ The cached state includes:
- Any distributions downloaded to satisfy a `gradle-version` parameter.
- A subset of the Gradle User Home directory, including downloaded dependencies, wrapper distributions, and the local build cache.
To reduce the space required for caching, this action attempts to reduce duplication in cache entries on a best effort basis.
The state will be restored from the cache during the first `setup-gradle` step for any workflow job, and cache entries will be written back to the cache at the end of the job after all Gradle executions have been completed.
### Disabling caching
### Selecting a cache provider
The `setup-gradle` action offers two caching providers, offered under different license terms and with different features.
See [DISTRIBUTION.md](../DISTRIBUTION.md) for more details.
You choose which provider to use via the `cache-provider` input:
- **`enhanced`** (default): Uses the full-featured commercial `gradle-actions-caching` library. Provides advanced features like fine-grained cache entries, intelligent cache cleanup, and deduplication. See [Enhanced Caching](#enhanced-caching) for details.
- **`basic`**: A fully open-source (MIT) caching implementation built on the standard GitHub Actions cache (`@actions/cache`). Uses the same caching strategy as `actions/setup-java` with `cache: gradle`. See [Basic Caching](#basic-caching) for details.
- **`external`**: Disables Gradle User Home caching by this action, for use when another mechanism already saves and restores Gradle User Home. See [Using an external cache provider](#using-an-external-cache-provider) for details.
```yaml
# Use the open-source basic cache provider
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
cache-provider: basic
```
### Common cache configuration
The following options apply to both the `enhanced` and `basic` cache providers.
#### Disabling caching
Caching is enabled by default. You can disable caching for the action as follows:
```yaml
cache-disabled: true
```
### Using the cache read-only
#### Using the cache read-only
By default, The `setup-gradle` action will only write to the cache from Jobs on the default (`main`/`master`) branch.
Jobs on other branches will read entries from the cache but will not write updated entries.
This setup is designed around [GitHub imposed restrictions on cache access](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache) and should work well in most scenarios.
See [Optimizing cache effectiveness](#select-which-branches-should-write-to-the-cache) for a more detailed explanation.
See [Optimizing cache effectiveness](#optimizing-cache-effectiveness) for a more detailed explanation.
In some circumstances, it makes sense to change this default and configure a workflow Job to read existing cache entries but not to write changes back.
@@ -147,93 +178,7 @@ You can also configure read-only caching only for certain branches:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/release' }}
```
### Using the cache write-only
In certain circumstances it may be desirable to start with a clean Gradle User Home state, but to save the state at the end of a workflow Job:
```yaml
cache-write-only: true
```
### Configuring cache cleanup
The Gradle User Home directory tends to grow over time. When you switch to a new Gradle wrapper version
or upgrade a dependency version the old files are not automatically and immediately removed.
While this can make sense in a local environment, in a GitHub Actions environment
it can lead to ever-larger Gradle User Home cache entries being saved and restored.
To avoid this situation, the `setup-gradle` and `dependency-submission` actions will perform "cache-cleanup",
purging any unused files from the Gradle User Home before saving it to the GitHub Actions cache.
Cache cleanup will attempt to remove any files that are initially restored to the Gradle User Home directory
but that are not used used by Gradle during the GitHub Actions Workflow.
If a Gradle build fails when running the Job, then it is possible that some required files and dependencies
will not be touched during the Job. To prevent these files from being purged, the default behavior is for
cache cleanup to run only when all Gradle builds in the Job are successful.
Gradle Home cache cleanup is enabled by default, and can be controlled by the `cache-cleanup` parameter as follows:
- `cache-cleanup: always`: Always run cache cleanup, even when a Gradle build fails in the Job.
- `cache-cleanup: on-success` (default): Run cache cleanup when the Job contains no failing Gradle builds.
- `cache-cleanup: never`: Disable cache cleanup for the Job.
Cache cleanup will never run when the cache is configured as read-only or disabled.
### Overwriting an existing Gradle User Home
When the action detects that the Gradle User Home caches directory already exists (`$GRADLE_USER_HOME/caches`), then by default it will not overwrite the existing content of this directory.
This can occur when a prior action initializes this directory, or when using a self-hosted runner that retains this directory between uses.
In this case, the Job Summary will display a message like:
> Caching for Gradle actions was disabled due to pre-existing Gradle User Home
If you want to override the default and have the caches of the `setup-gradle` action overwrite existing content in the Gradle User Home, you can set the `cache-overwrite-existing` parameter to `true`:
```yaml
cache-overwrite-existing: true
```
### Saving configuration-cache data
When Gradle is executed with the [configuration-cache](https://docs.gradle.org/current/userguide/configuration_cache.html) enabled, the configuration-cache data is stored
in the project directory, at `<project-dir>/.gradle/configuration-cache`. Due to the way the configuration-cache works, [this file may contain stored credentials and other
secrets](https://docs.gradle.org/release-nightly/userguide/configuration_cache.html#config_cache:secrets), and this data needs to be encrypted to be safely stored in the GitHub Actions cache.
> [!IMPORTANT]
> To avoid potentially leaking secrets in the configuration-cache entry, the action will only save or restore configuration-cache data if the `cache-encryption-key` parameter is set.
To benefit from configuration caching in your GitHub Actions workflow, you must:
- Execute your build with Gradle 8.6 or newer. This can be achieved directly or via the Gradle Wrapper.
- Enable the configuration cache for your build.
- Generate a [valid Gradle encryption key](https://docs.gradle.org/8.6/userguide/configuration_cache.html#config_cache:secrets:configuring_encryption_key) and save it as a [GitHub Actions secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
- Provide the secret key via the `cache-encryption-key` action parameter.
```yaml
jobs:
gradle-with-configuration-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v5
with:
gradle-version: '8.6'
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- run: gradle build --configuration-cache
```
Even with everything correctly configured, you may find that the configuration-cache entry is not reused in your workflow.
This is often due to a known issue: [Included builds containing build logic prevent configuration-cache reuse](https://github.com/gradle/actions/issues/21). Refer to the issue for more details.
> [!NOTE]
> The configuration cache cannot be saved or restored in workflows triggered by a pull requests from a repository fork.
> This is because [GitHub secrets are not passed to workflows triggered by PRs from forks](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow).
> This prevents a malicious PR from reading the configuration-cache data, which may encode secrets read by Gradle.
### Incompatibility with other caching mechanisms
#### Incompatibility with other caching mechanisms
When using `setup-gradle` we recommend that you avoid using other mechanisms to save and restore the Gradle User Home.
@@ -241,20 +186,34 @@ Specifically:
- Avoid using `actions/cache` configured to cache the Gradle User Home, [as described in this example](https://github.com/actions/cache/blob/main/examples.md#java---gradle).
- Avoid using `actions/setup-java` with the `cache: gradle` option, [as described here](https://github.com/actions/setup-java#caching-gradle-dependencies).
Using either of these mechanisms may interfere with the caching provided by this action. If you choose to use a different mechanism to save and restore the Gradle User Home, you should disable the caching provided by this action, as described above.
Using either of these mechanisms may interfere with the caching provided by this action. If you choose to use a different mechanism to save and restore the Gradle User Home, you should disable the caching provided by this action, as described above, or [use `cache-provider: external`](#using-an-external-cache-provider) if that mechanism is a dedicated Gradle User Home cache.
## How Gradle User Home caching works
#### Using an external cache provider
### Properties of the GitHub Actions cache
If Gradle User Home is already saved and restored by another mechanism — for example the [Develocity Artifact Cache](https://github.com/gradle/actions-caching) — set `cache-provider: external` rather than `cache-disabled: true`.
Both settings stop `setup-gradle` from restoring or saving Gradle User Home, but `cache-provider: external` reflects the actual reason: caching is still happening, just not through this action. It also updates the Job Summary to say that caching was handled externally, rather than implying that caching was turned off.
```yaml
cache-provider: external
```
## Enhanced Caching
Enhanced Caching is the default cache provider. It uses the proprietary `gradle-actions-caching` library to provide advanced caching features including fine-grained cache entries, intelligent cache cleanup, and deduplication of cached content. This reduces cache storage requirements and improves restore times compared to basic caching.
### How Enhanced Caching works
#### Properties of the GitHub Actions cache
The GitHub Actions cache has some properties that present problems for efficient caching of the Gradle User Home.
- Immutable entries: once a cache entry is written for a key, it cannot be overwritten or changed.
- Branch scope: cache entries written for a Git branch are not visible from actions running against different branches or tags. Entries written for the default branch are visible to all. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
- Restore keys: if no exact match is found, a set of partial keys can be provided that will match by cache key prefix. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
Each of these properties has influenced the design and implementation of the caching in `setup-gradle`, as described below.
Each of these properties has influenced the design and implementation of Enhanced Caching, as described below.
### Which content is cached
#### Which content is cached
Using experiments and observations, we have attempted to identify which Gradle User Home content is worth saving and restoring between build invocations. We considered both the respective size of the content and the impact this content has on build times. As well as the obvious candidates like downloaded dependencies, we saw that compiled build scripts, transformed Jar files, and other content can also have a significant impact.
@@ -266,9 +225,9 @@ In the end, we opted to save and restore as much content as is practical, includ
- `caches/jars-9`: Jar files that have been processed/instrumented by Gradle
- `caches/build-cache-1`: The local build cache
In certain cases, a particular section of Gradle User Home will be too large to make caching effective. In these cases, particular subdirectories can be excluded from caching. See [Exclude content from Gradle User Home cache](#exclude-content-from-gradle-user-home-cache).
In certain cases, a particular section of Gradle User Home will be too large to make caching effective. In these cases, particular subdirectories can be excluded from caching. See [Include/exclude content from Gradle User Home](#includeexclude-content-from-gradle-user-home).
### Cache keys
#### Cache keys
The actual content of the Gradle User Home after a build is the result of many factors, including:
- Core Gradle build files (`settings.gradle[.kts]`, `build.gradle[.kts]`, `gradle.properties`)
@@ -290,7 +249,7 @@ Specifically, the cache key is: `${cache-protocol}-gradle|${runner-os}|${job-id}
As such, the cache key is likely to change on each subsequent run of GitHub actions.
This allows the most recent state to always be available in the GitHub actions cache.
### Finding a matching cache entry
#### Finding a matching cache entry
In most cases, no exact match will exist for the cache key. Instead, the Gradle User Home will be restored for the closest matching cache entry, using a set of "restore keys". The entries will be matched with the following precedence:
- An exact match on OS, job id, workflow name, matrix, and Git SHA
@@ -304,9 +263,9 @@ After the Job is complete, the current Gradle User Home state will be collected
Note that while effective, this mechanism is not inherently efficient. It requires the entire Gradle User Home directory to be stored separately for each branch, for every OS+Job+Matrix combination. In addition, it writes a new cache entry on every GitHub Actions run.
This inefficiency is effectively mitigated by [Deduplication of Gradle User Home cache entries](#deduplication-of-gradle-user-home-cache-entries) and can be further optimized for a workflow using the techniques described in [Optimizing cache effectiveness](#optimizing-cache-effectiveness).
This inefficiency is effectively mitigated by [Deduplication of cache entries](#deduplication-of-cache-entries) and can be further optimized for a workflow using the techniques described in [Optimizing cache effectiveness](#optimizing-cache-effectiveness).
### Deduplication of Gradle User Home cache entries
#### Deduplication of cache entries
To reduce duplication between cache entries, certain artifacts in Gradle User Home are extracted and cached independently based on their identity. This allows each Gradle User Home cache entry to be relatively small, sharing common elements between them without duplication.
@@ -318,53 +277,78 @@ Artifacts that are cached independently include:
For example, this means that all jobs executing a particular version of the Gradle wrapper will share a single common entry for this wrapper distribution and one for each of the generated Gradle API jars.
### Stopping the Gradle daemon
#### Stopping the Gradle daemon
By default, the action will stop all running Gradle daemons in the post-action step, before saving the Gradle User Home state.
This allows for any Gradle User Home cleanup to occur, and avoid file-locking issues on Windows.
If caching is disabled or the cache is in read-only mode, the daemon will not be stopped and will continue running after the job is completed.
## Optimizing cache effectiveness
### Enhanced Caching configuration options
Cache storage space for GitHub actions is limited, and writing new cache entries can trigger the deletion of existing entries.
Eviction of shared cache entries can reduce cache effectiveness, slowing down your `setup-gradle` steps.
The following configuration options only apply when using the `enhanced` cache provider.
There are a several actions you can take if your cache use is less effective due to entry eviction.
#### Using the cache write-only
At the end of a Job, The `setup-gradle` action will write a summary of the Gradle builds executed, together with a detailed report of the cache entries that were read and written during the Job. This report can provide valuable insights that may help to determine the right way to optimize the cache usage for your workflow.
In certain circumstances it may be desirable to start with a clean Gradle User Home state, but to save the state at the end of a workflow Job:
### Select which jobs should write to the cache
```yaml
cache-write-only: true
```
Consider a workflow that first runs a Job "compile-and-unit-test" to compile the code and run some basic unit tests, which is followed by a matrix of parallel "integration-test" jobs that each run a set of integration tests for the repository. Each "integration test" Job requires all of the dependencies required by "compile-and-unit-test", and possibly one or 2 additional dependencies.
#### Overwriting an existing Gradle User Home
By default, a new cache entry will be written on completion of each integration test job. If no additional dependencies were downloaded then this cache entry will share the "dependencies" entry with the "compile-and-unit-test" job, but if a single dependency was downloaded then an entirely new "dependencies" entry would be written. (The `setup-gradle` action does not _yet_ support a layered cache that could do this more efficiently). If each of these "integration-test" entries with their different "dependencies" entries is too large, then it could result in other important entries being evicted from the GitHub Actions cache.
When the action detects that the Gradle User Home caches directory already exists (`$GRADLE_USER_HOME/caches`), then by default it will not overwrite the existing content of this directory.
This can occur when a prior action initializes this directory, or when using a self-hosted runner that retains this directory between uses.
Some techniques can be used to avoid/mitigate this issue:
- Configure the "integration-test" jobs with `cache-read-only: true`, meaning that the Job will use the entry written by the "compile-and-unit-test" job. This will avoid the overhead of cache entries for each of these jobs, at the expense of re-downloading any additional dependencies required by "integration-test".
- Add a step to the "compile-and-unit-test" job which downloads all dependencies required by the integration-test jobs but does not execute the tests. This will allow the "dependencies" entry for "compile-and-unit-test" to be shared among all cache entries for "integration-test". The resulting "integration-test" entries should be much smaller, reducing the potential for eviction.
- Combine the above 2 techniques, so that no cache entry is written by "integration-test" jobs, but all required dependencies are already present from the restored "compile-and-unit-test" entry.
In this case, the Job Summary will display a message like:
> Caching for Gradle actions was disabled due to pre-existing Gradle User Home
### Select which branches should write to the cache
If you want to override the default and have the caches of the `setup-gradle` action overwrite existing content in the Gradle User Home, you can set the `cache-overwrite-existing` parameter to `true`:
GitHub cache entries are not shared between builds on different branches or tags.
Workflow runs can _only_ restore caches created in either the same branch or the default branch (usually `main`).
This means that each branch will have its own Gradle User Home cache scope, and will not benefit from cache entries written for other (non-default) branches.
```yaml
cache-overwrite-existing: true
```
By default, The `setup-gradle` action will only _write_ to the cache for builds run on the default (`master`/`main`) branch.
Jobs running on other branches will only read from the cache. In most cases, this is the desired behavior.
This is because Jobs running on other branches will benefit from the cached Gradle User Home from `main`,
without writing private cache entries which could lead to evicting these shared entries.
#### Configuring cache cleanup
If you have other long-lived development branches that would benefit from writing to the cache,
you can configure this by disabling the `cache-read-only` action parameter for these branches.
See [Using the cache read-only](#using-the-cache-read-only) for more details.
The Gradle User Home directory tends to grow over time. When you switch to a new Gradle wrapper version
or upgrade a dependency version the old files are not automatically and immediately removed.
While this can make sense in a local environment, in a GitHub Actions environment
it can lead to ever-larger Gradle User Home cache entries being saved and restored.
Note there are some cases where writing cache entries is typically unhelpful (these are disabled by default):
- For `pull_request` triggered runs, the cache scope is limited to the merge ref (`refs/pull/.../merge`) and can only be restored by re-runs of the same pull request.
- For `merge_group` triggered runs, the cache scope is limited to a temporary branch with a special prefix created to validate pull request changes, and won't be available on subsequent Merge Queue executions.
To avoid this situation, the `setup-gradle` and `dependency-submission` actions will perform "cache-cleanup",
purging any unused files from the Gradle User Home before saving it to the GitHub Actions cache.
Cache cleanup will attempt to remove any files that are initially restored to the Gradle User Home directory
but that are not used by Gradle during the GitHub Actions Workflow.
### Exclude content from Gradle User Home cache
If a Gradle build fails when running the Job, then it is possible that some required files and dependencies
will not be touched during the Job. To prevent these files from being purged, the default behavior is for
cache cleanup to run only when all Gradle builds in the Job are successful.
Gradle Home cache cleanup is enabled by default, and can be controlled by the `cache-cleanup` parameter as follows:
- `cache-cleanup: always`: Always run cache cleanup, even when a Gradle build fails in the Job.
- `cache-cleanup: on-success` (default): Run cache cleanup when the Job contains no failing Gradle builds.
- `cache-cleanup: never`: Disable cache cleanup for the Job.
Cache cleanup will never run when the cache is configured as read-only or disabled.
#### Cache encryption key
The `cache-encryption-key` parameter allows you to provide a base64-encoded AES key to encrypt configuration-cache data stored in the GitHub Actions cache. This is useful when your configuration-cache entries contain sensitive information.
```yaml
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
```
A suitable key can be generated with:
```
openssl rand -base64 16
```
The key is exported as the `GRADLE_ENCRYPTION_KEY` environment variable for use by subsequent steps.
#### Include/exclude content from Gradle User Home
As well as any wrapper distributions, the action will attempt to save and restore the `caches` and `notifications` directories from Gradle User Home.
@@ -387,7 +371,57 @@ gradle-home-cache-excludes: |
You can specify any number of fixed paths or patterns to include or exclude.
File pattern support is documented at https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#patterns-to-match-file-paths.
### Disable local build-cache when remote build-cache is available
#### Strict cache matching
By default, the Enhanced Caching provider will attempt to restore the Gradle User Home from cache entries written by other Jobs in the same workflow (using restore keys). Setting `gradle-home-cache-strict-match` to `true` disables this behavior, so that cache entries are only restored from the same Job.
```yaml
gradle-home-cache-strict-match: true
```
> [!NOTE]
> This is an experimental feature that may be useful if you find that cache entries from other Jobs are causing issues.
### Optimizing cache effectiveness
Cache storage space for GitHub actions is limited, and writing new cache entries can trigger the deletion of existing entries.
Eviction of shared cache entries can reduce cache effectiveness, slowing down your `setup-gradle` steps.
There are a several actions you can take if your cache use is less effective due to entry eviction.
At the end of a Job, The `setup-gradle` action will write a summary of the Gradle builds executed, together with a detailed report of the cache entries that were read and written during the Job. This report can provide valuable insights that may help to determine the right way to optimize the cache usage for your workflow.
#### Select which jobs should write to the cache
Consider a workflow that first runs a Job "compile-and-unit-test" to compile the code and run some basic unit tests, which is followed by a matrix of parallel "integration-test" jobs that each run a set of integration tests for the repository. Each "integration test" Job requires all of the dependencies required by "compile-and-unit-test", and possibly one or 2 additional dependencies.
By default, a new cache entry will be written on completion of each integration test job. If no additional dependencies were downloaded then this cache entry will share the "dependencies" entry with the "compile-and-unit-test" job, but if a single dependency was downloaded then an entirely new "dependencies" entry would be written. (The `setup-gradle` action does not _yet_ support a layered cache that could do this more efficiently). If each of these "integration-test" entries with their different "dependencies" entries is too large, then it could result in other important entries being evicted from the GitHub Actions cache.
Some techniques can be used to avoid/mitigate this issue:
- Configure the "integration-test" jobs with `cache-read-only: true`, meaning that the Job will use the entry written by the "compile-and-unit-test" job. This will avoid the overhead of cache entries for each of these jobs, at the expense of re-downloading any additional dependencies required by "integration-test".
- Add a step to the "compile-and-unit-test" job which downloads all dependencies required by the integration-test jobs but does not execute the tests. This will allow the "dependencies" entry for "compile-and-unit-test" to be shared among all cache entries for "integration-test". The resulting "integration-test" entries should be much smaller, reducing the potential for eviction.
- Combine the above 2 techniques, so that no cache entry is written by "integration-test" jobs, but all required dependencies are already present from the restored "compile-and-unit-test" entry.
#### Select which branches should write to the cache
GitHub cache entries are not shared between builds on different branches or tags.
Workflow runs can _only_ restore caches created in either the same branch or the default branch (usually `main`).
This means that each branch will have its own Gradle User Home cache scope, and will not benefit from cache entries written for other (non-default) branches.
By default, The `setup-gradle` action will only _write_ to the cache for builds run on the default (`master`/`main`) branch.
Jobs running on other branches will only read from the cache. In most cases, this is the desired behavior.
This is because Jobs running on other branches will benefit from the cached Gradle User Home from `main`,
without writing private cache entries which could lead to evicting these shared entries.
If you have other long-lived development branches that would benefit from writing to the cache,
you can configure this by disabling the `cache-read-only` action parameter for these branches.
See [Using the cache read-only](#using-the-cache-read-only) for more details.
Note there are some cases where writing cache entries is typically unhelpful (these are disabled by default):
- For `pull_request` triggered runs, the cache scope is limited to the merge ref (`refs/pull/.../merge`) and can only be restored by re-runs of the same pull request.
- For `merge_group` triggered runs, the cache scope is limited to a temporary branch with a special prefix created to validate pull request changes, and won't be available on subsequent Merge Queue executions.
#### Disable local build-cache when remote build-cache is available
If you have a remote build-cache available for your build, then it is recommended to do the following:
- Enable [remote build-cache push](https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_configure_use_cases) for your GitHub Actions builds
@@ -397,6 +431,52 @@ As well as reducing the content that needs to be saved to the GitHub Actions cac
this setup will ensure that your CI builds populate the remote cache and keep the cache entries fresh by reading these entries.
Local builds can then benefit from the remote cache.
## Basic Caching
Basic Caching is an open-source (MIT) alternative that uses `@actions/cache` to provide straightforward, path-based caching of Gradle dependencies. It uses the same caching strategy as `actions/setup-java` with `cache: gradle`.
To enable Basic Caching:
```yaml
- uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic
```
### What Basic Caching stores
The basic provider saves and restores two directories from the Gradle User Home:
- `~/.gradle/caches` — downloaded dependencies, compiled build scripts, transforms, and the local build cache
- `~/.gradle/wrapper` — wrapper distributions
### Cache key strategy
The cache key is computed from the contents of your Gradle build files, using the format:
`setup-java-{RUNNER_OS}-{arch}-gradle-{hash}`
The hash is derived from the following file patterns:
- `**/*.gradle*`
- `**/gradle-wrapper.properties`
- `buildSrc/**/Versions.kt`
- `buildSrc/**/Dependencies.kt`
- `gradle/*.versions.toml`
- `**/versions.properties`
Unlike the Enhanced Caching provider, Basic Caching does not use restore keys. If no exact cache key match is found, the cache starts empty. This means that when you update a dependency or change a build file, the next build will re-download all dependencies and write a fresh cache entry.
### Limitations
The basic provider does not support the following Enhanced Caching features:
- **Cache cleanup** (`cache-cleanup`): Stale entries are not automatically removed.
- **Deduplication**: The entire `caches` and `wrapper` directories are stored as a single cache entry, without deduplication of individual artifacts.
- **Include/exclude paths** (`gradle-home-cache-includes` / `gradle-home-cache-excludes`): The cached paths are fixed.
- **Write-only mode** (`cache-write-only`): Not available with basic caching.
- **Overwrite existing** (`cache-overwrite-existing`): Not available with basic caching.
- **Strict cache matching** (`gradle-home-cache-strict-match`): Not applicable since restore keys are not used.
If you need these features, switch to the default [Enhanced Caching](#enhanced-caching) provider.
## Debugging and Troubleshooting
To debug a failed job, it can be useful to run with [debug logging enabled](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging).
@@ -438,6 +518,30 @@ so that a Job Summary is never generated, or so that a Job Summary is only gener
add-job-summary: 'on-failure' # Valid values are 'always' (default), 'never', and 'on-failure'
```
### Gradle version support status
The Job Summary reports the support status of each Gradle version used in the workflow, and the action adds a
Job annotation for any version that is no longer current. The latest Gradle release is determined from release data
bundled with the action, so no network access is required.
A version is reported when it is:
- **End-of-life** — two or more major versions behind the latest release. Each such version is marked with :warning:
in the build results table, a single expandable section below the table explains that the affected release lines
receive no further fixes (security fixes included), and a warning annotation is added to the Job for each version.
If you cannot upgrade, the [Gradle Security Subscription](https://gradle.org/security-subscription/) offers
continued support for older versions.
- **Out of date** — one major version behind the latest release, or more than two minor versions behind on the current
major. The version is marked with :information_source: in the build results table and a notice annotation is added to
the Job. Note that a version one major behind is still in "maintenance only" support and receives critical bug fixes
and security fixes; an older minor of the current major has simply been superseded. See
[Gradle release lifecycle](https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support) for details.
Patch releases are not reported: only the major and minor version are considered. Release candidates, milestones and
snapshots are never reported, so testing against a pre-release build will not produce annotations.
Note that these annotations are always emitted, independent of the `add-job-summary` setting. Setting
`add-job-summary: 'never'` suppresses the Job Summary itself, but the warning and notice annotations remain.
### Excluding specific Gradle builds from Job Summary
The Job Summary works by installing an init-script in Gradle User Home which will record details of any Gradle execution during the workflow.
@@ -465,20 +569,25 @@ jobs:
run-gradle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
add-job-summary-as-pr-comment: 'on-failure' # Valid values are 'never' (default), 'always', and 'on-failure'
- run: ./gradlew build --scan
```
When a comment is added, any earlier Job Summary comments posted by the same job on that Pull Request are
automatically minimized, so only the most recent result remains expanded. This also applies when
`add-job-summary-as-pr-comment: 'on-failure'` is used: once a later run of the job succeeds, the previous
failure comment is collapsed.
Note that to add a Pull Request comment, the workflow must be configured with the `pull-requests: write` permission.
@@ -502,14 +611,14 @@ jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run build with Gradle wrapper
run: ./gradlew build --scan
@@ -540,7 +649,7 @@ If you do not want wrapper-validation to occur automatically, you can disable it
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: false
```
@@ -552,7 +661,7 @@ These are not allowed by default.
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: true
allow-snapshot-wrappers: true
@@ -610,14 +719,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run the usual CI build (dependency-graph will be generated and submitted post-job)
@@ -644,7 +753,7 @@ graph cannot be generated or submitted. You can enable this behavior with the `d
```yaml
# Ensure that the workflow Job will fail if the dependency graph cannot be submitted
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
dependency-graph-continue-on-failure: false
@@ -662,14 +771,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run a build, resolving the 'dependency-graph' plugin from the plugin portal proxy
@@ -692,14 +801,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Build the app, generating a graph of dependencies required
@@ -743,7 +852,7 @@ To publish to https://scans.gradle.com, you must specify in your workflow that y
```yaml
- name: Setup Gradle to publish build scans
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service'
@@ -765,7 +874,7 @@ The short-lived access token will then be used wherever a Develocity access key
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }} # Long-lived access key, visiblility is restricted to this step.
@@ -783,7 +892,7 @@ To avoid this, use the `develocity-token-expiry` parameter to specify a differen
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
develocity-token-expiry: '8' # The number of hours that the access token should remain valid (max 24).
@@ -805,7 +914,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
# The build will automatically use a short-lived access token to authenticate with Develocity
- name: Run a Gradle build that is configured to publish to Develocity.
@@ -837,7 +946,7 @@ Here's a minimal example:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-injection-enabled: true
develocity-url: 'https://develocity.your-server.com'
@@ -847,14 +956,14 @@ Here's a minimal example:
run: ./gradlew build
```
This configuration will automatically apply `v4.3.2` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This configuration will automatically apply `v4.5.1` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This example assumes that the `develocity.your-server.com` server allows anonymous publishing of build scans.
In the likely scenario that your Develocity server requires authentication, you will also need to pass a valid [Develocity access key](https://docs.gradle.com/develocity/gradle-plugin/#via_environment_variable) taken from a secret:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
@@ -905,7 +1014,7 @@ Here's an example using the env vars:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run a Gradle build with Develocity injection enabled with environment variables
run: ./gradlew build
@@ -931,6 +1040,19 @@ Each of the plugins is signed by Gradle, and you can simply add the following sn
<trusting group="com.gradle"/>
<trusting group="org.gradle"/>
</trusted-key>
<trusted-key id="E2879931BCA1A42E55F2D64DD9B2DFBD9F3298BA">
<trusting group="org.gradle"/>
</trusted-key>
</trusted-keys>
```
Two keys are listed because Gradle has rotated its signing key, and the plugins applied by these actions
are not all signed with the same one:
- `E2879931BCA1A42E55F2D64DD9B2DFBD9F3298BA` is the current signing subkey. The
`github-dependency-graph-gradle-plugin` used for Dependency Graph generation is signed with it from
version `1.5.0` onward.
- `7B79ADD11F8A779FE90FD3D0893A028475557671` is the older key, which has since been revoked. It is still
required: the Develocity Gradle plugin (`com.gradle`) is signed with it, as are `org.gradle` plugin
versions released before the rotation.
Keep both entries unless you pin plugin versions and have confirmed which key each one uses.
+5 -5
View File
@@ -50,7 +50,7 @@ We created an example [Homoglyph attack PR here](https://github.com/JLLeitschuh/
Simply add this action to your workflow **after** having checked out your source tree and **before** running any Gradle build:
```yaml
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
This action step should precede any step using `gradle/gradle-build-action` or `gradle/actions/setup-gradle`.
@@ -72,8 +72,8 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v5
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v6
```
## Contributing to an external GitHub Repository
@@ -111,7 +111,7 @@ we highly recommend that you reach out to us at [security@gradle.com](mailto:sec
#### Unverifiable Wrapper Jars
Wrapper Jars generated by Gradle versions `3.3` to `4.0` are not verifiable because those files were dynamically generated by Gradle in a non-reproducible way. It's not possible to verify the `gradle-wrapper.jar` for those versions are legitimate using a hash comparison. If you have a validation failure, you should try to determine if the `gradle-wrapper.jar` was generated by one of these versions before running the build.
- If the Gradle version in `gradle-wrapper.properties` is outside of this range, you can regenerate the `gradle-wrapper.jar` by running `./gradlew wrapper`. This will generate a new, verifiable wrapper jar.
- If the Gradle version in `gradle-wrapper.properties` is outside of this range, you can regenerate the `gradle-wrapper.jar` by running `./gradlew :wrapper`. This will generate a new, verifiable wrapper jar.
- If you need to run your build with a version of Gradle between 3.3 and 4.0, you can use a newer version of Gradle to generate the `gradle-wrapper.jar`.
#### Wrapper Jar stored with Git LFS
@@ -120,7 +120,7 @@ restore these Jars on checkout. Without this, only a pointer to the Wrapper Jar
```
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
lfs: true # gradle-wrapper.jar verification will fail without this
```
@@ -0,0 +1,27 @@
Software License Agreement Copyright (c) 2026 Gradle, Inc. All rights
reserved.
1. PROPRIETARY AND CONFIDENTIAL. This software and its source code are the
proprietary and confidential property of Gradle, Inc.
2. LICENSE GRANT AND TERMS OF USE. Subject to your compliance with the Terms
of Use referenced below, Gradle, Inc. grants you a non-exclusive,
non-transferable license to use this library solely for internal CI/CD
purposes. Your use, installation, and distribution of this software are
strictly governed by the Gradle, Inc. Terms of Use, which can be found at the
following URL: https://gradle.com/legal/terms-of-use/. By downloading,
installing, or using this software, you agree to be bound by the terms and
conditions set forth in the link above.
3. RESTRICTIONS. Unless expressly permitted in the Terms of Use referenced
above, you may not: (a) Modify, decompile, or reverse engineer this software.
(b) Redistribute the source code or binaries without prior written consent.
(c) Use this software for any purpose not authorized by the Terms of Use.
4. NO WARRANTY. AS SET FORTH IN THE GRADLE, INC. TERMS OF USE, THIS 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.
+3 -3
View File
@@ -19,14 +19,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
+181
View File
@@ -0,0 +1,181 @@
# Type descriptors based on https://github.com/typesafegithub/github-actions-typing
inputs:
gradle-version:
type: string
# Cache configuration
cache-provider:
type: enum
allowed-values:
- basic
- enhanced
cache-disabled:
type: boolean
cache-read-only:
type: boolean
cache-write-only:
type: boolean
cache-overwrite-existing:
type: boolean
cache-encryption-key:
type: string
cache-cleanup:
type: enum
allowed-values:
- never
- on-success
- always
gradle-home-cache-cleanup:
type: boolean
gradle-home-cache-includes:
type: list
separator: '\n'
list-item:
type: string
gradle-home-cache-excludes:
type: list
separator: '\n'
list-item:
type: string
# Job summary configuration
add-job-summary:
type: enum
allowed-values:
- never
- always
- on-failure
add-job-summary-as-pr-comment:
type: enum
allowed-values:
- never
- always
- on-failure
# Dependency Graph configuration
dependency-graph:
type: enum
allowed-values:
- disabled
- generate
- generate-and-submit
- generate-submit-and-upload
- generate-and-upload
- download-and-submit
dependency-graph-report-dir:
type: string
dependency-graph-continue-on-failure:
type: boolean
dependency-graph-exclude-projects:
type: string
dependency-graph-include-projects:
type: string
dependency-graph-exclude-configurations:
type: string
dependency-graph-include-configurations:
type: string
artifact-retention-days:
type: integer
# Build Scan configuration
build-scan-publish:
type: boolean
build-scan-terms-of-use-url:
type: enum
allowed-values:
- https://gradle.com/terms-of-service
- https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- yes
develocity-access-key:
type: string
develocity-token-expiry:
type: integer
develocity-injection-enabled:
type: boolean
develocity-url:
type: string
develocity-allow-untrusted-server:
type: boolean
develocity-capture-file-fingerprints:
type: boolean
develocity-enforce-url:
type: boolean
develocity-plugin-version:
type: string
develocity-ccud-plugin-version:
type: string
gradle-plugin-repository-url:
type: string
gradle-plugin-repository-username:
type: string
gradle-plugin-repository-password:
type: string
# Wrapper validation configuration
validate-wrappers:
type: boolean
allow-snapshot-wrappers:
type: boolean
# Deprecated action inputs
arguments:
type: list
separator: ' '
list-item:
type: string
# Experimental action inputs
gradle-home-cache-strict-match:
type: boolean
# Internal action inputs
workflow-job-context:
type: string
github-token:
type: string
outputs:
build-scan-url:
type: string
dependency-graph-file:
type: string
gradle-version:
type: string
+9
View File
@@ -9,6 +9,15 @@ inputs:
required: false
# Cache configuration
cache-provider:
description: |
Specifies the caching implementation to use.
'enhanced' (default) uses the full-featured commercial caching service (gradle-actions-caching).
'basic' uses a simple open-source caching implementation based on GitHub Actions cache.
'external' disables Gradle User Home caching by this action, for use when Gradle User Home is already saved and restored by another mechanism (e.g. Develocity Artifact Cache).
required: false
default: 'enhanced'
cache-disabled:
description: When 'true', all caching is disabled. No entries will be written to or read from the cache.
required: false
Loaded 100 of 163 files, more files were not shown because too many files have changed in this diff. Show more