Compare commits

...
Author SHA1 Message Date
bot-githubaction 448b3fda2e [bot] Update dist directory 2026-06-29 17:11:01 +00:00
Daz DeBoerandClaude Opus 4.8 d97d29c992 Include repo identity in the /register link
The not-registered job-summary link and the core.notice pointed at the bare
/register URL, so the page replied 'owner and repo are required'. Append
?owner=&repo= from GITHUB_REPOSITORY so the backend can resolve the installation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 11:10:06 -06:00
bot-githubaction 294a727064 [bot] Update dist directory 2026-06-29 16:37:33 +00:00
Daz DeBoerandClaude Opus 4.8 1bbceb8c10 Point /register link at the actual deployment hostname
Match the corrected backend host (actions-caching-registration.vercel.app) in the
not-registered notice, and refresh the vendored gradle-actions-caching to 0.9.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 10:36:40 -06:00
bot-githubaction 8a24b30373 [bot] Update dist directory 2026-06-26 22:02:33 +00:00
Daz DeBoerandClaude Opus 4.8 bc54cf57d1 Support repo-registration as a second enablement path for project-entry caching
Configuration-cache store/restore is now enabled when EITHER a valid Develocity
JWT OR per-repo registration (a GitHub App installation that accepted the T&C) is
present. The gate itself lives in the vendored gradle-actions-caching library
(refreshed to 0.9.1); this repo wires up the reporting and notice.

- ProjectCacheStatus: 'trial-not-licensed' -> 'not-registered'.
- caching-report: render the 'not-registered' line with a /register link, and add
  renderProjectCacheNotice() for a prominent core.notice.
- setup-gradle: emit the notice from complete() only when withheld via the
  registration path; quiet when enabled by either path.
- Refresh vendored gradle-actions-caching to 0.9.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 16:01:43 -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
151 changed files with 5153 additions and 7624 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@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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/
+1 -1
View File
@@ -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/
-6
View File
@@ -15,12 +15,6 @@ updates:
npm-dependencies:
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"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
@@ -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=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -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/.
@@ -23,8 +23,8 @@
@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,7 +65,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
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@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 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=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -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/.
+10 -21
View File
@@ -23,8 +23,8 @@
@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,7 +65,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
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@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 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.4.2"
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=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -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/.
@@ -23,8 +23,8 @@
@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,7 +65,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
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@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 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=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -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/.
+10 -21
View File
@@ -23,8 +23,8 @@
@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,7 +65,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
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@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 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.4.2"
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.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
+3 -3
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
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@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # 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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
+20 -6
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
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
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.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@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.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
+17 -8
View File
@@ -5,12 +5,10 @@ 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
@@ -19,21 +17,32 @@ jobs:
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
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
+41 -6
View File
@@ -11,10 +11,6 @@ on:
paths-ignore:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
permissions:
contents: read
@@ -23,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
@@ -31,6 +27,9 @@ jobs:
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 +37,44 @@ jobs:
other-integ-tests:
permissions:
contents: write
needs: build-distribution
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
- 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 " 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
+2 -8
View File
@@ -21,7 +21,7 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
show-progress: false
@@ -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
+3 -3
View File
@@ -23,12 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
@@ -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 }}
+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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+74 -5
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -114,3 +114,72 @@ 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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
basic-caching:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -0,0 +1,67 @@
name: Test basic cache provider
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: basic-cache-provider-${{ 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -129,7 +129,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')
@@ -146,7 +146,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,7 +60,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -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.4.2']
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.4.2'
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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.4.2']
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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.4.2' ]
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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.4.2' ]
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -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,7 +105,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -54,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +100,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +125,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
+18 -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,21 @@ 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 }}
basic-cache-provider:
uses: ./.github/workflows/integ-test-basic-cache-provider.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 }}
@@ -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
@@ -61,18 +34,6 @@ jobs:
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:
+4 -4
View File
@@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
@@ -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>
+1
View File
@@ -1,2 +1,3 @@
.git
.vscode
.claude
+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.
+5 -4
View File
@@ -11,17 +11,18 @@
- 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 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`
- Create a tag for the release. The tag should have the format `v6.2.0`
- 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.
- 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.
- 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
- 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`
- 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.
## 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
+8
View File
@@ -26,6 +26,14 @@ 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.
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
+177 -333
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 X8e=Object.create;var $M=Object.defineProperty;var Z8e=Object.getOwnPropertyDescriptor;var e4e=Object.getOwnPropertyNames;var t4e=Object.getPrototypeOf,r4e=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 E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},n4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of e4e(e))!r4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=Z8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?X8e(t4e(t)):{},n4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var GZ=E(Hp=>{"use strict";var D7t=b("net"),A4e=b("tls"),tL=b("http"),PZ=b("https"),u4e=b("events"),k7t=b("assert"),l4e=b("util");Hp.httpOverHttp=d4e;Hp.httpsOverHttp=h4e;Hp.httpOverHttps=f4e;Hp.httpsOverHttps=g4e;function d4e(t){var e=new uu(t);return e.request=tL.request,e}function h4e(t){var e=new uu(t);return e.request=tL.request,e.createSocket=OZ,e.defaultPort=443,e}function f4e(t){var e=new uu(t);return e.request=PZ.request,e}function g4e(t){var e=new uu(t);return e.request=PZ.request,e.createSocket=OZ,e.defaultPort=443,e}function uu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=HZ(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)})}l4e.inherits(uu,u4e.EventEmitter);uu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,HZ(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)}})};uu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},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")),Rl("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){Rl("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){Rl("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 Rl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Rl(`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)}};uu.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 OZ(t,e){var r=this;uu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=A4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function HZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(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 Rl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rl=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)}:Rl=function(){};Hp.debug=Rl});var nL=E((_7t,qZ)=>{qZ.exports=GZ()});var yr=E((F7t,YZ)=>{YZ.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 Lt=E((M7t,gee)=>{"use strict";var VZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[VZ]===!0}[VZ]=!0},WZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{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[WZ]===!0}[WZ]=!0},JZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{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[JZ]===!0}[JZ]=!0},zZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{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[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{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[jZ]===!0}[jZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function D5e(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(g5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function k5e(){return"allowed"}function v5e(){return"success"}function _5e(){return"success"}function F5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function M5e(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&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function $p(t,e){return t}function L5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:$p(t.domainLookupStartTime,r),domainLookupEndTime:$p(t.domainLookupEndTime,r),connectionStartTime:$p(t.connectionStartTime,r),connectionEndTime:$p(t.connectionEndTime,r),secureConnectionStartTime:$p(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function U5e(t){return $p(I5e.now(),t)}function P5e(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 xte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function O5e(t){return{referrerPolicy:t.referrerPolicy}}function H5e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=bte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=pS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(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=NI(t);return pS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Vh(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 SI(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 G5e(t,e){if(gS===void 0)return!0;let r=Rte(e);if(r==="no metadata"||r.length===0)return!0;let n=Y5e(r),s=V5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=gS.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)),W5e(c,a))return!0}return!1}var q5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Rte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=q5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();wte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Y5e(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 V5e(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 W5e(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 pS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function z5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function j5e(t){return t.controller.state==="aborted"}function K5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function $5e(t){return b5e[t.toLowerCase()]??t}function X5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Vh(typeof e=="string"),e}var Z5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Dte(t,e,r=0,n=1){class s{ Line truncated
`);function xHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function RHe(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 DHe(t,e){ES(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&&CS(t,NHe,i)||i.position===t.length-4&&CS(t,THe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=kHe(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",xHe(u)||(u=""),h=new wHe([d],A,{type:u})):h=IHe(Buffer.from(d)),ES(qte(c)),ES(typeof h=="string"&&qte(h)||BHe(h)),s.push(bHe(c,h,A))}}function kHe(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=Zp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!yHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Zp(a=>a===32||a===9,t,e),CHe(o)){case"content-disposition":{if(r=n=null,!CS(t,SHe,e)||(e.position+=17,r=Wte(t,e),r===null))return"failure";if(CS(t,Vte,e)){let a=e.position+Vte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Wte(t,e),n===null))return"failure"}break}case"content-type":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Yte(a);break}case"content-transfer-encoding":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Yte(a);break}default:Zp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Wte(t,e){ES(t[e.position-1]===34);let r=Zp(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 Zp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(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 CS(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}Jte.exports={multipartFormDataParser:DHe,validateBoundary:RHe}});var rm=E((aWt,sre)=>{"use strict";var RI=dt(),{ReadableStreamFrom:vHe,isBlobLike:jte,isReadableStreamLike:_He,readableStreamClose:FHe,createDeferredPromise:MHe,fullyReadBody:LHe,extractMimeType:UHe,utf8DecodeBytes:Xte}=xi(),{FormData:Kte}=xI(),{kState:tm}=Dl(),{webidl:PHe}=Kn(),{Blob:OHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Zte,isDisturbed:HHe}=b("node:stream"),{isArrayBuffer:GHe}=b("node:util/types"),{serializeAMimeType:qHe}=Ks(),{multipartFormDataParser:YHe}=zte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function VHe(){}var ere=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,tre;ere&&(tre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!HHe(e)&&!Zte(e)&&e.cancel("Response object has been garbage collected").catch(VHe)}));function rre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?IS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>FHe(c))},start(){},type:"bytes"}),aU(_He(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(GHe(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(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=IS.encode(A+`; name="${u(l(I))}"\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(C),i+=C.byteLength}else{let C=IS.encode(`${A}; name="${u(l(I))}"`+(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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=IS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(jte(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(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vHe(t)}if((typeof s=="string"||RI.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(!Zte(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 WHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),rre(t,e)}function JHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function zHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function jHe(t){return{blob(){return em(this,r=>{let n=$te(this);return n===null?n="":n&&(n=qHe(n)),new OHe([r],{type:n})},t)},arrayBuffer(){return em(this,r=>new Uint8Array(r).buffer,t)},text(){return em(this,Xte,t)},json(){return em(this,$He,t)},formData(){return em(this,r=>{let n=$te(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=YHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Kte;return i[tm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Kte;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 em(this,r=>new Uint8Array(r),t)}}}function KHe(t){Object.assign(t.prototype,jHe(t))}async function em(t,e,r){if(PHe.brandCheck(t,r),nre(t))throw new TypeError("Body is unusable: Body has already been read");zHe(t[tm]);let n=MHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[tm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await LHe(t[tm].body,i,s),n.promise)}function nre(t){let e=t[tm].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function $He(t){return JSON.parse(Xte(t))}function $te(t){let e=t[tm].headersList,r=UHe(e);return r==="failure"?null:r}sre.exports={extractBody:rre,safelyExtractBody:WHe,cloneBody:JHe,mixinBody:KHe,streamRegistry:tre,hasFinalizationRegistry:ere,bodyUnusable:nre}});var gre=E((cWt,fre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:ire}=qp(),AU=YL(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:XHe,RequestAbortedError:lre,HeadersTimeoutError:ZHe,HeadersOverflowError:e9e,SocketError:SS,InformationalError:nm,BodyTimeoutError:t9e,HTTPParserError:r9e,ResponseExceededMaxSizeError:n9e}=Lt(),{kUrl:dre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:s9e,kSize:ore,kWriting:vl,kQueue:xa,kNoRef:DI,kKeepAliveDefaultTimeout:i9e,kHostHeader:o9e,kPendingIdx:a9e,kRunningIdx:Qo,kError:wo,kPipelining:QS,kSocket:sm,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:c9e,kKeepAliveTimeoutThreshold:A9e,kHeadersTimeout:u9e,kBodyTimeout:l9e,kStrictContentLength:fU,kMaxRequests:are,kCounter:d9e,kMaxResponseSize:h9e,kOnError:f9e,kResume:kl,kHTTPContext:hre}=yr(),Nc=tte(),g9e=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Xe.addListener,p9e=Xe.removeAllListeners,lU;async function m9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(ste())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onStatus(new yS(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onHeaderField(new yS(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onHeaderValue(new yS(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-xc+Tc.byteOffset;return gn.onBody(new yS(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=m9e();gU.catch();var gn=null,Tc=null,bS=0,xc=null,E9e=0,kI=1,im=2|kI,wS=4|kI,pU=8|E9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Nc.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
`:p+=t[o9e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[p_]&&!h[bA]?p+=`connection: keep-alive\r
`:t[QS]&&!h[$s]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return ire.sendHeaders.hasSubscribers&&ire.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Are(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?Are(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?ure(f,c.stream(),t,e,h,u,p,l):Q9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?b9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?ure(f,c,t,e,h,u,p,l):Ge(!1),!0}function b9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new TS({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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new lre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[vl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.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 Are(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(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
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!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
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[kl]()}catch(c){t(c)}}async function Q9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wh;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[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
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[kl]()}catch(c){t(c)}}async function ure(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var TS=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[vl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===im&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vl]=!1,e[wo])throw e[wo];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
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Wh;process.emitWarning(new Wh)}e[Mr].timeout&&e[Mr].timeoutType===im&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};fre.exports=C9e});var bre=E((AWt,Bre)=>{"use strict";var So=b("node:assert"),{pipeline:w9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:pre,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:xS,kReset:DS,kClient:om,kRunning:kS,kPending:S9e,kQueue:_l,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Dn,kStrictContentLength:N9e,kOnError:yU,kMaxConcurrentStreams:yre,kHTTP2Session:Da,kResume:Fl,kSize:T9e,kHTTPContext:x9e}=yr(),pu=Symbol("open streams"),mre,Ere=!1,RS;try{RS=b("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:R9e,HTTP2_HEADER_METHOD:D9e,HTTP2_HEADER_PATH:k9e,HTTP2_HEADER_SCHEME:v9e,HTTP2_HEADER_CONTENT_LENGTH:_9e,HTTP2_HEADER_EXPECT:F9e,HTTP2_HEADER_STATUS:M9e}}=RS;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[Dn]=e,Ere||(Ere=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=RS.connect(t[xS],{createConnection:()=>e,peerMaxConcurrentStreams:t[yre]});r[pu]=0,r[om]=t,r[Dn]=e,Et.addListener(r,"error",O9e),Et.addListener(r,"frameError",H9e),Et.addListener(r,"end",G9e),Et.addListener(r,"goaway",q9e),Et.addListener(r,"close",function(){let{[om]:s}=this,{[Dn]:i}=s,o=this[Dn][ka]||this[ka]||new _I("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[S9e]===0);let a=s[_l].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[om][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new _I("closed",Et.getSocketInfo(this));t[Dn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Fl]()});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[Dn];e?.destroyed===!1&&(t[T9e]===0&&t[yre]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function O9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][ka]=t,this[om][yU](t)}function H9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][ka]=n,this[om][yU](n)}}function G9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function q9e(t){let e=this[ka]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[om];if(r[Dn]=null,r[x9e]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Dn],e),r[Ra]<r[_l].length){let n=r[_l][r[Ra]];r[_l][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Fl]()}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:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[xS];l[R9e]=i||`${h}${f?`:${f}`:""}`,l[D9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new pre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[_l][t[Ra]++]=null,t[Fl]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[pu],t[_l][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[_l][t[Ra]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[k9e]=s,l[v9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){mre??=rm().extractBody;let[N,M]=mre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),Y9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[N9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[_9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[F9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[mGe]=c??3e5,this[pGe]=s??3e5,this[EGe]=C??!0,this[CGe]=N,this[wU]=O,this[Ll]=null,this[QGe]=P>-1?P:-1,this[SGe]=ee??100,this[Kr]=null,this[va]=[],this[Eu]=0,this[_a]=0,this[UI]=ce=>NU(this,ce),this[wGe]=ce=>Fre(this,ce)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[va].length-this[_a]}get[OI](){return this[_a]-this[Eu]}get[PI](){return this[va].length-this[Eu]}get[AGe](){return!!this[Kr]&&!this[cm]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(_re(this)||1)||this[HI]>0)}[cGe](e){Mre(this),this.once("connect",e)}[bGe](e,r){let n=e.origin||this[Dc].origin,s=new rGe(n,e,r);return this[va].push(s),this[zh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[zh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[zh]&&this[Ul]!==2&&this[QU]&&(this[Ul]=2),this[Ul]<2}async[yGe](){return new Promise(e=>{this[PI]?this[Ll]=e:e(null)})}async[BGe](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Jh.errorRequest(this,o,e)}let s=()=>{this[Ll]&&(this[Ll](),this[Ll]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},xGe=FS();function Fre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[_a]===t[Eu]);let r=t[va].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Jh.errorRequest(t,s,e)}mu(t[PI]===0)}}async function Mre(t){mu(!t[cm]),mu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(vre.isIP(o)),r=o}t[cm]=!0,am.beforeConnect.hasSubscribers&&am.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ml],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Jh.destroy(i.on("error",Dre),new iGe);return}mu(i);try{t[Kr]=i.alpnProtocol==="h2"?await TGe(t,i):await NGe(t,i)}catch(o){throw i.destroy().on("error",Dre),o}t[cm]=!1,i[IGe]=0,i[wU]=t[wU],i[aGe]=t,i[lGe]=null,am.connected.hasSubscribers&&am.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[cm]=!1,am.connectError.hasSubscribers&&am.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[OI]===0);t[HI]>0&&t[va][t[_a]].servername===t[Ml];){let o=t[va][t[_a]++];Jh.errorRequest(t,o,i)}else Fre(t,i);t.emit("connectionError",t[Dc],[t],i)}t[UI]()}function kre(t){t[Ul]=0,t.emit("drain",t[Dc],[t])}function NU(t,e){t[zh]!==2&&(t[zh]=2,RGe(t,e),t[zh]=0,t[Eu]>256&&(t[va].splice(0,t[Eu]),t[_a]-=t[Eu],t[Eu]=0))}function RGe(t,e){for(;;){if(t.destroyed){mu(t[HI]===0);return}if(t[Ll]&&!t[PI]){t[Ll](),t[Ll]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ul]=2;else if(t[Ul]===2){e?(t[Ul]=1,queueMicrotask(()=>kre(t))):kre(t);continue}if(t[HI]===0||t[OI]>=(_re(t)||1))return;let r=t[va][t[_a]];if(t[Dc].protocol==="https:"&&t[Ml]!==r.servername){if(t[OI]>0)return;t[Ml]=r.servername,t[Kr]?.destroy(new sGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[cm])return;if(!t[Kr]){Mre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Lre.exports=SU});var TU=E((fWt,Ure)=>{"use strict";var LS=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)}};Ure.exports=class{constructor(){this.head=this.tail=new LS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ore=E((gWt,Pre)=>{var{kFree:DGe,kConnected:kGe,kPending:vGe,kQueued:_Ge,kRunning:FGe,kSize:MGe}=yr(),jh=Symbol("pool"),xU=class{constructor(e){this[jh]=e}get connected(){return this[jh][kGe]}get free(){return this[jh][DGe]}get pending(){return this[jh][vGe]}get queued(){return this[jh][_Ge]}get running(){return this[jh][FGe]}get size(){return this[jh][MGe]}};Pre.exports=xU});var FU=E((pWt,Kre)=>{"use strict";var LGe=Jp(),UGe=TU(),{kConnected:RU,kSize:Hre,kRunning:Gre,kPending:qre,kQueued:GI,kBusy:PGe,kFree:OGe,kUrl:HGe,kClose:GGe,kDestroy:qGe,kDispatch:YGe}=yr(),VGe=Ore(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Yre=Symbol("onConnect"),Vre=Symbol("onDisconnect"),Wre=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
`: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
\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
\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
\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
\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
\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
${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())}};rie.exports=FP});var tN=E((YWt,aie)=>{"use strict";var sie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mVe}=Lt(),EVe=lm();oie()===void 0&&iie(new EVe);function iie(t){if(!t||typeof t.dispatch!="function")throw new mVe("Argument agent must implement Agent");Object.defineProperty(globalThis,sie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function oie(){return globalThis[sie]}aie.exports={setGlobalDispatcher:iie,getGlobalDispatcher:oie}});var rN=E((WWt,cie)=>{"use strict";cie.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 uie=E((JWt,Aie)=>{"use strict";var CVe=_S();Aie.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 CVe(r,o,s,i);return r(a,c)}}});var die=E((zWt,lie)=>{"use strict";var IVe=VS();lie.exports=t=>e=>function(n,s){return e(n,new IVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var fie=E((jWt,hie)=>{"use strict";var yVe=dt(),{InvalidArgumentError:BVe,RequestAbortedError:bVe}=Lt(),QVe=rN(),MP=class extends QVe{#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 BVe("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=yVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new bVe(`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 wVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}hie.exports=wVe});var mie=E((KWt,pie)=>{"use strict";var{isIP:SVe}=b("node:net"),{lookup:NVe}=b("node:dns"),TVe=rN(),{InvalidArgumentError:ym,InformationalError:xVe}=Lt(),gie=Math.pow(2,31)-1,LP=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 xVe("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){NVe(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===gie?(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===gie?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 UP(this,e,r)}},UP=class extends TVe{#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":Kae(i)&&(r[s]=i);break;case"id":$ae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Kae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&$ae(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}}};Xae.exports={EventSourceStream:bO}});var ace=E((NJt,oce)=>{"use strict";var{pipeline:Pze}=b("node:stream"),{fetching:Oze}=ry(),{makeRequest:Hze}=Qm(),{webidl:bu}=Kn(),{EventSourceStream:Gze}=Zae(),{parseMIMEType:qze}=Ks(),{createFastMessageEvent:Yze}=Rm(),{isNetworkError:ece}=ey(),{delay:Vze}=yO(),{kEnumerableProperty:lf}=dt(),{environmentSettingsObject:tce}=xi(),rce=!1,nce=3e3,gy=0,sce=1,py=2,Wze="anonymous",Jze="use-credentials",Fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),rce||(rce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:nce};let s=tce,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=Wze;r.withCredentials&&(o=Jze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=tce.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=Hze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{ece(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(ece(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?qze(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=sce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Gze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Yze(c.type,c.options))}});Pze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Oze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Vze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,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}},ice={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:sce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(Fm,ice);Object.defineProperties(Fm.prototype,ice);Object.defineProperties(Fm.prototype,{close:lf,onerror:lf,onmessage:lf,onopen:lf,readyState:lf,url:lf,withCredentials:lf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);oce.exports={EventSource:Fm,defaultReconnectionTime:nce}});var YN=E((TJt,Ye)=>{"use strict";var zze=Am(),cce=II(),jze=um(),Kze=ine(),$ze=lm(),Xze=zU(),Zze=xne(),eje=Fne(),Ace=Lt(),qN=dt(),{InvalidArgumentError:GN}=Ace,Mm=yse(),tje=BI(),rje=xP(),nje=nie(),sje=kP(),ije=pP(),oje=VS(),{getGlobalDispatcher:uce,setGlobalDispatcher:aje}=tN(),cje=rN(),Aje=_S(),uje=FS();Object.assign(cce.prototype,Mm);Ye.exports.Dispatcher=cce;Ye.exports.Client=zze;Ye.exports.Pool=jze;Ye.exports.BalancedPool=Kze;Ye.exports.Agent=$ze;Ye.exports.ProxyAgent=Xze;Ye.exports.EnvHttpProxyAgent=Zze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?u3:C.type==="?"?A3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==hT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===hT)return[n,s];if(!s)return P$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=U$e;function U$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?u3:e.dot?R$e:D$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?O$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}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(jAe),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){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 p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===mf)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 P$e(t){return t.replace(/\\(.)/g,"$1")}function O$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ym=E((_jt,rue)=>{"use strict";var z$e="2.0.0",j$e=Number.MAX_SAFE_INTEGER||9007199254740991,K$e=16,$$e=250,X$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:K$e,MAX_SAFE_BUILD_LENGTH:$$e,MAX_SAFE_INTEGER:j$e,RELEASE_TYPES:X$e,SEMVER_SPEC_VERSION:z$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((Fjt,nue)=>{"use strict";var Z$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};nue.exports=Z$e});var Vm=E((Uc,sue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:d3,MAX_SAFE_BUILD_LENGTH:eXe,MAX_LENGTH:tXe}=Ym(),rXe=vy();Uc=sue.exports={};var nXe=Uc.re=[],sXe=Uc.safeRe=[],me=Uc.src=[],iXe=Uc.safeSrc=[],Ee=Uc.t={},oXe=0,h3="[a-zA-Z0-9-]",aXe=[["\\s",1],["\\d",tXe],[h3,eXe]],cXe=t=>{for(let[e,r]of aXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine 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+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ktt()+e+" "+t[0]}function Ktt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function $tt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Xtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ztt(){return process.env.DEBUG}function ert(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}XT.exports=r8()(vn);var{formatters:kde}=XT.exports;kde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};kde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=E((lXt,i8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?i8.exports=Sde():i8.exports=vde()});var Mde=E(oi=>{"use strict";var trt=oi&&oi.__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]})),rrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=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)&&trt(e,t,r);return rrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var nrt=_de(b("http")),srt=_de(b("https"));async function Fde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Fde;async function irt(t){let r=(await Fde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=irt;function ort(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?srt:nrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=ort});var a8=E(qi=>{"use strict";var Ude=qi&&qi.__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]})),art=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pde=qi&&qi.__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)&&Ude(e,t,r);return art(e,t),e},crt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ude(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var Art=Pde(b("net")),Lde=Pde(b("http")),urt=b("https");crt(Mde(),qi);var Hc=Symbol("AgentBaseInternalState"),o8=class extends Lde.Agent{constructor(e){super(e),this[Hc]={}}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 Art.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)?urt.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 Lde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Hc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Hc].currentSocket;if(this[Hc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hc]&&(this[Hc].defaultPort=e)}get protocol(){return this[Hc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hc]&&(this[Hc].protocol=e)}};qi.Agent=o8});var Ode=E(e0=>{"use strict";var lrt=e0&&e0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e0,"__esModule",{value:!0});e0.parseProxyResponse=void 0;var drt=lrt(ZT()),ex=(0,drt.default)("https-proxy-agent:parse-proxy-response");function hrt(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(),ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),ex("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){ex("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}ex("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}e0.parseProxyResponse=hrt});var Wde=E(Fo=>{"use strict";var frt=Fo&&Fo.__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]})),grt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yde=Fo&&Fo.__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)&&frt(e,t,r);return grt(e,t),e},Vde=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpsProxyAgent=void 0;var tx=Yde(b("net")),Hde=Yde(b("tls")),prt=Vde(b("assert")),mrt=Vde(ZT()),Ert=a8(),Crt=b("url"),Irt=Ode(),zy=(0,mrt.default)("https-proxy-agent"),Gde=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends Ert.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Crt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("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?qde(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:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Hde.connect(Gde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=tx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tx.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,Irt.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",yrt),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Hde.connect({...qde(Gde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,prt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];Fo.HttpsProxyAgent=rx;function yrt(t){t.resume()}function qde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var jde=E(Mo=>{"use strict";var Brt=Mo&&Mo.__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]})),brt=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zde=Mo&&Mo.__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)&&Brt(e,t,r);return brt(e,t),e},Qrt=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpProxyAgent=void 0;var wrt=zde(b("net")),Srt=zde(b("tls")),Nrt=Qrt(ZT()),Trt=b("events"),xrt=a8(),Jde=b("url"),t0=(0,Nrt.default)("http-proxy-agent"),nx=class extends xrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Jde.URL(e):e,this.proxyHeaders=r?.headers??{},t0("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?Rrt(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 Jde.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;t0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(t0("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),t0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(t0("Creating `tls.Socket`: %o",this.connectOpts),i=Srt.connect(this.connectOpts)):(t0("Creating `net.Socket`: %o",this.connectOpts),i=wrt.connect(this.connectOpts)),await(0,Trt.once)(i,"connect"),i}};nx.protocols=["http","https"];Mo.HttpProxyAgent=nx;function Rrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Che=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var Mhe=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var ppe=E((dgr,Uct)=>{Uct.exports={name:"@actions/cache",version:"6.0.1",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 Epe=E((hgr,mpe)=>{var Pct=ppe();mpe.exports={version:Pct.version}});var XR=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.isJsonObject=w0.typeofJsonValue=void 0;function zct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}w0.typeofJsonValue=zct;function jct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}w0.isJsonObject=jct});var eD=E(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.base64encode=S0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Gu.length;t++)ZR[Gu[t].charCodeAt(0)]=t;ZR[45]=Gu.indexOf("+");ZR[95]=Gu.indexOf("/");function Kct(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=ZR[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)}S0.base64decode=Kct;function $ct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}S0.base64encode=$ct});var bpe=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var XH=t=>String.fromCharCode.apply(String,t);function Xct(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(XH(n)),s=0);return r.length?(s&&r.push(XH(n.slice(0,s))),r.join("")):XH(n.slice(0,s))}tD.utf8read=Xct});var YB=E(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.WireType=dA.mergeBinaryOptions=dA.UnknownFieldHandler=void 0;var Zct;(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])})(Zct=dA.UnknownFieldHandler||(dA.UnknownFieldHandler={}));function eAt(t,e){return Object.assign(Object.assign({},t),e)}dA.mergeBinaryOptions=eAt;var tAt;(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"})(tAt=dA.WireType||(dA.WireType={}))});var nD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function rAt(){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")}hi.varint64read=rAt;function nAt(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)}}hi.varint64write=nAt;var rD=65536*65536;function sAt(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>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=sAt;function iAt(t,e){if(e>>>0<=2097151)return""+(rD*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)}hi.int64toString=iAt;function oAt(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)}}hi.varint32write=oAt;function aAt(){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}hi.varint32read=aAt});var Id=E(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var VB=nD(),ir;function Qpe(){let t=new DataView(new ArrayBuffer(8));ir=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}Cd.detectBi=Qpe;Qpe();function wpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Spe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=w9});var N9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var rme=At();function xut(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=rme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=xut;function DD(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 x9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var gA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gA=jf.DeferredState||(jf.DeferredState={}));var T9=class{constructor(e=!0){this._state=gA.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!==gA.PENDING)throw new Error(`cannot resolve ${gA[this.state].toLowerCase()}`);this._resolve(e),this._state=gA.RESOLVED}reject(e){if(this.state!==gA.PENDING)throw new Error(`cannot reject ${gA[this.state].toLowerCase()}`);this._reject(e),this._state=gA.REJECTED}resolvePending(e){this._state===gA.PENDING&&this.resolve(e)}rejectPending(e){this._state===gA.PENDING&&this.reject(e)}};jf.Deferred=T9});var D9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var nme=x9(),Kf=At(),R9=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){Kf.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){Kf.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){Kf.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(){Kf.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;Kf.assert(e,"bad state"),Kf.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 nme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==nme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=R9});var v9=E(v0=>{"use strict";var Rut=v0&&v0.__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(v0,"__esModule",{value:!0});v0.UnaryCall=void 0;var k9=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 Rut(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}})}};v0.UnaryCall=k9});var F9=E(_0=>{"use strict";var Dut=_0&&_0.__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(_0,"__esModule",{value:!0});_0.ServerStreamingCall=void 0;var _9=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 hIe=E(dIe=>{"use strict";var RY=el().Buffer;dIe._dbcs=tl;var Zn=-1,lIe=-2,sa=-10,Us=-1e3,dE=new Array(256),Yb=-1;for(gk=0;gk<256;gk++)dE[gk]=Zn;var gk;function tl(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]=dE.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(dE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=lIe)}}}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 NIt(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(dIt.has(s)){r=s;break}}return r}function TIt(t,e){let r=NIt(e);r!==""&&(t.referrerPolicy=r)}function xIt(){return"allowed"}function RIt(){return"success"}function DIt(){return"success"}function kIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function vIt(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&&zV(t.origin)&&!zV(wg(t))&&(e=null);break;case"same-origin":Zb(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mE(t,e){return t}function _It(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mE(t.domainLookupStartTime,r),domainLookupEndTime:mE(t.domainLookupEndTime,r),connectionStartTime:mE(t.connectionStartTime,r),connectionEndTime:mE(t.connectionEndTime,r),secureConnectionStartTime:mE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FIt(t){return mE(pIt.now(),t)}function MIt(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 qBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function LIt(t){return{referrerPolicy:t.referrerPolicy}}function UIt(t){let e=t.referrerPolicy;eQ(e);let r=null;if(t.referrer==="client"){let i=UBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=JV(r),s=JV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??JV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return Zb(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return Zb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Zb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function JV(t,e=!1){return eQ(Yd.is.URL(t)),t=new URL(t),JBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var PIt=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)$/),OIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function YBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),OIt(t)):PIt(t)}function HIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||YBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:HIt(t.origin):!1}function GIt(t){}function Zb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function qIt(t){return t.controller.state==="aborted"}function YIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VIt(t){return EIt[t.toLowerCase()]??t}var WIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VBe(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,WIt),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 JIt(t,e,r,n=0,s=1){let i=VBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>n7(a)&&a!==59,t,e);i=t7.decode(o)}return{name:n,value:i}}function myt(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 yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=r7(o,!0,!0,a=>a===9||a===32),!Ayt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,aa(a=>a===32||a===9,t,e),cyt(o)){case"content-disposition":{if(r=n=null,aa(c=>n7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=pyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=aa(c=>c!==10&&c!==13,t,e);a=r7(a,!1,!0,c=>c===9||c===32),s=ZBe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=r7(a,!1,!0,c=>c===9||c===32),i=ZBe(a);break}default:aa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function r7(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 Eyt(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 yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Cyt(t){return t<=31||t===127}function Iyt(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 n7(t){return t<=127&&t!==32&&t!==9&&!Cyt(t)&&!Iyt(t)}ebe.exports={multipartFormDataParser:gyt,validateBoundary:fyt}});var tQ=E((CBr,rbe)=>{"use strict";function yyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}rbe.exports={createDeferredPromise:yyt}});var IE=E((IBr,abe)=>{"use strict";var o7=Ze(),{ReadableStreamFrom:Byt,readableStreamClose:byt,fullyReadBody:Qyt,extractMimeType:wyt}=ro(),{FormData:nbe,setFormDataState:Syt}=Ok(),{webidl:Ac}=es(),s7=b("node:assert"),{isErrored:i7,isDisturbed:Nyt}=b("node:stream"),{isUint8Array:Tyt}=b("node:util/types"),{serializeAMimeType:xyt}=oa(),{multipartFormDataParser:Ryt}=tbe(),{createDeferredPromise:Dyt}=tQ(),{parseJSONFromBytes:kyt}=sl(),{utf8DecodeBytes:vyt}=_k(),{runtimeFeatures:_yt}=il(),Fyt=_yt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Hk=new TextEncoder;function Myt(){}var Lyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Nyt(e)&&!i7(e)&&e.cancel("Response object has been garbage collected").catch(Myt)});function ibe(t,e=!1){let r=null,n=null;Ac.is.ReadableStream(t)?r=t:Ac.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),s7(Ac.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(Ac.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ac.is.BufferSource(t))i=Ac.util.getCopyOfBytesHeldByBufferSource(t);else if(Ac.is.FormData(t)){let A=`----formdata-undici-0${`${Fyt(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 p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Hk.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
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Hk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.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
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Hk.encode(`--${A}--\r
`);h.push(I),o+=I.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=${A}`}else if(Ac.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(o7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ac.is.ReadableStream(t)?t:Byt(t)}return(typeof i=="string"||Tyt(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(i7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!i7(r)&&n.enqueue(typeof A=="string"?Hk.encode(A):new Uint8Array(A));queueMicrotask(()=>byt(n))})(),[{stream:r,source:i,length:o},a]}function Uyt(t,e=!1){return Ac.is.ReadableStream(t)&&(s7(!o7.isDisturbed(t),"The body has already been consumed."),s7(!t.locked,"The stream is locked.")),ibe(t,e)}function Pyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Oyt(t,e){return{blob(){return CE(this,n=>{let s=sbe(e(this));return s===null?s="":s&&(s=xyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return CE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return CE(this,vyt,t,e)},json(){return CE(this,kyt,t,e)},formData(){return CE(this,n=>{let s=sbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=Ryt(n,s),o=new nbe;return Syt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new nbe;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 CE(this,n=>new Uint8Array(n),t,e)}}}function Hyt(t,e){Object.assign(t.prototype,Oyt(t,e))}function CE(t,e,r,n){try{Ac.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),obe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Dyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Qyt(t.body,o,i),s.promise)}function obe(t){let e=t.body;return e!=null&&(e.stream.locked||o7.isDisturbed(e.stream))}function sbe(t){let e=t.headersList,r=wyt(e);return r==="failure"?null:r}abe.exports={extractBody:ibe,safelyExtractBody:Uyt,cloneBody:Pyt,mixinBody:Hyt,streamRegistry:Lyt,bodyUnusable:obe}});var Ebe=E((yBr,mbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:cbe}=Gd(),a7=GY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Gyt,RequestAbortedError:fbe,HeadersTimeoutError:qyt,HeadersOverflowError:Yyt,SocketError:sQ,InformationalError:yE,BodyTimeoutError:Vyt,HTTPParserError:Wyt,ResponseExceededMaxSizeError:Jyt}=Ke(),{kUrl:gbe,kReset:Bi,kClient:f7,kParser:Wr,kBlocking:iQ,kRunning:ms,kPending:zyt,kSize:Abe,kWriting:Wd,kQueue:uc,kNoRef:rQ,kKeepAliveDefaultTimeout:jyt,kHostHeader:Kyt,kPendingIdx:$yt,kRunningIdx:ca,kError:Aa,kPipelining:Yk,kSocket:BE,kKeepAliveTimeoutValue:Wk,kMaxHeadersSize:Xyt,kKeepAliveMaxTimeout:Zyt,kKeepAliveTimeoutThreshold:eBt,kHeadersTimeout:tBt,kBodyTimeout:rBt,kStrictContentLength:u7,kMaxRequests:ube,kCounter:nBt,kMaxResponseSize:sBt,kOnError:iBt,kResume:Vd,kHTTPContext:pbe,kClosed:l7}=Kt(),SA=aBe(),oBt=Buffer.alloc(0),Gk=Buffer[Symbol.species],aBt=Je.removeAllListeners,c7;function cBt(){let t=process.env.JEST_WORKER_ID?_V():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(uBe())}catch{}return e||(e=new WebAssembly.Module(t||_V())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onStatus(new Gk(NA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onHeaderField(new Gk(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onHeaderValue(new Gk(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-TA+NA.byteOffset;return bn.onBody(new Gk(NA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var A7=null,bn=null,NA=null,qk=0,TA=null,ABt=0,nQ=1,bE=2|nQ,Vk=4|nQ,d7=8|ABt,h7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(SA.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[Xyt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[sBt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[A5r],i?p+=`connection: upgrade\r
`:p+=t[Kyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nV]&&!h[dc]?p+=`connection: keep-alive\r
`:t[Yk]&&!h[Bi]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return cbe.sendHeaders.hasSubscribers&&cbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?dbe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?dbe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?hbe(f,c.stream(),t,e,h,u,p,l):IBt(f,c,t,e,h,u,p,l):Je.isStream(c)?CBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?hbe(f,c,t,e,h,u,p,l):We(!1),!0}function CBt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new Jk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new fbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Wd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.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 dbe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(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[Bi]=!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"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vd]()}catch(c){t(c)}}async function IBt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;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[Bi]=!0),r[Vd]()}catch(c){t(c)}}async function hbe(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===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)=>{We(c===null),s[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Jk=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[Wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[u7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!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[Wr].timeout&&r[Wr].timeoutType===bE&&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[Wd]=!1,e[Aa])throw e[Aa];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[u7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===bE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Vd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};mbe.exports=uBt});var Nbe=E((BBr,Sbe)=>{"use strict";var la=b("node:assert"),{pipeline:yBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:E7,RequestAbortedError:BBt,SocketError:AQ,InformationalError:Jd,InvalidArgumentError:bBt}=Ke(),{kUrl:cQ,kReset:$k,kClient:no,kRunning:uQ,kPending:QBt,kQueue:zd,kPendingIdx:I7,kRunningIdx:lc,kError:so,kSocket:Dr,kStrictContentLength:wBt,kOnError:QE,kMaxConcurrentStreams:jk,kPingInterval:Cbe,kHTTP2Session:al,kHTTP2InitialWindowSize:SBt,kHTTP2ConnectionWindowSize:NBt,kResume:xA,kSize:TBt,kHTTPContext:y7,kClosed:C7,kBodyTimeout:xBt,kEnableConnectProtocol:oQ,kRemoteSettings:aQ,kHTTP2Stream:zk,kHTTP2SessionState:B7}=Kt(),{channels:Ibe}=Gd(),ua=Symbol("open streams"),ybe,Kk;try{Kk=b("node:http2")}catch{Kk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RBt,HTTP2_HEADER_METHOD:Bbe,HTTP2_HEADER_PATH:bbe,HTTP2_HEADER_SCHEME:g7,HTTP2_HEADER_CONTENT_LENGTH:DBt,HTTP2_HEADER_EXPECT:kBt,HTTP2_HEADER_STATUS:p7,HTTP2_HEADER_PROTOCOL:vBt,NGHTTP2_REFUSED_STREAM:_Bt,NGHTTP2_CANCEL:FBt}}=Kk;function m7(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 MBt(t,e){t[Dr]=e;let r=t[SBt],n=t[NBt],s=Kk.connect(t[cQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[jk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[B7]={ping:{interval:t[Cbe]===0?null:setInterval(OBt,t[Cbe],s).unref()}},s[oQ]=!1,s[aQ]=!1,n&&ut.addListener(s,"connect",UBt.bind(s,n)),ut.addListener(s,"error",HBt),ut.addListener(s,"frameError",GBt),ut.addListener(s,"end",qBt),ut.addListener(s,"goaway",YBt),ut.addListener(s,"close",VBt),ut.addListener(s,"remoteSettings",PBt),s.unref(),t[al]=s,e[al]=s,ut.addListener(e,"error",JBt),ut.addListener(e,"end",zBt),ut.addListener(e,"close",WBt),e[C7]=!1,e.on("close",jBt),{version:"h2",defaultPipelining:1/0,write(i){return $Bt(t,i)},resume(){LBt(t)},destroy(i,o){e[C7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[uQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1;return!1}}}function LBt(t){let e=t[Dr];e?.destroyed===!1&&(t[TBt]===0||t[jk]===0?(e.unref(),t[al].unref()):(e.ref(),t[al].ref()))}function UBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function PBt(t){if(this[no][jk]=t.maxConcurrentStreams??this[no][jk],this[aQ]===!0&&this[oQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][QE](e);return}this[oQ]=t.enableConnectProtocol??this[oQ],this[aQ]=!0,this[no][xA]()}function OBt(t){let e=t[B7];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[no],o=this[no];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[QE](a)}else i.emit("ping",s)}}function HBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][QE](t)}function GBt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][QE](n)}}function qBt(){let t=new AQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function YBt(t){let e=this[so]||new AQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[y7]=null,this.close(),this[al]=null,ut.destroy(this[Dr],e),r[lc]<r[zd].length){let n=r[zd][r[lc]];r[zd][r[lc]++]=null,ut.errorRequest(r,n,e),r[I7]=r[lc]}la(r[uQ]===0),r.emit("disconnect",r[cQ],[r],e),r.emit("connectionError",r[cQ],[r],e),r[xA]()}function VBt(){let{[no]:t,[B7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new AQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[y7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[QBt]===0);let s=t[zd].splice(t[lc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function WBt(){let t=this[so]||new AQ("closed",ut.getSocketInfo(this)),e=this[al][no];e[Dr]=null,e[y7]=null,this[al]!==null&&this[al].destroy(t),e[I7]=e[lc],la(e[uQ]===0),e.emit("disconnect",e[cQ],[e],t),e[xA]()}function JBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][QE](t)}function zBt(){ut.destroy(this,new AQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Ibe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[kBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[p7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),m7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[zd][t[lc]++]=null,t[xA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[lc]++]=null,t[I7]=t[lc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Jd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Jd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Qbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Qbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?wbe(m,f,d.stream(),t,e,t[Dr],y,C):ZBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?XBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?wbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Qbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[$k]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function XBt(t,e,r,n,s,i,o,a){la(a!==0||i[uQ]===0,"stream body cannot be pipelined");let c=yBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[$k]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function ZBt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new E7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[$k]=!0),n[xA]()}catch(c){t(c)}}async function wbe(t,e,r,n,s,i,o,a){la(o!==0||n[uQ]===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)=>{la(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[$k]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Sbe.exports=MBt});var Zd=E((bBr,Mbe)=>{"use strict";var cl=b("node:assert"),kbe=b("node:net"),lQ=b("node:http"),Ng=Ze(),{ClientStats:ebt}=mV(),{channels:wE}=Gd(),tbt=jye(),rbt=yg(),{InvalidArgumentError:gr,InformationalError:nbt,ClientDestroyedError:sbt}=Ke(),ibt=Bg(),{kUrl:RA,kServerName:Xd,kClient:obt,kBusy:b7,kConnect:abt,kResuming:Tg,kRunning:gQ,kPending:pQ,kSize:dQ,kQueue:dc,kConnected:cbt,kConnecting:SE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:Tbe,kHostHeader:Abt,kPendingIdx:hc,kRunningIdx:Al,kError:ubt,kPipelining:Xk,kKeepAliveTimeoutValue:lbt,kMaxHeadersSize:dbt,kKeepAliveMaxTimeout:hbt,kKeepAliveTimeoutThreshold:fbt,kHeadersTimeout:gbt,kBodyTimeout:pbt,kStrictContentLength:mbt,kConnector:hQ,kMaxRequests:Q7,kCounter:Ebt,kClose:Cbt,kDestroy:Ibt,kDispatch:ybt,kLocalAddress:fQ,kMaxResponseSize:Bbt,kOnError:bbt,kHTTPContext:nn,kMaxConcurrentStreams:Qbt,kHTTP2InitialWindowSize:wbt,kHTTP2ConnectionWindowSize:Sbt,kResume:$d,kPingInterval:Nbt}=Kt(),Tbt=Ebe(),xbt=Nbe(),jd=Symbol("kClosedResolve"),Rbt=lQ&&lQ.maxHeaderSize&&Number.isInteger(lQ.maxHeaderSize)&&lQ.maxHeaderSize>0?()=>lQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},xbe=()=>{};function vbe(t){return t[Xk]??t[nn]?.defaultPipelining??1}var w7=class extends rbt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[pbt]=a??3e5,this[gbt]=n??3e5,this[mbt]=m??!0,this[Q7]=N,this[jd]=null,this[Bbt]=O>-1?O:-1,this[nn]=null,this[Qbt]=D??100,this[wbt]=te??262144,this[Sbt]=ce??524288,this[Nbt]=ge??6e4,this[dc]=[],this[Al]=0,this[hc]=0,this[$d]=De=>S7(this,De),this[bbt]=De=>_be(this,De)}get pipelining(){return this[Xk]}set pipelining(e){this[Xk]=e,this[$d](!0)}get stats(){return new ebt(this)}get[pQ](){return this[dc].length-this[hc]}get[gQ](){return this[hc]-this[Al]}get[dQ](){return this[dc].length-this[Al]}get[cbt](){return!!this[nn]&&!this[SE]&&!this[nn].destroyed}get[b7](){return!!(this[nn]?.busy(null)||this[dQ]>=(vbe(this)||1)||this[pQ]>0)}[abt](e){Fbe(this),this.once("connect",e)}[ybt](e,r){let n=new tbt(this[RA].origin,e,r);return this[dc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>S7(this))):this[$d](!0)),this[Tg]&&this[Kd]!==2&&this[b7]&&(this[Kd]=2),this[Kd]<2}[Cbt](){return new Promise(e=>{this[dQ]?this[jd]=e:e(null)})}[Ibt](e){return new Promise(r=>{let n=this[dc].splice(this[hc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[$d]()})}};function _be(t,e){if(t[gQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[hc]===t[Al]);let r=t[dc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}cl(t[dQ]===0)}}function Fbe(t){cl(!t[SE]),cl(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(kbe.isIPv6(o)),r=o}t[SE]=!0,wE.beforeConnect.hasSubscribers&&wE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ]}),t[hQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Xd],localAddress:t[fQ]},(i,o)=>{if(i){Rbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}if(t.destroyed){Ng.destroy(o.on("error",xbe),new sbt),t[$d]();return}cl(o);try{t[nn]=o.alpnProtocol==="h2"?xbt(t,o):Tbt(t,o)}catch(a){o.destroy().on("error",xbe),Rbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}t[SE]=!1,o[Ebt]=0,o[Q7]=t[Q7],o[obt]=t,o[ubt]=null,wE.connected.hasSubscribers&&wE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],socket:o}),t.emit("connect",t[RA],[t]),t[$d]()})}function Rbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[SE]=!1,wE.connectError.hasSubscribers&&wE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gQ]===0);t[pQ]>0&&t[dc][t[hc]].servername===t[Xd];){let o=t[dc][t[hc]++];Ng.errorRequest(t,o,e)}else _be(t,e);t.emit("connectionError",t[RA],[t],e)}}function Dbe(t){t[Kd]=0,t.emit("drain",t[RA],[t])}function S7(t,e){t[Tg]!==2&&(t[Tg]=2,Dbt(t,e),t[Tg]=0,t[Al]>256&&(t[dc].splice(0,t[Al]),t[hc]-=t[Al],t[Al]=0))}function Dbt(t,e){for(;;){if(t.destroyed){cl(t[pQ]===0);return}if(t[jd]&&!t[dQ]){t[jd](),t[jd]=null;return}if(t[nn]&&t[nn].resume(),t[b7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>Dbe(t))):Dbe(t);continue}if(t[pQ]===0||t[gQ]>=(vbe(t)||1))return;let r=t[dc][t[hc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Xd]!==r.servername){if(t[gQ]>0)return;t[Xd]=r.servername,t[nn]?.destroy(new nbt("servername changed"),()=>{t[nn]=null,S7(t)})}if(t[SE])return;if(!t[nn]){Fbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[hc]++:t[dc].splice(t[hc],1)}}Mbe.exports=w7});var N7=E((wBr,Lbe)=>{"use strict";var Zk=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)}};Lbe.exports=class{constructor(){this.head=this.tail=new Zk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Zk),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 ev=E((SBr,Wbe)=>{"use strict";var{PoolStats:kbt}=mV(),vbt=yg(),_bt=N7(),{kConnected:T7,kSize:Ube,kRunning:Pbe,kPending:Obe,kQueued:mQ,kBusy:Fbt,kFree:Mbt,kUrl:Lbt,kClose:Ubt,kDestroy:Pbt,kDispatch:Obt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),EQ=Symbol("queue"),x7=Symbol("closed resolve"),R7=Symbol("onDrain"),Hbe=Symbol("onConnect"),Gbe=Symbol("onDisconnect"),qbe=Symbol("onConnectionError"),D7=Symbol("get dispatcher"),Ybe=Symbol("add client"),Vbe=Symbol("remove client"),k7=class extends vbt{[EQ]=new _bt;[mQ]=0;[Vn]=[];[Ps]=!1;[R7](e,r,n){let s=this[EQ],i=!1;for(;!i;){let o=s.shi 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())}};f1e.exports=JW});var jW=E((nbr,E1e)=>{"use strict";var{InvalidArgumentError:L1t}=Ke(),{runtimeFeatures:U1t}=il();function P1t(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 g1e=U1t.has("crypto")?b("node:crypto"):null,O1t=g1e?.hash?t=>g1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function m1e(t){return Array.isArray(t)&&(t.length&1)===0}function H1t(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 G1t(t){let e={};if(!t)return e;if(m1e(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 p1e=["record","playback","update"];function q1t(t){if(!p1e.includes(t))throw new L1t(`Invalid snapshot mode: ${t}. Must be one of: ${p1e.join(", ")}`)}E1e.exports={createHeaderFilters:P1t,hashId:O1t,isUndiciHeaders:m1e,normalizeHeaders:G1t,isUrlExcludedFactory:H1t,validateSnapshotMode:q1t}});var N1e=E((sbr,S1e)=>{"use strict";var{writeFile:Y1t,readFile:V1t,mkdir:W1t}=b("node:fs/promises"),{dirname:J1t,resolve:C1e}=b("node:path"),{setTimeout:z1t,clearTimeout:I1e}=b("node:timers"),{InvalidArgumentError:y1e,UndiciError:j1t}=Ke(),{hashId:K1t,isUrlExcludedFactory:$1t,normalizeHeaders:B1e,createHeaderFilters:b1e}=jW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||B1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Q1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Q1e(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 w1e(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 vQ(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 K1t(r)}var KW=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=b1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=$1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#a,this.matchOptions),s=vQ(n),i=B1e(r.headers),o={statusCode:r.statusCode,headers:w1e(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 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.#i&&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=kQ(e,this.#a,this.matchOptions),n=vQ(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 y1e("Snapshot path is required");try{let n=await V1t(C1e(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 j1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new y1e("Snapshot path is required");let n=C1e(r);await W1t(J1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Y1t(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${ao} (
-- 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${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(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${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -331,46 +182,91 @@ ${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${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
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){EJ(e);let r=this.#h(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){EJ(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.#h(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){EJ(e),LNt(r);let n=0,s=[],i=this;return new MNt({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}`}#h(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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!UNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function UNt(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 Gg=E((Sbr,_Se)=>{"use strict";var{kConstruct:PNt}=Kt(),{kEnumerableProperty:HE}=Ze(),{iteratorMixin:ONt,isValidHeaderName:LQ,isValidHeaderValue:xSe}=ro(),{webidl:wt}=es(),IJ=b("node:assert"),Dv=b("node:util");function TSe(t){return t===10||t===13||t===9||t===32}function RSe(t){let e=0,r=t.length;for(;r>e&&TSe(t.charCodeAt(r-1));)--r;for(;r>e&&TSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function DSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});yJ(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)yJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function yJ(t,e,r){if(r=RSe(r),LQ(e)){if(!xSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(vSe(t)==="immutable")throw new TypeError("immutable");return vv(t).append(e,r,!1)}function HNt(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 c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function kSe(t,e){return t[0]<e[0]?-1:1}var kv=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.headersMap.size! Line truncated
${i}`;break;case"retry":HTe(i)&&(r[s]=i);break;case"id":GTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&HTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&GTe(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}}};qTe.exports={EventSourceStream:sz}});var XTe=E(($br,$Te)=>{"use strict";var{pipeline:s2t}=b("node:stream"),{fetching:i2t}=GQ(),{makeRequest:o2t}=qE(),{webidl:Hs}=es(),{EventSourceStream:a2t}=YTe(),{parseMIMEType:c2t}=oa(),{createFastMessageEvent:A2t}=s_(),{isNetworkError:VTe}=PQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:WTe}=ro(),JTe=!1,zTe=3e3,jQ=0,jTe=1,KQ=2,u2t="anonymous",l2t="use-credentials",ZE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=jQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),JTe||(JTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=WTe,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=u2t;r.withCredentials===!0&&(o=l2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=WTe.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=o2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===KQ)return;this.#r=jQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!VTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(VTe(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?c2t(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=jTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new a2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(A2t(c.type,c.options))}});s2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=i2t(e)}#A(){this.#r!==KQ&&(this.#r=jQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===jQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==KQ&&(this.#r=KQ,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=Hs.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=Hs.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=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},KTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:jTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1}};Object.defineProperties(ZE,KTe);Object.defineProperties(ZE.prototype,KTe);Object.defineProperties(ZE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>zTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);$Te.exports={EventSource:ZE,defaultReconnectionTime:zTe}});var sxe=E((Xbr,pe)=>{"use strict";var d2t=Zd(),exe=zb(),h2t=xg(),f2t=eQe(),g2t=sQe(),p2t=kg(),m2t=X7(),E2t=z7(),C2t=HQe(),I2t=JQe(),y2t=KQe(),txe=Ke(),m_=Ze(),{InvalidArgumentError:p_}=txe,eC=Dwe(),B2t=Bg(),b2t=MW(),{MockCallHistory:Q2 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}pe.exports.fetch=function(e,r=void 0){return F2t(e,r).catch(n=>{throw ZTe?nxe(n,ZTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=PQ().Response;pe.exports.Request=qE().Request;pe.exports.FormData=Ok().FormData;var{setGlobalOrigin:M2t,getGlobalOrigin:L2t}=LV();pe.exports.setGlobalOrigin=M2t;pe.exports.getGlobalOrigin=L2t;var{CacheStorage:U2t}=LNe(),{kConstruct:P2t}=Kt();pe.exports.caches=new U2t(P2t);var{deleteCookie:O2t,getCookies:H2t,getSetCookies:G2t,setCookie:q2t,parseCookie:Y2t}=KNe();pe.exports.deleteCookie=O2t;pe.exports.getCookies=H2t;pe.exports.getSetCookies=G2t;pe.exports.setCookie=q2t;pe.exports.parseCookie=Y2t;var{parseMIMEType:V2t,serializeAMimeType:W2t}=oa();pe.exports.parseMIMEType=V2t;pe.exports.serializeAMimeType=W2t;var{CloseEvent:J2t,ErrorEvent:z2t,MessageEvent:j2t}=s_(),{WebSocket:K2t,ping:$2t}=RTe();pe.exports.WebSocket=K2t;pe.exports.CloseEvent=J2t;pe.exports.ErrorEvent=z2t;pe.exports.MessageEvent=j2t;pe.exports.ping=$2t;pe.exports.WebSocketStream=UTe().WebSocketStream;pe.exports.WebSocketError=ZJ().WebSocketError;pe.exports.request=$Q(eC.request);pe.exports.stream=$Q(eC.stream);pe.exports.pipeline=$Q(eC.pipeline);pe.exports.connect=$Q(eC.connect);pe.exports.upgrade=$Q(eC.upgrade);pe.exports.MockClient=b2t;pe.exports.MockCallHistory=Q2t;pe.exports.MockCallHistoryLog=w2t;pe.exports.MockPool=N2t;pe.exports.MockAgent=S2t;pe.exports.SnapshotAgent=T2t;pe.exports.mockErrors=x2t;var{EventSource:X2t}=XTe();pe.exports.EventSource=X2t;function Z2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Z2t});var XQ=E(dh=>{"use strict";dh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");dh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");dh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";dh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);dh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);dh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());dh.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 oxe=E((tQr,ixe)=>{"use strict";var{asciiLowercase:E_,solelyContainsHTTPTokenCodePoints:ekt,soleyContainsHTTPQuotedStringTokenCodePoints:tkt}=XQ();ixe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=E_(String(e)),this._map.get(e)}has(e){return e=E_(String(e)),this._map.has(e)}set(e,r){if(e=E_(String(e)),r=String(r),!ekt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!tkt(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=E_(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 Axe=E((rQr,cxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:rkt,removeTrailingHTTPWhitespace:axe,isHTTPWhitespaceChar:nkt,solelyContainsHTTPTokenCodePoints:iz,soleyContainsHTTPQuotedStringTokenCodePoints:skt,asciiLowercase:oz,collectAnHTTPQuotedString:ikt}=XQ();cxe.exports=t=>{t=rkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!iz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=axe(n),n.length===0||!iz(n))return null;let s={type:oz(r),subtype:oz(n),parameters:new Map};for(;e<t.length;){for(++e;nkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=oz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=ikt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=axe(o),o==="")continue}i.length>0&&iz(i)&&skt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var lxe=E((nQr,uxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:okt}=XQ();uxe.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+="=",(!okt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var gxe=E((iQr,fxe)=>{"use strict";var akt=oxe(),ckt=Axe(),Akt=lxe(),{asciiLowercase:dxe,solelyContainsHTTPTokenCodePoints:hxe}=XQ();fxe.exports=class{constructor(e){e=String(e);let r=ckt(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 akt(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=dxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!hxe(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=dxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!hxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Akt(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 vxe=E(Qn=>{"use strict";var hz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vkt=hz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("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`,k,k,f,s);let P=f.type==="*"?sj:f.type==="?"?aj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=Mvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==ij?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===ij)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Uvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?sj:r.dot?_vt:Fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Ovt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;oj.sep!=="/"&&(e=e.split(oj.sep).join("/")),e=e.split(rDe),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 go.defaults(e).Minimatch}};go.Minimatch=aC});var uDe=E((a1r,ADe)=>{ADe.exports=cDe;var uj=b("fs"),{EventEmitter:Gvt}=b("events"),{Minimatch:Aj}=iDe(),{resolve:qvt}=b("path");function Yvt(t,e){return new Promise((r,n)=>{uj.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 oDe(t,e){return new Promise((r,n)=>{(e?uj.stat:uj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?oDe(t,!1):null):r(null):r(o)})})}async function*aDe(t,e,r,n,s,i){let o=await Yvt(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 oDe(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*aDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Vvt(t,e,r,n){yield*aDe("",t,e,r,n,!0)}function Wvt(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 k_=class extends Gvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Wvt(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 Aj(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 Aj(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 Aj(i,{dot:!0}))}this.iterator=Vvt(qvt(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 Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)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[,F]=w;return F.replace(/\s/g,"").split(b1).map(q=>q.replace(Q1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Mp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function Bo(Hh,...mI){if(Hh)return Pe?xn(Hh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Op=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Op):Mt._tasks.push(Op),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Hh,mI)=>{Ir=Hh,xn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],Bo=V.indexOf(xn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Pp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var xn=te(yo(Ue));F(be,xn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Mt}function lI(Q,B){return Mp(Q,1,B)}function Lp(Q,B,w){return Mp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var Sa=m(Io,4);function Up(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=Au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[cu]}}function w1(...Q){return Up(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(IDe=global[rs]||[],BDe(vr,IDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||yDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,L_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),yDe()}return Object.defineProperty(e,L_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var IDe;global[rs]||BDe(global,vr[rs]);fj.exports=dj(t_t(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(fj.exports=dj(vr),vr.__patched=!0);function dj(t){Zvt(t),t.gracefulify=dj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?cC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?cC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=e_t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function cC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),hj()}var M_;function yDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);hj()}function hj(){if(clearTimeout(M_),M_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("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?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}M_===void 0&&(M_=setTimeout(hj,0))}}});var U_=E((d1r,bDe)=>{"use strict";var zA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";zA.writable=t=>zA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";zA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};tve.exports={AggregateError:Kj,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 $j=E((BSr,rve)=>{"use strict";rve.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 Is=E((bSr,ive)=>{"use strict";var{format:QUt,inspect:nF}=$j(),{AggregateError:wUt}=Tr(),SUt=globalThis.AggregateError||wUt,NUt=Symbol("kIsNodeError"),TUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xUt=/^([A-Z][a-z0-9]*)+$/,RUt="__node_internal_",sF={};function ap(t,e){if(!t)throw new sF.ERR_INTERNAL_ASSERTION(e)}function nve(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 DUt(t,e,r){if(typeof e=="function")return ap(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 ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:QUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(DUt(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[NUt]=!0,sF[t]=n}function sve(t){let e=RUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function kUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new SUt([e,t],e.message);return r.code=e.code,r}return t||e}var Xj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new sF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(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)ap(typeof c=="string","All expected entries have to be of type string"),TUt.includes(c)?s.push(c.toLowerCase()):xUt.test(c)?i.push(c):(ap(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+=RX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=RX(" "+s+"="+n[s]+`
`);return kt.from(r)};jC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.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};jC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.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 kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&qYt,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),KYt(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=kM+zYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(NOe,r,f1),kt.copy(OYt,r,DX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(xOe(r),6),148),r)};jC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kM,i=zC(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=JYt(s),d=e[157]===0?null:zC(e,157,100,r),h=zC(e,265,32),f=zC(e,297,32),p=Dh(e,329,8),I=Dh(e,337,8),m=xOe(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(YYt(e))e[345]&&(i=zC(e,345,155,r)+"/"+i);else if(!VYt(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function YYt(t){return kt.equals(NOe,t.subarray(f1,f1+6))}function VYt(t){return kt.equals(HYt,t.subarray(f1,f1+6))&&kt.equals(GYt,t.subarray(DX,DX+2))}function WYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function JYt(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 zYt(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 TOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function xOe(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 kh(t,e){return t=t.toString(8),t.length>e?PYt.slice(0,e)+" ":UYt.slice(0,e-t.length)+t+" "}function jYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function KYt(t,e,r){t.toString(8).length>11?jYt(t,e,r):kt.write(e,kh(t,11),r)}function $Yt(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 Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return $Yt(t);{for(;e<t.length&&t[e]===32;)e++;let n=WYt(TOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function zC(t,e,r,n){return kt.toString(t.subarray(e,TOe(t,0,e,e+r)),n)}function RX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var _Oe=E((jTr,vOe)=>{var{Writable:XYt,Readable:ZYt,getStreamError:ROe}=xX(),eVt=fX(),DOe=qC(),KC=kX(),tVt=DOe.alloc(0),_X=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new eVt,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 tVt;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 DOe.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)}},FX=class extends ZYt{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(ROe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=kOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},MX=class extends XYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Rce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",z1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},bc(e))}function Xl(t){process.exitCode=kO.Failure,Pi(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",V1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ta("warning",V1(e),t instanceof Error?t.toString():t)}function FO(t,e={}){Ta("notice",V1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function Dce(t){ZM("group",t)}function kce(){ZM("endgroup")}function ZN(t,e){return Kje(this,void 0,void 0,function*(){Dce(t);let r;try{r=yield e()}finally{kce()}return r})}function Lc(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",z1(t,e));Ta("save-state",{name:t},bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as lz from"fs";import*as dz from"path";import*as y_ from"os";import{readFileSync as $je,existsSync as Xje}from"fs";import{EOL as Zje}from"os";var Lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Xje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse($je(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${Zje}`)}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 PO=fe(Lce(),1),Uce=fe(YN(),1),dKe=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 Pce(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 Oce(t){return new PO.HttpClient().getAgent(t)}function hKe(t){return new PO.HttpClient().getAgentDispatcher(t)}function Hce(t){let e=hKe(t);return(n,s)=>dKe(this,void 0,void 0,function*(){return(0,Uce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Gce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function OO(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 Zl(){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 oT(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)=>oT.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 qce(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 Yce(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 Vce=Function.bind,Wce=Vce.bind(Vce);function Jce(t,e,r){let n=Wce(Yce,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]=Wce(qce,null).a Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var t$e=class extends Error{constructor(t,e,r){super(e$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)}name="GraphqlResponseError";errors;data},r$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n$e=["query","method","url"],EAe=/\/api\/v3\/?$/;function s$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(n$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)=>r$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 EAe.test(i)&&(s.url=i.replace(EAe,"/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 t$e(s,a,o.data)}return o.data.data})}function jO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>s$e(r,s,i),{defaults:jO.bind(null,r),endpoint:r.endpoint})}var kzt=jO(Sy,{headers:{"user-agent":`octokit-graphql.js/${ZKe} ${Zl()}`},method:"POST",url:"/graphql"});function CAe(t){return jO(t,{method:"POST",url:"/graphql"})}var KO="(?:[a-zA-Z0-9_-]+)",IAe="\\.",yAe=new RegExp(`^${KO}${IAe}${KO}${IAe}${KO}$`),i$e=yAe.test.bind(yAe);async function o$e(t){let e=i$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 a$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function c$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=a$e(t),e(s)}var BAe=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(o$e.bind(null,e),{hook:c$e.bind(null,e)})};var $O="7.0.6";var bAe=()=>{},A$e=console.warn.bind(console),u$e=console.error.bind(console);function l$e(t={}){return typeof t.debug!="function"&&(t.debug=bAe),typeof t.info!="function"&&(t.info=bAe),typeof t.warn!="function"&&(t.warn=A$e),typeof t.error!="function"&&(t.error=u$e),t}var QAe=`octokit-core.js/${$O} ${Zl()}`,AT=class{static VERSION=$O;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 zce.Collection,n={baseUrl:Sy.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} ${QAe}`:QAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=CAe(this.request).defaults(n),this.log=l$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=BAe(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 XO="17.0.0";var d$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/{secret_name}"],createOrgVaria 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 Dy(i));return n.searchPaths.push(...o3(n.patterns)),n})}static stat(e,r,n){return l3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield qm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 qm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield qm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var W$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 tue(t,e){return W$e(this,void 0,void 0,function*(){return yield gT.create(t,e)})}var Jle=fe(Uy(),1);import*as DT from"crypto";import*as Jm from"fs";import*as yf from"path";import*as zle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var xT=2,RT=5e3,k3=5e3,v3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Wle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",_3="manifest.txt",wKt=10*Math.pow(1024,3);var Wm=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())})},rtt=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)}},ntt="1.0";function Hy(){return Wm(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=yf.join(n,"actions","temp")}let r=yf.join(e,DT.randomUUID());return yield df(r),r})}function Pc(t){return Jm.statSync(t).size}function F3(t){return Wm(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 tue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=rtt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`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 Gy(t){return Wm(this,void 0,void 0,function*(){return zle.promisify(Jm.unlink)(t)})}function jle(t){return Wm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Pa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Wm(this,void 0,void 0,function*(){let t=yield jle("zstd",["--quiet"]),e=Jle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function sd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function Kle(){return Wm(this,void 0,void 0,function*(){return Jm.existsSync(v3)?v3:(yield jle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function M3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ntt),DT.createHash("sha256").update(n.join("|")).digest("hex")}function $le(){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 Q0 from"fs";import{URL as Oct}from"url";var Oc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as stt}from"node:os";import itt from"node:util";import ott from"node:process";function Xle(t,...e){ott.stderr.write(`${itt.format(t,...e)}${stt}`)}import Yy from"node:process";function vT(t){return Yy.env[t]}var Zle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,ede=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,_T=!0;var tde=vT("DEBUG"),nde,L3=[],U3=[],FT=[];tde&&P3(tde);var sde=Object.assign(t=>ide(t),{enable:P3,enabled:O3,disable:att,log:Xle});function P3(t){nde=t,L3=[],U3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?U3.push(r.substring(1)):L3.push(r);for(let r of FT)r.enabled=O3(r.namespace)}function O3(t){if(t.endsWith("*"))return!0;for(let e of U3)if(rde(t,e))return!1;for(let e of L3)if(rde(t,e))return!0;return!1}function rde(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 att(){let t=nde||"";return P3(""),t}function ide(t){let e=Object.assign(r,{enabled:O3(t),destroy:ctt,log:sde.log,namespace:t,extend:Att});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ctt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function Att(t){let e=ide(`${this.namespace}:${t}`);return e.log=this.log,e}var jm=sde;var H3=["verbose","info","warning","error"],ode={verbose:400,info:300,warning:200,error:100};function ade(t,e){e.log=(...r)=>{t.log(...r)}}function cde(t){return H3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=jm(t.namespace);s.log=(...u)=>{jm.log(...u)};function i(u){if(u&&!cde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${H3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);jm.enable(l.join(","))}r&&(cde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${H3.join(", ")}.`));function o(u){return!!(n&&ode[u.level]<=ode[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ade(u,d),o(d)){let h=jm.disable();jm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ade(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 Ade=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),utt=Ade.logger;function Vy(t){return Ade.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ltt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*dtt(t){for(let e of t.values())yield[e.name,e.value]}var G3=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(LT(e),{name:e,value:ltt(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ptt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Km(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import W3 from"node:http";import J3 from"node:https";import dde from"node:zlib";import{Transform as mtt}from"node:stream";var si=Vy("ts-http-runtime");var Ett={};function Wy(t){return t&&typeof t.pipe=="function"}function hde(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 fde(t){return t&&typeof t.byteLength=="number"}var OT=class extends mtt{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}},z3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Oc("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 Va;si.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=Btt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new OT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Ctt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ytt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=hde(a));let u=Promise.resolve();Wy(c)&&(u=hde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?W3.request(a,c):J3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Oc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):fde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?W3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new W3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return J3.globalAgent;let s=e.tlsSettings??Ett,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new J3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Ctt(t){let e=Gi();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 Itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dde.createInflate();return t.pipe(n),n}return t}function ytt(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Btt(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:fde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function gde(){return new z3}function HT(){return gde()}var j3="logPolicy";function GT(t={}){let e=t.logger??si.info,r=new Va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:j3,asy Line truncated
`;return e}function qrt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function Yrt(t){let e=0;for(let r of t){let n=qrt(r);if(n===void 0)return;e+=n}return e}async function Vrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Grt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=Yrt(n);s&&t.headers.set("Content-Length",s),t.body=await ahe(n)}var Ky="multipartPolicy",Wrt=70,Jrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zrt(t){if(t.length>Wrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Jrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:Ky,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?zrt(r):r=Hrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Vrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var che=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ner=che.logger;function Lo(t){return che.createClientLogger(t)}var Gc=Lo("core-rest-pipeline");function h8(t={}){return GT({logger:Gc.info,...t})}var f8=cx;function g8(t={}){return Ax(t)}import p8 from"node:os";import ad from"node:process";function Ahe(){return"User-Agent"}async function uhe(t){if(ad&&ad.versions){let e=`${p8.type()} ${p8.release()}; ${p8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var dx="1.24.0";function rnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function lhe(){return Ahe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await uhe(e);let r=rnt(e);return t?`${t} ${r}`:r}var dhe=lhe(),hhe="userAgentPolicy";function m8(t={}){let e=hx(t.userAgentPrefix);return{name:hhe,async sendRequest(r,n){return r.headers.has(dhe)||r.headers.set(dhe,await e),n(r)}}}var fhe=Symbol("rawContent");function E8(t){return typeof t[fhe]=="function"}function ghe(t){return E8(t)?t[fhe]():t}var fx=Ky;function C8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)E8(n.body)&&(n.body=ghe(n.body));return t.sendRequest(e,r)}}}var I8=ox;function y8(){return ax()}function B8(t={}){return VT(t)}function b8(){return WT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Q8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(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 lnt="The delay was aborted.";function r0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Q8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??lnt})}function cd(t){if(bf(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 phe(t){return bf(t)}function n0(){return Bf()}var Wt=_T;function Ad(t){return A8(t)}function S8(t,e){return ix(t,e)}var mhe="setClientRequestIdPolicy";function N8(t="x-ms-client-request-id"){return{name:mhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function T8(t){return JT(t)}function x8(t){return zT(t)}var s0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Ehe(t={}){let e=new R8(t.parentContext);return t.span&&(e=e.setValue(s0.span,t.span)),t.namespace&&(e=e.setValue(s0.namespace,t.namespace)),e}var R8=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 Ihe=fe(Che(),1),px=Ihe.state;function dnt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function hnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:dnt(),tracingContext:Ehe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return px.instrumenterImplementation||(px.instrumenterImplementation=hnt()),px.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span 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--),!Fst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=Rst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=tfe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=tfe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=efe(t,i);continue}else if(t[i+1]==="?"){if(i=Zhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=vst(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Xhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Xhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Xhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Zhe(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function efe(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 Tst='"',xst="'";function Rst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Tst||t[e]===xst)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 Dst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function tfe(t,e){let r=wx(t,Dst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!_st(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function kst(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 vst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kst(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 Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function _st(t){return z8(t)}function Fst(t){return z8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var rfe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},nfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},sfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(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=u0(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=r4(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(),n="",a=u}else if(A===63){let u=n4(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 ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=u0(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){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=u0(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=n4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=r4(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 I=r;I&&s.unpairedTagsSet.has(I.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,y={},N;N=ait(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=oit(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=r4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function hit(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 fit(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 git(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 pit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function mit(t,e,r=">"){Line truncated
`;function wit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(A4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Rfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function c4(t,e){let r="";e.format&&(r=Qit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=wit(t,e),i=new Vc;return Dfe(t,e,r,i,n,s)}function Dfe(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=t.toString();return c=a4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=A4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Rfe(u,!1,e,n,i),h=Sit(A[":@"],e);n.push(d,h);let f=Tit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=a4(y,e)),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],N=Mx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Fx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=xfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=xfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=kfe(A[u],e):C=Dfe(A[u],e,p,n,s,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,n.pop()}return o}function Sit(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]=dd(t[s]),n=!0}return n?r:null}function kfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=A4(s);if(i===e.textNodeName)r+=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=Nit(s[":@"],e),a=kfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Nit(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)}="${dd(s)}"`}return r}function A4(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 xfe(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:Rfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=a4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function Tit(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 a4(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 u4(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 xit={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 ui(t){if(this.options=Object.assign({},xit,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 Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Rit(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 l4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return c4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vc,r=Rit(t,this.options);return this.j2x(t,0,e,r).val}};ui.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:l4(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=l4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+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 p=t[c][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 I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+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&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=l4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+dd(e)+'"'};function Dit(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)}ui.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]=dd(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]=dd(t[n]),r=!0)}return r?e:null};ui.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.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(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=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(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 Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return qit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Lo("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yit=new _f("The operation was aborted."),EB=class extends Wc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.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=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(En.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(En.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 En.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 En.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 En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.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')?(En.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 Uo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Yit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Vit="storageBrowserPolicy";function Lfe(){return{name:Vit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Wit="StorageCorrectContentLengthPolicy";function Ufe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Wit,async sendRequest(e,r){return t(e),r(e)}}}var Jit="storageRetryPolicy",d0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jit=new _f("The operation was aborted.");function Pfe(t={}){let e=t.retryPolicyType??d0.retryPolicyType,r=t.maxTries??d0.maxTries,n=t.retryDelayInMs??d0.retryDelayInMs,s=t.maxRetryDelayInMs??d0.maxRetryDelayInMs,i=t.secondaryHost??d0.secondaryHost,o=t.tryTimeoutInMs??d0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of zit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Kit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(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=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(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:$it,async sendRequest(i,o){return e(i),o(i)}}}var Xit="storageRequestFailureDetailsParserPolicy";function Ofe(){return{name:Xit,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 Zit}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Zit("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Wa="",m4="*",eot=1*1024*1024;var tot=4*eot;var Hfe="AES256",Gfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",qfe=["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"],Yfe=["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"],Vfe="BlobUsesCustomerSpecifiedEncryption",Wfe="BlobDoesNotUseCustomerSpecifiedEncryption",Jfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function rot(t){let e=[not,zfe,sot,iot,oot,aot,Aot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>cot(s));return{wrappedPolicies:W8(r),afterRetry:n}}}}function E4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?J8(e):g4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:qfe,additionalAllowedQueryParameters:Yfe,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:h4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:I8}),s.addPolicy(Ufe()),s.addPolicy(Pfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ofe()),s.addPolicy(Lfe());let a=rot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=C4(t);Yi(c)?s.addPolicy(i0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new $a(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 nct(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 sct(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 ict(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ka(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 $a(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 oct(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(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 $a(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 act(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(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 $a(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 cct(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ka(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 $a(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 Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:Kx;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 kB=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=n0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(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!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};B0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=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"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Dct=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())})},WH=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);$(`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 ape(t,e,r){return Dct(this,void 0,void 0,function*(){var n;let s=new Xa(t),i=s.getBlockBlobClient(),o=new WH((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(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Ape from"buffer";import*as lA from"fs";import*as upe from"stream";import*as lpe from"util";var WR=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 JR(t){return t?t>=200&&t<300:!1}function kct(t){return t?t>=500:!0}function vct(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function _ct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function cpe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=xT,a=RT,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),!kct(d)))return l;if(d&&(h=vct(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield _ct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield cpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function b0(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield cpe(r,n,o=>o.message.statusCode,s,i)})}var qo=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 Fct(t,e){return qo(this,void 0,void 0,function*(){yield lpe.promisify(upe.pipeline)(t.message,e)})}var zR=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,H(`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);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function KH(t,e,r){return di(this,void 0,void 0,function*(){let n=new Oct(t),s=gpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield hpe(t,e,s):s.concurrentBlobDownloads?yield dpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Bpe(t,e,r){return di(this,void 0,void 0,function*(){let n=jH(),s=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function Ipe(t,e){return`bytes ${t}-${e}/*`}function Yct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ipe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ipe(n,s)},o=yield b0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Vct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Pc(r),i=qB(`caches/${e.toString()}`),o=Q0.openSync(r,"r"),a=JH(n),c=M3("uploadConcurrency",a.uploadConcurrency),A=M3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(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 Yct(t,i,()=>Q0.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{Q0.closeSync(o)}})}function Wct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function $H(t,e,r,n){return di(this,void 0,void 0,function*(){if(JH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ape(r,e,n)}else{let i=jH();H("Upload cache"),yield Vct(i,t,e,n),H("Commiting cache");let o=Pc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Wct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var gme=fe(G9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var W9=fe(At(),1),J9=fe(At(),1),dme=fe(At(),1),hme=fe(At(),1),fme=fe(At(),1);var q9=fe(At(),1),Y9=fe(At(),1),Ame=fe(At(),1),ume=fe(At(),1),lme=fe(At(),1),V9=class extends lme.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,ume.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ame.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?Y9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,q9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,q9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Y9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new V9;var z9=class extends fme.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:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,hme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dme.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(MD.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?J9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,W9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,W9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?J9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield AG(r,"create");yield uG(n,t)})}var O0=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())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Cme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function hG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function Ime(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),Cme(s),A==="v2"?yield Alt(s,i,o,a,c):yield clt(s,i,o,a,c)})}function clt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)hG(d);let u=yield qy(),l="";try{let d=yield ype(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),sd(u)),H(`Archive Path: ${l}`),yield KH(d.archiveLocation,l,a),Oa()&&(yield sb(l,u));let h=Pc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield lG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Alt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)hG(l);let u="";try{let l=cG(),d=yield qy(),h={key:i,restoreKeys:o,version:zm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),sd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield KH(f.signedDownloadUrl,u,a);let I=Pc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield sb(u,d)),yield lG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof Fc&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),Cme(n),hG(s),a==="v2"?yield llt(n,s,i,o):yield ult(n,s,i,o)})}function ult(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield F3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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 p=yield Hy(),I=ib.join(p,sd(d));H(`Archive Path: ${I}`);try{yield dG(p,f,d),Oa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Pc(I);if(H(`File Size: ${C}`),C>m&&!zH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield Bpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new bd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield $H(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===bd.name Line truncated
See ${r.getDocumentationLink()}`;yme.push(n),Xl(n)}function bme(){Lc("deprecation-collector_deprecations",JSON.stringify(gG)),Lc("deprecation-collector_errors",JSON.stringify(yme))}import*as YD from"path";var Qme="GRADLE_ACTION_ID";var zD=".setup-gradle",ab=class t{getDependencyGraphOption(){let e=dr("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 mA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return flt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,wme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(Yu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new VD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`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 H0=class{isCacheDisabled(){return Ime()?mA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&mA("cache-read-only")}isCacheWriteOnly(){return mA("cache-write-only")}isCacheOverwriteExisting(){return mA("cache-overwrite-existing")}isCacheStrictMatch(){return mA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ob("gradle-home-cache-cleanup");if(e!==void 0)return qD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("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 dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var tc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return mA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ob("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ob("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ob("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ob("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new VD}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:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},VD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},WD=class{getGradleVersion(){re 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 fb(i));return n.searchPaths.push(...IG(n.patterns)),n})}static stat(e,r,n){return NG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Y0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 Y0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Y0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as TG from"crypto";import*as t2 from"fs";import*as Zme from"stream";import*as e0e from"util";import*as t0e from"path";var Rdt=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())})},Ddt=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 r0e(t,e){return Rdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=TG.createHash("sha256"),f=0;try{for(var p=!0,I=Ddt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${t0e.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(t2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=TG.createHash("sha256");yield e0e.promisify(Zme.pipeline)(t2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}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 n0e=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 xG(t,e){return n0e(this,void 0,void 0,function*(){return yield ZD.create(t,e)})}function s0e(t){return n0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield xG(e,{followSymbolicLinks:i});return r0e(o,r,s)})}import*as RG from"path";var kdt="Gradle User Home",o0e="BASIC_CACHE_PRIMARY_KEY",a0e="BASIC_CACHE_RESTORED_KEY",vdt="setup-java",c0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=A0e(e),s=await _dt();Lc(o0e,s);try{let i=await OD(n,s);i?(Lc(a0e,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(o0e),i=by(a0e);if(n.readOnly)return{status:"read-only",entries:[r2({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 $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=A0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[r2({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 Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function r2(t){return{entryName:kdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${c0e}], make sure you have checked out the target repository`);return`${vdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Mdt="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.",Ldt="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.",kG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function d0e(t){return t.isCacheDisabled()?(DG("Cache is disabled: will not restore state from previous builds."),new kG):t.getCacheProvider()==="basic"?(DG(Ldt),new n2):(DG(Mdt),Udt())}async function Udt(){let t=Pdt();return await import(Fdt(t).href)}function Pdt(){let t=import.meta.dirname,e=l0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(u0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function DG(t){console.info(t)}import s2 from"fs";import h0e from"path";var i2=class{constructor(e){this.cacheFile=h0e.resolve(e,zD,"valid-wrappers.json")}load(){if(s2.existsSync(this.cacheFile))try{return JSON.parse(s2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];s2.mkdirSync(h0e.dirname(this.cacheFile),{recursive:!0}),s2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var C0e=fe(m0e(),1);import*as E0e from"util";import*as o2 from"path";import*as a2 from"fs";var Vdt=E0e.promisify(a2.readdir);async function I0e(t){return(await y0e(t)).filter(r=>(0,C0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>o2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function y0e(t){let e=await Vdt(t),r=await Promise.all(e.map(async n=>{let s=o2.resolve(t,n),i=a2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?y0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Jdt={_useHtmlParser2:!1};function V0(t,e){if(!t)return e??Jdt;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 rq={};Na(rq,{contains:()=>B2,extract:()=>Hht,html:()=>Lht,merge:()=>Y0e,parseHTML:()=>Pht,root:()=>Oht,text:()=>lg,xml:()=>Uht});var kd={};Na(kd,{DocumentPosition:()=>Ko,append:()=>Cht,appendChild:()=>Eht,compareDocumentPosition:()=>O0e,existsOne:()=>U0e,filter:()=>K0,find:()=>E2,findAll:()=>bht,findOne:()=>C2,findOneChild:()=>Bht,getAttributeValue:()=>fht,getChildren:()=>j0,getElementById:()=>Nht,getElements:()=>Sht,getElementsByClassName:()=>Tht,getElementsByTagName:()=>ug,getElementsByTagType:()=>xht,getFeed:()=>tq,getInnerHTML:()=>hht,getName:()=>pht,getOuterHTML:()=>M0e,getParent:()=>L0e,getSiblings:()=>ZG,getText:()=>g2,hasAttrib:()=>ght,hasChildren:()=>tr,innerText:()=>Ib,isCDATA:()=>W0,isComment:()=>Ag,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>p2,prepend:()=>yht,prependChild:()=>Iht,prevElementSibling:()=>m2,removeElement:()=>Ku,removeSubsets:()=>Rht,replaceElement:()=>mht,testElement:()=>wht,textContent:()=>ju,uniqueSort:()=>Rd});var zo={};Na(zo,{CDATA:()=>HG,Comment:()=>LG,Directive:()=>MG,Doctype:()=>GG,ElementType:()=>bt,Root:()=>_G,Script:()=>UG,Style:()=>PG,Tag:()=>OG,Text:()=>FG,isTag:()=>vG});var bt;(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"})(bt||(bt={}));function vG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var _G=bt.Root,FG=bt.Text,MG=bt.Directive,LG=bt.Comment,UG=bt.Script,PG=bt.Style,OG=bt.Tag,HG=bt.CDATA,GG=bt.Doctype;var c2=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 J0(this,e)}},pb=class extends c2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},CA=class extends pb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends pb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends pb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},mb=class extends c2{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.le Line truncated
`:g2(t.children):W0(t)?g2(t.children):pi(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):tr(t)&&!Ag(t)?ju(t.children):pi(t)?t.data:""}function Ib(t){return Array.isArray(t)?t.map(Ib).join(""):tr(t)&&(t.type===bt.Tag||W0(t))?Ib(t.children):pi(t)?t.data:""}function j0(t){return tr(t)?t.children:[]}function L0e(t){return t.parent||null}function ZG(t){let e=L0e(t);if(e!=null)return j0(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 fht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function ght(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function pht(t){return t.name}function p2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function m2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(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 mht(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 Eht(t,e){if(Ku(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 Cht(t,e){Ku(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 Iht(t,e){if(Ku(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 yht(t,e){Ku(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 K0(t,e,r=!0,n=1/0){return E2(t,Array.isArray(e)?e:[e],r,n)}function E2(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Bht(t,e){return e.find(t)}function C2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=C2(t,i.children,!0);if(o)return o}}return null}function U0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&U0e(t,r.children))}function bht(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]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var I2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(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=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function eq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Qht(t,e){return r=>t(r)||e(r)}function P0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(I2,r)?I2[r](n):eq(r,n)});return e.length===0?null:e.reduce(Qht)}function wht(t,e){let r=P0e(t);return r?r(e):!0}function Sht(t,e,r,n=1/0){let s=P0e(t);return s?K0(s,e,r,n):[]}function Nht(t,e,r=!0){return Array.isArray(e)||(e=[e]),C2(eq("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return K0(I2.tag_name(t),e,r,n)}function Tht(t,e,r=!0,n=1/0){return K0(eq("class",t),e,r,n)}function xht(t,e,r=!0,n=1/0){return K0(I2.tag_type(t),e,r,n)}function Rht(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 Ko;(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"})(Ko||(Ko={}));function O0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(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 Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=O0e(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function tq(t){let e=y2(Fht,t);return e?e.name==="feed"?Dht(e):kht(e):null}function Dht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:H0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=y2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("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 Zo=fe(vd(),1);var Eq={};function Cq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Iq(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 mq(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 pq=(t,e,r,n,s)=>{let i=s(e,mq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},_2={is:pq,matches:pq,where:pq,not(t,e,r,n,s){let i=s(e,mq(r),n);return i===Zo.default.falseFunc?t:i===Zo.default.trueFunc?Zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=mq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Nb))?[Eq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=Cq(c,i);if(a&&c!==Zo.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,...Iq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function xEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:v2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,TEe.parse)(A);return _2.is(t,u,r,n,s)}if(typeof c=="function")return gq(c,o,a,1),u=>c(u,a)&&t(u);if(o in iE)return iE[o](t,a,r,n);if(o in xb){let u=xb[o];return gq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=fe(nE(),1);function yq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function REe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.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()),QEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return xEe(t,e,r,n,s);case ea.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 ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=yq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=yq(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=yq(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.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 ea.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 ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function DEe(t,e,r){let n=F2(t,e,r);return Cq(n,e.adapter)}function F2(t,e,r){let n=typeof t=="string"?(0,ic.parse)(t):t;return M2(n,e,r)}function kEe(t){return t.type===ic.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(kEe)))}var Sft={type:ic.SelectorType.Descendant},Nft={type:"_flexibleDescendant"},Tft={type:ic.SelectorType.Pseudo,name:"scope",data:null};function xft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Eq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(zEe,`\r
`)}}).toArray()}var Lq={};Na(Lq,{extract:()=>Ygt});function qgt(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 Ygt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=qgt(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 Md=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}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,uq,vq,_q,Fq,Mq,Lq);function jEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=V0(s),a=t(n,o,i,null);class c extends Md{_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&&$o(u))return u;let f=V0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&yb(u)?t(u,f,!1,null).children:Vgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?yb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,rq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Vgt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Wgt=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]),ur="\uFFFD",S;(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"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function G2(t){return t>=55296&&t<=57343}function KEe(t){return t>=56320&&t<=57343}function $Ee(t,e){return(t-55296)*1024+9216+e}function q2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Y2(t){return t>=64976&&t<=65007||Wgt.has(t)}var W;(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(`
`)}`}},I_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function bxe(t){if(t instanceof AggregateError){Xl("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof $g?(Xl(String(t)),t.stack&&$(t.stack)):(Xl(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Qxe(t,e,r){if(!t.doValidateWrappers())return;let n=new i2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Bxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await ZN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new $g(`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 ho from"fs";import Xg from"path";function wxe(t,e,r){let n=Xg.resolve(e,zD);ho.mkdirSync(n,{recursive:!0}),Bkt(e),bkt(t),Oa()&&Qkt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function Bkt(t){let e=Xg.resolve(t,"init.d");ho.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=wkt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function bkt(t){let e=Skt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=Nkt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function Qkt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function wkt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function Skt(){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,132 +280,72 @@ ${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 Nkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var uz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Tkt="GRADLE_USER_HOME",xkt="DEVELOCITY_CACHE_TOKEN";async function Sxe(t,e,r){let n=await Nxe(),s=await Dkt();if(process.env[uz])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;pn(uz,!0),Lc(uz,!0),Lc(Tkt,s),wxe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await xme(e);return Lc(xkt,o??""),await(await d0e(t)).restore(s,Rkt(t,i,o)),await Qxe(r,Yu(),s),Nme(e),!0}function Rkt(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 Dkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yu();return dz.resolve(r,t)}let e=dz.resolve(await Nxe(),".gradle");if(lz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(y_.platform()==="win32"&&e.startsWith("C:\\")&&lz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function Nxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),y_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var fRe=fe(qxe(),1),mz=fe(Uy(),1);import*as tC from"fs";import*as oRe from"os";import*as hh from"path";import*as gz from"crypto";import*as ep from"fs";var Vkt=fe(Uy(),1);import*as ZQ from"path";var Q_=fe(Uy(),1);import*as Vxe from"stream";import*as Wxe from"util";import{ok as Jkt}from"assert";var Yxe=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())})},B_=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 Yxe(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;$(i.message)}let s=this.getSleepAmount();$(`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 Yxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=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())})},b_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},zkt=process.platform==="win32",ZQr=process.platform==="darwin",jkt="actions/tool-cache";function Jxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ZQ.join(jxe(),gz.randomUUID()),yield df(ZQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=fz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=fz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new B_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield Kkt(t,e||"",r,n)}),c=>!(c instanceof b_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Kkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(jkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new b_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Wxe.promisify(Vxe.pipeline),c=fz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield Ice(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function zxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter Line truncated
`," Line feed \\n"]]),NRe=new Map([...Zz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function TRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of NRe)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(NRe.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.`);$("Artifact name is valid!")}function ej(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Zz)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(Zz.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 kRe=fe(DRe(),1);function VA(){return`@actions/artifact-${kRe.version}`}var iC=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"}},pl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ml=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=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"}},El=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"}};El.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=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"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function bvt(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 Qvt(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 bvt(e)}catch{return atob(e)}}function vRe(t,e){if(typeof t!="string")throw new np("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 np(`Invalid token specified: missing part #${r+1}`);let s;try{s=Qvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var x_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function WA(){let t=N_(),e=vRe(t);if(!e.scp)throw x_;let r=e.scp.split(" ");if(r.length===0)throw x_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw x_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw x_}function _Re(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ro(r),Ro(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function FRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&_Re(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&_Re(t.signed_url)}var R_=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())})},tj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=N_();this.baseUrl=pRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new wu(i)])}request(e,r,n,s){return R_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>R_(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 R_(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(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(FRe(A),H(`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(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(El.isNetworkErrorCode(a?.code))throw new El(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);$(`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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return R_(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 JA(t){let e=new tj(VA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new T_(e)}import*as oC from"fs";import{normalize as MRe,resolve as LRe}from"path";function URe(t){if(!oC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("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);$(`Redirecting to blob download url: ${j3e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield K3e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function Z3e(){return eI(this,arguments,void 0,function*(t=mRe()){return(yield t7t(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield Y3e.mkdir(t,{recursive:!0})),t})}var n7t=5,s7t=[400,401,403,404,422];function tI(t,e=n7t,r=s7t){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 H(`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 e8e="6.0.0";function kp(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})})}kp.VERSION=e8e;var n8e=fe(t8e(),1);var LM=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 i7t="0.0.0-development";async function r8e(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 o7t(t,e,r,n){let s=new n8e.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(a7t.bind(null,t,e,r),n)}async function a7t(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 LM(s.data.errors[0].message,500,{request:n,response:s});return r8e(t,e,i,n)}return s}function vp(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",r8e.bind(null,r,t)),t.hook.wrap("request",o7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=i7t;var s8e=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 UM(t,e,r,n,s){return s8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,vp,kp).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 pl(`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 ml(`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],H(`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 i8e(t){return s8e(this,void 0,void 0,function*(){var e;let r=JA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=WA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ml(`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],H(`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?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var o8e=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 a8e(t,e,r,n,s){return o8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},A=Ha(s,c,vp,kp),u=yield UM(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 pl(`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 c8e(t){return o8e(this,void 0,void 0,function*(){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ml(`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],H(`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 $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var A8e=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())})},PM=IRe(),OM=100,c7t=Math.ceil(PM/OM);function u8e(t,e,r,n){return A8e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=tI(gf),d={log:void 0,userAgent:VA(),previews:void 0,retry:u,request:l},h=Ha(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f}),I=Math.ceil(p.total_count/OM),m=p.total_count;m>PM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${PM}. Results will be incomplete as only the first ${PM} artifacts will be returned`),I=c7t);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f});for(let y of C.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=d8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function l8e(){return A8e(this,arguments,void 0,function*(t=!1){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),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?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=d8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function d8e(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 y1=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())})},A7t=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},_p=class{uploadArtifact(e,r,n,s){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;return A3e(e,r,n,s)}catch(i){throw Ve(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=A7t(r,["findBy"]);return $3e(e,n,s,i,o)}return X3e(e,r)}catch(n){throw Ve(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return u8e(r,n,s,i,e?.latest)}return l8e(e?.latest)}catch(r){throw Ve(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return i8e(e)}catch(n){throw Ve(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return a8e(e,i,n,s,o)}return c8e(e)}catch(n){throw Ve(`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 jRr=new _p;import*as HM from"path";import $X from"fs";var f8e="dependency-graph_";async function g8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await l7t(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",I7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function p8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await h8e(t,!1);return;case"generate-submit-and-upload":await h8e(t,!0);return;case"generate-and-upload":await d7t(t)}}catch(r){E8e(t,e,r)}}async function l7t(t){if(eZ()){$("Dependency graph not supported in the ACT environment.");return}try{await m8e(await h7t(t))}catch(e){E8e(t,"download-and-submit",e)}}async function h8e(t,e){if(eZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await XX();try{await m8e(r)}catch(n){try{await KX(r,t)}catch(s){$(String(s))}throw n}e&&await KX(r,t)}async function d7t(t){if(eZ()){$("Dependency graph not supported in the ACT environment.");return}await KX(await XX(),t)}async function h7t(t){let e=ri.payload.workflow_run?{token:jD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new _p,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(f8e)),s=t.getDownloadArtifactName();s&&($(`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});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return XX()}async function XX(){let r=(await(await xG(`${p7t()}/**/*.json`)).glob()).filter(n=>!m7t(n));return r.forEach(E7t),$(`Found dependency graph files: ${r.join(", ")}`),r}async function KX(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Yu(),n=new _p;for(let s of t){let i=ZX(s);$(`Uploading dependency graph file: ${i}`);let o=`${f8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function m8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await g7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=f7t(e,r)),r}}function f7t(t,e){let n=`Dependency submission failed for ${ZX(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 g7t(t){let e=C7t(),r=$X.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=ZX(t);FO(`Submitted ${i}: ${s.data.message}`)}function p7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function m7t(t){let e=`${t}.processed`;return $X.existsSync(e)}function E7t(t){let e=`${t}.processed`;$X.writeFileSync(e,"")}function E8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function C7t(){return Ha(jD())}function ZX(t){let e=Yu();return HM.relative(e,t)}function I7t(){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 eZ(){return process.env.ACT!==void 0}function tZ(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(B7t(o[1],o[6],o[0]));while(o!==null);return i}function B7t(){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 b7t(t=process.platform){return t==="win32"?50:0}async function C8e(t=process.platform){let e=b7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function Q7t(){try{Sme("gradle/actions/dependency-submission"),await Sxe(new H0,new tc,new JD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ab;if(await g8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new WD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.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=tZ(i);await gRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await p8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),bme()}catch(t){bxe(t)}await C8e()}Q7t();export{Q7t 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> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -578,5 +414,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@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 *)
*/
//# 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": ";s1BAAA,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
}
+208 -335
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 Wfe=Object.create;var xS=Object.defineProperty;var zfe=Object.getOwnPropertyDescriptor;var Kfe=Object.getOwnPropertyNames;var Xfe=Object.getPrototypeOf,jfe=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 E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mi=(t,e)=>{for(var r in e)xS(t,r,{get:e[r],enumerable:!0})},Zfe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Kfe(e))!jfe.call(t,n)&&n!==r&&xS(t,n,{get:()=>e[n],enumerable:!(s=zfe(e,n))||s.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?Wfe(Xfe(t)):{},Zfe(e||!t||!t.__esModule?xS(r,"default",{value:t,enumerable:!0}):r,t));var s5=E(Cd=>{"use strict";var rot=w("net"),npe=w("tls"),FS=w("http"),e5=w("https"),ipe=w("events"),sot=w("assert"),ope=w("util");Cd.httpOverHttp=ape;Cd.httpsOverHttp=Ape;Cd.httpOverHttps=cpe;Cd.httpsOverHttps=upe;function ape(t){var e=new fa(t);return e.request=FS.request,e}function Ape(t){var e=new fa(t);return e.request=FS.request,e.createSocket=t5,e.defaultPort=443,e}function cpe(t){var e=new fa(t);return e.request=e5.request,e}function upe(t){var e=new fa(t);return e.request=e5.request,e.createSocket=t5,e.defaultPort=443,e}function fa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||FS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=r5(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)})}ope.inherits(fa,ipe.EventEmitter);fa.prototype.addRequest=function(e,r,s,n){var i=this,o=MS({request:e},i.options,r5(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)}})};fa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=MS({},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")),bA("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){bA("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){bA("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 bA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),bA(`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)}};fa.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 t5(t,e){var r=this;fa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=MS({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=npe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function r5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function MS(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 bA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?bA=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)}:bA=function(){};Cd.debug=bA});var US=E((iot,n5)=>{n5.exports=s5()});var Et=E((oot,i5)=>{i5.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 qe=E((aot,D5)=>{"use strict";var o5=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[o5]===!0}[o5]=!0},a5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),LS=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[a5]===!0}[a5]=!0},A5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),vS=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[A5]===!0}[A5]=!0},c5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),PS=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[c5]===!0}[c5]=!0},u5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),OS=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[u5]===!0}[u5]=!0},l5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),_S=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 N0e(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(u0e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function S0e(){return"allowed"}function T0e(){return"success"}function x0e(){return"success"}function D0e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function R0e(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&&RT(t.origin)&&!RT(Yf(t))&&(e=null);break;case"same-origin":LC(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function xd(t,e){return t}function k0e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:xd(t.domainLookupStartTime,r),domainLookupEndTime:xd(t.domainLookupEndTime,r),connectionStartTime:xd(t.connectionStartTime,r),connectionEndTime:xd(t.connectionEndTime,r),secureConnectionStartTime:xd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function F0e(t){return xd(f0e.now(),t)}function M0e(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 qH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U0e(t){return{referrerPolicy:t.referrerPolicy}}function L0e(t){let e=t.referrerPolicy;lu(e);let r=null;if(t.referrer==="client"){let a=PH();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=DT(r),n=DT(r,!0);s.toString().length>4096&&(s=n);let i=LC(t,s),o=Gf(s)&&!Gf(t.url);switch(e){case"origin":return n??DT(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=Yf(t);return LC(s,a)?s:Gf(s)&&!Gf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function DT(t,e){return lu(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 Gf(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 v0e(t,e){if(UC===void 0)return!0;let r=VH(e);if(r==="no metadata"||r.length===0)return!0;let s=O0e(r),n=_0e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=UC.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)),H0e(A,a))return!0}return!1}var P0e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function VH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=P0e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();_H.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function O0e(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 _0e(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 H0e(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 G0e(t){}function LC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Y0e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function q0e(t){return t.controller.state==="aborted"}function V0e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function J0e(t){return E0e[t.toLowerCase()]??t}function W0e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lu(typeof e=="string"),e}var z0e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function JH(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function bEe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function wEe(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 NEe(t,e){PC(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&&OC(t,yEe,i)||i.position===t.length-4&&OC(t,QEe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=SEe(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",bEe(u)||(u=""),h=new IEe([d],c,{type:u})):h=fEe(Buffer.from(d)),PC(n9(A)),PC(typeof h=="string"&&n9(h)||mEe(h)),n.push(EEe(A,h,c))}}function SEe(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=Rd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=PT(o,!0,!0,a=>a===9||a===32),!pEe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Rd(a=>a===32||a===9,t,e),gEe(o)){case"content-disposition":{if(r=s=null,!OC(t,BEe,e)||(e.position+=17,r=a9(t,e),r===null))return"failure";if(OC(t,o9,e)){let a=e.position+o9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=a9(t,e),s===null))return"failure"}break}case"content-type":{let a=Rd(A=>A!==10&&A!==13,t,e);a=PT(a,!1,!0,A=>A===9||A===32),n=i9(a);break}case"content-transfer-encoding":{let a=Rd(A=>A!==10&&A!==13,t,e);a=PT(a,!1,!0,A=>A===9||A===32),i=i9(a);break}default:Rd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function a9(t,e){PC(t[e.position-1]===34);let r=Rd(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 Rd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function PT(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 OC(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}A9.exports={multipartFormDataParser:NEe,validateBoundary:wEe}});var Md=E((kot,C9)=>{"use strict";var Jf=De(),{ReadableStreamFrom:TEe,isBlobLike:u9,isReadableStreamLike:xEe,readableStreamClose:DEe,createDeferredPromise:REe,fullyReadBody:kEe,extractMimeType:FEe,utf8DecodeBytes:h9}=Hs(),{FormData:l9}=Vf(),{kState:Fd}=wA(),{webidl:MEe}=Tr(),{Blob:UEe}=w("node:buffer"),OT=w("node:assert"),{isErrored:g9,isDisturbed:LEe}=w("node:stream"),{isArrayBuffer:vEe}=w("node:util/types"),{serializeAMimeType:PEe}=cs(),{multipartFormDataParser:OEe}=c9(),_T;try{let t=w("node:crypto");_T=e=>t.randomInt(0,e)}catch{_T=t=>Math.floor(Math.random(t))}var _C=new TextEncoder;function _Ee(){}var f9=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,p9;f9&&(p9=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!LEe(e)&&!g9(e)&&e.cancel("Response object has been garbage collected").catch(_Ee)}));function m9(t,e=!1){let r=null;t instanceof ReadableStream?r=t:u9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?_C.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>DEe(A))},start(){},type:"bytes"}),OT(xEe(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(vEe(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(Jf.isFormDataLike(t)){let A=`----formdata-undici-0${`${_T(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=_C.encode(c+`; name="${u(l(I))}"\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=_C.encode(`${c}; name="${u(l(I))}"`+(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=_C.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(u9(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(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:TEe(t)}if((typeof n=="string"||Jf.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(!g9(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 HEe(t,e=!1){return t instanceof ReadableStream&&(OT(!Jf.isDisturbed(t),"The body has already been consumed."),OT(!t.locked,"The stream is locked.")),m9(t,e)}function GEe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function YEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function qEe(t){return{blob(){return kd(this,r=>{let s=d9(this);return s===null?s="":s&&(s=PEe(s)),new UEe([r],{type:s})},t)},arrayBuffer(){return kd(this,r=>new Uint8Array(r).buffer,t)},text(){return kd(this,h9,t)},json(){return kd(this,JEe,t)},formData(){return kd(this,r=>{let s=d9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=OEe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new l9;return i[Fd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new l9;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 kd(this,r=>new Uint8Array(r),t)}}}function VEe(t){Object.assign(t.prototype,qEe(t))}async function kd(t,e,r){if(MEe.brandCheck(t,r),E9(t))throw new TypeError("Body is unusable: Body has already been read");YEe(t[Fd]);let s=REe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Fd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await kEe(t[Fd].body,i,n),s.promise)}function E9(t){let e=t[Fd].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}function JEe(t){return JSON.parse(h9(t))}function d9(t){let e=t[Fd].headersList,r=FEe(e);return r==="failure"?null:r}C9.exports={extractBody:m9,safelyExtractBody:HEe,cloneBody:GEe,mixinBody:VEe,streamRegistry:p9,hasFinalizationRegistry:f9,bodyUnusable:E9}});var D9=E((Fot,x9)=>{"use strict";var ce=w("node:assert"),Ce=De(),{channels:I9}=Bd(),HT=yT(),{RequestContentLengthMismatchError:du,ResponseContentLengthMismatchError:WEe,RequestAbortedError:N9,HeadersTimeoutError:zEe,HeadersOverflowError:KEe,SocketError:JC,InformationalError:Ud,BodyTimeoutError:XEe,HTTPParserError:jEe,ResponseExceededMaxSizeError:ZEe}=qe(),{kUrl:S9,kReset:us,kClient:VT,kParser:Tt,kBlocking:Kf,kRunning:Mr,kPending:$Ee,kSize:B9,kWriting:SA,kQueue:Ei,kNoRef:Wf,kKeepAliveDefaultTimeout:eCe,kHostHeader:tCe,kPendingIdx:rCe,kRunningIdx:wn,kError:Nn,kPipelining:qC,kSocket:Ld,kKeepAliveTimeoutValue:WC,kMaxHeadersSize:GT,kKeepAliveMaxTimeout:sCe,kKeepAliveTimeoutThreshold:nCe,kHeadersTimeout:iCe,kBodyTimeout:oCe,kStrictContentLength:JT,kMaxRequests:y9,kCounter:aCe,kMaxResponseSize:ACe,kOnError:cCe,kResume:NA,kHTTPContext:T9}=Et(),so=pH(),uCe=Buffer.alloc(0),HC=Buffer[Symbol.species],GC=Ce.addListener,lCe=Ce.removeAllListeners,YT;async function dCe(){let t=process.env.JEST_WORKER_ID?wT():void 0,e;try{e=await WebAssembly.compile(CH())}catch{e=await WebAssembly.compile(t||wT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onStatus(new HC(no.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(nr.ptr===r),nr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderField(new HC(no.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderValue(new HC(no.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(nr.ptr===r),nr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onBody(new HC(no.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(nr.ptr===r),nr.onMessageComplete()||0)}})}var qT=null,WT=dCe();WT.catch();var nr=null,no=null,YC=0,io=null,hCe=0,zf=1,vd=2|zf,VC=4|zf,zT=8|hCe,KT=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[GT])&&e[GT]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(so.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.header Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[tCe],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[qC]&&!h[us]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return I9.sendHeaders.hasSubscribers&&I9.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?b9(f,null,t,e,h,u,p,l):Ce.isBuffer(A)?b9(f,A,t,e,h,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?w9(f,A.stream(),t,e,h,u,p,l):CCe(f,A,t,e,h,u,p,l):Ce.isStream(A)?ECe(f,A,t,e,h,u,p,l):Ce.isIterable(A)?w9(f,A,t,e,h,u,p,l):ce(!1),!0}function ECe(t,e,r,s,n,i,o,a){ce(i!==0||r[Mr]===0,"stream body cannot be pipelined");let A=!1,c=new zC({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){Ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new N9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[SA]&&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")?Ce.destroy(e,f):Ce.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 b9(t,e,r,s,n,i,o,a){try{e?Ce.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[us]=!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[NA]()}catch(A){t(A)}}async function CCe(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 du;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[us]=!0),r[NA]()}catch(A){t(A)}}async function w9(t,e,r,s,n,i,o,a){ce(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)=>{ce(A===null),n[Nn]?h(n[Nn]):A=d});n.on("close",c).on("drain",c);let l=new zC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Nn])throw n[Nn];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var zC=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[SA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Nn])throw r[Nn];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[JT])throw new du;process.emitWarning(new du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[us]=!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[Tt].timeout&&r[Tt].timeoutType===vd&&r[Tt].timeout.refresh&&r[Tt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[SA]=!1,e[Nn])throw e[Nn];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[JT])throw new du;process.emitWarning(new du)}e[Tt].timeout&&e[Tt].timeoutType===vd&&e[Tt].timeout.refresh&&e[Tt].timeout.refresh(),s[NA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[SA]=!1,e&&(ce(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};x9.exports=gCe});var P9=E((Mot,v9)=>{"use strict";var Sn=w("node:assert"),{pipeline:ICe}=w("node:stream"),Fe=De(),{RequestContentLengthMismatchError:XT,RequestAbortedError:R9,SocketError:Xf,InformationalError:jT}=qe(),{kUrl:KC,kReset:jC,kClient:Pd,kRunning:ZC,kPending:BCe,kQueue:TA,kPendingIdx:ZT,kRunningIdx:Ci,kError:Bi,kSocket:hr,kStrictContentLength:yCe,kOnError:$T,kMaxConcurrentStreams:L9,kHTTP2Session:Ii,kResume:xA,kSize:QCe,kHTTPContext:bCe}=Et(),Ba=Symbol("open streams"),k9,F9=!1,XC;try{XC=w("node:http2")}catch{XC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wCe,HTTP2_HEADER_METHOD:NCe,HTTP2_HEADER_PATH:SCe,HTTP2_HEADER_SCHEME:TCe,HTTP2_HEADER_CONTENT_LENGTH:xCe,HTTP2_HEADER_EXPECT:DCe,HTTP2_HEADER_STATUS:RCe}}=XC;function kCe(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 FCe(t,e){t[hr]=e,F9||(F9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=XC.connect(t[KC],{createConnection:()=>e,peerMaxConcurrentStreams:t[L9]});r[Ba]=0,r[Pd]=t,r[hr]=e,Fe.addListener(r,"error",UCe),Fe.addListener(r,"frameError",LCe),Fe.addListener(r,"end",vCe),Fe.addListener(r,"goaway",PCe),Fe.addListener(r,"close",function(){let{[Pd]:n}=this,{[hr]:i}=n,o=this[hr][Bi]||this[Bi]||new Xf("closed",Fe.getSocketInfo(i));if(n[Ii]=null,n.destroyed){Sn(n[BCe]===0);let a=n[TA].splice(n[Ci]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[Ii]=r,e[Ii]=r,Fe.addListener(e,"error",function(n){Sn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bi]=n,this[Pd][$T](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new Xf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[Bi]||new Xf("closed",Fe.getSocketInfo(this));t[hr]=null,this[Ii]!=null&&this[Ii].destroy(n),t[ZT]=t[Ci],Sn(t[ZC]===0),t.emit("disconnect",t[KC],[t],n),t[xA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return _Ce(t,...n)},resume(){MCe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function MCe(t){let e=t[hr];e?.destroyed===!1&&(t[QCe]===0&&t[L9]===0?(e.unref(),t[Ii].unref()):(e.ref(),t[Ii].ref()))}function UCe(t){Sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hr][Bi]=t,this[Pd][$T](t)}function LCe(t,e,r){if(r===0){let s=new jT(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hr][Bi]=s,this[Pd][$T](s)}}function vCe(){let t=new Xf("other side closed",Fe.getSocketInfo(this[hr]));this.destroy(t),Fe.destroy(this[hr],t)}function PCe(t){let e=this[Bi]||new Xf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[Pd];if(r[hr]=null,r[bCe]=null,this[Ii]!=null&&(this[Ii].destroy(e),this[Ii]=null),Fe.destroy(this[hr],e),r[Ci]<r[TA].length){let s=r[TA][r[Ci]];r[TA][r[Ci]++]=null,Fe.errorRequest(r,s,e),r[ZT]=r[Ci]}Sn(r[ZC]===0),r.emit("disconnect",r[KC],[r],e),r[xA]()}function OCe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function _Ce(t,e){let r=t[Ii],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let R=c[T+0],M=c[T+1];if(Array.isArray(M))for(let F=0;F<M.length;F++)l[R]?l[R]+=`,${M[F]}`:l[R]=M[F];else l[R]=M}let d,{hostname:h,port:f}=t[KC];l[wCe]=i||`${h}${f?`:${f}`:""}`,l[NCe]=s;let p=T=>{e.aborted||e.completed||(T=T||new R9,Fe.errorRequest(t,e,T),d!=null&&Fe.destroy(d,T),Fe.destroy(u,T),t[TA][t[Ci]++]=null,t[xA]())};try{e.onConnect(p)}catch(T){Fe.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[Ba],t[TA][t[Ci]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ba],t[TA][t[Ci]++]=null}),d.once("close",()=>{r[Ba]-=1,r[Ba]===0&&r.unref()}),!0;l[SCe]=n,l[TCe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){k9??=Md().extractBody;let[T,R]=k9(u);l["content-type"]=R,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),OCe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[yCe])return Fe.errorRequest(t,e,new XT),!1;process.emitWarning(new XT)}m!=null&&(Sn(u,"no body must not have content length"),l[xCe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[DCe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[dIe]=A??3e5,this[lIe]=n??3e5,this[hIe]=C??!0,this[gIe]=T,this[sx]=M,this[RA]=null,this[CIe]=_>-1?_:-1,this[BIe]=at??100,this[Gt]=null,this[yi]=[],this[Qa]=0,this[Qi]=0,this[ep]=xe=>ix(this,xe),this[IIe]=xe=>X9(this,xe)}get pipelining(){return this[rI]}set pipelining(e){this[rI]=e,this[ep](!0)}get[sp](){return this[yi].length-this[Qi]}get[rp](){return this[Qi]-this[Qa]}get[tp](){return this[yi].length-this[Qa]}get[nIe](){return!!this[Gt]&&!this[_d]&&!this[Gt].destroyed}get[rx](){return!!(this[Gt]?.busy(null)||this[tp]>=(K9(this)||1)||this[sp]>0)}[sIe](e){j9(this),this.once("connect",e)}[EIe](e,r){let s=e.origin||this[ao].origin,n=new jCe(s,e,r);return this[yi].push(n),this[gu]||(hu.bodyLength(n.body)==null&&hu.isIterable(n.body)?(this[gu]=1,queueMicrotask(()=>ix(this))):this[ep](!0)),this[gu]&&this[kA]!==2&&this[rx]&&(this[kA]=2),this[kA]<2}async[pIe](){return new Promise(e=>{this[tp]?this[RA]=e:e(null)})}async[mIe](e){return new Promise(r=>{let s=this[yi].splice(this[Qi]);for(let i=0;i<s.length;i++){let o=s[i];hu.errorRequest(this,o,e)}let n=()=>{this[RA]&&(this[RA](),this[RA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[ep]()})}},bIe=tI();function X9(t,e){if(t[rp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ya(t[Qi]===t[Qa]);let r=t[yi].splice(t[Qa]);for(let s=0;s<r.length;s++){let n=r[s];hu.errorRequest(t,n,e)}ya(t[tp]===0)}}async function j9(t){ya(!t[_d]),ya(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[ao];if(r[0]==="["){let i=r.indexOf("]");ya(i!==-1);let o=r.substring(1,i);ya(z9.isIP(o)),r=o}t[_d]=!0,Od.beforeConnect.hasSubscribers&&Od.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[DA],localAddress:t[$f]},connector:t[Zf]});try{let i=await new Promise((o,a)=>{t[Zf]({host:e,hostname:r,protocol:s,port:n,servername:t[DA],localAddress:t[$f]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){hu.destroy(i.on("error",J9),new eIe);return}ya(i);try{t[Gt]=i.alpnProtocol==="h2"?await QIe(t,i):await yIe(t,i)}catch(o){throw i.destroy().on("error",J9),o}t[_d]=!1,i[fIe]=0,i[sx]=t[sx],i[rIe]=t,i[oIe]=null,Od.connected.hasSubscribers&&Od.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[DA],localAddress:t[$f]},connector:t[Zf],socket:i}),t.emit("connect",t[ao],[t])}catch(i){if(t.destroyed)return;if(t[_d]=!1,Od.connectError.hasSubscribers&&Od.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[DA],localAddress:t[$f]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ya(t[rp]===0);t[sp]>0&&t[yi][t[Qi]].servername===t[DA];){let o=t[yi][t[Qi]++];hu.errorRequest(t,o,i)}else X9(t,i);t.emit("connectionError",t[ao],[t],i)}t[ep]()}function W9(t){t[kA]=0,t.emit("drain",t[ao],[t])}function ix(t,e){t[gu]!==2&&(t[gu]=2,wIe(t,e),t[gu]=0,t[Qa]>256&&(t[yi].splice(0,t[Qa]),t[Qi]-=t[Qa],t[Qa]=0))}function wIe(t,e){for(;;){if(t.destroyed){ya(t[sp]===0);return}if(t[RA]&&!t[tp]){t[RA](),t[RA]=null;return}if(t[Gt]&&t[Gt].resume(),t[rx])t[kA]=2;else if(t[kA]===2){e?(t[kA]=1,queueMicrotask(()=>W9(t))):W9(t);continue}if(t[sp]===0||t[rp]>=(K9(t)||1))return;let r=t[yi][t[Qi]];if(t[ao].protocol==="https:"&&t[DA]!==r.servername){if(t[rp]>0)return;t[DA]=r.servername,t[Gt]?.destroy(new $Ce("servername changed"),()=>{t[Gt]=null,ix(t)})}if(t[_d])return;if(!t[Gt]){j9(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[Qi]++:t[yi].splice(t[Qi],1)}}Z9.exports=nx});var ox=E((Oot,$9)=>{"use strict";var sI=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)}};$9.exports=class{constructor(){this.head=this.tail=new sI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tG=E((_ot,eG)=>{var{kFree:NIe,kConnected:SIe,kPending:TIe,kQueued:xIe,kRunning:DIe,kSize:RIe}=Et(),fu=Symbol("pool"),ax=class{constructor(e){this[fu]=e}get connected(){return this[fu][SIe]}get free(){return this[fu][NIe]}get pending(){return this[fu][TIe]}get queued(){return this[fu][xIe]}get running(){return this[fu][DIe]}get size(){return this[fu][RIe]}};eG.exports=ax});var hx=E((Hot,lG)=>{"use strict";var kIe=wd(),FIe=ox(),{kConnected:Ax,kSize:rG,kRunning:sG,kPending:nG,kQueued:np,kBusy:MIe,kFree:UIe,kUrl:LIe,kClose:vIe,kDestroy:PIe,kDispatch:OIe}=Et(),_Ie=tG(),ls=Symbol("clients"),Jr=Symbol("needDrain"),ip=Symbol("queue"),cx=Symbol("closed resolve"),ux=Symbol("onDrain"),iG=Symbol("onConnect"),oG=Symbol("onDisconnect"),aG=Symbol("onConnectionError"),lx=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())}};mq.exports=h2});var BI=E((fat,yq)=>{"use strict";var Cq=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dQe}=qe(),hQe=Yd();Bq()===void 0&&Iq(new hQe);function Iq(t){if(!t||typeof t.dispatch!="function")throw new dQe("Argument agent must implement Agent");Object.defineProperty(globalThis,Cq,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Bq(){return globalThis[Cq]}yq.exports={setGlobalDispatcher:Iq,getGlobalDispatcher:Bq}});var yI=E((mat,Qq)=>{"use strict";Qq.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 wq=E((Eat,bq)=>{"use strict";var gQe=eI();bq.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 gQe(r,o,n,i);return r(a,A)}}});var Sq=E((Cat,Nq)=>{"use strict";var fQe=lI();Nq.exports=t=>e=>function(s,n){return e(s,new fQe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var xq=E((Iat,Tq)=>{"use strict";var pQe=De(),{InvalidArgumentError:mQe,RequestAbortedError:EQe}=qe(),CQe=yI(),g2=class extends CQe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new mQe("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,s,n){let o=pQe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new EQe(`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.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function IQe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new g2({maxSize:i},n);return e(s,o)}}Tq.exports=IQe});var kq=E((Bat,Rq)=>{"use strict";var{isIP:BQe}=w("node:net"),{lookup:yQe}=w("node:dns"),QQe=yI(),{InvalidArgumentError:$d,InformationalError:bQe}=qe(),Dq=Math.pow(2,31)-1,f2=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.#n}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 bQe("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){yQe(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())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===Dq?(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===Dq?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 p2(this,e,r)}},p2=class extends QQe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=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.#n,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":l7(i)&&(r[n]=i);break;case"id":d7(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&l7(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&d7(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}}};h7.exports={EventSourceStream:tD}});var y7=E((Zat,B7)=>{"use strict";var{pipeline:MNe}=w("node:stream"),{fetching:UNe}=Ep(),{makeRequest:LNe}=rh(),{webidl:Ta}=Tr(),{EventSourceStream:vNe}=g7(),{parseMIMEType:PNe}=cs(),{createFastMessageEvent:ONe}=Ah(),{isNetworkError:f7}=pp(),{delay:_Ne}=$2(),{kEnumerableProperty:Du}=De(),{environmentSettingsObject:p7}=Hs(),m7=!1,E7=3e3,Rp=0,C7=1,kp=2,HNe="anonymous",GNe="use-credentials",hh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Rp;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ta.util.markAsUncloneable(this);let s="EventSource constructor";Ta.argumentLengthCheck(arguments,1,s),m7||(m7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ta.converters.USVString(e,s,"url"),r=Ta.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:E7};let n=p7,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=HNe;r.withCredentials&&(o=GNe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p7.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=LNe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===kp)return;this.#r=Rp;let e={request:this.#n,dispatcher:this.#a},r=s=>{f7(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(f7(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?PNe(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=C7,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new vNe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(ONe(A.type,A.options))}});MNe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=UNe(e)}async#c(){this.#r!==kp&&(this.#r=Rp,this.dispatchEvent(new Event("error")),await _Ne(this.#o.reconnectionTime),this.#r===Rp&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ta.brandCheck(this,t),this.#r!==kp&&(this.#r=kp,this.#i.abort(),this.#n=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}},I7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:C7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kp,writable:!1}};Object.defineProperties(hh,I7);Object.defineProperties(hh.prototype,I7);Object.defineProperties(hh.prototype,{close:Du,onerror:Du,onmessage:Du,onopen:Du,readyState:Du,url:Du,withCredentials:Du});Ta.converters.EventSourceInitDict=Ta.dictionaryConverter([{key:"withCredentials",converter:Ta.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ta.converters.any}]);B7.exports={EventSource:hh,defaultReconnectionTime:E7}});var uB=E(($at,le)=>{"use strict";var YNe=Hd(),Q7=Lf(),qNe=Gd(),VNe=IG(),JNe=Yd(),WNe=Nx(),zNe=qG(),KNe=XG(),b7=qe(),cB=De(),{InvalidArgumentError:AB}=b7,gh=LY(),XNe=Pf(),jNe=a2(),ZNe=Eq(),$Ne=u2(),eSe=zx(),tSe=lI(),{getGlobalDispatcher:w7,setGlobalDispatcher:rSe}=BI(),sSe=yI(),nSe=eI(),iSe=tI();Object.assign(Q7.prototype,gh);le.exports.Dispatcher=Q7;le.exports.Client=YNe;le.exports.Pool=qNe;le.exports.BalancedPool=VNe;le.exports.Agent=JNe;le.exports.ProxyAgent=WNe;le.exports.EnvHttpProxyAgent=zNe;le.exports.RetryAgent=KNe;le.exports.RetryHandle Line truncated
%s`,R,R,C,s);var M=C.type==="*"?JD:C.type==="?"?VD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+R}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var Qn="";xe===""&&e!==DB&&(Qn="$");var ou=Ye+at+xe+Qn+Be;s=ou}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===DB)return[s,n];if(!n)return Jxe(t);var au=r.nocase?"i":"";try{var SS=new RegExp("^"+s+"$",au)}catch{return new RegExp("$.")}return SS._glob=t,SS._src=s,SS}js.makeRe=function(t,e){return new er(t,e||{}).makeRe()};er.prototype.makeRe=Vxe;function Vxe(){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?JD:e.dot?vxe:Pxe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Ou?r:typeof o=="string"?Wxe(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}js.match=function(t,e,r){r=r||{};var s=new er(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};er.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;Yp.sep!=="/"&&(e=e.split(Yp.sep).join("/")),e=e.split(Cz),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};er.prototype.matchOne=function(t,e,r){return e.indexOf(Ou)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};er.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Ou){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Ou){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 I=[[[],0]],m=I[0],C=0,b=[0],T=0;T<c.length;T++){var R=c[T];R===Ou?(b.push(C),m=[[],0],I.push(m)):(m[0].push(R),C++)}for(var M=I.length-1,F=t.length-d,_=0;_<I.length;_++)I[_][1]=F-(b[M--]+I[_][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};er.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};er.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===Ou)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 Jxe(t){return t.replace(/\\(.)/g,"$1")}function Wxe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qh=E((eut,Nz)=>{"use strict";var t2e="2.0.0",r2e=Number.MAX_SAFE_INTEGER||9007199254740991,s2e=16,n2e=250,i2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Nz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:s2e,MAX_SAFE_BUILD_LENGTH:n2e,MAX_SAFE_INTEGER:r2e,RELEASE_TYPES:i2e,SEMVER_SPEC_VERSION:t2e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wp=E((tut,Sz)=>{"use strict";var o2e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Sz.exports=o2e});var bh=E((go,Tz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:zD,MAX_SAFE_BUILD_LENGTH:a2e,MAX_LENGTH:A2e}=Qh(),c2e=Wp();go=Tz.exports={};var u2e=go.re=[],l2e=go.safeRe=[],z=go.src=[],d2e=go.safeSrc=[],K=go.t={},h2e=0,KD="[a-zA-Z0-9-]",g2e=[["\\s",1],["\\d",A2e],[KD,a2e]],f2e=t=>{for(let[e,r]of g2e)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+"+fy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=tFe()+e+" "+t[0]}function tFe(){return fr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rFe(...t){return process.stderr.write(gy.formatWithOptions(fr.inspectOpts,...t)+`
`)}function sFe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function nFe(){return process.env.DEBUG}function iFe(t){t.inspectOpts={};let e=Object.keys(fr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fr.inspectOpts[e[r]]}fy.exports=PR()(fr);var{formatters:sj}=fy.exports;sj.o=function(t){return this.inspectOpts.colors=this.useColors,gy.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};sj.O=function(t){return this.inspectOpts.colors=this.useColors,gy.inspect(t,this.inspectOpts)}});var py=E((Rdt,HR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?HR.exports=jX():HR.exports=nj()});var aj=E(Cs=>{"use strict";var oFe=Cs&&Cs.__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]})),aFe=Cs&&Cs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ij=Cs&&Cs.__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)&&oFe(e,t,r);return aFe(e,t),e};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.req=Cs.json=Cs.toBuffer=void 0;var AFe=ij(w("http")),cFe=ij(w("https"));async function oj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Cs.toBuffer=oj;async function uFe(t){let r=(await oj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Cs.json=uFe;function lFe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?cFe:AFe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Cs.req=lFe});var YR=E(en=>{"use strict";var cj=en&&en.__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]})),dFe=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uj=en&&en.__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)&&cj(e,t,r);return dFe(e,t),e},hFe=en&&en.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cj(e,t,r)};Object.defineProperty(en,"__esModule",{value:!0});en.Agent=void 0;var gFe=uj(w("net")),Aj=uj(w("http")),fFe=w("https");hFe(aj(),en);var mo=Symbol("AgentBaseInternalState"),GR=class extends Aj.Agent{constructor(e){super(e),this[mo]={}}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 gFe.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)?fFe.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 Aj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[mo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[mo].currentSocket;if(this[mo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mo]&&(this[mo].defaultPort=e)}get protocol(){return this[mo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mo]&&(this[mo].protocol=e)}};en.Agent=GR});var lj=E(Fh=>{"use strict";var pFe=Fh&&Fh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fh,"__esModule",{value:!0});Fh.parseProxyResponse=void 0;var mFe=pFe(py()),my=(0,mFe.default)("https-proxy-agent:parse-proxy-response");function EFe(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(),my("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),my("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){my("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of h){if(!b)continue;let T=b.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let R=b.slice(0,T).toLowerCase(),M=b.slice(T+1).trimStart(),F=C[R];typeof F=="string"?C[R]=[F,M]:Array.isArray(F)?F.push(M):C[R]=M}my("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Fh.parseProxyResponse=EFe});var mj=E(Un=>{"use strict";var CFe=Un&&Un.__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]})),IFe=Un&&Un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fj=Un&&Un.__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)&&CFe(e,t,r);return IFe(e,t),e},pj=Un&&Un.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Un,"__esModule",{value:!0});Un.HttpsProxyAgent=void 0;var Ey=fj(w("net")),dj=fj(w("tls")),BFe=pj(w("assert")),yFe=pj(py()),QFe=YR(),bFe=w("url"),wFe=lj(),am=(0,yFe.default)("https-proxy-agent"),hj=t=>t.servername===void 0&&t.host&&!Ey.isIP(t.host)?{...t,servername:t.host}:t,Cy=class extends QFe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new bFe.URL(e):e,this.proxyHeaders=r?.headers??{},am("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?gj(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:"?(am("Creating `tls.Socket`: %o",this.connectOpts),n=dj.connect(hj(this.connectOpts))):(am("Creating `net.Socket`: %o",this.connectOpts),n=Ey.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ey.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,wFe.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",NFe),r.secureEndpoint?(am("Upgrading socket connection to TLS"),dj.connect({...gj(hj(r),"host","path","port"),socket:n})):n;n.destroy();let l=new Ey.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{am("Replaying proxy buffer for failed request"),(0,BFe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Cy.protocols=["http","https"];Un.HttpsProxyAgent=Cy;function NFe(t){t.resume()}function gj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Ij=E(Ln=>{"use strict";var SFe=Ln&&Ln.__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]})),TFe=Ln&&Ln.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cj=Ln&&Ln.__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)&&SFe(e,t,r);return TFe(e,t),e},xFe=Ln&&Ln.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.HttpProxyAgent=void 0;var DFe=Cj(w("net")),RFe=Cj(w("tls")),kFe=xFe(py()),FFe=w("events"),MFe=YR(),Ej=w("url"),Mh=(0,kFe.default)("http-proxy-agent"),Iy=class extends MFe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ej.URL(e):e,this.proxyHeaders=r?.headers??{},Mh("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?UFe(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 Ej.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;Mh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Mh("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),Mh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Mh("Creating `tls.Socket`: %o",this.connectOpts),i=RFe.connect(this.connectOpts)):(Mh("Creating `net.Socket`: %o",this.connectOpts),i=DFe.connect(this.connectOpts)),await(0,FFe.once)(i,"connect"),i}};Iy.protocols=["http","https"];Ln.HttpProxyAgent=Iy;function UFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var qj=E(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.state=void 0;ky.state={instrumenterImplementation:void 0}});var aZ=E(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.state=void 0;vy.state={operationRequestMap:new WeakMap}});var Hee=E((DSt,Y3e)=>{Y3e.exports={name:"@actions/cache",version:"6.0.1",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 Yee=E((RSt,Gee)=>{var q3e=Hee();Gee.exports={version:q3e.version}});var fb=E(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.isJsonObject=ng.typeofJsonValue=void 0;function $3e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ng.typeofJsonValue=$3e;function e8e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ng.isJsonObject=e8e});var mb=E(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.base64encode=ig.base64decode=void 0;var za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pb=[];for(let t=0;t<za.length;t++)pb[za[t].charCodeAt(0)]=t;pb[45]=za.indexOf("+");pb[95]=za.indexOf("/");function t8e(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=pb[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)}ig.base64decode=t8e;function r8e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=za[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=za[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=za[n|s>>6],e+=za[s&63],r=0;break}return r&&(e+=za[n],e+="=",r==1&&(e+="=")),e}ig.base64encode=r8e});var zee=E(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});Eb.utf8read=void 0;var ML=t=>String.fromCharCode.apply(String,t);function s8e(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(ML(s)),n=0);return r.length?(n&&r.push(ML(s.slice(0,n))),r.join("")):ML(s.slice(0,n))}Eb.utf8read=s8e});var s0=E(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.WireType=Go.mergeBinaryOptions=Go.UnknownFieldHandler=void 0;var n8e;(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])})(n8e=Go.UnknownFieldHandler||(Go.UnknownFieldHandler={}));function i8e(t,e){return Object.assign(Object.assign({},t),e)}Go.mergeBinaryOptions=i8e;var o8e;(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"})(o8e=Go.WireType||(Go.WireType={}))});var Ib=E(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.varint32read=Ns.varint32write=Ns.int64toString=Ns.int64fromString=Ns.varint64write=Ns.varint64read=void 0;function a8e(){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")}Ns.varint64read=a8e;function A8e(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)}}Ns.varint64write=A8e;var Cb=65536*65536;function c8e(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>=Cb&&(n=n+(s/Cb|0),s=s%Cb)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ns.int64fromString=c8e;function u8e(t,e){if(e>>>0<=2097151)return""+(Cb*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)}Ns.int64toString=u8e;function l8e(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)}}Ns.varint32write=l8e;function d8e(){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}Ns.varint32read=d8e});var gc=E(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.PbLong=hc.PbULong=hc.detectBi=void 0;var n0=Ib(),it;function Kee(){let t=new DataView(new ArrayBuffer(8));it=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}hc.detectBi=Kee;Kee();function Xee(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var jee=/^-?[0-9]+$/,yb=4294967296,Bb=2147483648,Qb=c Line truncated
`)}};Wb.RpcError=av});var cv=E(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.mergeRpcOptions=void 0;var Ste=Kt();function M4e(t,e){if(!e)return t;let r={};zb(t,r),zb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Ste.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Ste.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zb(t.meta,r.meta),zb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Kb.mergeRpcOptions=M4e;function zb(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 lv=E(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.Deferred=ml.DeferredState=void 0;var Vo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vo=ml.DeferredState||(ml.DeferredState={}));var uv=class{constructor(e=!0){this._state=Vo.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!==Vo.PENDING)throw new Error(`cannot resolve ${Vo[this.state].toLowerCase()}`);this._resolve(e),this._state=Vo.RESOLVED}reject(e){if(this.state!==Vo.PENDING)throw new Error(`cannot reject ${Vo[this.state].toLowerCase()}`);this._reject(e),this._state=Vo.REJECTED}resolvePending(e){this._state===Vo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vo.PENDING&&this.reject(e)}};ml.Deferred=uv});var hv=E(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.RpcOutputStreamController=void 0;var Tte=lv(),El=Kt(),dv=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){El.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){El.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){El.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(){El.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;El.assert(e,"bad state"),El.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 Tte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;El.assert(s.state==Tte.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};Xb.RpcOutputStreamController=dv});var fv=E(dg=>{"use strict";var U4e=dg&&dg.__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(dg,"__esModule",{value:!0});dg.UnaryCall=void 0;var gv=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 U4e(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}})}};dg.UnaryCall=gv});var mv=E(hg=>{"use strict";var L4e=hg&&hg.__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(hg,"__esModule",{value:!0});hg.ServerStreamingCall=void 0;var pv=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 Hie=E(_ie=>{"use strict";var h8=oA().Buffer;_ie._dbcs=aA;var Rr=-1,Oie=-2,ii=-10,is=-1e3,Vg=new Array(256),sE=-1;for(yw=0;yw<256;yw++)Vg[yw]=Rr;var yw;function aA(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]=Vg.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(Vg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[is-o[s]],A=48;A<=57;A++){if(a[A]===Rr)a[A]=is-n;else if(a[A]>is)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[is-a[A]],u=129;u<=254;u++){if(c[u]===Rr)c[u]=is-i;else{if(c[u]===is-i)continue;if(c[u]>is)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[is-c[u]],d=48;d<=57;d++)l[d]===Rr&&(l[d]=Oie)}}}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 XJe(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(UJe.has(n)){r=n;break}}return r}function jJe(t,e){let r=XJe(e);r!==""&&(t.referrerPolicy=r)}function ZJe(){return"allowed"}function $Je(){return"success"}function e7e(){return"success"}function t7e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function r7e(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&&R4(t.origin)&&!R4(Wl(t))&&(e=null);break;case"same-origin":dE(t,Wl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Xg(t,e){return t}function s7e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Xg(t.domainLookupStartTime,r),domainLookupEndTime:Xg(t.domainLookupEndTime,r),connectionStartTime:Xg(t.connectionStartTime,r),connectionEndTime:Xg(t.connectionEndTime,r),secureConnectionStartTime:Xg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function n7e(t){return Xg(OJe.now(),t)}function i7e(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 mAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function o7e(t){return{referrerPolicy:t.referrerPolicy}}function a7e(t){let e=t.referrerPolicy;hE(e);let r=null;if(t.referrer==="client"){let i=dAe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else vc.is.URL(t.referrer)&&(r=t.referrer);let s=D4(r),n=D4(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??D4(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Wl(t);return Jl(s)&&!Jl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Wl(t);return dE(s,i)?s:Jl(s)&&!Jl(i)?"no-referrer":n}case"same-origin":return dE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return dE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Wl(t);return Jl(s)&&!Jl(i)?"no-referrer":s}}}function D4(t,e=!1){return hE(vc.is.URL(t)),t=new URL(t),BAe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var A7e=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)$/),c7e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function EAe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),c7e(t)):A7e(t)}function u7e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||EAe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jl(t){return vc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:u7e(t.origin):!1}function l7e(t){}function dE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function d7e(t){return t.controller.state==="aborted"}function h7e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function g7e(t){return HJe[t.toLowerCase()]??t}var f7e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function CAe(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,f7e),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 p7e(t,e,r,s=0,n=1){let i=CAe(t,r,s,n),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,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ai(a=>_4(a)&&a!==59,t,e);i=P4.decode(o)}return{name:s,value:i}}function _7e(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 Ms("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Ai(a=>a!==10&&a!==13&&a!==58,t,e);if(o=O4(o,!0,!0,a=>a===9||a===32),!k7e.test(o.toString()))throw Ms("header name does not match the field-name token production");if(t[e.position]!==58)throw Ms("expected :");switch(e.position++,Ai(a=>a===32||a===9,t,e),R7e(o)){case"content-disposition":{if(r=s=null,Ai(A=>_4(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ms("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=O7e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Ms("name attribute is required in content-disposition header");break}case"content-type":{let a=Ai(A=>A!==10&&A!==13,t,e);a=O4(a,!1,!0,A=>A===9||A===32),n=SAe(a);break}case"content-transfer-encoding":{let a=Ai(A=>A!==10&&A!==13,t,e);a=O4(a,!1,!0,A=>A===9||A===32),i=SAe(a);break}default:Ai(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ms("expected CRLF");e.position+=2}}function Ai(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function O4(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 H7e(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 Ms(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function G7e(t){return t<=31||t===127}function Y7e(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 _4(t){return t<=127&&t!==32&&t!==9&&!G7e(t)&&!Y7e(t)}TAe.exports={multipartFormDataParser:P7e,validateBoundary:v7e}});var gE=E((MMt,DAe)=>{"use strict";function q7e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}DAe.exports={createDeferredPromise:q7e}});var $g=E((UMt,UAe)=>{"use strict";var Y4=Ie(),{ReadableStreamFrom:V7e,readableStreamClose:J7e,fullyReadBody:W7e,extractMimeType:z7e}=hn(),{FormData:RAe,setFormDataState:K7e}=Ww(),{webidl:Wi}=kr(),H4=w("node:assert"),{isErrored:G4,isDisturbed:X7e}=w("node:stream"),{isUint8Array:j7e}=w("node:util/types"),{serializeAMimeType:Z7e}=ai(),{multipartFormDataParser:$7e}=xAe(),{createDeferredPromise:eWe}=gE(),{parseJSONFromBytes:tWe}=uA(),{utf8DecodeBytes:rWe}=Hw(),{runtimeFeatures:sWe}=lA(),nWe=sWe.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),zw=new TextEncoder;function iWe(){}var oWe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!X7e(e)&&!G4(e)&&e.cancel("Response object has been garbage collected").catch(iWe)});function FAe(t,e=!1){let r=null,s=null;Wi.is.ReadableStream(t)?r=t:Wi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),H4(Wi.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(Wi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wi.is.BufferSource(t))i=Wi.util.getCopyOfBytesHeldByBufferSource(t);else if(Wi.is.FormData(t)){let c=`----formdata-undici-0${`${nWe(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 b=zw.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(b),o+=b.byteLength}else{let b=zw.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(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=zw.encode(`--${c}--\r
`);h.push(I),o+=I.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(Wi.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(Y4.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wi.is.ReadableStream(t)?t:V7e(t)}return(typeof i=="string"||j7e(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(G4(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!G4(r)&&s.enqueue(typeof c=="string"?zw.encode(c):new Uint8Array(c));queueMicrotask(()=>J7e(s))})(),[{stream:r,source:i,length:o},a]}function aWe(t,e=!1){return Wi.is.ReadableStream(t)&&(H4(!Y4.isDisturbed(t),"The body has already been consumed."),H4(!t.locked,"The stream is locked.")),FAe(t,e)}function AWe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function cWe(t,e){return{blob(){return Zg(this,s=>{let n=kAe(e(this));return n===null?n="":n&&(n=Z7e(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Zg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Zg(this,rWe,t,e)},json(){return Zg(this,tWe,t,e)},formData(){return Zg(this,s=>{let n=kAe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=$7e(s,n),o=new RAe;return K7e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new RAe;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 Zg(this,s=>new Uint8Array(s),t,e)}}}function uWe(t,e){Object.assign(t.prototype,cWe(t,e))}function Zg(t,e,r,s){try{Wi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),MAe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=eWe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(W7e(t.body,o,i),n.promise)}function MAe(t){let e=t.body;return e!=null&&(e.stream.locked||Y4.isDisturbed(e.stream))}function kAe(t){let e=t.headersList,r=z7e(e);return r==="failure"?null:r}UAe.exports={extractBody:FAe,safelyExtractBody:aWe,cloneBody:AWe,mixinBody:uWe,streamRegistry:oWe,bodyUnusable:MAe}});var JAe=E((LMt,VAe)=>{"use strict";var he=w("node:assert"),ge=Ie(),{channels:LAe}=Uc(),q4=w8(),{RequestContentLengthMismatchError:zl,ResponseContentLengthMismatchError:lWe,RequestAbortedError:GAe,HeadersTimeoutError:dWe,HeadersOverflowError:hWe,SocketError:mE,InformationalError:ef,BodyTimeoutError:gWe,HTTPParserError:fWe,ResponseExceededMaxSizeError:pWe}=me(),{kUrl:YAe,kReset:Us,kClient:j4,kParser:Pt,kBlocking:EE,kRunning:Yr,kPending:mWe,kSize:vAe,kWriting:Oc,kQueue:zi,kNoRef:fE,kKeepAliveDefaultTimeout:EWe,kHostHeader:CWe,kPendingIdx:IWe,kRunningIdx:ci,kError:ui,kPipelining:jw,kSocket:tf,kKeepAliveTimeoutValue:$w,kMaxHeadersSize:BWe,kKeepAliveMaxTimeout:yWe,kKeepAliveTimeoutThreshold:QWe,kHeadersTimeout:bWe,kBodyTimeout:wWe,kStrictContentLength:W4,kMaxRequests:PAe,kCounter:NWe,kMaxResponseSize:SWe,kOnError:TWe,kResume:Pc,kHTTPContext:qAe,kClosed:z4}=$e(),ea=Uae(),xWe=Buffer.alloc(0),Kw=Buffer[Symbol.species],DWe=ge.removeAllListeners,V4;function RWe(){let t=process.env.JEST_WORKER_ID?m4():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(Pae())}catch{}return e||(e=new WebAssembly.Module(t||m4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onStatus(new Kw(ta.buffer,o,i))},wasm_on_message_begin:s=>(he(lr.ptr===s),lr.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderField(new Kw(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderValue(new Kw(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(lr.ptr===s),lr.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onBody(new Kw(ta.buffer,o,i))},wasm_on_message_complete:s=>(he(lr.ptr===s),lr.onMessageComplete())}})}var J4=null,lr=null,ta=null,Xw=0,ra=null,kWe=0,pE=1,rf=2|pE,Zw=4|pE,K4=8|kWe,X4=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ea.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[BWe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[SWe]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[CWe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[jw]&&!h[Us]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return LAe.sendHeaders.hasSubscribers&&LAe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?_Ae(f,null,t,e,h,u,p,l):ge.isBuffer(A)?_Ae(f,A,t,e,h,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?HAe(f,A.stream(),t,e,h,u,p,l):YWe(f,A,t,e,h,u,p,l):ge.isStream(A)?GWe(f,A,t,e,h,u,p,l):ge.isIterable(A)?HAe(f,A,t,e,h,u,p,l):he(!1),!0}function GWe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"stream body cannot be pipelined");let A=!1,c=new eN({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){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new GAe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[Oc]&&r[Yr]<=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")?ge.destroy(e,f):ge.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 _Ae(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(he(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[Us]=!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"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Pc]()}catch(A){t(A)}}async function YWe(t,e,r,s,n,i,o,a){he(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new zl;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[Us]=!0),r[Pc]()}catch(A){t(A)}}async function HAe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===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)=>{he(A===null),n[ui]?h(n[ui]):A=d});n.on("close",c).on("drain",c);let l=new eN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ui])throw n[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var eN=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[Oc]=!0}write(e){let{socket:r,request:s,contentLength:n,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(n!==null&&o+c>n){if(i[W4])throw new zl;process.emitWarning(new zl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Us]=!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[Pt].timeout&&r[Pt].timeoutType===rf&&r[Pt].timeout.refresh&&r[Pt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Oc]=!1,e[ui])throw e[ui];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[W4])throw new zl;process.emitWarning(new zl)}e[Pt].timeout&&e[Pt].timeoutType===rf&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),s[Pc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Oc]=!1,e&&(he(s[Yr]<=1,"pipeline should only contain this request"),n(e))}};VAe.exports=FWe});var tce=E((vMt,ece)=>{"use strict";var di=w("node:assert"),{pipeline:qWe}=w("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:tO,RequestAbortedError:VWe,SocketError:yE,InformationalError:_c,InvalidArgumentError:JWe}=me(),{kUrl:BE,kReset:nN,kClient:gn,kRunning:QE,kPending:WWe,kQueue:Hc,kPendingIdx:sO,kRunningIdx:Ki,kError:fn,kSocket:St,kStrictContentLength:zWe,kOnError:sf,kMaxConcurrentStreams:rN,kPingInterval:WAe,kHTTP2Session:hA,kHTTP2InitialWindowSize:KWe,kHTTP2ConnectionWindowSize:XWe,kResume:sa,kSize:jWe,kHTTPContext:nO,kClosed:rO,kBodyTimeout:ZWe,kEnableConnectProtocol:CE,kRemoteSettings:IE,kHTTP2Stream:tN,kHTTP2SessionState:iO}=$e(),{channels:zAe}=Uc(),li=Symbol("open streams"),KAe,sN;try{sN=w("node:http2")}catch{sN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$We,HTTP2_HEADER_METHOD:XAe,HTTP2_HEADER_PATH:jAe,HTTP2_HEADER_SCHEME:Z4,HTTP2_HEADER_CONTENT_LENGTH:eze,HTTP2_HEADER_EXPECT:tze,HTTP2_HEADER_STATUS:$4,HTTP2_HEADER_PROTOCOL:rze,NGHTTP2_REFUSED_STREAM:sze,NGHTTP2_CANCEL:nze}}=sN;function eO(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 ize(t,e){t[St]=e;let r=t[KWe],s=t[XWe],n=sN.connect(t[BE],{createConnection:()=>e,peerMaxConcurrentStreams:t[rN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[St]=e,n[li]=0,n[gn]=t,n[St]=e,n[iO]={ping:{interval:t[WAe]===0?null:setInterval(cze,t[WAe],n).unref()}},n[CE]=!1,n[IE]=!1,s&&Te.addListener(n,"connect",aze.bind(n,s)),Te.addListener(n,"error",uze),Te.addListener(n,"frameError",lze),Te.addListener(n,"end",dze),Te.addListener(n,"goaway",hze),Te.addListener(n,"close",gze),Te.addListener(n,"remoteSettings",Aze),n.unref(),t[hA]=n,e[hA]=n,Te.addListener(e,"error",pze),Te.addListener(e,"end",mze),Te.addListener(e,"close",fze),e[rO]=!1,e.on("close",Eze),{version:"h2",defaultPipelining:1/0,write(i){return Ize(t,i)},resume(){oze(t)},destroy(i,o){e[rO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[QE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[IE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[IE]===!1;return!1}}}function oze(t){let e=t[St];e?.destroyed===!1&&(t[jWe]===0||t[rN]===0?(e.unref(),t[hA].unref()):(e.ref(),t[hA].ref()))}function aze(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Aze(t){if(this[gn][rN]=t.maxConcurrentStreams??this[gn][rN],this[IE]===!0&&this[CE]===!0&&t.enableConnectProtocol===!1){let e=new _c("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[St][fn]=e,this[gn][sf](e);return}this[CE]=t.enableConnectProtocol??this[CE],this[IE]=!0,this[gn][sa]()}function cze(t){let e=t[iO];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[gn],o=this[gn];if(s!=null){let a=new _c(`HTTP/2: "PING" errored - type ${s.message}`);o[fn]=a,i[sf](a)}else i.emit("ping",n)}}function uze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[St][fn]=t,this[gn][sf](t)}function lze(t,e,r){if(r===0){let s=new _c(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[St][fn]=s,this[gn][sf](s)}}function dze(){let t=new yE("other side closed",Te.getSocketInfo(this[St]));this.destroy(t),Te.destroy(this[St],t)}function hze(t){let e=this[fn]||new yE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[St])),r=this[gn];if(r[St]=null,r[nO]=null,this.close(),this[hA]=null,Te.destroy(this[St],e),r[Ki]<r[Hc].length){let s=r[Hc][r[Ki]];r[Hc][r[Ki]++]=null,Te.errorRequest(r,s,e),r[sO]=r[Ki]}di(r[QE]===0),r.emit("disconnect",r[BE],[r],e),r.emit("connectionError",r[BE],[r],e),r[sa]()}function gze(){let{[gn]:t,[iO]:e}=this,{[St]:r}=t,s=this[St][fn]||this[fn]||new yE("closed",Te.getSocketInfo(r));if(t[St]=null,t[nO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){di(t[WWe]===0);let n=t[Hc].splice(t[Ki]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function fze(){let t=this[fn]||new yE("closed",Te.getSocketInfo(this)),e=this[hA][gn];e[St]=null,e[nO]=null,this[hA]!==null&&this[hA].destroy(t),e[sO]=e[Ki],di(e[QE]===0),e.emit("disconnect",e[BE],[e],t),e[sa]()}function pze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fn]=t,this[gn][sf](t)}function mze(){Te.destroy(this,new yE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;zAe.sendHeaders.publish({request:e,headers:F,socket:s[St]})}let T=n==="GET"||n==="HEAD"||d===null;A?(h[tze]="100-continue",f=s.request(h,{endStream:T,signal:c}),f[tN]=!0,f.once("continue",M)):(f=s.request(h,{endStream:T,signal:c}),f[tN]=!0,M()),++s[li],f.setTimeout(r);let R=!1;return f.once("response",F=>{let{[$4]:_,...H}=F;if(e.onResponseStarted(),R=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),eO(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),R?(!e.aborted&&!e.completed&&e.onComplete({}),t[Hc][t[Ki]++]=null,t[sa]()):(m(new _c("HTTP/2: stream half-closed (remote)")),t[Hc][t[Ki]++]=null,t[sO]=t[Ki],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),m(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),m(new _c(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new _c(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref(),m(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function M(){!d||b===0?ZAe(m,f,null,t,e,t[St],b,C):Te.isBuffer(d)?ZAe(m,f,d,t,e,t[St],b,C):Te.isBlobLike(d)?typeof d.stream=="function"?$Ae(m,f,d.stream(),t,e,t[St],b,C):yze(m,f,d,t,e,t[St],b,C):Te.isStream(d)?Bze(m,t[St],C,f,d,t,e,b):Te.isIterable(d)?$Ae(m,f,d,t,e,t[St],b,C):di(!1)}}function ZAe(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(di(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[nN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function Bze(t,e,r,s,n,i,o,a){di(a!==0||i[QE]===0,"stream body cannot be pipelined");let A=qWe(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[nN]=!0),i[sa]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function yze(t,e,r,s,n,i,o,a){di(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new tO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[nN]=!0),s[sa]()}catch(A){t(A)}}async function $Ae(t,e,r,s,n,i,o,a){di(o!==0||s[QE]===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)=>{di(A===null),i[fn]?d(i[fn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[fn])throw i[fn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[nN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}ece.exports=ize});var Jc=E((PMt,uce)=>{"use strict";var gA=w("node:assert"),oce=w("node:net"),bE=w("node:http"),Kl=Ie(),{ClientStats:Qze}=e4(),{channels:nf}=Uc(),bze=Qae(),wze=Yl(),{InvalidArgumentError:mt,InformationalError:Nze,ClientDestroyedError:Sze}=me(),Tze=ql(),{kUrl:na,kServerName:Vc,kClient:xze,kBusy:oO,kConnect:Dze,kResuming:Xl,kRunning:TE,kPending:xE,kSize:wE,kQueue:Xi,kConnected:Rze,kConnecting:of,kNeedDrain:Yc,kKeepAliveDefaultTimeout:rce,kHostHeader:kze,kPendingIdx:ji,kRunningIdx:fA,kError:Fze,kPipelining:iN,kKeepAliveTimeoutValue:Mze,kMaxHeadersSize:Uze,kKeepAliveMaxTimeout:Lze,kKeepAliveTimeoutThreshold:vze,kHeadersTimeout:Pze,kBodyTimeout:Oze,kStrictContentLength:_ze,kConnector:NE,kMaxRequests:aO,kCounter:Hze,kClose:Gze,kDestroy:Yze,kDispatch:qze,kLocalAddress:SE,kMaxResponseSize:Vze,kOnError:Jze,kHTTPContext:jt,kMaxConcurrentStreams:Wze,kHTTP2InitialWindowSize:zze,kHTTP2ConnectionWindowSize:Kze,kResume:qc,kPingInterval:Xze}=$e(),jze=JAe(),Zze=tce(),Gc=Symbol("kClosedResolve"),$ze=bE&&bE.maxHeaderSize&&Number.isInteger(bE.maxHeaderSize)&&bE.maxHeaderSize>0?()=>bE.maxHeaderSize:()=>{throw new mt("http module not available or http.maxHeaderSize invalid")},sce=()=>{};function ace(t){return t[iN]??t[jt]?.defaultPipelining??1}var AO=class extends wze{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:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:T,localAddress:R,maxResponseSize:M,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new mt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new mt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mt("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new mt("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new mt(" Line truncated
`,this[Oze]=a??3e5,this[Pze]=s??3e5,this[_ze]=m??!0,this[aO]=T,this[Gc]=null,this[Vze]=M>-1?M:-1,this[jt]=null,this[Wze]=H??100,this[zze]=Be??262144,this[Kze]=xe??524288,this[Xze]=Ue??6e4,this[Xi]=[],this[fA]=0,this[ji]=0,this[qc]=_t=>cO(this,_t),this[Jze]=_t=>Ace(this,_t)}get pipelining(){return this[iN]}set pipelining(e){this[iN]=e,this[qc](!0)}get stats(){return new Qze(this)}get[xE](){return this[Xi].length-this[ji]}get[TE](){return this[ji]-this[fA]}get[wE](){return this[Xi].length-this[fA]}get[Rze](){return!!this[jt]&&!this[of]&&!this[jt].destroyed}get[oO](){return!!(this[jt]?.busy(null)||this[wE]>=(ace(this)||1)||this[xE]>0)}[Dze](e){cce(this),this.once("connect",e)}[qze](e,r){let s=new bze(this[na].origin,e,r);return this[Xi].push(s),this[Xl]||(Kl.bodyLength(s.body)==null&&Kl.isIterable(s.body)?(this[Xl]=1,queueMicrotask(()=>cO(this))):this[qc](!0)),this[Xl]&&this[Yc]!==2&&this[oO]&&(this[Yc]=2),this[Yc]<2}[Gze](){return new Promise(e=>{this[wE]?this[Gc]=e:e(null)})}[Yze](e){return new Promise(r=>{let s=this[Xi].splice(this[ji]);for(let i=0;i<s.length;i++){let o=s[i];Kl.errorRequest(this,o,e)}let n=()=>{this[Gc]&&(this[Gc](),this[Gc]=null),r(null)};this[jt]?(this[jt].destroy(e,n),this[jt]=null):queueMicrotask(n),this[qc]()})}};function Ace(t,e){if(t[TE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gA(t[ji]===t[fA]);let r=t[Xi].splice(t[fA]);for(let s=0;s<r.length;s++){let n=r[s];Kl.errorRequest(t,n,e)}gA(t[wE]===0)}}function cce(t){gA(!t[of]),gA(!t[jt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");gA(i!==-1);let o=r.substring(1,i);gA(oce.isIPv6(o)),r=o}t[of]=!0,nf.beforeConnect.hasSubscribers&&nf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Vc],localAddress:t[SE]},connector:t[NE]}),t[NE]({host:e,hostname:r,protocol:s,port:n,servername:t[Vc],localAddress:t[SE]},(i,o)=>{if(i){nce(t,i,{host:e,hostname:r,protocol:s,port:n}),t[qc]();return}if(t.destroyed){Kl.destroy(o.on("error",sce),new Sze),t[qc]();return}gA(o);try{t[jt]=o.alpnProtocol==="h2"?Zze(t,o):jze(t,o)}catch(a){o.destroy().on("error",sce),nce(t,a,{host:e,hostname:r,protocol:s,port:n}),t[qc]();return}t[of]=!1,o[Hze]=0,o[aO]=t[aO],o[xze]=t,o[Fze]=null,nf.connected.hasSubscribers&&nf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Vc],localAddress:t[SE]},connector:t[NE],socket:o}),t.emit("connect",t[na],[t]),t[qc]()})}function nce(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[of]=!1,nf.connectError.hasSubscribers&&nf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[jt]?.version,servername:t[Vc],localAddress:t[SE]},connector:t[NE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gA(t[TE]===0);t[xE]>0&&t[Xi][t[ji]].servername===t[Vc];){let o=t[Xi][t[ji]++];Kl.errorRequest(t,o,e)}else Ace(t,e);t.emit("connectionError",t[na],[t],e)}}function ice(t){t[Yc]=0,t.emit("drain",t[na],[t])}function cO(t,e){t[Xl]!==2&&(t[Xl]=2,eKe(t,e),t[Xl]=0,t[fA]>256&&(t[Xi].splice(0,t[fA]),t[ji]-=t[fA],t[fA]=0))}function eKe(t,e){for(;;){if(t.destroyed){gA(t[xE]===0);return}if(t[Gc]&&!t[wE]){t[Gc](),t[Gc]=null;return}if(t[jt]&&t[jt].resume(),t[oO])t[Yc]=2;else if(t[Yc]===2){e?(t[Yc]=1,queueMicrotask(()=>ice(t))):ice(t);continue}if(t[xE]===0||t[TE]>=(ace(t)||1))return;let r=t[Xi][t[ji]];if(r===null)return;if(t[na].protocol==="https:"&&t[Vc]!==r.servername){if(t[TE]>0)return;t[Vc]=r.servername,t[jt]?.destroy(new Nze("servername changed"),()=>{t[jt]=null,cO(t)})}if(t[of])return;if(!t[jt]){cce(t);return}if(t[jt].destroyed||t[jt].busy(r))return;!r.aborted&&t[jt].write(r)?t[ji]++:t[Xi].splice(t[ji],1)}}uce.exports=AO});var uO=E((_Mt,lce)=>{"use strict";var oN=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)}};lce.exports=class{constructor(){this.head=this.tail=new oN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new oN),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 aN=E((HMt,Ice)=>{"use strict";var{PoolStats:tKe}=e4(),rKe=Yl(),sKe=uO(),{kConnected:lO,kSize:dce,kRunning:hce,kPending:gce,kQueued:DE,kBusy:nKe,kFree:iKe,kUrl:oKe,kClose:aKe,kDestroy:AKe,kDispatch:cKe}=$e(),Sr=Symbol("clients"),os=Symbol("needDrain"),RE=Symbol("queue"),dO=Symbol("closed resolve"),hO=Symbol("onDrain"),fce=Symbol("onConnect"),pce=Symbol("onDisconnect"),mce=Symbol("onConnectionError"),gO=Symbol("get dispatcher"),Ece=Symbol("add client"),Cce=Symbol("remove client"),fO=class extends rKe{[RE]=new sKe;[DE]=0;[Sr]=[];[os]=!1;[hO](e,r,s){let n=this[RE],i=!1;for(;!i;){let o=n.shi 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())}};Gle.exports=D_});var k_=E((EUt,Jle)=>{"use strict";var{InvalidArgumentError:oZe}=me(),{runtimeFeatures:aZe}=lA();function AZe(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 Yle=aZe.has("crypto")?w("node:crypto"):null,cZe=Yle?.hash?t=>Yle.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Vle(t){return Array.isArray(t)&&(t.length&1)===0}function uZe(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 lZe(t){let e={};if(!t)return e;if(Vle(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 qle=["record","playback","update"];function dZe(t){if(!qle.includes(t))throw new oZe(`Invalid snapshot mode: ${t}. Must be one of: ${qle.join(", ")}`)}Jle.exports={createHeaderFilters:AZe,hashId:cZe,isUndiciHeaders:Vle,normalizeHeaders:lZe,isUrlExcludedFactory:uZe,validateSnapshotMode:dZe}});var tde=E((CUt,ede)=>{"use strict";var{writeFile:hZe,readFile:gZe,mkdir:fZe}=w("node:fs/promises"),{dirname:pZe,resolve:Wle}=w("node:path"),{setTimeout:mZe,clearTimeout:zle}=w("node:timers"),{InvalidArgumentError:Kle,UndiciError:EZe}=me(),{hashId:CZe,isUrlExcludedFactory:IZe,normalizeHeaders:Xle,createHeaderFilters:jle}=k_();function VE(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Xle(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:Zle(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Zle(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 $le(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 JE(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 CZe(r)}var F_=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=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=jle(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=IZe(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=VE(e,this.#a,this.matchOptions),n=JE(s),i=Xle(r.headers),o={statusCode:r.statusCode,headers:$le(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.#n&&!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.#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=VE(e,this.#a,this.matchOptions),s=JE(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 Kle("Snapshot path is required");try{let s=await gZe(Wle(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 EZe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Kle("Snapshot path is required");let s=Wle(r);await fZe(pZe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hZe(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${En} (
-- 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${En}_getValuesQuery ON cacheInterceptorV${En}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_deleteByUrlQuery ON cacheInterceptorV${En}(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${En}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Fo} SET
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${En} 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.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${En} (
url,
method,
body,
@@ -331,124 +182,116 @@ ${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${En} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${En}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${En}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Fo}
FROM cacheInterceptorV${En}
ORDER BY cachedAt DESC
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){t6(e);let r=this.#l(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){t6(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#n.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.#d(),this.#i.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))}createWriteStream(e,r){t6(e),oet(r);let s=0,n=[],i=this;return new iet({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.#u(e))}#d(){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}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(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)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!aet(n[l],u[l])){c=!1;break}}if(c)return A}}};function aet(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,s)=>r===e[s]):t===e}});var ud=E((HUt,Ahe)=>{"use strict";var{kConstruct:Aet}=$e(),{kEnumerableProperty:Bf}=Ie(),{iteratorMixin:cet,isValidHeaderName:XE,isValidHeaderValue:she}=hn(),{webidl:Pe}=kr(),s6=w("node:assert"),PN=w("node:util");function rhe(t){return t===10||t===13||t===9||t===32}function nhe(t){let e=0,r=t.length;for(;r>e&&rhe(t.charCodeAt(r-1));)--r;for(;r>e&&rhe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ihe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Pe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});n6(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)n6(t,r[s],e[r[s]])}else throw Pe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function n6(t,e,r){if(r=nhe(r),XE(e)){if(!she(r))throw Pe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(ahe(t)==="immutable")throw new TypeError("immutable");return _N(t).append(e,r,!1)}function uet(t){let e=_N(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 ohe(t,e){return t[0]<e[0]?-1:1}var ON=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.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":ffe(i)&&(r[n]=i);break;case"id":pfe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&ffe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pfe(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}}};mfe.exports={EventSourceStream:H6}});var Nfe=E((dLt,wfe)=>{"use strict";var{pipeline:xnt}=w("node:stream"),{fetching:Dnt}=tC(),{makeRequest:Rnt}=Qf(),{webidl:As}=kr(),{EventSourceStream:knt}=Efe(),{parseMIMEType:Fnt}=ai(),{createFastMessageEvent:Mnt}=lS(),{isNetworkError:Cfe}=ZE(),{kEnumerableProperty:Ed}=Ie(),{environmentSettingsObject:Ife}=hn(),Bfe=!1,yfe=3e3,AC=0,Qfe=1,cC=2,Unt="anonymous",Lnt="use-credentials",Ff=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=AC;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),As.util.markAsUncloneable(this);let s="EventSource constructor";As.argumentLengthCheck(arguments,1,s),Bfe||(Bfe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=As.converters.USVString(e),r=As.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Ife,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=Unt;r.withCredentials===!0&&(o=Lnt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ife.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=Rnt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===cC)return;this.#r=AC;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!Cfe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Cfe(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?Fnt(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=Qfe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new knt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Mnt(A.type,A.options))}});xnt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Dnt(e)}#c(){this.#r!==cC&&(this.#r=AC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===AC&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){As.brandCheck(this,t),this.#r!==cC&&(this.#r=cC,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=As.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=As.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=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},bfe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:AC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Qfe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:cC,writable:!1}};Object.defineProperties(Ff,bfe);Object.defineProperties(Ff.prototype,bfe);Object.defineProperties(Ff.prototype,{close:Ed,onerror:Ed,onmessage:Ed,onopen:Ed,readyState:Ed,url:Ed,withCredentials:Ed});As.converters.EventSourceInitDict=As.dictionaryConverter([{key:"withCredentials",converter:As.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:As.converters.any},{key:"node",converter:As.dictionaryConverter([{key:"reconnectionTime",converter:As.converters["unsigned long"],defaultValue:()=>yfe},{key:"dispatcher",converter:As.converters.any}]),defaultValue:()=>({})}]);wfe.exports={EventSource:Ff,defaultReconnectionTime:yfe}});var kfe=E((hLt,W)=>{"use strict";var vnt=Jc(),Tfe=aE(),Pnt=jl(),Ont=Tce(),_nt=kce(),Hnt=ed(),Gnt=UO(),Ynt=RO(),qnt=fue(),Vnt=Bue(),Jnt=bue(),xfe=me(),bS=Ie(),{InvalidArgumentError:QS}=xfe,Mf=ile(),Wnt=ql(),znt=C_(),{MockCallHistory:Knt 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}W.exports.fetch=function(e,r=void 0){return oit(e,r).catch(s=>{throw Sfe?Rfe(s,Sfe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=ud().Headers;W.exports.Response=ZE().Response;W.exports.Request=Qf().Request;W.exports.FormData=Ww().FormData;var{setGlobalOrigin:ait,getGlobalOrigin:Ait}=I4();W.exports.setGlobalOrigin=ait;W.exports.getGlobalOrigin=Ait;var{CacheStorage:cit}=lge(),{kConstruct:uit}=$e();W.exports.caches=new cit(uit);var{deleteCookie:lit,getCookies:dit,getSetCookies:hit,setCookie:git,parseCookie:fit}=bge();W.exports.deleteCookie=lit;W.exports.getCookies=dit;W.exports.getSetCookies=hit;W.exports.setCookie=git;W.exports.parseCookie=fit;var{parseMIMEType:pit,serializeAMimeType:mit}=ai();W.exports.parseMIMEType=pit;W.exports.serializeAMimeType=mit;var{CloseEvent:Eit,ErrorEvent:Cit,MessageEvent:Iit}=lS(),{WebSocket:Bit,ping:yit}=nfe();W.exports.WebSocket=Bit;W.exports.CloseEvent=Eit;W.exports.ErrorEvent=Cit;W.exports.MessageEvent=Iit;W.exports.ping=yit;W.exports.WebSocketStream=dfe().WebSocketStream;W.exports.WebSocketError=L6().WebSocketError;W.exports.request=uC(Mf.request);W.exports.stream=uC(Mf.stream);W.exports.pipeline=uC(Mf.pipeline);W.exports.connect=uC(Mf.connect);W.exports.upgrade=uC(Mf.upgrade);W.exports.MockClient=znt;W.exports.MockCallHistory=Knt;W.exports.MockCallHistoryLog=Xnt;W.exports.MockPool=Znt;W.exports.MockAgent=jnt;W.exports.SnapshotAgent=$nt;W.exports.mockErrors=eit;var{EventSource:Qit}=Nfe();W.exports.EventSource=Qit;function bit(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=bit});var lC=E(iu=>{"use strict";iu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");iu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");iu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";iu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);iu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);iu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());iu.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 Mfe=E((pLt,Ffe)=>{"use strict";var{asciiLowercase:wS,solelyContainsHTTPTokenCodePoints:wit,soleyContainsHTTPQuotedStringTokenCodePoints:Nit}=lC();Ffe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=wS(String(e)),this._map.get(e)}has(e){return e=wS(String(e)),this._map.has(e)}set(e,r){if(e=wS(String(e)),r=String(r),!wit(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Nit(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=wS(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 vfe=E((mLt,Lfe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Sit,removeTrailingHTTPWhitespace:Ufe,isHTTPWhitespaceChar:Tit,solelyContainsHTTPTokenCodePoints:G6,soleyContainsHTTPQuotedStringTokenCodePoints:xit,asciiLowercase:Y6,collectAnHTTPQuotedString:Dit}=lC();Lfe.exports=t=>{t=Sit(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!G6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Ufe(s),s.length===0||!G6(s))return null;let n={type:Y6(r),subtype:Y6(s),parameters:new Map};for(;e<t.length;){for(++e;Tit(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Y6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Dit(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Ufe(o),o==="")continue}i.length>0&&G6(i)&&xit(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var Ofe=E((ELt,Pfe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Rit}=lC();Pfe.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+="=",(!Rit(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Yfe=E((ILt,Gfe)=>{"use strict";var kit=Mfe(),Fit=vfe(),Mit=Ofe(),{asciiLowercase:_fe,solelyContainsHTTPTokenCodePoints:Hfe}=lC();Gfe.exports=class{constructor(e){e=String(e);let r=Fit(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 kit(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=_fe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Hfe(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=_fe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Hfe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Mit(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 X6 from"os";function yA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function dC(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 QA(t,e,r){let s=new DS(t,e,r);process.stdout.write(s.toString()+X6.EOL)}function RS(t,e=""){QA(t,{},e)}var K6="::",DS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=K6+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 fD(t){process.exitCode=hD.Failure,Uu(t)}function VA(){return process.env.RUNNER_DEBUG==="1"}function U(t){QA("debug",{},t)}function Uu(t,e={}){QA("error",dC(e),t instanceof Error?t.toString():t)}function ht(t,e={}){QA("warning",dC(e),t instanceof Error?t.toString():t)}function H7(t,e={}){QA("notice",dC(e),t instanceof Error?t.toString():t)}function de(t){process.stdout.write(t+_7.EOL)}function G7(t){RS("group",t)}function Y7(){RS("endgroup")}function vp(t,e){if(process.env.GITHUB_STATE||"")return Z6("STATE",$6(t,e));QA("save-state",{name:t},yA(e))}function JA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as zSe,existsSync as KSe}from"fs";import{EOL as XSe}from"os";var fh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KSe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(zSe(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${XSe}`)}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 CD=Ee(z7(),1),K7=Ee(uB(),1),cTe=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 X7(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 j7(t){return new CD.HttpClient().getAgent(t)}function uTe(t){return new CD.HttpClient().getAgentDispatcher(t)}function Z7(t){let e=uTe(t);return(s,n)=>cTe(this,void 0,void 0,function*(){return(0,K7.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function $7(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ID(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 WA(){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 bB(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)=>bB.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 eW(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 tW(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 rW=Function.bind,sW=rW.bind(rW);function nW(t,e,r){let s=sW(tW,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]=sW(eW,null).apply(null,i)})}function dTe(){let t=Symbol("Singular"),e={registry:{}},r=bB.bind(null,e,t);return nW(r,e,t),r}function hTe(){let t={registry:{}},e=bB.bind(null,t);return nW(e,t),e}var iW={Singular:dTe,Collection:hTe};var gTe="0.0.0-development",fTe=`octokit-endpoint.js/${gTe} ${WA()}`,pTe={method:"GET",baseUrl:"https://api.github.com",hea Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var ZTe=class extends Error{constructor(t,e,r){super(jTe(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},$Te=["method","baseUrl","url","headers","request","query","mediaType","operationName"],exe=["query","method","url"],xW=/\/api\/v3\/?$/;function txe(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(exe.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)=>$Te.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 xW.test(i)&&(n.url=i.replace(xW,"/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 ZTe(n,a,o.data)}return o.data.data})}function xD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>txe(r,n,i),{defaults:xD.bind(null,r),endpoint:r.endpoint})}var tct=xD(_p,{headers:{"user-agent":`octokit-graphql.js/${XTe} ${WA()}`},method:"POST",url:"/graphql"});function DW(t){return xD(t,{method:"POST",url:"/graphql"})}var DD="(?:[a-zA-Z0-9_-]+)",RW="\\.",kW=new RegExp(`^${DD}${RW}${DD}${RW}${DD}$`),rxe=kW.test.bind(kW);async function sxe(t){let e=rxe(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 nxe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ixe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=nxe(t),e(n)}var FW=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(sxe.bind(null,e),{hook:ixe.bind(null,e)})};var RD="7.0.6";var MW=()=>{},oxe=console.warn.bind(console),axe=console.error.bind(console);function Axe(t={}){return typeof t.debug!="function"&&(t.debug=MW),typeof t.info!="function"&&(t.info=MW),typeof t.warn!="function"&&(t.warn=oxe),typeof t.error!="function"&&(t.error=axe),t}var UW=`octokit-core.js/${RD} ${WA()}`,SB=class{static VERSION=RD;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 iW.Collection,s={baseUrl:_p.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} ${UW}`:UW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_p.defaults(s),this.graphql=DW(this.request).defaults(s),this.log=Axe(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=FW(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 kD="17.0.0";var cxe={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}"],createOrgVariable:["POST /orgs/{or Line truncated
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
`)}
`:`${YW(t.status,e)}
${TOt(e)}
${OD[t.status]}
`}function XW(t){return t==="enabled"||t==="read-only"||t==="write-only"}function YW(t,e){if(!XW(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"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 Cxe(t){return t?mxe[t]:void 0}function Ixe(t){if(t)return t==="not-registered"?`Project state (build-logic and configuration cache) was not cached - this repository is not registered for advanced caching. [Register this repository](${zW()}), or provide a \`develocity-access-key\` and \`develocity-server-url\`.`:Exe[t]}function jW(t){if(t==="not-registered")return`Advanced caching (build-logic and configuration cache) was not enabled: this repository is not registered. Register it at ${zW()}, or provide a develocity-access-key and develocity-server-url.`}function Bxe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${fs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${pxe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${fs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${fs}#enhanced-caching)** provider.`}function yxe(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=ZW(e)?`Entries: ${r} restored (${TB(e,u=>u.restoredSize)}Mb), ${s} saved (${TB(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?Cxe(t.cleanup):void 0,o=Ixe(t.projectCache),a=Qxe(t.entries),A=`<pre>
${bxe(t.entries)}</pre>`,c=[OD[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 ZW(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Qxe(t){return ZW(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>${qW(t,e=>e.restoredSize)}</td>
<td>${TB(t,e=>e.restoredSize)}</td>
<td>${VW(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>${qW(t,e=>e.savedSize)}</td>
<td>${TB(t,e=>e.savedSize)}</td>
<td>${VW(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function kOt(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function bxe(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: ${JW(e.restoredSize)}
Time: ${WW(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Rke(e.savedSize)}
Time: ${Ske(e.savedTime)}
${xOt(e,t.cacheReadOnly)}
Size: ${JW(e.savedSize)}
Time: ${WW(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 qW(t,e){return t.filter(r=>e(r)).length}function TB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function VW(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function JW(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function WW(t){return t===void 0||t===0?"":`${t} ms`}import*as E0 from"path";import*as yh from"fs";function _D(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as FB from"path";import*as Ch from"path";import Pu from"assert";var zA=process.platform==="win32";function Fa(t){if(t=ka(t),zA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Ch.dirname(t);return zA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ka(e)),e}function xB(t,e){if(Pu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Pu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hp(e))return e;if(zA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Pu(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(Ti(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Pu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Pu(Hp(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||zA&&t.endsWith("\\")||(t+=Ch.sep),t+e}function Hp(t){return Pu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ti(t),zA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Gp(t){return Pu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ti(t),zA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ti(t){return t=t||"",zA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ka(t){return t?(t=Ti(t),!t.endsWith(Ch.sep)||t===Ch.sep||zA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var xi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(xi||(xi={}));var $W=process.platform==="win32";function GD(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=$W?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=$W?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Fa(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Fa(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function ez(t,e){let r=xi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function tz(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Qz from"os";import*as Bh from"path";var bz=Ee(yz(),1);import Gu from"assert";import*as _u from"path";import qp from"assert";var zxe=process.platform==="win32",Hu=class{constructor(e){if(this.segments=[],typeof e=="string")if(qp(e,"Parameter 'itemPath' must not be empty"),e=ka(e),!Gp(e))this.segments=e.split(_u.sep);else{let r=e,s=Fa(r);for(;s!==r;){let n=_u.basename(r);this.segments.unshift(n),r=s,s=Fa(r)}this.segments.unshift(r)}else{qp(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];qp(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ti(e[r]),r===0&&Gp(s)?(s=ka(s),qp(s===Fa(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(qp(!s.includes(_u.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(_u.sep)||zxe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=_u.sep,e+=this.segments[s];return e}};var{Minimatch:Kxe}=bz.default,Ma=process.platform==="win32",Vp=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Gu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Gu(c&&Hp(c),"Parameter 'segments' first element must be a root path"),i=new Hu(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(`
`)}
</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>
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Vp(i));return s.searchPaths.push(...GD(s.patterns)),s})}static stat(e,r,s){return WD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield yh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`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 yh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield yh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var $xe=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 wz(t,e){return $xe(this,void 0,void 0,function*(){return yield kB.create(t,e)})}var EX=Ee(pX(),1);import*as zB from"crypto";import*as Nh from"fs";import*as Yu from"path";import*as CX from"util";var Zp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zp||(Zp={}));var jr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(jr||(jr={}));var Zs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zs||(Zs={}));var JB=2,WB=5e3,gR=5e3,fR=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,mX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$p="cache.tar",pR="manifest.txt",Vut=10*Math.pow(1024,3);var wh=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())})},ake=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)}},Ake="1.0";function em(){return wh(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=Yu.join(s,"actions","temp")}let r=Yu.join(e,zB.randomUUID());return yield gB(r),r})}function fo(t){return Nh.statSync(t).size}function mR(t){return wh(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 wz(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=ake(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Yu.relative(a,n).replace(new RegExp(`\\${Yu.sep}`,"g"),"/");U(`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 tm(t){return wh(this,void 0,void 0,function*(){return CX.promisify(Nh.unlink)(t)})}function IX(t){return wh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),U(`Checking ${e} ${r.join(" ")}`);try{yield mB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){U(n.message)}return s=s.trim(),U(s),s})}function rm(){return wh(this,void 0,void 0,function*(){let t=yield IX("zstd",["--quiet"]),e=EX.clean(t);return U(`zstd version: ${e}`),t===""?jr.Gzip:jr.ZstdWithoutLong})}function ZA(t){return t===jr.Gzip?Zp.Gzip:Zp.Zstd}function BX(){return wh(this,void 0,void 0,function*(){return Nh.existsSync(fR)?fR:(yield IX("tar")).toLowerCase().includes("gnu tar")?Da("tar"):""})}function ER(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Sh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Ake),zB.createHash("sha256").update(s.join("|")).digest("hex")}function yX(){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 sg from"fs";import{URL as V3e}from"url";var po=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as cke}from"node:os";import uke from"node:util";import lke from"node:process";function QX(t,...e){lke.stderr.write(`${uke.format(t,...e)}${cke}`)}import sm from"node:process";function XB(t){return sm.env[t]}var bX=typeof sm.versions.deno=="string"&&sm.versions.deno.length>0,wX=typeof sm.versions.bun=="string"&&sm.versions.bun.length>0,jB=!0;var NX=XB("DEBUG"),TX,CR=[],IR=[],ZB=[];NX&&BR(NX);var xX=Object.assign(t=>DX(t),{enable:BR,enabled:yR,disable:dke,log:QX});function BR(t){TX=t,CR=[],IR=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?IR.push(r.substring(1)):CR.push(r);for(let r of ZB)r.enabled=yR(r.namespace)}function yR(t){if(t.endsWith("*"))return!0;for(let e of IR)if(SX(t,e))return!1;for(let e of CR)if(SX(t,e))return!0;return!1}function SX(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 dke(){let t=TX||"";return BR(""),t}function DX(t){let e=Object.assign(r,{enabled:yR(t),destroy:hke,log:xX.log,namespace:t,extend:gke});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return ZB.push(e),e}function hke(){let t=ZB.indexOf(this);return t>=0?(ZB.splice(t,1),!0):!1}function gke(t){let e=DX(`${this.namespace}:${t}`);return e.log=this.log,e}var Th=xX;var QR=["verbose","info","warning","error"],RX={verbose:400,info:300,warning:200,error:100};function kX(t,e){e.log=(...r)=>{t.log(...r)}}function FX(t){return QR.includes(t)}function $B(t){let e=new Set,r=XB(t.logLevelEnvVarName),s,n=Th(t.namespace);n.log=(...u)=>{Th.log(...u)};function i(u){if(u&&!FX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${QR.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Th.enable(l.join(","))}r&&(FX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${QR.join(", ")}.`));function o(u){return!!(s&&RX[u.level]<=RX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(kX(u,d),o(d)){let h=Th.disable();Th.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return kX(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 MX=$B({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),fke=MX.logger;function nm(t){return MX.createClientLogger(t)}function ey(t){return t.toLowerCase()}function pke(t){return String(t).trim().replace(/[\r\n]/g,"")}function*mke(t){for(let e of t.values())yield[e.name,e.value]}var bR=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(ey(e),{name:e,value:pke(r)})}get(e){return this._headersMap.get(ey(e))?.value}has(e){return this._headersMap.has(ey(e))}delete(e){this._ Line truncated
${Bke.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xh(t){return t instanceof Zr?!0:Vu(t)&&t.name==="RestError"}function ps(t,e){return Buffer.from(t,e)}import TR from"node:http";import xR from"node:https";import vX from"node:zlib";import{Transform as yke}from"node:stream";var ms=nm("ts-http-runtime");var Qke={};function im(t){return t&&typeof t.pipe=="function"}function PX(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 OX(t){return t&&typeof t.byteLength=="number"}var sy=class extends yke{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}},DR=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new po("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 Di;ms.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=Ske(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new sy(f);p.on("error",I=>{ms.error("Error in upload progress",I)}),im(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=bke(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?wke(c,u):c;let h=e.onDownloadProgress;if(h){let f=new sy(h);f.on("error",p=>{ms.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 Nke(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();im(a)&&(c=PX(a));let u=Promise.resolve();im(A)&&(u=PX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ms.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?TR.request(a,A):xR.request(a,A);u.once("error",l=>{c(new Zr(l.message,{code:l.code??Zr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new po("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&im(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):OX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ms.error("Unrecognized body type",s),c(new Zr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?TR.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new TR.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return xR.globalAgent;let n=e.tlsSettings??Qke,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ms.info("No cached TLS Agent exist, creating a new Agent"),i=new xR.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function bke(t){let e=$s();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 wke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=vX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=vX.createInflate();return t.pipe(s),s}return t}function Nke(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 Zr(`Error reading response as text: ${n.message}`,{code:Zr.PARSE_ERROR}))})})}function Ske(t){return t?Buffer.isBuffer(t)?t.length:im(t)?null:OX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function _X(){return new DR}function ny(){return _X()}var RR="logPolicy";function iy(t={}){let e=t.logger??ms.info,r=new Di({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:RR,async sendRequ Line truncated
`;return e}function zFe(t){return t instanceof Uint8Array?t.byteLength:Am(t)?t.size===-1?void 0:t.size:void 0}function KFe(t){let e=0;for(let r of t){let s=zFe(r);if(s===void 0)return;e+=s}return e}async function XFe(t,e,r){let s=[ps(`--${r}`,"utf-8"),...e.flatMap(i=>[ps(`\r
`,"utf-8"),ps(WFe(i.headers),"utf-8"),ps(`\r
`,"utf-8"),i.body,ps(`\r
--${r}`,"utf-8")]),ps(`--\r
\r
`,"utf-8")],n=KFe(s);n&&t.headers.set("Content-Length",n),t.body=await kj(s)}var cm="multipartPolicy",jFe=70,ZFe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function $Fe(t){if(t.length>jFe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ZFe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Sy(){return{name:cm,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?$Fe(r):r=JFe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await XFe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Ty(){return ry()}var Fj=$B({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Wgt=Fj.logger;function vn(t){return Fj.createClientLogger(t)}var Eo=vn("core-rest-pipeline");function KR(t={}){return iy({logger:Eo.info,...t})}var XR=wy;function jR(t={}){return Ny(t)}import ZR from"node:os";import tc from"node:process";function Mj(){return"User-Agent"}async function Uj(t){if(tc&&tc.versions){let e=`${ZR.type()} ${ZR.release()}; ${ZR.arch()}`;tc.versions.bun?t.set("Bun",`${tc.versions.bun} (${e})`):tc.versions.deno?t.set("Deno",`${tc.versions.deno} (${e})`):tc.versions.node&&t.set("Node",`${tc.versions.node} (${e})`)}}var xy="1.24.0";function aMe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Lj(){return Mj()}async function Dy(t){let e=new Map;e.set("core-rest-pipeline",xy),await Uj(e);let r=aMe(e);return t?`${t} ${r}`:r}var vj=Lj(),Pj="userAgentPolicy";function $R(t={}){let e=Dy(t.userAgentPrefix);return{name:Pj,async sendRequest(r,s){return r.headers.has(vj)||r.headers.set(vj,await e),s(r)}}}var Oj=Symbol("rawContent");function ek(t){return typeof t[Oj]=="function"}function _j(t){return ek(t)?t[Oj]():t}var Ry=cm;function tk(){let t=Sy();return{name:Ry,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)ek(s.body)&&(s.body=_j(s.body));return t.sendRequest(e,r)}}}var rk=Qy;function sk(){return by()}function nk(t={}){return Ay(t)}function ik(){return cy()}var um=class extends Error{constructor(e){super(e),this.name="AbortError"}};function ok(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new um(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 pMe="The delay was aborted.";function Uh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return ok(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??pMe})}function rc(t){if(Vu(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 Hj(t){return Vu(t)}function Lh(){return qu()}var Xe=jB;function sc(t){return VR(t)}function Ak(t,e){return yy(t,e)}var Gj="setClientRequestIdPolicy";function ck(t="x-ms-client-request-id"){return{name:Gj,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function uk(t){return uy(t)}function lk(t){return ly(t)}var vh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Yj(t={}){let e=new dk(t.parentContext);return t.span&&(e=e.setValue(vh.span,t.span)),t.namespace&&(e=e.setValue(vh.namespace,t.namespace)),e}var dk=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 Vj=Ee(qj(),1),Fy=Vj.state;function mMe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function EMe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:mMe(),tracingContext:Yj({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function lm(){return Fy.instrumenterImplementation||(Fy.instrumenterImplementation=EMe()),Fy.instrumenterImplementation}function dm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=lm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(vh.namespace)||( 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--),!_Ue(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Jt("InvalidTag",l,$r(t,i))}let c=UUe(t,i);if(c===!1)return Jt("InvalidAttr","Attributes for '"+A+"' have open quote.",$r(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=NZ(u,e);if(d===!0)s=!0;else return Jt(d.err.code,d.err.msg,$r(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Jt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",$r(t,o));if(r.length===0)return Jt("InvalidTag","Closing tag '"+A+"' has not been opened.",$r(t,o));{let l=r.pop();if(A!==l.tagName){let d=$r(t,l.tagStartPos);return Jt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",$r(t,o))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",$r(t,i));else{let l=NZ(u,e);if(l!==!0)return Jt(l.err.code,l.err.msg,$r(t,i-u.length+l.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",$r(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=wZ(t,i);continue}else if(t[i+1]==="?"){if(i=bZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=PUe(t,i);if(l==-1)return Jt("InvalidChar","char '&' is not expected.",$r(t,i));i=l}else if(n===!0&&!QZ(t[i]))return Jt("InvalidXml","Extra text at the end",$r(t,i));t[i]==="<"&&i--}}else{if(QZ(t[i]))continue;return Jt("InvalidChar","char '"+t[i]+"' is not expected.",$r(t,i))}if(s){if(r.length==1)return Jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",$r(t,r[0].tagStartPos));if(r.length>0)return Jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Jt("InvalidXml","Start tag expected.",1);return!0}function QZ(t){return t===" "||t===" "||t===`
`||t==="\r"}function bZ(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 Jt("InvalidXml","XML declaration allowed only at the start of the document.",$r(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function wZ(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 FUe='"',MUe="'";function UUe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===FUe||t[e]===MUe)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}}var LUe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function NZ(t,e){let r=Gy(t,LUe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",ym(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",ym(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",ym(r[n]));let i=r[n][2];if(!OUe(i))return Jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",ym(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Jt("InvalidAttr","Attribute '"+i+"' is repeated.",ym(r[n]))}return!0}function vUe(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 PUe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vUe(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 Jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function OUe(t){return Dk(t)}function _Ue(t){return Dk(t)}function $r(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function ym(t){return t.startIndex+t[1].length}var SZ={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},TZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},xZ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaLine truncated
`);let e=new Bs("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new wm(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=Yh(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=Pk(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(),s="",a=u}else if(c===63){let u=Ok(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 Bs(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Yh(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){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=Yh(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=Ok(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}=Pk(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 I=r;I&&n.unpairedTagsSet.has(I.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,b={},T;T=dLe(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(b=lLe(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let _=this.readStopNodeData(t,d,p+1);if(!_)throw new Error(`Unexpected end of ${d}`);a=_.i,M=_.tagContent}let F=new Bs(l);C&&(F[":@"]=C),F.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,R)}else{if(m){({tagName:l,tagExp:h}=Pk(n.transformTagName,l,h,n));let M=new Bs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Bs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Bs(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,R),r=M}s="",a=p}}}else s+=t[a];return e.child};function ELe(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 CLe(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 ILe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function BLe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function yLe(t,e,r=">"){Line truncated
`;function DLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Vk(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function t$(t,e,r,s,n){return!r.sanitizeName||Zu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function qk(t,e){let r="";e.format&&(r=xLe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new sn(a)):a instanceof sn&&s.push(a)}let n=DLe(t,e),i=new Bo;return r$(t,e,r,i,s,n)}function r$(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=t.toString();return A=Yk(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=Vk(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:t$(u,!1,e,s,i),h=RLe(c[":@"],e);s.push(d,h);let f=FLe(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=Yk(b,e)),a&&(o+=r),o+=b,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let b=c[u][0][e.textNodeName],T=$y(b);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],T=Zy(b);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=e$(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${b}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=e$(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=s$(c[u],e):C=r$(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 RLe(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]=oc(t[n]),s=!0}return s?r:null}function s$(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Vk(n);if(i===e.textNodeName)r+=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=kLe(n[":@"],e),a=s$(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function kLe(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)}="${oc(n)}"`}return r}function Vk(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 e$(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:t$(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=Yk(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${oc(c)}"`}return i}function FLe(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 Yk(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 Jk(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 MLe={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({},MLe,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 sn(r)):r instanceof sn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ULe(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 Wk(t,e,r,s,n){return!r.sanitizeName||Zu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Qs.prototype.build=function(t){if(this.options.preserveOrder)return qk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Bo,r=ULe(t,this.options);return this.j2x(t,0,e,r).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:Wk(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=Wk(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[A],a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+t[A]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+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 I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+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=Wk(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+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,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+oc(e)+'"'};function LLe(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]=oc(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]=oc(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.textNodeName)e+=s;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===pe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE));r.sort((n,i)=>uQ(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=aQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=AQ(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 Dt=class extends tl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dm(e,r,this)}computeHMACSHA256(e){return zLe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rl=class extends Error{constructor(e){super(e),this.name="AbortError"}};var or=vn("storage-common");var Pn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Pn||(Pn={}));var Ac={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},KLe=new rl("The operation was aborted."),Rm=class extends yo{retryOptions;constructor(e,r,s=Ac){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Ac.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Ac.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Ac.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Ac.maxRetryDelayInMs):Ac.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Ac.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Ac.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=oQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ac(n.url,Pa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(or.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(or.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 or.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 or.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 or.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return or.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(pe.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')?(or.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 Pn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Pn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return or.info(`RetryPolicy: Delay for ${n}ms`),cQ(n,s,KLe)}};var km=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Rm(e,r,this.retryOptions)}};var XLe="storageBrowserPolicy";function A$(){return{name:XLe,async sendRequest(t,e){return Xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ac(t.url,Pa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(pe.COOKIE),t.headers.delete(pe.CONTENT_LENGTH)),e(t)}}}var jLe="StorageCorrectContentLengthPolicy";function c$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:jLe,async sendRequest(e,r){return t(e),r(e)}}}var ZLe="storageRetryPolicy",Vh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$Le=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],eve=new rl("The operation was aborted.");function u$(t={}){let e=t.retryPolicyType??Vh.retryPolicyType,r=t.maxTries??Vh.maxTries,s=t.retryDelayInMs??Vh.retryDelayInMs,n=t.maxRetryDelayInMs??Vh.maxRetryDelayInMs,i=t.secondaryHost??Vh.secondaryHost,o=t.tryTimeoutInMs??Vh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return or.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of $Le)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=tve("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(pe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===pe.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>uQ(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=aQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=AQ(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:rve,async sendRequest(i,o){return e(i),o(i)}}}var sve="storageRequestFailureDetailsParserPolicy";function l$(){return{name:sve,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 nve}from"node:crypto";var lQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return nve("sha256",this.key).update(e,"utf8").digest("base64")}};var dQ="12.31.0",hQ="2026-02-06";var gQ="https://storage.azure.com/.default",Oa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ri="",$k="*",ive=1*1024*1024;var ove=4*ive;var d$="AES256",h$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",g$=["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"],f$=["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"],p$="BlobUsesCustomerSpecifiedEncryption",m$="BlobDoesNotUseCustomerSpecifiedEncryption",E$=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(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 Fm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Wt(t,e={}){t||(t=new yt);let r=new Fm([],e);return r._credential=t,r}function ave(t){let e=[Ave,C$,cve,uve,lve,dve,gve];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>hve(n));return{wrappedPolicies:Tk(r),afterRetry:s}}}}function eF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?xk(e):jk(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${dQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=fm({...r,loggingOptions:{additionalAllowedHeaderNames:g$,additionalAllowedQueryParameters:f$,logger:tQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:eQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Kk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:rk}),n.addPolicy(c$()),n.addPolicy(u$(r.retryOptions),{phase:"Retry"}),n.addPolicy(l$()),n.addPolicy(A$());let a=ave(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=tF(t);tn(A)?n.addPolicy(Ph({credential:A,scopes:r.audience??gQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Li(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 A3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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 Li(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 c3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function u3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(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 Li(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 l3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(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 Li(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,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function d3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(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,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function h3e(t,e){if(t=ll(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",ul(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(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,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function ul(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ll(t){let e=t.version?t.version:hQ;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 Vm=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=Lh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(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!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(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!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(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!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS 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"}};tg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var gl=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"}};gl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var $m=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var L3e=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())})},TL=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);de(`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 kee(t,e,r){return L3e(this,void 0,void 0,function*(){var s;let n=new Wa(t),i=n.getBlockBlobClient(),o=new TL((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(),U(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Ab(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Mee from"buffer";import*as Ho from"fs";import*as Uee from"stream";import*as Lee from"util";var cb=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 ub(t){return t?t>=200&&t<300:!1}function v3e(t){return t?t>=500:!0}function P3e(t){return t?[xt.BadGateway,xt.ServiceUnavailable,xt.GatewayTimeout].includes(t):!1}function O3e(t){return cb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Fee(t,e,r){return cb(this,arguments,void 0,function*(s,n,i,o=JB,a=WB,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),!v3e(d)))return l;if(d&&(h=P3e(d),c=`Cache service responded with ${d}`),U(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){U(`${s} - Error is not retryable`);break}yield O3e(a),u++}throw Error(`${s} failed: ${c}`)})}function e0(t,e){return cb(this,arguments,void 0,function*(r,s,n=JB,i=WB){return yield Fee(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof lo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function rg(t,e){return cb(this,arguments,void 0,function*(r,s,n=JB,i=WB){return yield Fee(r,s,o=>o.message.statusCode,n,i)})}var Yn=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 _3e(t,e){return Yn(this,void 0,void 0,function*(){yield Lee.promisify(Uee.pipeline)(t.message,e)})}var lb=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,U(`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);de(`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||[])U(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function kL(t,e,r){return ws(this,void 0,void 0,function*(){let s=new V3e(t),n=_ee(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Pee(t,e,n):n.concurrentBlobDownloads?yield vee(t,e,n):yield db(t,e):yield db(t,e)})}function Wee(t,e,r){return ws(this,void 0,void 0,function*(){let s=RL(),n=Sh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield e0("reserveCache",()=>ws(this,void 0,void 0,function*(){return s.postJson(r0("caches"),i)}))})}function Vee(t,e){return`bytes ${t}-${e}/*`}function K3e(t,e,r,s,n){return ws(this,void 0,void 0,function*(){U(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${Vee(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Vee(s,n)},o=yield rg(`uploadChunk (start: ${s}, end: ${n})`,()=>ws(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!ub(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function X3e(t,e,r,s){return ws(this,void 0,void 0,function*(){let n=fo(r),i=r0(`caches/${e.toString()}`),o=sg.openSync(r,"r"),a=xL(s),A=ER("uploadConcurrency",a.uploadConcurrency),c=ER("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];U("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ws(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 K3e(t,i,()=>sg.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{sg.closeSync(o)}})}function j3e(t,e,r){return ws(this,void 0,void 0,function*(){let s={size:r};return yield e0("commitCache",()=>ws(this,void 0,void 0,function*(){return t.postJson(r0(`caches/${e.toString()}`),s)}))})}function FL(t,e,r,s){return ws(this,void 0,void 0,function*(){if(xL(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kee(r,e,s)}else{let i=RL();U("Upload cache"),yield X3e(i,t,e,s),U("Commiting cache");let o=fo(e);de(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield j3e(i,t,o);if(!ub(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);de("Cache saved successfully")}})}var Hte=Ee(Mte(),1),Xt=Ee(Kt(),1),an=Ee(Kt(),1),Cl=Ee(Kt(),1),Il=Ee(Kt(),1),Bl=Ee(Kt(),1);var Sv=Ee(Kt(),1),Tv=Ee(Kt(),1),Pte=Ee(Kt(),1),Ote=Ee(Kt(),1),_te=Ee(Kt(),1);var bv=Ee(Kt(),1),wv=Ee(Kt(),1),Ute=Ee(Kt(),1),Lte=Ee(Kt(),1),vte=Ee(Kt(),1),Nv=class extends vte.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,Lte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ute.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?wv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,bv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,bv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?wv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},$b=new Nv;var xv=class extends _te.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:()=>$b}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Ote.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Pte.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($b.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?Tv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Sv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)$b.internalBinaryWrite(e.scope[i],r.tag(2,Sv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Tv.UnknownFieldHandler.onWrit Line truncated
`));let s=yield qv(r,"create");yield Vv(s,t)})}var Ig=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())})},Oi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Cg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},r1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Vte(t){if(!t||t.length===0)throw new Oi("Path Validation Error: At least one directory or file path is required")}function zv(t){if(t.length>512)throw new Oi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Oi(`Key Validation Error: ${t} cannot contain commas.`)}function Jte(){return t0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Wte(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=t0();return U(`Cache service version: ${c}`),Vte(n),c==="v2"?yield gOe(n,i,o,a,A):yield hOe(n,i,o,a,A)})}function hOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)zv(d);let u=yield rm(),l="";try{let d=yield Jee(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return de("Lookup only - skipping download"),d.cacheKey;l=E0.join(yield em(),ZA(u)),U(`Archive Path: ${l}`),yield kL(d.archiveLocation,l,a),VA()&&(yield m0(l,u));let h=fo(l);return de(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Jv(l,u),de("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Oi.name)throw d;h instanceof lo&&typeof h.statusCode=="number"&&h.statusCode>=500?Uu(`Failed to restore: ${d.message}`):ht(`Failed to restore: ${d.message}`)}finally{try{yield tm(l)}catch(d){U(`Failed to delete archive: ${d}`)}}})}function gOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)zv(l);let u="";try{let l=Yv(),d=yield rm(),h={key:i,restoreKeys:o,version:Sh(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){U(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?de(`Cache hit for restore-key: ${f.matchedKey}`):de(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return de("Lookup only - skipping download"),f.matchedKey;u=E0.join(yield em(),ZA(d)),U(`Archive path: ${u}`),U(`Starting download of archive to: ${u}`),yield kL(f.signedDownloadUrl,u,a);let I=fo(u);return de(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),VA()&&(yield m0(u,d)),yield Jv(u,d),de("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Oi.name)throw l;d instanceof lo&&typeof d.statusCode=="number"&&d.statusCode>=500?Uu(`Failed to restore: ${l.message}`):ht(`Failed to restore: ${l.message}`)}finally{try{u&&(yield tm(u))}catch(l){U(`Failed to delete archive: ${l}`)}}})}function zte(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){let a=t0();return U(`Cache service version: ${a}`),Vte(s),zv(n),a==="v2"?yield pOe(s,n,i,o):yield fOe(s,n,i,o)})}function fOe(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield rm(),h=-1,f=yield mR(s);if(U("Cache Paths:"),U(`${JSON.stringify(f)}`),f.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 p=yield em(),I=E0.join(p,ZA(d));U(`Archive Path: ${I}`);try{yield Wv(p,f,d),VA()&&(yield m0(I,d));let m=10*1024*1024*1024,C=fo(I);if(U(`File Size: ${C}`),C>m&&!DL())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);U("Reserving Cache");let b=yield Wee(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=b?.result)===null||a===void 0)&&a.cacheId)h=(A=b?.result)===null||A===void 0?void 0:A.cacheId;else throw b?.statusCode===400?new Error((u=(c=b?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Cg(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=b?.error)===null||l===void 0?void 0:l.message}`);U(`Saving Cache (ID: ${h})`),yield FL(h,I,"",i)}catch(m){let C=m;if(C.name===Oi.name)throw m;C.name Line truncated
<h3>Job Summary for Gradle</h3>
<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=eP(),i=PD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ht(bOe(o));else throw o}}function bOe(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 wOe(t){return`${SOe()}
${xOe(t)}`}function NOe(){let t=jte();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function SOe(){let t=Xte();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>${Zv()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${t$t(e)}</li>`).join("")}
${t.map(e=>`<li>${TOe(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 TOe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function xOe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -456,35 +299,65 @@ 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("")}
</tr>${t.map(e=>ROe(e)).join("")}
</table>
`}function A$t(t){return`
`}function DOe(t){return t.some(e=>e.buildFailed)}function ROe(t){return`
<tr>
<td>${g8e(t.rootProjectName,30)}</td>
<td>${g8e(t.requestedTasks,60)}</td>
<td>${ere(t.rootProjectName,30)}</td>
<td>${ere(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 align='center'>${kOe(t)}</td>
<td>${FOe(t)}</td>
</tr>`}function kOe(t){return t.buildFailed?":x:":":white_check_mark:"}function FOe(t){return t.buildScanFailed?tP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?tP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):tP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function tP({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 ere(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function MOe(){let t=Eh;if(t.payload.pull_request==null){de("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;de(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=rre(t),s=PD(eP()),{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 ht(`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(()=>de(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ht(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function rre(t){return`<!-- gradle-job-summary: ${s1.constructJobCorrelator(t.workflow,t.job,$v())} -->`}var sre=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 s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[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 Wn from"fs";import*as Xa from"path";function nre(){return ore().map(e=>{let r=Wn.readFileSync(e,"utf8"),s=JSON.parse(r);return vOe(e,s),s})}function ire(){ore().forEach(OOe)}function ore(){let t=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Wn.existsSync(t)?Wn.readdirSync(t).map(e=>Xa.resolve(t,e)).filter(e=>Xa.extname(e)===".json"&&!POe(e)):[]}function vOe(t,e){let r=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Wn.existsSync(r))return;let s=Xa.resolve(r,Xa.basename(t));if(Wn.existsSync(s)){let n=Wn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function POe(t){let e=`${t}.processed`;return Wn.existsSync(e)}function OOe(t){let e=`${t}.processed`;Wn.writeFileSync(e,"")}import*as _re from"fs";import*as Hre from"path";import{pathToFileURL as s6e}from"url";import*as Qg from"fs";function rP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as l1 from"path";import*as Bg from"path";import Ql from"assert";var Ec=process.platform==="win32";function Za(t){if(t=ja(t),Ec&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Bg.dirname(t);return Ec&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ja(e)),e}function A1(t,e){if(Ql(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ql(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),B0(e))return e;if(Ec){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Ql(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(_i(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Ql(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Ql(B0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Ec&&t.endsWith("\\")||(t+=Bg.sep),t+e}function B0(t){return Ql(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=_i(t),Ec?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function y0(t){return Ql(t,"isRooted parameter 'itemPath' must not be empty"),t=_i(t),Ec?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function _i(t){return t=t||"",Ec?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ja(t){return t?(t=_i(t),!t.endsWith(Bg.sep)||t===Bg.sep||Ec&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Hi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Hi||(Hi={}));var are=process.platform==="win32";function nP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=are?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=are?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Za(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Za(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function Are(t,e){let r=Hi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function cre(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as xre from"os";import*as 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 S0(i));return s.searchPaths.push(...nP(s.patterns)),s})}static stat(e,r,s){return lP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Qg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`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 Qg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Qg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as dP from"crypto";import*as d1 from"fs";import*as Dre from"stream";import*as Rre from"util";import*as kre from"path";var X_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())})},j_e=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 Fre(t,e){return X_e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?de:U,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=dP.createHash("sha256"),f=0;try{for(var p=!0,I=j_e(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${kre.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(d1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=dP.createHash("sha256");yield Rre.promisify(Dre.pipeline)(d1.createReadStream(C),b),h.write(b.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}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 Mre=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 Z_e(t,e){return Mre(this,void 0,void 0,function*(){return yield u1.create(t,e)})}function Ure(t){return Mre(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield Z_e(e,{followSymbolicLinks:i});return Fre(o,r,n)})}import*as hP from"path";var e6e="Gradle User Home",Lre="BASIC_CACHE_PRIMARY_KEY",vre="BASIC_CACHE_RESTORED_KEY",t6e="setup-java",Pre=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],g1=class{async restore(e,r){let s=Ore(e),n=await r6e();vp(Lre,n);try{let i=await Wte(s,n);i?(vp(vre,i),de(`Basic caching restored from cache key: ${i}`)):de("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ht(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=JA(Lre),i=JA(vre);if(s.readOnly)return{status:"read-only",entries:[h1({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 de(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[h1({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Ore(e);try{return await zte(o,n),de(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[h1({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 ht(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[h1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function h1(t){return{entryName:e6e,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Pre}], make sure you have checked out the target repository`);return`${t6e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var n6e="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.",i6e="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.",fP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Gre(t){return t.isCacheDisabled()?(gP("Cache is disabled: will not restore state from previous builds."),new fP):t.getCacheProvider()==="basic"?(gP(i6e),new g1):(gP(n6e),o6e())}function Yre(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function o6e(){let t=a6e();return await import(s6e(t).href)}function a6e(){let t=import.meta.dirname,e=Hre.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(_re.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function gP(t){console.info(t)}import*as zre from"util";var g6e=Ee(Wre(),1);import*as pP from"fs";var l2t=zre.promisify(pP.readdir);var p6e={_useHtmlParser2:!1};function bg(t,e){if(!t)return e??p6e;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 _P={};mi(_P,{contains:()=>x1,extract:()=>u5e,html:()=>o5e,merge:()=>mse,parseHTML:()=>A5e,root:()=>c5e,text:()=>Fl,xml:()=>a5e});var wc={};mi(wc,{DocumentPosition:()=>jn,append:()=>G6e,appendChild:()=>H6e,compareDocumentPosition:()=>hse,existsOne:()=>lse,filter:()=>xg,find:()=>w1,findAll:()=>J6e,findOne:()=>N1,findOneChild:()=>V6e,getAttributeValue:()=>v6e,getChildren:()=>Tg,getElementById:()=>X6e,getElements:()=>K6e,getElementsByClassName:()=>j6e,getElementsByTagName:()=>kl,getElementsByTagType:()=>Z6e,getFeed:()=>OP,getInnerHTML:()=>L6e,getName:()=>O6e,getOuterHTML:()=>cse,getParent:()=>use,getSiblings:()=>vP,getText:()=>y1,hasAttrib:()=>P6e,hasChildren:()=>st,innerText:()=>F0,isCDATA:()=>wg,isComment:()=>Rl,isDocument:()=>Xn,isTag:()=>Z,isText:()=>xs,nextElementSibling:()=>Q1,prepend:()=>q6e,prependChild:()=>Y6e,prevElementSibling:()=>b1,removeElement:()=>rA,removeSubsets:()=>$6e,replaceElement:()=>_6e,testElement:()=>z6e,textContent:()=>tA,uniqueSort:()=>Qc});var Kn={};mi(Kn,{CDATA:()=>wP,Comment:()=>BP,Directive:()=>IP,Doctype:()=>NP,ElementType:()=>Le,Root:()=>EP,Script:()=>yP,Style:()=>QP,Tag:()=>bP,Text:()=>CP,isTag:()=>mP});var Le;(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"})(Le||(Le={}));function mP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var EP=Le.Root,CP=Le.Text,IP=Le.Directive,BP=Le.Comment,yP=Le.Script,QP=Le.Style,bP=Le.Tag,wP=Le.CDATA,NP=Le.Doctype;var f1=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 Ng(this,e)}},x0=class extends f1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Wo=class extends x0{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},Tl=class extends x0{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},xl=class extends x0{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},D0=class extends f1{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}},R0=class extends D0{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},cn=class extends D0{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},Dl=class extends D0{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}}) Line truncated
`:y1(t.children):wg(t)?y1(t.children):xs(t)?t.data:""}function tA(t){return Array.isArray(t)?t.map(tA).join(""):st(t)&&!Rl(t)?tA(t.children):xs(t)?t.data:""}function F0(t){return Array.isArray(t)?t.map(F0).join(""):st(t)&&(t.type===Le.Tag||wg(t))?F0(t.children):xs(t)?t.data:""}function Tg(t){return st(t)?t.children:[]}function use(t){return t.parent||null}function vP(t){let e=use(t);if(e!=null)return Tg(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 v6e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function P6e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function O6e(t){return t.name}function Q1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function b1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function rA(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 _6e(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 H6e(t,e){if(rA(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 G6e(t,e){rA(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 Y6e(t,e){if(rA(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 q6e(t,e){rA(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 xg(t,e,r=!0,s=1/0){return w1(t,Array.isArray(e)?e:[e],r,s)}function w1(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&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function V6e(t,e){return e.find(t)}function N1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=N1(t,i.children,!0);if(o)return o}}return null}function lse(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&lse(t,r.children))}function J6e(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]++];Z(i)&&t(i)&&r.push(i),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var S1={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(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=>xs(e)&&t(e.data):e=>xs(e)&&e.data===t}};function PP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function W6e(t,e){return r=>t(r)||e(r)}function dse(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(S1,r)?S1[r](s):PP(r,s)});return e.length===0?null:e.reduce(W6e)}function z6e(t,e){let r=dse(t);return r?r(e):!0}function K6e(t,e,r,s=1/0){let n=dse(t);return n?xg(n,e,r,s):[]}function X6e(t,e,r=!0){return Array.isArray(e)||(e=[e]),N1(PP("id",t),e,r)}function kl(t,e,r=!0,s=1/0){return xg(S1.tag_name(t),e,r,s)}function j6e(t,e,r=!0,s=1/0){return xg(PP("class",t),e,r,s)}function Z6e(t,e,r=!0,s=1/0){return xg(S1.tag_type(t),e,r,s)}function $6e(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 jn;(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"})(jn||(jn={}));function hse(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(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 jn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?jn.FOLLOWING|jn.CONTAINED_BY:jn.FOLLOWING:a===t?jn.PRECEDING|jn.CONTAINS:jn.PRECEDING}function Qc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=hse(e,r);return s&jn.PRECEDING?-1:s&jn.FOLLOWING?1:0}),t}function OP(t){let e=T1(n5e,t);return e?e.name==="feed"?e5e(e):t5e(e):null}function e5e(t){var e;let r=t.children,s={type:"atom",items:kl("entry",r).map(o=>{var a;let{children:A}=o,c={media:gse(A)};Ds(c,"id","id",A),Ds(c,"title","title",A);let u=(a=T1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=bc("summary",A)||bc("content",A);l&&( 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 ei=Ee(Nc(),1);var r3={};function s3(t,e){return t===ei.default.falseFunc?ei.default.falseFunc:r=>e.isTag(r)&&t(r)}function n3(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 t3(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 e3=(t,e,r,s,n)=>{let i=n(e,t3(r),s);return i===ei.default.trueFunc?t:i===ei.default.falseFunc?ei.default.falseFunc:o=>i(o)&&t(o)},H1={is:e3,matches:e3,where:e3,not(t,e,r,s,n){let i=n(e,t3(r),s);return i===ei.default.falseFunc?t:i===ei.default.trueFunc?ei.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=t3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(_0))?[r3]:void 0,A=n(e,o,a);if(A===ei.default.falseFunc)return ei.default.falseFunc;let c=s3(A,i);if(a&&A!==ei.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,...n3(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function rne(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in H1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return H1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:_1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,tne.parse)(c);return H1.is(t,u,r,s,n)}if(typeof A=="function")return $P(A,o,a,1),u=>A(u,a)&&t(u);if(o in Pg)return Pg[o](t,a,r,s);if(o in G0){let u=G0[o];return $P(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ti=Ee(Lg(),1);function i3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function sne(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ti.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ti.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ti.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()),jse[e.action](t,e,r)}case ti.SelectorType.Pseudo:return rne(t,e,r,s,n);case ti.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 ti.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=i3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=i3(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=i3(c,i));return!1};case ti.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ti.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ti.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 ti.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 ti.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function nne(t,e,r){let s=G1(t,e,r);return s3(s,e.adapter)}function G1(t,e,r){let s=typeof t=="string"?(0,Yi.parse)(t):t;return Y1(s,e,r)}function ine(t){return t.type===Yi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(ine)))}var K5e={type:Yi.SelectorType.Descendant},X5e={type:"_flexibleDescendant"},j5e={type:Yi.SelectorType.Pseudo,name:"scope",data:null};function Z5e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===r3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Bne,`\r
`)}}).toArray()}var B3={};mi(B3,{extract:()=>h9e});function d9e(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 h9e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=d9e(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 xc=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}}};xc.prototype.cheerio="[cheerio object]";xc.prototype.splice=Array.prototype.splice;xc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(xc.prototype,zP,m3,E3,C3,I3,B3);function yne(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=bg(n),a=t(s,o,i,null);class A extends xc{_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&&Zn(u))return u;let f=bg(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Zn(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&M0(u)?t(u,f,!1,null).children:g9e(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let b=u,T=l?typeof l=="string"?M0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):Zn(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return T?T.find(b):C}return Object.assign(c,_P,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function g9e(t){return!!t.name||t.type===Kn.Root||t.type===Kn.Text||t.type===Kn.Comment}var f9e=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]),lt="\uFFFD",B;(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"})(B||(B={}));var ns={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function K1(t){return t>=55296&&t<=57343}function Qne(t){return t>=56320&&t<=57343}function bne(t,e){return(t-55296)*1024+9216+e}function X1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function j1(t){return t>=64976&&t<=65007||f9e.has(t)}var D;(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 *)
*/
//# 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": ";s1BAAA,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
}
+176 -332
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 L8e=Object.create;var $M=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=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 E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},G8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P8e(e))!H8e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var LZ=E(Op=>{"use strict";var f7t=b("net"),z8e=b("tls"),tL=b("http"),_Z=b("https"),j8e=b("events"),g7t=b("assert"),K8e=b("util");Op.httpOverHttp=$8e;Op.httpsOverHttp=X8e;Op.httpOverHttps=Z8e;Op.httpsOverHttps=e4e;function $8e(t){var e=new uu(t);return e.request=tL.request,e}function X8e(t){var e=new uu(t);return e.request=tL.request,e.createSocket=FZ,e.defaultPort=443,e}function Z8e(t){var e=new uu(t);return e.request=_Z.request,e}function e4e(t){var e=new uu(t);return e.request=_Z.request,e.createSocket=FZ,e.defaultPort=443,e}function uu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=MZ(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)})}K8e.inherits(uu,j8e.EventEmitter);uu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,MZ(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)}})};uu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},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")),xl("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){xl("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){xl("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 xl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),xl(`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)}};uu.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 FZ(t,e){var r=this;uu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=z8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function MZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(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 xl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xl=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)}:xl=function(){};Op.debug=xl});var nL=E((m7t,UZ)=>{UZ.exports=LZ()});var yr=E((E7t,PZ)=>{PZ.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 Lt=E((C7t,uee)=>{"use strict";var OZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[OZ]===!0}[OZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{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[HZ]===!0}[HZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{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[GZ]===!0}[GZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{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[qZ]===!0}[qZ]=!0},YZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{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[YZ]===!0}[YZ]=!0},VZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function p5e(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(e5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function m5e(){return"allowed"}function E5e(){return"success"}function C5e(){return"success"}function I5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y5e(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&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":mS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Kp(t,e){return t}function B5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Kp(t.domainLookupStartTime,r),domainLookupEndTime:Kp(t.domainLookupEndTime,r),connectionStartTime:Kp(t.connectionStartTime,r),connectionEndTime:Kp(t.connectionEndTime,r),secureConnectionStartTime:Kp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Kp(i5e.now(),t)}function Q5e(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 Qte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=Ete();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=mS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(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=NI(t);return mS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(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 SI(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 N5e(t,e){if(pS===void 0)return!0;let r=wte(e);if(r==="no metadata"||r.length===0)return!0;let n=x5e(r),s=R5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=pS.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)),D5e(c,a))return!0}return!1}var T5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function wte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=T5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Ite.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function x5e(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 R5e(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 D5e(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 k5e(t){}function mS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function _5e(t){return t.controller.state==="aborted"}function F5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function M5e(t){return c5e[t.toLowerCase()]??t}function L5e(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 U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ste(t,e,r=0,n=1){class s{ Line truncated
`);function fHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function gHe(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 pHe(t,e){CS(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&&IS(t,dHe,i)||i.position===t.length-4&&IS(t,hHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=mHe(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",fHe(u)||(u=""),h=new uHe([d],A,{type:u})):h=iHe(Buffer.from(d)),CS(Ute(c)),CS(typeof h=="string"&&Ute(h)||aHe(h)),s.push(cHe(c,h,A))}}function mHe(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=Xp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!IS(t,lHe,e)||(e.position+=17,r=Hte(t,e),r===null))return"failure";if(IS(t,Ote,e)){let a=e.position+Ote.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Hte(t,e),n===null))return"failure"}break}case"content-type":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Pte(a);break}case"content-transfer-encoding":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Pte(a);break}default:Xp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Hte(t,e){CS(t[e.position-1]===34);let r=Xp(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 Xp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(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 IS(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}Gte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var tm=E((Y7t,Zte)=>{"use strict";var RI=dt(),{ReadableStreamFrom:EHe,isBlobLike:Yte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:Jte}=xi(),{FormData:Vte}=xI(),{kState:em}=Rl(),{webidl:QHe}=jn(),{Blob:wHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:zte,isDisturbed:SHe}=b("node:stream"),{isArrayBuffer:NHe}=b("node:util/types"),{serializeAMimeType:THe}=Ks(),{multipartFormDataParser:xHe}=qte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var yS=new TextEncoder;function RHe(){}var jte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Kte;jte&&(Kte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!zte(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function $te(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Yte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?yS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>IHe(c))},start(){},type:"bytes"}),aU(CHe(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(NHe(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(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=yS.encode(A+`; name="${u(l(I))}"\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(C),i+=C.byteLength}else{let C=yS.encode(`${A}; name="${u(l(I))}"`+(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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=yS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(Yte(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(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:EHe(t)}if((typeof s=="string"||RI.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(!zte(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 DHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),$te(t,e)}function kHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _He(t){return{blob(){return Zp(this,r=>{let n=Wte(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return Zp(this,r=>new Uint8Array(r).buffer,t)},text(){return Zp(this,Jte,t)},json(){return Zp(this,MHe,t)},formData(){return Zp(this,r=>{let n=Wte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=xHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Vte;return i[em]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Vte;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 Zp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function Zp(t,e,r){if(QHe.brandCheck(t,r),Xte(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[em]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[em].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[em].body,i,s),n.promise)}function Xte(t){let e=t[em].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(Jte(t))}function Wte(t){let e=t[em].headersList,r=bHe(e);return r==="failure"?null:r}Zte.exports={extractBody:$te,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:Kte,hasFinalizationRegistry:jte,bodyUnusable:Xte}});var ure=E((V7t,Are)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:ere}=Gp(),AU=YL(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:LHe,RequestAbortedError:ore,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:NS,InformationalError:rm,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=Lt(),{kUrl:are,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:qHe,kSize:tre,kWriting:kl,kQueue:xa,kNoRef:DI,kKeepAliveDefaultTimeout:YHe,kHostHeader:VHe,kPendingIdx:WHe,kRunningIdx:Qo,kError:wo,kPipelining:wS,kSocket:nm,kKeepAliveTimeoutValue:TS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:JHe,kKeepAliveTimeoutThreshold:zHe,kHeadersTimeout:jHe,kBodyTimeout:KHe,kStrictContentLength:fU,kMaxRequests:rre,kCounter:$He,kMaxResponseSize:XHe,kOnError:ZHe,kResume:Dl,kHTTPContext:cre}=yr(),Sc=Kee(),e9e=Buffer.alloc(0),BS=Buffer[Symbol.species],bS=Xe.addListener,t9e=Xe.removeAllListeners,lU;async function r9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(Zee())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onStatus(new BS(Nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderField(new BS(Nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderValue(new BS(Nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onBody(new BS(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=r9e();gU.catch();var gn=null,Nc=null,QS=0,Tc=null,n9e=0,kI=1,sm=2|kI,SS=4|kI,pU=8|n9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sc.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
`:p+=t[VHe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[m_]&&!h[bA]?p+=`connection: keep-alive\r
`:t[wS]&&!h[$s]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return ere.sendHeaders.hasSubscribers&&ere.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?sre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?sre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?ire(f,c.stream(),t,e,h,u,p,l):A9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?c9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?ire(f,c,t,e,h,u,p,l):Ge(!1),!0}function c9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new xS({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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ore;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[kl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.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 sre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(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
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!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
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Dl]()}catch(c){t(c)}}async function A9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;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[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
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[Dl]()}catch(c){t(c)}}async function ire(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var xS=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[kl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===sm&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[kl]=!1,e[wo])throw e[wo];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
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Vh;process.emitWarning(new Vh)}e[Mr].timeout&&e[Mr].timeoutType===sm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Dl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[kl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};Are.exports=s9e});var Ere=E((W7t,mre)=>{"use strict";var So=b("node:assert"),{pipeline:u9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:lre,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:RS,kReset:kS,kClient:im,kRunning:vS,kPending:l9e,kQueue:vl,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Rn,kStrictContentLength:d9e,kOnError:yU,kMaxConcurrentStreams:pre,kHTTP2Session:Da,kResume:_l,kSize:h9e,kHTTPContext:f9e}=yr(),pu=Symbol("open streams"),dre,hre=!1,DS;try{DS=b("node:http2")}catch{DS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:g9e,HTTP2_HEADER_METHOD:p9e,HTTP2_HEADER_PATH:m9e,HTTP2_HEADER_SCHEME:E9e,HTTP2_HEADER_CONTENT_LENGTH:C9e,HTTP2_HEADER_EXPECT:I9e,HTTP2_HEADER_STATUS:y9e}}=DS;function B9e(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 b9e(t,e){t[Rn]=e,hre||(hre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[RS],{createConnection:()=>e,peerMaxConcurrentStreams:t[pre]});r[pu]=0,r[im]=t,r[Rn]=e,Et.addListener(r,"error",w9e),Et.addListener(r,"frameError",S9e),Et.addListener(r,"end",N9e),Et.addListener(r,"goaway",T9e),Et.addListener(r,"close",function(){let{[im]:s}=this,{[Rn]:i}=s,o=this[Rn][ka]||this[ka]||new _I("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[l9e]===0);let a=s[vl].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[im][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new _I("closed",Et.getSocketInfo(this));t[Rn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[vS]===0),t.emit("disconnect",t[RS],[t],s),t[_l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return R9e(t,...s)},resume(){Q9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Q9e(t){let e=t[Rn];e?.destroyed===!1&&(t[h9e]===0&&t[pre]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function w9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][ka]=t,this[im][yU](t)}function S9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][ka]=n,this[im][yU](n)}}function N9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function T9e(t){let e=this[ka]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[im];if(r[Rn]=null,r[f9e]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Rn],e),r[Ra]<r[vl].length){let n=r[vl][r[Ra]];r[vl][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[vS]===0),r.emit("disconnect",r[RS],[r],e),r[_l]()}function x9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function R9e(t,e){let r=t[Da],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[RS];l[g9e]=i||`${h}${f?`:${f}`:""}`,l[p9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new lre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[Ra]++]=null,t[_l]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[pu],t[vl][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[vl][t[Ra]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[m9e]=s,l[E9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){dre??=tm().extractBody;let[N,M]=dre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),x9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[d9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[C9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[I9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[rGe]=c??3e5,this[tGe]=s??3e5,this[nGe]=C??!0,this[sGe]=N,this[wU]=O,this[Ml]=null,this[AGe]=P>-1?P:-1,this[lGe]=ee??100,this[Kr]=null,this[va]=[],this[Eu]=0,this[_a]=0,this[UI]=ce=>NU(this,ce),this[uGe]=ce=>Rre(this,ce)}get pipelining(){return this[LS]}set pipelining(e){this[LS]=e,this[UI](!0)}get[HI](){return this[va].length-this[_a]}get[OI](){return this[_a]-this[Eu]}get[PI](){return this[va].length-this[Eu]}get[z9e](){return!!this[Kr]&&!this[am]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(xre(this)||1)||this[HI]>0)}[J9e](e){Dre(this),this.once("connect",e)}[cGe](e,r){let n=e.origin||this[Rc].origin,s=new H9e(n,e,r);return this[va].push(s),this[Jh]||(Wh.bodyLength(s.body)==null&&Wh.isIterable(s.body)?(this[Jh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[Jh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[oGe](){return new Promise(e=>{this[PI]?this[Ml]=e:e(null)})}async[aGe](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Wh.errorRequest(this,o,e)}let s=()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},fGe=MS();function Rre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[_a]===t[Eu]);let r=t[va].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Wh.errorRequest(t,s,e)}mu(t[PI]===0)}}async function Dre(t){mu(!t[am]),mu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Tre.isIP(o)),r=o}t[am]=!0,om.beforeConnect.hasSubscribers&&om.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Fl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Wh.destroy(i.on("error",Sre),new Y9e);return}mu(i);try{t[Kr]=i.alpnProtocol==="h2"?await hGe(t,i):await dGe(t,i)}catch(o){throw i.destroy().on("error",Sre),o}t[am]=!1,i[iGe]=0,i[wU]=t[wU],i[W9e]=t,i[K9e]=null,om.connected.hasSubscribers&&om.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Rc],[t])}catch(i){if(t.destroyed)return;if(t[am]=!1,om.connectError.hasSubscribers&&om.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[OI]===0);t[HI]>0&&t[va][t[_a]].servername===t[Fl];){let o=t[va][t[_a]++];Wh.errorRequest(t,o,i)}else Rre(t,i);t.emit("connectionError",t[Rc],[t],i)}t[UI]()}function Nre(t){t[Ll]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[Jh]!==2&&(t[Jh]=2,gGe(t,e),t[Jh]=0,t[Eu]>256&&(t[va].splice(0,t[Eu]),t[_a]-=t[Eu],t[Eu]=0))}function gGe(t,e){for(;;){if(t.destroyed){mu(t[HI]===0);return}if(t[Ml]&&!t[PI]){t[Ml](),t[Ml]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ll]=2;else if(t[Ll]===2){e?(t[Ll]=1,queueMicrotask(()=>Nre(t))):Nre(t);continue}if(t[HI]===0||t[OI]>=(xre(t)||1))return;let r=t[va][t[_a]];if(t[Rc].protocol==="https:"&&t[Fl]!==r.servername){if(t[OI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new q9e("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[am])return;if(!t[Kr]){Dre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}kre.exports=SU});var TU=E(($7t,vre)=>{"use strict";var US=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)}};vre.exports=class{constructor(){this.head=this.tail=new US}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new US),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Fre=E((X7t,_re)=>{var{kFree:pGe,kConnected:mGe,kPending:EGe,kQueued:CGe,kRunning:IGe,kSize:yGe}=yr(),zh=Symbol("pool"),xU=class{constructor(e){this[zh]=e}get connected(){return this[zh][mGe]}get free(){return this[zh][pGe]}get pending(){return this[zh][EGe]}get queued(){return this[zh][CGe]}get running(){return this[zh][IGe]}get size(){return this[zh][yGe]}};_re.exports=xU});var FU=E((Z7t,Vre)=>{"use strict";var BGe=Wp(),bGe=TU(),{kConnected:RU,kSize:Mre,kRunning:Lre,kPending:Ure,kQueued:GI,kBusy:QGe,kFree:wGe,kUrl:SGe,kClose:NGe,kDestroy:TGe,kDispatch:xGe}=yr(),RGe=Fre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Pre=Symbol("onConnect"),Ore=Symbol("onDisconnect"),Hre=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
`: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
\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
\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
\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
\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
\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
${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())}};$se.exports=FP});var rN=E((NWt,rie)=>{"use strict";var Zse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rVe}=Lt(),nVe=um();tie()===void 0&&eie(new nVe);function eie(t){if(!t||typeof t.dispatch!="function")throw new rVe("Argument agent must implement Agent");Object.defineProperty(globalThis,Zse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function tie(){return globalThis[Zse]}rie.exports={setGlobalDispatcher:eie,getGlobalDispatcher:tie}});var nN=E((xWt,nie)=>{"use strict";nie.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 iie=E((RWt,sie)=>{"use strict";var sVe=FS();sie.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 sVe(r,o,s,i);return r(a,c)}}});var aie=E((DWt,oie)=>{"use strict";var iVe=WS();oie.exports=t=>e=>function(n,s){return e(n,new iVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aie=E((kWt,cie)=>{"use strict";var oVe=dt(),{InvalidArgumentError:aVe,RequestAbortedError:cVe}=Lt(),AVe=nN(),MP=class extends AVe{#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 aVe("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=oVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cVe(`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 uVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}cie.exports=uVe});var die=E((vWt,lie)=>{"use strict";var{isIP:lVe}=b("node:net"),{lookup:dVe}=b("node:dns"),hVe=nN(),{InvalidArgumentError:Im,InformationalError:fVe}=Lt(),uie=Math.pow(2,31)-1,LP=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 fVe("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){dVe(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===uie?(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===uie?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 UP(this,e,r)}},UP=class extends hVe{#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":Vae(i)&&(r[s]=i);break;case"id":Wae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Vae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Wae(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}}};Jae.exports={EventSourceStream:bO}});var rce=E((uJt,tce)=>{"use strict";var{pipeline:Qze}=b("node:stream"),{fetching:wze}=ry(),{makeRequest:Sze}=bm(),{webidl:bu}=jn(),{EventSourceStream:Nze}=zae(),{parseMIMEType:Tze}=Ks(),{createFastMessageEvent:xze}=xm(),{isNetworkError:jae}=ey(),{delay:Rze}=yO(),{kEnumerableProperty:uf}=dt(),{environmentSettingsObject:Kae}=xi(),$ae=!1,Xae=3e3,gy=0,Zae=1,py=2,Dze="anonymous",kze="use-credentials",_m=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),$ae||($ae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Xae};let s=Kae,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=Dze;r.withCredentials&&(o=kze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Kae.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=Sze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{jae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(jae(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?Tze(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=Zae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Nze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(xze(c.type,c.options))}});Qze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Rze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,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}},ece={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Zae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(_m,ece);Object.defineProperties(_m.prototype,ece);Object.defineProperties(_m.prototype,{close:uf,onerror:uf,onmessage:uf,onopen:uf,readyState:uf,url:uf,withCredentials:uf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);tce.exports={EventSource:_m,defaultReconnectionTime:Xae}});var VN=E((lJt,Ye)=>{"use strict";var vze=cm(),nce=II(),_ze=Am(),Fze=ene(),Mze=um(),Lze=zU(),Uze=Qne(),Pze=Rne(),sce=Lt(),YN=dt(),{InvalidArgumentError:qN}=sce,Fm=pse(),Oze=BI(),Hze=xP(),Gze=Xse(),qze=kP(),Yze=pP(),Vze=WS(),{getGlobalDispatcher:ice,setGlobalDispatcher:Wze}=rN(),Jze=nN(),zze=FS(),jze=MS();Object.assign(nce.prototype,Fm);Ye.exports.Dispatcher=nce;Ye.exports.Client=vze;Ye.exports.Pool=_ze;Ye.exports.BalancedPool=Fze;Ye.exports.Agent=Mze;Ye.exports.ProxyAgent=Lze;Ye.exports.EnvHttpProxyAgent=Uze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?u3:C.type==="?"?A3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==fT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===fT)return[n,s];if(!s)return Q$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=b$e;function b$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?u3:e.dot?g$e:p$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?w$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}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(YAe),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){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 p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===mf)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 Q$e(t){return t.replace(/\\(.)/g,"$1")}function w$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var qm=E((mjt,$Ae)=>{"use strict";var v$e="2.0.0",_$e=Number.MAX_SAFE_INTEGER||9007199254740991,F$e=16,M$e=250,L$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$Ae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:F$e,MAX_SAFE_BUILD_LENGTH:M$e,MAX_SAFE_INTEGER:_$e,RELEASE_TYPES:L$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((Ejt,XAe)=>{"use strict";var U$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};XAe.exports=U$e});var Ym=E((Uc,ZAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:d3,MAX_SAFE_BUILD_LENGTH:P$e,MAX_LENGTH:O$e}=qm(),H$e=vy();Uc=ZAe.exports={};var G$e=Uc.re=[],q$e=Uc.safeRe=[],me=Uc.src=[],Y$e=Uc.safeSrc=[],Ee=Uc.t={},V$e=0,h3="[a-zA-Z0-9-]",W$e=[["\\s",1],["\\d",O$e],[h3,P$e]],J$e=t=>{for(let[e,r]of W$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine 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+"+ZT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ftt()+e+" "+t[0]}function Ftt(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mtt(...t){return process.stderr.write(XT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function Ltt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Utt(){return process.env.DEBUG}function Ptt(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]]}ZT.exports=r8()(kn);var{formatters:Nde}=ZT.exports;Nde.o=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nde.O=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts)}});var ex=E((z$t,i8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?i8.exports=yde():i8.exports=Tde()});var Dde=E(oi=>{"use strict";var Ott=oi&&oi.__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]})),Htt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xde=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)&&Ott(e,t,r);return Htt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Gtt=xde(b("http")),qtt=xde(b("https"));async function Rde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Rde;async function Ytt(t){let r=(await Rde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=Ytt;function Vtt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qtt:Gtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=Vtt});var a8=E(qi=>{"use strict";var vde=qi&&qi.__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]})),Wtt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_de=qi&&qi.__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)&&vde(e,t,r);return Wtt(e,t),e},Jtt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var ztt=_de(b("net")),kde=_de(b("http")),jtt=b("https");Jtt(Dde(),qi);var Hc=Symbol("AgentBaseInternalState"),o8=class extends kde.Agent{constructor(e){super(e),this[Hc]={}}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 ztt.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)?jtt.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 kde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Hc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Hc].currentSocket;if(this[Hc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hc]&&(this[Hc].defaultPort=e)}get protocol(){return this[Hc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hc]&&(this[Hc].protocol=e)}};qi.Agent=o8});var Fde=E(Zm=>{"use strict";var Ktt=Zm&&Zm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.parseProxyResponse=void 0;var $tt=Ktt(ex()),tx=(0,$tt.default)("https-proxy-agent:parse-proxy-response");function Xtt(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(),tx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),tx("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){tx("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}tx("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Zm.parseProxyResponse=Xtt});var Hde=E(Fo=>{"use strict";var Ztt=Fo&&Fo.__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]})),ert=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pde=Fo&&Fo.__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)&&Ztt(e,t,r);return ert(e,t),e},Ode=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpsProxyAgent=void 0;var rx=Pde(b("net")),Mde=Pde(b("tls")),trt=Ode(b("assert")),rrt=Ode(ex()),nrt=a8(),srt=b("url"),irt=Fde(),zy=(0,rrt.default)("https-proxy-agent"),Lde=t=>t.servername===void 0&&t.host&&!rx.isIP(t.host)?{...t,servername:t.host}:t,nx=class extends nrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new srt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("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?Ude(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:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Mde.connect(Lde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=rx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=rx.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,irt.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",ort),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Mde.connect({...Ude(Lde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new rx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,trt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};nx.protocols=["http","https"];Fo.HttpsProxyAgent=nx;function ort(t){t.resume()}function Ude(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yde=E(Mo=>{"use strict";var art=Mo&&Mo.__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]})),crt=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qde=Mo&&Mo.__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)&&art(e,t,r);return crt(e,t),e},Art=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpProxyAgent=void 0;var urt=qde(b("net")),lrt=qde(b("tls")),drt=Art(ex()),hrt=b("events"),frt=a8(),Gde=b("url"),e0=(0,drt.default)("http-proxy-agent"),sx=class extends frt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gde.URL(e):e,this.proxyHeaders=r?.headers??{},e0("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?grt(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 Gde.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;e0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(e0("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),e0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(e0("Creating `tls.Socket`: %o",this.connectOpts),i=lrt.connect(this.connectOpts)):(e0("Creating `net.Socket`: %o",this.connectOpts),i=urt.connect(this.connectOpts)),await(0,hrt.once)(i,"connect"),i}};sx.protocols=["http","https"];Mo.HttpProxyAgent=sx;function grt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var fhe=E(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var Dhe=E(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var lpe=E((jfr,bct)=>{bct.exports={name:"@actions/cache",version:"6.0.1",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 hpe=E((Kfr,dpe)=>{var Qct=lpe();dpe.exports={version:Qct.version}});var ZR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function vct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=vct;function _ct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=_ct});var tD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<Gu.length;t++)eD[Gu[t].charCodeAt(0)]=t;eD[45]=Gu.indexOf("+");eD[95]=Gu.indexOf("/");function Fct(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=eD[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)}w0.base64decode=Fct;function Mct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}w0.base64encode=Mct});var Epe=E(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var XH=t=>String.fromCharCode.apply(String,t);function Lct(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(XH(n)),s=0);return r.length?(s&&r.push(XH(n.slice(0,s))),r.join("")):XH(n.slice(0,s))}rD.utf8read=Lct});var YB=E(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.WireType=dA.mergeBinaryOptions=dA.UnknownFieldHandler=void 0;var Uct;(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])})(Uct=dA.UnknownFieldHandler||(dA.UnknownFieldHandler={}));function Pct(t,e){return Object.assign(Object.assign({},t),e)}dA.mergeBinaryOptions=Pct;var Oct;(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"})(Oct=dA.WireType||(dA.WireType={}))});var sD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Hct(){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")}hi.varint64read=Hct;function Gct(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)}}hi.varint64write=Gct;var nD=65536*65536;function qct(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>=nD&&(s=s+(n/nD|0),n=n%nD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=qct;function Yct(t,e){if(e>>>0<=2097151)return""+(nD*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)}hi.int64toString=Yct;function Vct(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)}}hi.varint32write=Vct;function Wct(){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}hi.varint32read=Wct});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var VB=sD(),ir;function Cpe(){let t=new DataView(new ArrayBuffer(8));ir=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}md.detectBi=Cpe;Cpe();function Ipe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ype=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=w9});var N9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var $pe=At();function fut(t,e){if(!e)return t;let r={};kD(t,r),kD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$pe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$pe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kD(t.meta,r.meta),kD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}vD.mergeRpcOptions=fut;function kD(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 x9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var gA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gA=jf.DeferredState||(jf.DeferredState={}));var T9=class{constructor(e=!0){this._state=gA.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!==gA.PENDING)throw new Error(`cannot resolve ${gA[this.state].toLowerCase()}`);this._resolve(e),this._state=gA.RESOLVED}reject(e){if(this.state!==gA.PENDING)throw new Error(`cannot reject ${gA[this.state].toLowerCase()}`);this._reject(e),this._state=gA.REJECTED}resolvePending(e){this._state===gA.PENDING&&this.resolve(e)}rejectPending(e){this._state===gA.PENDING&&this.reject(e)}};jf.Deferred=T9});var D9=E(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Xpe=x9(),Kf=At(),R9=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){Kf.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){Kf.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){Kf.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(){Kf.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;Kf.assert(e,"bad state"),Kf.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 Xpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==Xpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_D.RpcOutputStreamController=R9});var v9=E(k0=>{"use strict";var gut=k0&&k0.__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(k0,"__esModule",{value:!0});k0.UnaryCall=void 0;var k9=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 gut(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}})}};k0.UnaryCall=k9});var F9=E(v0=>{"use strict";var put=v0&&v0.__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(v0,"__esModule",{value:!0});v0.ServerStreamingCall=void 0;var _9=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 aIe=E(oIe=>{"use strict";var xY=Zu().Buffer;oIe._dbcs=el;var Zn=-1,iIe=-2,sa=-10,Us=-1e3,lE=new Array(256),Vb=-1;for(mk=0;mk<256;mk++)lE[mk]=Zn;var mk;function el(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]=lE.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(lE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(lE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=iIe)}}}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 dIt(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($Ct.has(s)){r=s;break}}return r}function hIt(t,e){let r=dIt(e);r!==""&&(t.referrerPolicy=r)}function fIt(){return"allowed"}function gIt(){return"success"}function pIt(){return"success"}function mIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function EIt(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&&JV(t.origin)&&!JV(wg(t))&&(e=null);break;case"same-origin":eQ(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function CIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pE(t.domainLookupStartTime,r),domainLookupEndTime:pE(t.domainLookupEndTime,r),connectionStartTime:pE(t.connectionStartTime,r),connectionEndTime:pE(t.connectionEndTime,r),secureConnectionStartTime:pE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function IIt(t){return pE(tIt.now(),t)}function yIt(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 LBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function BIt(t){return{referrerPolicy:t.referrerPolicy}}function bIt(t){let e=t.referrerPolicy;tQ(e);let r=null;if(t.referrer==="client"){let i=kBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else qd.is.URL(t.referrer)&&(r=t.referrer);let n=WV(r),s=WV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??WV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return eQ(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return eQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return eQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function WV(t,e=!1){return tQ(qd.is.URL(t)),t=new URL(t),HBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var QIt=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)$/),wIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function UBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),wIt(t)):QIt(t)}function SIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||UBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:SIt(t.origin):!1}function NIt(t){}function eQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function TIt(t){return t.controller.state==="aborted"}function xIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function RIt(t){return nIt[t.toLowerCase()]??t}var DIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function PBe(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,DIt),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 kIt(t,e,r,n=0,s=1){let i=PBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>r7(a)&&a!==59,t,e);i=e7.decode(o)}return{name:n,value:i}}function ryt(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 yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=t7(o,!0,!0,a=>a===9||a===32),!zIt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,aa(a=>a===32||a===9,t,e),JIt(o)){case"content-disposition":{if(r=n=null,aa(c=>r7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=tyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=aa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),s=JBe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),i=JBe(a);break}default:aa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function t7(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 nyt(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 yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function syt(t){return t<=31||t===127}function iyt(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 r7(t){return t<=127&&t!==32&&t!==9&&!syt(t)&&!iyt(t)}zBe.exports={multipartFormDataParser:eyt,validateBoundary:ZIt}});var rQ=E((rBr,KBe)=>{"use strict";function oyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}KBe.exports={createDeferredPromise:oyt}});var CE=E((nBr,tbe)=>{"use strict";var i7=Ze(),{ReadableStreamFrom:ayt,readableStreamClose:cyt,fullyReadBody:Ayt,extractMimeType:uyt}=ro(),{FormData:$Be,setFormDataState:lyt}=Gk(),{webidl:cc}=es(),n7=b("node:assert"),{isErrored:s7,isDisturbed:dyt}=b("node:stream"),{isUint8Array:hyt}=b("node:util/types"),{serializeAMimeType:fyt}=oa(),{multipartFormDataParser:gyt}=jBe(),{createDeferredPromise:pyt}=rQ(),{parseJSONFromBytes:myt}=nl(),{utf8DecodeBytes:Eyt}=Mk(),{runtimeFeatures:Cyt}=sl(),Iyt=Cyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qk=new TextEncoder;function yyt(){}var Byt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dyt(e)&&!s7(e)&&e.cancel("Response object has been garbage collected").catch(yyt)});function ZBe(t,e=!1){let r=null,n=null;cc.is.ReadableStream(t)?r=t:cc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),n7(cc.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(cc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cc.is.BufferSource(t))i=cc.util.getCopyOfBytesHeldByBufferSource(t);else if(cc.is.FormData(t)){let A=`----formdata-undici-0${`${Iyt(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 p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=qk.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
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=qk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.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
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=qk.encode(`--${A}--\r
`);h.push(I),o+=I.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=${A}`}else if(cc.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(i7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=cc.is.ReadableStream(t)?t:ayt(t)}return(typeof i=="string"||hyt(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(s7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!s7(r)&&n.enqueue(typeof A=="string"?qk.encode(A):new Uint8Array(A));queueMicrotask(()=>cyt(n))})(),[{stream:r,source:i,length:o},a]}function byt(t,e=!1){return cc.is.ReadableStream(t)&&(n7(!i7.isDisturbed(t),"The body has already been consumed."),n7(!t.locked,"The stream is locked.")),ZBe(t,e)}function Qyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function wyt(t,e){return{blob(){return EE(this,n=>{let s=XBe(e(this));return s===null?s="":s&&(s=fyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,Eyt,t,e)},json(){return EE(this,myt,t,e)},formData(){return EE(this,n=>{let s=XBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=gyt(n,s),o=new $Be;return lyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new $Be;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 EE(this,n=>new Uint8Array(n),t,e)}}}function Syt(t,e){Object.assign(t.prototype,wyt(t,e))}function EE(t,e,r,n){try{cc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),ebe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=pyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Ayt(t.body,o,i),s.promise)}function ebe(t){let e=t.body;return e!=null&&(e.stream.locked||i7.isDisturbed(e.stream))}function XBe(t){let e=t.headersList,r=uyt(e);return r==="failure"?null:r}tbe.exports={extractBody:ZBe,safelyExtractBody:byt,cloneBody:Qyt,mixinBody:Syt,streamRegistry:Byt,bodyUnusable:ebe}});var dbe=E((sBr,lbe)=>{"use strict";var Ve=b("node:assert"),Je=Ze(),{channels:rbe}=Hd(),o7=HY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Nyt,RequestAbortedError:cbe,HeadersTimeoutError:Tyt,HeadersOverflowError:xyt,SocketError:iQ,InformationalError:IE,BodyTimeoutError:Ryt,HTTPParserError:Dyt,ResponseExceededMaxSizeError:kyt}=Ke(),{kUrl:Abe,kReset:Bi,kClient:h7,kParser:Wr,kBlocking:oQ,kRunning:ms,kPending:vyt,kSize:nbe,kWriting:Vd,kQueue:Ac,kNoRef:nQ,kKeepAliveDefaultTimeout:_yt,kHostHeader:Fyt,kPendingIdx:Myt,kRunningIdx:ca,kError:Aa,kPipelining:Wk,kSocket:yE,kKeepAliveTimeoutValue:zk,kMaxHeadersSize:Lyt,kKeepAliveMaxTimeout:Uyt,kKeepAliveTimeoutThreshold:Pyt,kHeadersTimeout:Oyt,kBodyTimeout:Hyt,kStrictContentLength:A7,kMaxRequests:sbe,kCounter:Gyt,kMaxResponseSize:qyt,kOnError:Yyt,kResume:Yd,kHTTPContext:ube,kClosed:u7}=Kt(),SA=tBe(),Vyt=Buffer.alloc(0),Yk=Buffer[Symbol.species],Wyt=Je.removeAllListeners,a7;function Jyt(){let t=process.env.JEST_WORKER_ID?vV():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(sBe())}catch{}return e||(e=new WebAssembly.Module(t||vV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onStatus(new Yk(NA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onHeaderField(new Yk(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onHeaderValue(new Yk(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-TA+NA.byteOffset;return Bn.onBody(new Yk(NA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var c7=null,Bn=null,NA=null,Vk=0,TA=null,zyt=0,sQ=1,BE=2|sQ,Jk=4|sQ,l7=8|zyt,d7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(SA.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[Lyt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[qyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[KYr],i?p+=`connection: upgrade\r
`:p+=t[Fyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[sV]&&!h[dc]?p+=`connection: keep-alive\r
`:t[Wk]&&!h[Bi]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return rbe.sendHeaders.hasSubscribers&&rbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?obe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?obe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?abe(f,c.stream(),t,e,h,u,p,l):iBt(f,c,t,e,h,u,p,l):Je.isStream(c)?sBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?abe(f,c,t,e,h,u,p,l):Ve(!1),!0}function sBt(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new jk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new cbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.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 obe(t,e,r,n,s,i,o,a){try{e?Je.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[Bi]=!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[Yd]()}catch(c){t(c)}}async function iBt(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 Sg;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[Bi]=!0),r[Yd]()}catch(c){t(c)}}async function abe(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===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[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var jk=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[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[A7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!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[Wr].timeout&&r[Wr].timeoutType===BE&&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[Vd]=!1,e[Aa])throw e[Aa];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[A7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Yd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(Ve(n[ms]<=1,"pipeline should only contain this request"),s(e))}};lbe.exports=jyt});var ybe=E((iBr,Ibe)=>{"use strict";var la=b("node:assert"),{pipeline:oBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:m7,RequestAbortedError:aBt,SocketError:uQ,InformationalError:Wd,InvalidArgumentError:cBt}=Ke(),{kUrl:AQ,kReset:Zk,kClient:no,kRunning:lQ,kPending:ABt,kQueue:Jd,kPendingIdx:C7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:uBt,kOnError:bE,kMaxConcurrentStreams:$k,kPingInterval:hbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:lBt,kHTTP2ConnectionWindowSize:dBt,kResume:xA,kSize:hBt,kHTTPContext:I7,kClosed:E7,kBodyTimeout:fBt,kEnableConnectProtocol:aQ,kRemoteSettings:cQ,kHTTP2Stream:Kk,kHTTP2SessionState:y7}=Kt(),{channels:fbe}=Hd(),ua=Symbol("open streams"),gbe,Xk;try{Xk=b("node:http2")}catch{Xk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:gBt,HTTP2_HEADER_METHOD:pbe,HTTP2_HEADER_PATH:mbe,HTTP2_HEADER_SCHEME:f7,HTTP2_HEADER_CONTENT_LENGTH:pBt,HTTP2_HEADER_EXPECT:mBt,HTTP2_HEADER_STATUS:g7,HTTP2_HEADER_PROTOCOL:EBt,NGHTTP2_REFUSED_STREAM:CBt,NGHTTP2_CANCEL:IBt}}=Xk;function p7(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 yBt(t,e){t[Dr]=e;let r=t[lBt],n=t[dBt],s=Xk.connect(t[AQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[$k],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[y7]={ping:{interval:t[hbe]===0?null:setInterval(wBt,t[hbe],s).unref()}},s[aQ]=!1,s[cQ]=!1,n&&ut.addListener(s,"connect",bBt.bind(s,n)),ut.addListener(s,"error",SBt),ut.addListener(s,"frameError",NBt),ut.addListener(s,"end",TBt),ut.addListener(s,"goaway",xBt),ut.addListener(s,"close",RBt),ut.addListener(s,"remoteSettings",QBt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",kBt),ut.addListener(e,"end",vBt),ut.addListener(e,"close",DBt),e[E7]=!1,e.on("close",_Bt),{version:"h2",defaultPipelining:1/0,write(i){return MBt(t,i)},resume(){BBt(t)},destroy(i,o){e[E7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[lQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1;return!1}}}function BBt(t){let e=t[Dr];e?.destroyed===!1&&(t[hBt]===0||t[$k]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function bBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function QBt(t){if(this[no][$k]=t.maxConcurrentStreams??this[no][$k],this[cQ]===!0&&this[aQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[aQ]=t.enableConnectProtocol??this[aQ],this[cQ]=!0,this[no][xA]()}function wBt(t){let e=t[y7];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[no],o=this[no];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function SBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function NBt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function TBt(){let t=new uQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function xBt(t){let e=this[so]||new uQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[I7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[uc]<r[Jd].length){let n=r[Jd][r[uc]];r[Jd][r[uc]++]=null,ut.errorRequest(r,n,e),r[C7]=r[uc]}la(r[lQ]===0),r.emit("disconnect",r[AQ],[r],e),r.emit("connectionError",r[AQ],[r],e),r[xA]()}function RBt(){let{[no]:t,[y7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new uQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[I7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[ABt]===0);let s=t[Jd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function DBt(){let t=this[so]||new uQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[I7]=null,this[ol]!==null&&this[ol].destroy(t),e[C7]=e[uc],la(e[lQ]===0),e.emit("disconnect",e[AQ],[e],t),e[xA]()}function kBt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function vBt(){ut.destroy(this,new uQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;fbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[mBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[g7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),p7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jd][t[uc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[uc]++]=null,t[C7]=t[uc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Ebe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Ebe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Cbe(m,f,d.stream(),t,e,t[Dr],y,C):UBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?LBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Cbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Ebe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Zk]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function LBt(t,e,r,n,s,i,o,a){la(a!==0||i[lQ]===0,"stream body cannot be pipelined");let c=oBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Zk]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function UBt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new m7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Zk]=!0),n[xA]()}catch(c){t(c)}}async function Cbe(t,e,r,n,s,i,o,a){la(o!==0||n[lQ]===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)=>{la(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Zk]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Ibe.exports=yBt});var Xd=E((oBr,Rbe)=>{"use strict";var al=b("node:assert"),Sbe=b("node:net"),dQ=b("node:http"),Ng=Ze(),{ClientStats:PBt}=pV(),{channels:QE}=Hd(),OBt=qye(),HBt=yg(),{InvalidArgumentError:gr,InformationalError:GBt,ClientDestroyedError:qBt}=Ke(),YBt=Bg(),{kUrl:RA,kServerName:$d,kClient:VBt,kBusy:B7,kConnect:WBt,kResuming:Tg,kRunning:pQ,kPending:mQ,kSize:hQ,kQueue:lc,kConnected:JBt,kConnecting:wE,kNeedDrain:jd,kKeepAliveDefaultTimeout:Bbe,kHostHeader:zBt,kPendingIdx:dc,kRunningIdx:cl,kError:jBt,kPipelining:ev,kKeepAliveTimeoutValue:KBt,kMaxHeadersSize:$Bt,kKeepAliveMaxTimeout:XBt,kKeepAliveTimeoutThreshold:ZBt,kHeadersTimeout:ebt,kBodyTimeout:tbt,kStrictContentLength:rbt,kConnector:fQ,kMaxRequests:b7,kCounter:nbt,kClose:sbt,kDestroy:ibt,kDispatch:obt,kLocalAddress:gQ,kMaxResponseSize:abt,kOnError:cbt,kHTTPContext:nn,kMaxConcurrentStreams:Abt,kHTTP2InitialWindowSize:ubt,kHTTP2ConnectionWindowSize:lbt,kResume:Kd,kPingInterval:dbt}=Kt(),hbt=dbe(),fbt=ybe(),zd=Symbol("kClosedResolve"),gbt=dQ&&dQ.maxHeaderSize&&Number.isInteger(dQ.maxHeaderSize)&&dQ.maxHeaderSize>0?()=>dQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},bbe=()=>{};function Nbe(t){return t[ev]??t[nn]?.defaultPipelining??1}var Q7=class extends HBt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[tbt]=a??3e5,this[ebt]=n??3e5,this[rbt]=m??!0,this[b7]=N,this[zd]=null,this[abt]=O>-1?O:-1,this[nn]=null,this[Abt]=D??100,this[ubt]=te??262144,this[lbt]=ce??524288,this[dbt]=ge??6e4,this[lc]=[],this[cl]=0,this[dc]=0,this[Kd]=De=>w7(this,De),this[cbt]=De=>Tbe(this,De)}get pipelining(){return this[ev]}set pipelining(e){this[ev]=e,this[Kd](!0)}get stats(){return new PBt(this)}get[mQ](){return this[lc].length-this[dc]}get[pQ](){return this[dc]-this[cl]}get[hQ](){return this[lc].length-this[cl]}get[JBt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[B7](){return!!(this[nn]?.busy(null)||this[hQ]>=(Nbe(this)||1)||this[mQ]>0)}[WBt](e){xbe(this),this.once("connect",e)}[obt](e,r){let n=new OBt(this[RA].origin,e,r);return this[lc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>w7(this))):this[Kd](!0)),this[Tg]&&this[jd]!==2&&this[B7]&&(this[jd]=2),this[jd]<2}[sbt](){return new Promise(e=>{this[hQ]?this[zd]=e:e(null)})}[ibt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Kd]()})}};function Tbe(t,e){if(t[pQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[dc]===t[cl]);let r=t[lc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}al(t[hQ]===0)}}function xbe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(Sbe.isIPv6(o)),r=o}t[wE]=!0,QE.beforeConnect.hasSubscribers&&QE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ]}),t[fQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[gQ]},(i,o)=>{if(i){Qbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}if(t.destroyed){Ng.destroy(o.on("error",bbe),new qBt),t[Kd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?fbt(t,o):hbt(t,o)}catch(a){o.destroy().on("error",bbe),Qbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}t[wE]=!1,o[nbt]=0,o[b7]=t[b7],o[VBt]=t,o[jBt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],socket:o}),t.emit("connect",t[RA],[t]),t[Kd]()})}function Qbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[wE]=!1,QE.connectError.hasSubscribers&&QE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[pQ]===0);t[mQ]>0&&t[lc][t[dc]].servername===t[$d];){let o=t[lc][t[dc]++];Ng.errorRequest(t,o,e)}else Tbe(t,e);t.emit("connectionError",t[RA],[t],e)}}function wbe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function w7(t,e){t[Tg]!==2&&(t[Tg]=2,pbt(t,e),t[Tg]=0,t[cl]>256&&(t[lc].splice(0,t[cl]),t[dc]-=t[cl],t[cl]=0))}function pbt(t,e){for(;;){if(t.destroyed){al(t[mQ]===0);return}if(t[zd]&&!t[hQ]){t[zd](),t[zd]=null;return}if(t[nn]&&t[nn].resume(),t[B7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>wbe(t))):wbe(t);continue}if(t[mQ]===0||t[pQ]>=(Nbe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[$d]!==r.servername){if(t[pQ]>0)return;t[$d]=r.servername,t[nn]?.destroy(new GBt("servername changed"),()=>{t[nn]=null,w7(t)})}if(t[wE])return;if(!t[nn]){xbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[dc]++:t[lc].splice(t[dc],1)}}Rbe.exports=Q7});var S7=E((cBr,Dbe)=>{"use strict";var tv=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)}};Dbe.exports=class{constructor(){this.head=this.tail=new tv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tv),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 rv=E((ABr,Obe)=>{"use strict";var{PoolStats:mbt}=pV(),Ebt=yg(),Cbt=S7(),{kConnected:N7,kSize:kbe,kRunning:vbe,kPending:_be,kQueued:EQ,kBusy:Ibt,kFree:ybt,kUrl:Bbt,kClose:bbt,kDestroy:Qbt,kDispatch:wbt}=Kt(),Yn=Symbol("clients"),Ps=Symbol("needDrain"),CQ=Symbol("queue"),T7=Symbol("closed resolve"),x7=Symbol("onDrain"),Fbe=Symbol("onConnect"),Mbe=Symbol("onDisconnect"),Lbe=Symbol("onConnectionError"),R7=Symbol("get dispatcher"),Ube=Symbol("add client"),Pbe=Symbol("remove client"),D7=class extends Ebt{[CQ]=new Cbt;[EQ]=0;[Yn]=[];[Ps]=!1;[x7](e,r,n){let s=this[CQ],i=!1;for(;!i;){let o=s.shi 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())}};c1e.exports=WW});var zW=E((OBr,d1e)=>{"use strict";var{InvalidArgumentError:B1t}=Ke(),{runtimeFeatures:b1t}=sl();function Q1t(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 A1e=b1t.has("crypto")?b("node:crypto"):null,w1t=A1e?.hash?t=>A1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function l1e(t){return Array.isArray(t)&&(t.length&1)===0}function S1t(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 N1t(t){let e={};if(!t)return e;if(l1e(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 u1e=["record","playback","update"];function T1t(t){if(!u1e.includes(t))throw new B1t(`Invalid snapshot mode: ${t}. Must be one of: ${u1e.join(", ")}`)}d1e.exports={createHeaderFilters:Q1t,hashId:w1t,isUndiciHeaders:l1e,normalizeHeaders:N1t,isUrlExcludedFactory:S1t,validateSnapshotMode:T1t}});var y1e=E((HBr,I1e)=>{"use strict";var{writeFile:x1t,readFile:R1t,mkdir:D1t}=b("node:fs/promises"),{dirname:k1t,resolve:h1e}=b("node:path"),{setTimeout:v1t,clearTimeout:f1e}=b("node:timers"),{InvalidArgumentError:g1e,UndiciError:_1t}=Ke(),{hashId:F1t,isUrlExcludedFactory:M1t,normalizeHeaders:p1e,createHeaderFilters:m1e}=zW();function vQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||p1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:E1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function E1e(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 C1e(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 _Q(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 F1t(r)}var jW=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=m1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=M1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=vQ(e,this.#a,this.matchOptions),s=_Q(n),i=p1e(r.headers),o={statusCode:r.statusCode,headers:C1e(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 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.#i&&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=vQ(e,this.#a,this.matchOptions),n=_Q(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 g1e("Snapshot path is required");try{let n=await R1t(h1e(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 _1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new g1e("Snapshot path is required");let n=h1e(r);await D1t(k1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await x1t(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${ao} (
-- 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${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(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${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -331,46 +182,91 @@ ${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${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
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){mJ(e);let r=this.#h(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){mJ(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.#h(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){mJ(e),BNt(r);let n=0,s=[],i=this;return new yNt({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}`}#h(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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!bNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function bNt(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 Gg=E((Abr,TSe)=>{"use strict";var{kConstruct:QNt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:wNt,isValidHeaderName:UQ,isValidHeaderValue:bSe}=ro(),{webidl:wt}=es(),CJ=b("node:assert"),vv=b("node:util");function BSe(t){return t===10||t===13||t===9||t===32}function QSe(t){let e=0,r=t.length;for(;r>e&&BSe(t.charCodeAt(r-1));)--r;for(;r>e&&BSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function wSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});IJ(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)IJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function IJ(t,e,r){if(r=QSe(r),UQ(e)){if(!bSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(NSe(t)==="immutable")throw new TypeError("immutable");return Fv(t).append(e,r,!1)}function SNt(t){let e=Fv(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 SSe(t,e){return t[0]<e[0]?-1:1}var _v=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.headersMap.size! Line truncated
${i}`;break;case"retry":FTe(i)&&(r[s]=i);break;case"id":MTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&FTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&MTe(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}}};LTe.exports={EventSourceStream:nz}});var WTe=E((_br,VTe)=>{"use strict";var{pipeline:qDt}=b("node:stream"),{fetching:YDt}=qQ(),{makeRequest:VDt}=GE(),{webidl:Hs}=es(),{EventSourceStream:WDt}=UTe(),{parseMIMEType:JDt}=oa(),{createFastMessageEvent:zDt}=o_(),{isNetworkError:PTe}=OQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:OTe}=ro(),HTe=!1,GTe=3e3,KQ=0,qTe=1,$Q=2,jDt="anonymous",KDt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=KQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),HTe||(HTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=OTe,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=jDt;r.withCredentials===!0&&(o=KDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=OTe.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=VDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===$Q)return;this.#r=KQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!PTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(PTe(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?JDt(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=qTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new WDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(zDt(c.type,c.options))}});qDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=YDt(e)}#A(){this.#r!==$Q&&(this.#r=KQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===KQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==$Q&&(this.#r=$Q,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=Hs.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=Hs.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=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},YTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:qTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$Q,writable:!1}};Object.defineProperties(XE,YTe);Object.defineProperties(XE.prototype,YTe);Object.defineProperties(XE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>GTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);VTe.exports={EventSource:XE,defaultReconnectionTime:GTe}});var XTe=E((Fbr,pe)=>{"use strict";var $Dt=Xd(),zTe=jb(),XDt=xg(),ZDt=zbe(),e2t=Xbe(),t2t=kg(),r2t=$7(),n2t=J7(),s2t=FQe(),i2t=HQe(),o2t=YQe(),jTe=Ke(),C_=Ze(),{InvalidArgumentError:E_}=jTe,ZE=wwe(),a2t=Bg(),c2t=FW(),{MockCallHistory:A2 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}pe.exports.fetch=function(e,r=void 0){return I2t(e,r).catch(n=>{throw JTe?$Te(n,JTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=OQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Gk().FormData;var{setGlobalOrigin:y2t,getGlobalOrigin:B2t}=MV();pe.exports.setGlobalOrigin=y2t;pe.exports.getGlobalOrigin=B2t;var{CacheStorage:b2t}=DNe(),{kConstruct:Q2t}=Kt();pe.exports.caches=new b2t(Q2t);var{deleteCookie:w2t,getCookies:S2t,getSetCookies:N2t,setCookie:T2t,parseCookie:x2t}=YNe();pe.exports.deleteCookie=w2t;pe.exports.getCookies=S2t;pe.exports.getSetCookies=N2t;pe.exports.setCookie=T2t;pe.exports.parseCookie=x2t;var{parseMIMEType:R2t,serializeAMimeType:D2t}=oa();pe.exports.parseMIMEType=R2t;pe.exports.serializeAMimeType=D2t;var{CloseEvent:k2t,ErrorEvent:v2t,MessageEvent:_2t}=o_(),{WebSocket:F2t,ping:M2t}=QTe();pe.exports.WebSocket=F2t;pe.exports.CloseEvent=k2t;pe.exports.ErrorEvent=v2t;pe.exports.MessageEvent=_2t;pe.exports.ping=M2t;pe.exports.WebSocketStream=kTe().WebSocketStream;pe.exports.WebSocketError=XJ().WebSocketError;pe.exports.request=XQ(ZE.request);pe.exports.stream=XQ(ZE.stream);pe.exports.pipeline=XQ(ZE.pipeline);pe.exports.connect=XQ(ZE.connect);pe.exports.upgrade=XQ(ZE.upgrade);pe.exports.MockClient=c2t;pe.exports.MockCallHistory=A2t;pe.exports.MockCallHistoryLog=u2t;pe.exports.MockPool=d2t;pe.exports.MockAgent=l2t;pe.exports.SnapshotAgent=h2t;pe.exports.mockErrors=f2t;var{EventSource:L2t}=WTe();pe.exports.EventSource=L2t;function U2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=U2t});var ZQ=E(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.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 exe=E((Ubr,ZTe)=>{"use strict";var{asciiLowercase:I_,solelyContainsHTTPTokenCodePoints:P2t,soleyContainsHTTPQuotedStringTokenCodePoints:O2t}=ZQ();ZTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=I_(String(e)),this._map.get(e)}has(e){return e=I_(String(e)),this._map.has(e)}set(e,r){if(e=I_(String(e)),r=String(r),!P2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!O2t(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=I_(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 nxe=E((Pbr,rxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:H2t,removeTrailingHTTPWhitespace:txe,isHTTPWhitespaceChar:G2t,solelyContainsHTTPTokenCodePoints:sz,soleyContainsHTTPQuotedStringTokenCodePoints:q2t,asciiLowercase:iz,collectAnHTTPQuotedString:Y2t}=ZQ();rxe.exports=t=>{t=H2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!sz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=txe(n),n.length===0||!sz(n))return null;let s={type:iz(r),subtype:iz(n),parameters:new Map};for(;e<t.length;){for(++e;G2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=iz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Y2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=txe(o),o==="")continue}i.length>0&&sz(i)&&q2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var ixe=E((Obr,sxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:V2t}=ZQ();sxe.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+="=",(!V2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var Axe=E((Gbr,cxe)=>{"use strict";var W2t=exe(),J2t=nxe(),z2t=ixe(),{asciiLowercase:oxe,solelyContainsHTTPTokenCodePoints:axe}=ZQ();cxe.exports=class{constructor(e){e=String(e);let r=J2t(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 W2t(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=oxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!axe(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=oxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!axe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return z2t(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 vxe=E(bn=>{"use strict";var fz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Tkt=fz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("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`,k,k,f,s);let P=f.type==="*"?nj:f.type==="?"?oj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=mvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==sj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Cvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?nj:r.dot?gvt:pvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;ij.sep!=="/"&&(e=e.split(ij.sep).join("/")),e=e.split(VRe),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 go.defaults(e).Minimatch}};go.Minimatch=oC});var ZRe=E((Vwr,XRe)=>{XRe.exports=$Re;var Aj=b("fs"),{EventEmitter:bvt}=b("events"),{Minimatch:cj}=zRe(),{resolve:Qvt}=b("path");function wvt(t,e){return new Promise((r,n)=>{Aj.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 jRe(t,e){return new Promise((r,n)=>{(e?Aj.stat:Aj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?jRe(t,!1):null):r(null):r(o)})})}async function*KRe(t,e,r,n,s,i){let o=await wvt(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 jRe(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*KRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Svt(t,e,r,n){yield*KRe("",t,e,r,n,!0)}function Nvt(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 v_=class extends bvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Nvt(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 cj(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 cj(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 cj(i,{dot:!0}))}this.iterator=Svt(Qvt(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 Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)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[,F]=w;return F.replace(/\s/g,"").split(Q1).map(q=>q.replace(w1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Fp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Tn;function Bo(Oh,...mI){if(Oh)return Pe?Tn(Oh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Pp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Pp):Mt._tasks.push(Pp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Oh,mI)=>{Ir=Oh,Tn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Tn=Ue[Nt],Bo=V.indexOf(Tn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Up(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,Tn)=>{if(Ir)return Nt(Ir);Pe(Tn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var Tn=te(yo(Ue));F(be,Tn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Mt}function lI(Q,B){return Fp(Q,1,B)}function Mp(Q,B,w){return Fp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var Sa=m(Io,4);function Lp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=Au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[cu]}}function S1(...Q){return Lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(ADe=global[rs]||[],lDe(vr,ADe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||uDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),uDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var ADe;global[rs]||lDe(global,vr[rs]);hj.exports=lj(Mvt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(hj.exports=lj(vr),vr.__patched=!0);function lj(t){_vt(t),t.gracefulify=lj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?aC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?aC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Fvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function aC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),dj()}var L_;function uDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);dj()}function dj(){if(clearTimeout(L_),L_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("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?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(dj,0))}}});var P_=E((Kwr,dDe)=>{"use strict";var zA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";zA.writable=t=>zA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";zA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Yke.exports={AggregateError:jj,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 Kj=E((oSr,Vke)=>{"use strict";Vke.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 Is=E((aSr,zke)=>{"use strict";var{format:iUt,inspect:sF}=Kj(),{AggregateError:oUt}=Tr(),aUt=globalThis.AggregateError||oUt,cUt=Symbol("kIsNodeError"),AUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uUt=/^([A-Z][a-z0-9]*)+$/,lUt="__node_internal_",iF={};function ap(t,e){if(!t)throw new iF.ERR_INTERNAL_ASSERTION(e)}function Wke(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 dUt(t,e,r){if(typeof e=="function")return ap(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 ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dUt(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[cUt]=!0,iF[t]=n}function Jke(t){let e=lUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aUt([e,t],e.message);return r.code=e.code,r}return t||e}var $j=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(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)ap(typeof c=="string","All expected entries have to be of type string"),AUt.includes(c)?s.push(c.toLowerCase()):uUt.test(c)?i.push(c):(ap(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+=xX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=xX(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.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};zC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.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 kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&QYt,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),DYt(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+xYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(pOe,r,g1),kt.copy(yYt,r,RX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(EOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-vM,i=JC(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=TYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=Rh(e,329,8),I=Rh(e,337,8),m=EOe(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(wYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!SYt(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function wYt(t){return kt.equals(pOe,t.subarray(g1,g1+6))}function SYt(t){return kt.equals(BYt,t.subarray(g1,g1+6))&&kt.equals(bYt,t.subarray(RX,RX+2))}function NYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function TYt(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 xYt(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 mOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function EOe(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 Dh(t,e){return t=t.toString(8),t.length>e?IYt.slice(0,e)+" ":CYt.slice(0,e-t.length)+t+" "}function RYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function DYt(t,e,r){t.toString(8).length>11?RYt(t,e,r):kt.write(e,Dh(t,11),r)}function kYt(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 Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return kYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=NYt(mOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function JC(t,e,r,n){return kt.toString(t.subarray(e,mOe(t,0,e,e+r)),n)}function xX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var bOe=E((vTr,BOe)=>{var{Writable:vYt,Readable:_Yt,getStreamError:COe}=TX(),FYt=hX(),IOe=GC(),jC=DX(),MYt=IOe.alloc(0),vX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new FYt,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 MYt;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 IOe.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)}},_X=class extends _Yt{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(COe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=yOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},FX=class extends vYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function wce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",j1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},Bc(e))}function df(t){process.exitCode=kO.Failure,Pi(t)}function Pa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",W1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Ta("warning",W1(e),t instanceof Error?t.toString():t)}function FO(t,e={}){Ta("notice",W1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+vO.EOL)}function Sce(t){ZM("group",t)}function Nce(){ZM("endgroup")}function eT(t,e){return Fje(this,void 0,void 0,function*(){Sce(t);let r;try{r=yield e()}finally{Nce()}return r})}function Lc(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",j1(t,e));Ta("save-state",{name:t},Bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as uz from"fs";import*as lz from"path";import*as b_ from"os";import{readFileSync as Mje,existsSync as Lje}from"fs";import{EOL as Uje}from"os";var Mm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Lje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Mje(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${Uje}`)}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 PO=fe(kce(),1),vce=fe(VN(),1),$je=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 _ce(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 Fce(t){return new PO.HttpClient().getAgent(t)}function Xje(t){return new PO.HttpClient().getAgentDispatcher(t)}function Mce(t){let e=Xje(t);return(n,s)=>$je(this,void 0,void 0,function*(){return(0,vce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Lce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function OO(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 $l(){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 aT(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)=>aT.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 Uce(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 Pce(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 Oce=Function.bind,Hce=Oce.bind(Oce);function Gce(t,e,r){let n=Hce(Pce,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]=Hce(Uce,null).a Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var OKe=class extends Error{constructor(t,e,r){super(PKe(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},HKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],GKe=["query","method","url"],hAe=/\/api\/v3\/?$/;function qKe(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(GKe.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)=>HKe.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 hAe.test(i)&&(s.url=i.replace(hAe,"/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 OKe(s,a,o.data)}return o.data.data})}function jO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>qKe(r,s,i),{defaults:jO.bind(null,r),endpoint:r.endpoint})}var gzt=jO(Sy,{headers:{"user-agent":`octokit-graphql.js/${UKe} ${$l()}`},method:"POST",url:"/graphql"});function fAe(t){return jO(t,{method:"POST",url:"/graphql"})}var KO="(?:[a-zA-Z0-9_-]+)",gAe="\\.",pAe=new RegExp(`^${KO}${gAe}${KO}${gAe}${KO}$`),YKe=pAe.test.bind(pAe);async function VKe(t){let e=YKe(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 WKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function JKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=WKe(t),e(s)}var mAe=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(VKe.bind(null,e),{hook:JKe.bind(null,e)})};var $O="7.0.6";var EAe=()=>{},zKe=console.warn.bind(console),jKe=console.error.bind(console);function KKe(t={}){return typeof t.debug!="function"&&(t.debug=EAe),typeof t.info!="function"&&(t.info=EAe),typeof t.warn!="function"&&(t.warn=zKe),typeof t.error!="function"&&(t.error=jKe),t}var CAe=`octokit-core.js/${$O} ${$l()}`,uT=class{static VERSION=$O;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 qce.Collection,n={baseUrl:Sy.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} ${CAe}`:CAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=fAe(this.request).defaults(n),this.log=KKe(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=mAe(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 XO="17.0.0";var $Ke={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}"],createOrgVaria 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 Dy(i));return n.searchPaths.push(...o3(n.patterns)),n})}static stat(e,r,n){return l3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Gm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 Gm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Gm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var D$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 KAe(t,e){return D$e(this,void 0,void 0,function*(){return yield pT.create(t,e)})}var Gle=fe(Uy(),1);import*as kT from"crypto";import*as Wm from"fs";import*as yf from"path";import*as qle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var RT=2,DT=5e3,k3=5e3,v3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",_3="manifest.txt",cKt=10*Math.pow(1024,3);var Vm=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())})},Het=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)}},Get="1.0";function Hy(){return Vm(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=yf.join(n,"actions","temp")}let r=yf.join(e,kT.randomUUID());return yield lf(r),r})}function Pc(t){return Wm.statSync(t).size}function F3(t){return Vm(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 KAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Het(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`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 Gy(t){return Vm(this,void 0,void 0,function*(){return qle.promisify(Wm.unlink)(t)})}function Yle(t){return Vm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Mc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Vm(this,void 0,void 0,function*(){let t=yield Yle("zstd",["--quiet"]),e=Gle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function Vle(){return Vm(this,void 0,void 0,function*(){return Wm.existsSync(v3)?v3:(yield Yle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function M3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Jm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Get),kT.createHash("sha256").update(n.join("|")).digest("hex")}function Wle(){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 b0 from"fs";import{URL as wct}from"url";var Oc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as qet}from"node:os";import Yet from"node:util";import Vet from"node:process";function Jle(t,...e){Vet.stderr.write(`${Yet.format(t,...e)}${qet}`)}import Yy from"node:process";function _T(t){return Yy.env[t]}var zle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,jle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,FT=!0;var Kle=_T("DEBUG"),Xle,L3=[],U3=[],MT=[];Kle&&P3(Kle);var Zle=Object.assign(t=>ede(t),{enable:P3,enabled:O3,disable:Wet,log:Jle});function P3(t){Xle=t,L3=[],U3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?U3.push(r.substring(1)):L3.push(r);for(let r of MT)r.enabled=O3(r.namespace)}function O3(t){if(t.endsWith("*"))return!0;for(let e of U3)if($le(t,e))return!1;for(let e of L3)if($le(t,e))return!0;return!1}function $le(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 Wet(){let t=Xle||"";return P3(""),t}function ede(t){let e=Object.assign(r,{enabled:O3(t),destroy:Jet,log:Zle.log,namespace:t,extend:zet});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return MT.push(e),e}function Jet(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function zet(t){let e=ede(`${this.namespace}:${t}`);return e.log=this.log,e}var zm=Zle;var H3=["verbose","info","warning","error"],tde={verbose:400,info:300,warning:200,error:100};function rde(t,e){e.log=(...r)=>{t.log(...r)}}function nde(t){return H3.includes(t)}function LT(t){let e=new Set,r=_T(t.logLevelEnvVarName),n,s=zm(t.namespace);s.log=(...u)=>{zm.log(...u)};function i(u){if(u&&!nde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${H3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zm.enable(l.join(","))}r&&(nde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${H3.join(", ")}.`));function o(u){return!!(n&&tde[u.level]<=tde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(rde(u,d),o(d)){let h=zm.disable();zm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return rde(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 sde=LT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),jet=sde.logger;function Vy(t){return sde.createClientLogger(t)}function UT(t){return t.toLowerCase()}function Ket(t){return String(t).trim().replace(/[\r\n]/g,"")}function*$et(t){for(let e of t.values())yield[e.name,e.value]}var G3=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(UT(e),{name:e,value:Ket(r)})}get(e){return this._headersMap.get(UT(e))?.value}has(e){return this._ Line truncated
${ttt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jm(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import W3 from"node:http";import J3 from"node:https";import ade from"node:zlib";import{Transform as rtt}from"node:stream";var si=Vy("ts-http-runtime");var ntt={};function Wy(t){return t&&typeof t.pipe=="function"}function cde(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 Ade(t){return t&&typeof t.byteLength=="number"}var HT=class extends rtt{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}},z3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Oc("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 Ya;si.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=att(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new HT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=stt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new HT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ott(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=cde(a));let u=Promise.resolve();Wy(c)&&(u=cde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?W3.request(a,c):J3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Oc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ade(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?W3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new W3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return J3.globalAgent;let s=e.tlsSettings??ntt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new J3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function stt(t){let e=Gi();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 itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ade.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ade.createInflate();return t.pipe(n),n}return t}function ott(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function att(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:Ade(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ude(){return new z3}function GT(){return ude()}var j3="logPolicy";function qT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:j3,asy Line truncated
`;return e}function Trt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function xrt(t){let e=0;for(let r of t){let n=Trt(r);if(n===void 0)return;e+=n}return e}async function Rrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Nrt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=xrt(n);s&&t.headers.set("Content-Length",s),t.body=await rhe(n)}var Ky="multipartPolicy",Drt=70,krt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vrt(t){if(t.length>Drt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!krt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function lx(){return{name:Ky,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?vrt(r):r=Srt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Rrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function dx(){return OT()}var nhe=LT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),uer=nhe.logger;function Lo(t){return nhe.createClientLogger(t)}var Gc=Lo("core-rest-pipeline");function h8(t={}){return qT({logger:Gc.info,...t})}var f8=Ax;function g8(t={}){return ux(t)}import p8 from"node:os";import id from"node:process";function she(){return"User-Agent"}async function ihe(t){if(id&&id.versions){let e=`${p8.type()} ${p8.release()}; ${p8.arch()}`;id.versions.bun?t.set("Bun",`${id.versions.bun} (${e})`):id.versions.deno?t.set("Deno",`${id.versions.deno} (${e})`):id.versions.node&&t.set("Node",`${id.versions.node} (${e})`)}}var hx="1.24.0";function Hrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function ohe(){return she()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await ihe(e);let r=Hrt(e);return t?`${t} ${r}`:r}var ahe=ohe(),che="userAgentPolicy";function m8(t={}){let e=fx(t.userAgentPrefix);return{name:che,async sendRequest(r,n){return r.headers.has(ahe)||r.headers.set(ahe,await e),n(r)}}}var Ahe=Symbol("rawContent");function E8(t){return typeof t[Ahe]=="function"}function uhe(t){return E8(t)?t[Ahe]():t}var gx=Ky;function C8(){let t=lx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)E8(n.body)&&(n.body=uhe(n.body));return t.sendRequest(e,r)}}}var I8=ax;function y8(){return cx()}function B8(t={}){return WT(t)}function b8(){return JT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Q8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(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 Krt="The delay was aborted.";function t0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Q8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Krt})}function od(t){if(bf(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 lhe(t){return bf(t)}function r0(){return Bf()}var Wt=FT;function ad(t){return A8(t)}function S8(t,e){return ox(t,e)}var dhe="setClientRequestIdPolicy";function N8(t="x-ms-client-request-id"){return{name:dhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function T8(t){return zT(t)}function x8(t){return jT(t)}var n0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hhe(t={}){let e=new R8(t.parentContext);return t.span&&(e=e.setValue(n0.span,t.span)),t.namespace&&(e=e.setValue(n0.namespace,t.namespace)),e}var R8=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 ghe=fe(fhe(),1),mx=ghe.state;function $rt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Xrt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$rt(),tracingContext:hhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return mx.instrumenterImplementation||(mx.instrumenterImplementation=Xrt()),mx.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span 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--),!Ist(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=gst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=Khe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=Khe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=jhe(t,i);continue}else if(t[i+1]==="?"){if(i=zhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Est(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Jhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Jhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Jhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function zhe(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function jhe(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 hst='"',fst="'";function gst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===hst||t[e]===fst)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 pst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Khe(t,e){let r=Sx(t,pst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!Cst(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function mst(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 Est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mst(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 Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Cst(t){return z8(t)}function Ist(t){return z8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var $he={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Xhe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Zhe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(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=A0(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=r4(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(),n="",a=u}else if(A===63){let u=n4(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 ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=A0(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){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=A0(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=n4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=r4(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 I=r;I&&s.unpairedTagsSet.has(I.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,y={},N;N=Wst(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Vst(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=r4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Xst(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 Zst(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 eit(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 tit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function rit(t,e,r=">"){Line truncated
`;function uit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(A4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function wfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function c4(t,e){let r="";e.format&&(r=Ait);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=uit(t,e),i=new Vc;return Sfe(t,e,r,i,n,s)}function Sfe(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=t.toString();return c=a4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=A4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:wfe(u,!1,e,n,i),h=lit(A[":@"],e);n.push(d,h);let f=hit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=a4(y,e)),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],N=Lx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Qfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Qfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Nfe(A[u],e):C=Sfe(A[u],e,p,n,s,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,n.pop()}return o}function lit(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]=ud(t[s]),n=!0}return n?r:null}function Nfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=A4(s);if(i===e.textNodeName)r+=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=dit(s[":@"],e),a=Nfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function dit(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)}="${ud(s)}"`}return r}function A4(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 Qfe(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:wfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=a4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function hit(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 a4(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 u4(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 fit={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 ui(t){if(this.options=Object.assign({},fit,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 Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function git(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 l4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return c4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vc,r=git(t,this.options);return this.j2x(t,0,e,r).val}};ui.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:l4(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=l4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+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 p=t[c][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 I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+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&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=l4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ud(e)+'"'};function pit(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)}ui.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]=ud(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]=ud(t[n]),r=!0)}return r?e:null};ui.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.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>zx(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=Vx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Wx(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 Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return Tit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=Lo("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xit=new _f("The operation was aborted."),EB=class extends Wc{retryOptions;constructor(e,r,n=dd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:dd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):dd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:dd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:dd.maxRetryDelayInMs):dd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:dd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:dd.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=Yx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.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(mn.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 mn.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 mn.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 mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.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')?(mn.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 Uo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),Jx(s,n,xit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Rit="storageBrowserPolicy";function kfe(){return{name:Rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Dit="StorageCorrectContentLengthPolicy";function vfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Dit,async sendRequest(e,r){return t(e),r(e)}}}var kit="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},vit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],_it=new _f("The operation was aborted.");function _fe(t={}){let e=t.retryPolicyType??l0.retryPolicyType,r=t.maxTries??l0.maxTries,n=t.retryDelayInMs??l0.retryDelayInMs,s=t.maxRetryDelayInMs??l0.maxRetryDelayInMs,i=t.secondaryHost??l0.secondaryHost,o=t.tryTimeoutInMs??l0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of vit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Fit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>zx(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=Vx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Wx(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:Mit,async sendRequest(i,o){return e(i),o(i)}}}var Lit="storageRequestFailureDetailsParserPolicy";function Ffe(){return{name:Lit,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 Uit}from"node:crypto";var jx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Uit("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",m4="*",Pit=1*1024*1024;var Oit=4*Pit;var Mfe="AES256",Lfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ufe=["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"],Pfe=["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"],Ofe="BlobUsesCustomerSpecifiedEncryption",Hfe="BlobDoesNotUseCustomerSpecifiedEncryption",Gfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function Hit(t){let e=[Git,qfe,qit,Yit,Vit,Wit,zit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Jit(s));return{wrappedPolicies:W8(r),afterRetry:n}}}}function E4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?J8(e):g4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Ufe,additionalAllowedQueryParameters:Pfe,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:h4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:I8}),s.addPolicy(vfe()),s.addPolicy(_fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ffe()),s.addPolicy(kfe());let a=Hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=C4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ka(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 Gat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 qat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 Yat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ja(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 Ka(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 Vat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(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 Ka(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 Wat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(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 Ka(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 Jat(t,e){if(t=qf(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=AA.parse(t.permissions.toString()).toString():s=uA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ja(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 Ka(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 Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:$x;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 kB=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=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(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!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};y0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=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"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pct=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())})},WH=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);Z(`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 rpe(t,e,r){return pct(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new WH((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(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as spe from"buffer";import*as lA from"fs";import*as ipe from"stream";import*as ope from"util";var JR=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 zR(t){return t?t>=200&&t<300:!1}function mct(t){return t?t>=500:!0}function Ect(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Cct(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function npe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=RT,a=DT,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),!mct(d)))return l;if(d&&(h=Ect(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield Cct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield npe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof _c)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function B0(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield npe(r,n,o=>o.message.statusCode,s,i)})}var qo=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 Ict(t,e){return qo(this,void 0,void 0,function*(){yield ope.promisify(ipe.pipeline)(t.message,e)})}var jR=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,H(`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);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function KH(t,e,r){return di(this,void 0,void 0,function*(){let n=new wct(t),s=upe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cpe(t,e,s):s.concurrentBlobDownloads?yield ape(t,e,s):yield KR(t,e):yield KR(t,e)})}function mpe(t,e,r){return di(this,void 0,void 0,function*(){let n=jH(),s=Jm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function gpe(t,e){return`bytes ${t}-${e}/*`}function xct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gpe(n,s)},o=yield B0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Rct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Pc(r),i=qB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=JH(n),c=M3("uploadConcurrency",a.uploadConcurrency),A=M3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(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 xct(t,i,()=>b0.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{b0.closeSync(o)}})}function Dct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function $H(t,e,r,n){return di(this,void 0,void 0,function*(){if(JH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rpe(r,e,n)}else{let i=jH();H("Upload cache"),yield Rct(i,t,e,n),H("Commiting cache");let o=Pc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Dct(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var ume=fe(G9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var W9=fe(At(),1),J9=fe(At(),1),ame=fe(At(),1),cme=fe(At(),1),Ame=fe(At(),1);var q9=fe(At(),1),Y9=fe(At(),1),sme=fe(At(),1),ime=fe(At(),1),ome=fe(At(),1),V9=class extends ome.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,ime.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,sme.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?Y9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,q9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,q9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Y9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new V9;var z9=class extends Ame.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:()=>LD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,cme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ame.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(LD.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?J9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,W9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,W9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?J9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield AG(r,"create");yield uG(n,t)})}var P0=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())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},OD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function fme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function hG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function gme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function HD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),fme(s),A==="v2"?yield zut(s,i,o,a,c):yield Jut(s,i,o,a,c)})}function Jut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)hG(d);let u=yield qy(),l="";try{let d=yield ppe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),rd(u)),H(`Archive Path: ${l}`),yield KH(d.archiveLocation,l,a),Pa()&&(yield sb(l,u));let h=Pc(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield lG(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof _c&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function zut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)hG(l);let u="";try{let l=cG(),d=yield qy(),h={key:i,restoreKeys:o,version:Jm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield KH(f.signedDownloadUrl,u,a);let I=Pc(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pa()&&(yield sb(u,d)),yield lG(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof _c&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function GD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),fme(n),hG(s),a==="v2"?yield Kut(n,s,i,o):yield jut(n,s,i,o)})}function jut(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield F3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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 p=yield Hy(),I=ib.join(p,rd(d));H(`Archive Path: ${I}`);try{yield dG(p,f,d),Pa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Pc(I);if(H(`File Size: ${C}`),C>m&&!zH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield mpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new yd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield $H(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name Line truncated
See ${r.getDocumentationLink()}`;pme.push(n),df(n)}function mme(){Lc("deprecation-collector_deprecations",JSON.stringify(gG)),Lc("deprecation-collector_errors",JSON.stringify(pme))}import*as WD from"path";var Eme="GRADLE_ACTION_ID";var KD=".setup-gradle",cb=class t{getDependencyGraphOption(){let e=dr("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 mA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return Zut("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,Cme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return WD.resolve(Bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new JD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`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 O0=class{isCacheDisabled(){return gme()?mA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&mA("cache-read-only")}isCacheWriteOnly(){return mA("cache-write-only")}isCacheOverwriteExisting(){return mA("cache-overwrite-existing")}isCacheStrictMatch(){return mA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ab("gradle-home-cache-cleanup");if(e!==void 0)return YD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("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 dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var ec=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return mA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ab("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ab("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ab("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ab("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new JD}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:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},JD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},zD=class{getGradleVersion(){re 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 gb(i));return n.searchPaths.push(...CG(n.patterns)),n})}static stat(e,r,n){return SG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield q0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 q0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield q0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as NG from"crypto";import*as n2 from"fs";import*as Jme from"stream";import*as zme from"util";import*as jme from"path";var gdt=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())})},pdt=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 Kme(t,e){return gdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=NG.createHash("sha256"),f=0;try{for(var p=!0,I=pdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${jme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=NG.createHash("sha256");yield zme.promisify(Jme.pipeline)(n2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}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 $me=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 TG(t,e){return $me(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function Xme(t){return $me(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield TG(e,{followSymbolicLinks:i});return Kme(o,r,s)})}import*as xG from"path";var mdt="Gradle User Home",e0e="BASIC_CACHE_PRIMARY_KEY",t0e="BASIC_CACHE_RESTORED_KEY",Edt="setup-java",r0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],i2=class{async restore(e,r){let n=n0e(e),s=await Cdt();Lc(e0e,s);try{let i=await HD(n,s);i?(Lc(t0e,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){We(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(e0e),i=by(t0e);if(n.readOnly)return{status:"read-only",entries:[s2({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 Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=n0e(e);try{return await GD(o,s),Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[s2({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 We(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function s2(t){return{entryName:mdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${r0e}], make sure you have checked out the target repository`);return`${Edt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var ydt="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.",Bdt="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.",DG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function o0e(t){return t.isCacheDisabled()?(RG("Cache is disabled: will not restore state from previous builds."),new DG):t.getCacheProvider()==="basic"?(RG(Bdt),new i2):(RG(ydt),bdt())}async function bdt(){let t=Qdt();return await import(Idt(t).href)}function Qdt(){let t=import.meta.dirname,e=i0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(s0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function RG(t){console.info(t)}import o2 from"fs";import a0e from"path";var a2=class{constructor(e){this.cacheFile=a0e.resolve(e,KD,"valid-wrappers.json")}load(){if(o2.existsSync(this.cacheFile))try{return JSON.parse(o2.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];o2.mkdirSync(a0e.dirname(this.cacheFile),{recursive:!0}),o2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var h0e=fe(l0e(),1);import*as d0e from"util";import*as c2 from"path";import*as A2 from"fs";var Rdt=d0e.promisify(A2.readdir);async function f0e(t){return(await g0e(t)).filter(r=>(0,h0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>c2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function g0e(t){let e=await Rdt(t),r=await Promise.all(e.map(async n=>{let s=c2.resolve(t,n),i=A2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?g0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var kdt={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??kdt;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 tq={};Na(tq,{contains:()=>Q2,extract:()=>Sht,html:()=>Bht,merge:()=>U0e,parseHTML:()=>Qht,root:()=>wht,text:()=>lg,xml:()=>bht});var Dd={};Na(Dd,{DocumentPosition:()=>Ko,append:()=>sht,appendChild:()=>nht,compareDocumentPosition:()=>_0e,existsOne:()=>k0e,filter:()=>j0,find:()=>I2,findAll:()=>cht,findOne:()=>y2,findOneChild:()=>aht,getAttributeValue:()=>Zdt,getChildren:()=>z0,getElementById:()=>dht,getElements:()=>lht,getElementsByClassName:()=>hht,getElementsByTagName:()=>ug,getElementsByTagType:()=>fht,getFeed:()=>eq,getInnerHTML:()=>Xdt,getName:()=>tht,getOuterHTML:()=>R0e,getParent:()=>D0e,getSiblings:()=>XG,getText:()=>m2,hasAttrib:()=>eht,hasChildren:()=>tr,innerText:()=>yb,isCDATA:()=>V0,isComment:()=>Ag,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>E2,prepend:()=>oht,prependChild:()=>iht,prevElementSibling:()=>C2,removeElement:()=>ju,removeSubsets:()=>ght,replaceElement:()=>rht,testElement:()=>uht,textContent:()=>zu,uniqueSort:()=>xd});var zo={};Na(zo,{CDATA:()=>OG,Comment:()=>MG,Directive:()=>FG,Doctype:()=>HG,ElementType:()=>bt,Root:()=>vG,Script:()=>LG,Style:()=>UG,Tag:()=>PG,Text:()=>_G,isTag:()=>kG});var bt;(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"})(bt||(bt={}));function kG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var vG=bt.Root,_G=bt.Text,FG=bt.Directive,MG=bt.Comment,LG=bt.Script,UG=bt.Style,PG=bt.Tag,OG=bt.CDATA,HG=bt.Doctype;var u2=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 W0(this,e)}},mb=class extends u2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},CA=class extends mb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends mb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends mb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Eb=class extends u2{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.le Line truncated
`:m2(t.children):V0(t)?m2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!Ag(t)?zu(t.children):pi(t)?t.data:""}function yb(t){return Array.isArray(t)?t.map(yb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?yb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function D0e(t){return t.parent||null}function XG(t){let e=D0e(t);if(e!=null)return z0(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 Zdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function eht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function tht(t){return t.name}function E2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function C2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function ju(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 rht(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 nht(t,e){if(ju(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 sht(t,e){ju(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 iht(t,e){if(ju(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 oht(t,e){ju(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 j0(t,e,r=!0,n=1/0){return I2(t,Array.isArray(e)?e:[e],r,n)}function I2(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function aht(t,e){return e.find(t)}function y2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=y2(t,i.children,!0);if(o)return o}}return null}function k0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&k0e(t,r.children))}function cht(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]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var B2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(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=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function ZG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Aht(t,e){return r=>t(r)||e(r)}function v0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(B2,r)?B2[r](n):ZG(r,n)});return e.length===0?null:e.reduce(Aht)}function uht(t,e){let r=v0e(t);return r?r(e):!0}function lht(t,e,r,n=1/0){let s=v0e(t);return s?j0(s,e,r,n):[]}function dht(t,e,r=!0){return Array.isArray(e)||(e=[e]),y2(ZG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return j0(B2.tag_name(t),e,r,n)}function hht(t,e,r=!0,n=1/0){return j0(ZG("class",t),e,r,n)}function fht(t,e,r=!0,n=1/0){return j0(B2.tag_type(t),e,r,n)}function ght(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 Ko;(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"})(Ko||(Ko={}));function _0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(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 Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function xd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=_0e(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function eq(t){let e=b2(Iht,t);return e?e.name==="feed"?pht(e):mht(e):null}function pht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:F0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=b2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Rd("summary",c)||Rd("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 Zo=fe(kd(),1);var mq={};function Eq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Cq(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 pq(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 gq=(t,e,r,n,s)=>{let i=s(e,pq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},M2={is:gq,matches:gq,where:gq,not(t,e,r,n,s){let i=s(e,pq(r),n);return i===Zo.default.falseFunc?t:i===Zo.default.trueFunc?Zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=pq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Tb))?[mq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=Eq(c,i);if(a&&c!==Zo.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,...Cq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function bEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in M2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return M2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:F2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,BEe.parse)(A);return M2.is(t,u,r,n,s)}if(typeof c=="function")return fq(c,o,a,1),u=>c(u,a)&&t(u);if(o in sE)return sE[o](t,a,r,n);if(o in Rb){let u=Rb[o];return fq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=fe(rE(),1);function Iq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function QEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.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()),EEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return bEe(t,e,r,n,s);case ea.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 ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Iq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Iq(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=Iq(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.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 ea.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 ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function wEe(t,e,r){let n=L2(t,e,r);return Eq(n,e.adapter)}function L2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return U2(n,e,r)}function SEe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(SEe)))}var lft={type:sc.SelectorType.Descendant},dft={type:"_flexibleDescendant"},hft={type:sc.SelectorType.Pseudo,name:"scope",data:null};function fft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===mq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(GEe,`\r
`)}}).toArray()}var Mq={};Na(Mq,{extract:()=>xgt});function Tgt(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 xgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Tgt(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 Fd=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}}};Fd.prototype.cheerio="[cheerio object]";Fd.prototype.splice=Array.prototype.splice;Fd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Fd.prototype,Aq,kq,vq,_q,Fq,Mq);function qEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Y0(s),a=t(n,o,i,null);class c extends Fd{_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&&$o(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Bb(u)?t(u,f,!1,null).children:Rgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?Bb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Rgt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Dgt=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]),ur="\uFFFD",S;(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"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y2(t){return t>=55296&&t<=57343}function YEe(t){return t>=56320&&t<=57343}function VEe(t,e){return(t-55296)*1024+9216+e}function V2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function W2(t){return t>=64976&&t<=65007||Dgt.has(t)}var W;(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(`
`)}`}},B_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function mxe(t){if(t instanceof AggregateError){df("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof $g?(df(String(t)),t.stack&&Z(t.stack)):(df(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function Exe(t,e,r){if(!t.doValidateWrappers())return;let n=new a2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await pxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await eT("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new $g(`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 ho from"fs";import Xg from"path";function Cxe(t,e,r){let n=Xg.resolve(e,KD);ho.mkdirSync(n,{recursive:!0}),akt(e),ckt(t),Pa()&&Akt(e),r&&Kn("GRADLE_ENCRYPTION_KEY",r)}function akt(t){let e=Xg.resolve(t,"init.d");ho.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=ukt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function ckt(t){let e=lkt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=dkt(s,e);ho.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Akt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function ukt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function lkt(){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,126 +280,66 @@ ${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 dkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Az="GRADLE_BUILD_ACTION_SETUP_COMPLETED",hkt="GRADLE_USER_HOME",fkt="DEVELOCITY_CACHE_TOKEN";async function Ixe(t,e,r){let n=await yxe(),s=await pkt();if(process.env[Az])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Kn(Az,!0),Lc(Az,!0),Lc(hkt,s),Cxe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await bme(e);return Lc(fkt,o??""),await(await o0e(t)).restore(s,gkt(t,i,o)),await Exe(r,Bd(),s),yme(e),!0}function gkt(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 pkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Bd();return lz.resolve(r,t)}let e=lz.resolve(await yxe(),".gradle");if(uz.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Kn("GRADLE_USER_HOME",e),e;if(b_.platform()==="win32"&&e.startsWith("C:\\")&&uz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Kn("GRADLE_USER_HOME",r),r}return Kn("GRADLE_USER_HOME",e),e}async function yxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),b_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}import*as eC from"fs";import*as tRe from"os";import*as dh from"path";import*as hz from"crypto";import*as ep from"fs";var Ekt=fe(Uy(),1);import*as ew from"path";var S_=fe(Uy(),1);import*as bxe from"stream";import*as Qxe from"util";import{ok as Ikt}from"assert";var Bxe=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())})},Q_=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 Bxe(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;Z(i.message)}let s=this.getSleepAmount();Z(`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 Bxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=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())})},w_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},ykt=process.platform==="win32",_Qr=process.platform==="darwin",Bkt="actions/tool-cache";function wxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ew.join(Nxe(),hz.randomUUID()),yield lf(ew.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=dz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=dz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Q_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield bkt(t,e||"",r,n)}),c=>!(c instanceof w_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function bkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Bkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new w_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Qxe.promisify(bxe.pipeline),c=dz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield gce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Sxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),pRe=new Map([...Xz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function mRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of pRe)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(pRe.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.`);Z("Artifact name is valid!")}function Zz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Xz)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(Xz.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 yRe=fe(IRe(),1);function VA(){return`@actions/artifact-${yRe.version}`}var sC=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"}},gl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},pl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=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"}},ml=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"}};ml.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=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"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function svt(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 ivt(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 svt(e)}catch{return atob(e)}}function BRe(t,e){if(typeof t!="string")throw new np("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 np(`Invalid token specified: missing part #${r+1}`);let s;try{s=ivt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function WA(){let t=T_(),e=BRe(t);if(!e.scp)throw R_;let r=e.scp.split(" ");if(r.length===0)throw R_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw R_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw R_}function bRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ro(r),Ro(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function QRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&bRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&bRe(t.signed_url)}var D_=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())})},ej=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=iRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new wu(i)])}request(e,r,n,s){return D_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>D_(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 D_(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(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(QRe(A),H(`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(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(ml.isNetworkErrorCode(a?.code))throw new ml(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);Z(`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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return D_(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 JA(t){let e=new ej(VA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as wRe,resolve as SRe}from"path";function NRe(t){if(!iC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&We("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);Z(`Redirecting to blob download url: ${U3e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield P3e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function G3e(){return ZC(this,arguments,void 0,function*(t=oRe()){return(yield MVt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield v3e.mkdir(t,{recursive:!0})),t})}var UVt=5,PVt=[400,401,403,404,422];function eI(t,e=UVt,r=PVt){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 H(`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 q3e="6.0.0";function kp(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})})}kp.VERSION=q3e;var W3e=fe(Y3e(),1);var UM=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 OVt="0.0.0-development";async function V3e(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 HVt(t,e,r,n){let s=new W3e.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(GVt.bind(null,t,e,r),n)}async function GVt(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 UM(s.data.errors[0].message,500,{request:n,response:s});return V3e(t,e,i,n)}return s}function vp(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",V3e.bind(null,r,t)),t.hook.wrap("request",HVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=OVt;var J3e=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 PM(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},u=yield Oa(s,c,vp,kp).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 gl(`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 pl(`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],H(`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 z3e(t){return J3e(this,void 0,void 0,function*(){var e;let r=JA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=WA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new pl(`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],H(`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?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var j3e=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 K3e(t,e,r,n,s){return j3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:VA(),previews:void 0,retry:o,request:a},A=Oa(s,c,vp,kp),u=yield PM(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 gl(`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 $3e(t){return j3e(this,void 0,void 0,function*(){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new pl(`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],H(`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 Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var X3e=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())})},OM=ARe(),HM=100,qVt=Math.ceil(OM/HM);function Z3e(t,e,r,n){return X3e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(gf),d={log:void 0,userAgent:VA(),previews:void 0,retry:u,request:l},h=Oa(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f}),I=Math.ceil(p.total_count/HM),m=p.total_count;m>OM&&(We(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${OM}. Results will be incomplete as only the first ${OM} artifacts will be returned`),I=qVt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f});for(let y of C.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=t8e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function e8e(){return X3e(this,arguments,void 0,function*(t=!1){let e=JA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=WA(),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?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=t8e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function t8e(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 B1=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())})},YVt=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},tI=class{uploadArtifact(e,r,n,s){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;return XOe(e,r,n,s)}catch(i){throw We(`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 B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=YVt(r,["findBy"]);return O3e(e,n,s,i,o)}return H3e(e,r)}catch(n){throw We(`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 B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return Z3e(r,n,s,i,e?.latest)}return e8e(e?.latest)}catch(r){throw We(`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 B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return PM(e,n,s,i,o)}return z3e(e)}catch(n){throw We(`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 B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return K3e(e,i,n,s,o)}return $3e(e)}catch(n){throw We(`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 vRr=new tI;import*as jX from"path";import KX from"fs";var VVt="dependency-graph_";async function r8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await WVt(t);return}Z("Enabling dependency graph generation"),Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",n7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Bd()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&Kn(t,e)}async function WVt(t){if(s7t()){Z("Dependency graph not supported in the ACT environment.");return}try{await jVt(await JVt(t))}catch(e){t7t(t,"download-and-submit",e)}}async function JVt(t){let e=ri.payload.workflow_run?{token:$D(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new tI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(VVt)),s=t.getDownloadArtifactName();s&&(Z(`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});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return zVt()}async function zVt(){let r=(await(await TG(`${XVt()}/**/*.json`)).glob()).filter(n=>!ZVt(n));return r.forEach(e7t),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function jVt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await $Vt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=KVt(e,r)),r}}function KVt(t,e){let n=`Dependency submission failed for ${n8e(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 $Vt(t){let e=r7t(),r=KX.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=n8e(t);FO(`Submitted ${i}: ${s.data.message}`)}function XVt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZVt(t){let e=`${t}.processed`;return KX.existsSync(e)}function e7t(t){let e=`${t}.processed`;KX.writeFileSync(e,"")}function t7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function r7t(){return Oa($D())}function n8e(t){let e=Bd();return jX.relative(e,t)}function n7t(){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 s7t(){return process.env.ACT!==void 0}function o7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=o7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function a7t(){try{ob()==="gradle/gradle-build-action"&&VD("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Ime("gradle/actions/setup-gradle"),await Ixe(new O0,new ec,new jD),await r8e(new cb);let t=new zD;t.verifyNoArguments(),await pz(t.getGradleVersion()),mme()}catch(t){mxe(t)}await s8e()}a7t();export{a7t 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> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -572,5 +408,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@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 *)
*/
//# 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": ";s1BAAA,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
}
+218 -377
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 b3e=Object.create;var mM=Object.defineProperty;var Q3e=Object.getOwnPropertyDescriptor;var w3e=Object.getOwnPropertyNames;var S3e=Object.getPrototypeOf,N3e=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 E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ba=(t,e)=>{for(var r in e)mM(t,r,{get:e[r],enumerable:!0})},T3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of w3e(e))!N3e.call(t,s)&&s!==r&&mM(t,s,{get:()=>e[s],enumerable:!(n=Q3e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?b3e(S3e(t)):{},T3e(e||!t||!t.__esModule?mM(r,"default",{value:t,enumerable:!0}):r,t));var rZ=E(Sp=>{"use strict";var RYt=b("net"),_3e=b("tls"),yM=b("http"),ZX=b("https"),F3e=b("events"),DYt=b("assert"),M3e=b("util");Sp.httpOverHttp=L3e;Sp.httpsOverHttp=U3e;Sp.httpOverHttps=P3e;Sp.httpsOverHttps=O3e;function L3e(t){var e=new XA(t);return e.request=yM.request,e}function U3e(t){var e=new XA(t);return e.request=yM.request,e.createSocket=eZ,e.defaultPort=443,e}function P3e(t){var e=new XA(t);return e.request=ZX.request,e}function O3e(t){var e=new XA(t);return e.request=ZX.request,e.createSocket=eZ,e.defaultPort=443,e}function XA(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=tZ(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)})}M3e.inherits(XA,F3e.EventEmitter);XA.prototype.addRequest=function(e,r,n,s){var i=this,o=BM({request:e},i.options,tZ(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)}})};XA.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=BM({},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")),Bl("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){Bl("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){Bl("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 Bl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Bl(`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)}};XA.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 eZ(t,e){var r=this;XA.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=BM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=_3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function tZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function BM(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 Bl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bl=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)}:Bl=function(){};Sp.debug=Bl});var bM=E((vYt,nZ)=>{nZ.exports=rZ()});var Ir=E((_Yt,sZ)=>{sZ.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 Lt=E((FYt,xZ)=>{"use strict";var iZ=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),QM=class extends yr{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[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wM=class extends yr{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[aZ]===!0}[aZ]=!0},cZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),SM=class extends yr{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[cZ]===!0}[cZ]=!0},AZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),NM=class extends yr{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[AZ]===!0}[AZ]=!0},uZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),TM=class extends yr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function r6e(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(O4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function n6e(){return"allowed"}function s6e(){return"success"}function i6e(){return"success"}function o6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function a6e(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&&CL(t.origin)&&!CL(fI(t))&&(e=null);break;case"same-origin":eS(t,fI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Mp(t,e){return t}function c6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Mp(t.domainLookupStartTime,r),domainLookupEndTime:Mp(t.domainLookupEndTime,r),connectionStartTime:Mp(t.connectionStartTime,r),connectionEndTime:Mp(t.connectionEndTime,r),secureConnectionStartTime:Mp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function A6e(t){return Mp(V4e.now(),t)}function u6e(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 qee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function l6e(t){return{referrerPolicy:t.referrerPolicy}}function d6e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Lee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=EL(r),s=EL(r,!0);n.toString().length>4096&&(n=s);let i=eS(t,n),o=hI(n)&&!hI(t.url);switch(e){case"origin":return s??EL(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=fI(t);return eS(n,a)?n:hI(n)&&!hI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function EL(t,e){return _h(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 hI(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 h6e(t,e){if(Z1===void 0)return!0;let r=Yee(e);if(r==="no metadata"||r.length===0)return!0;let n=g6e(r),s=p6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=Z1.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)),m6e(c,a))return!0}return!1}var f6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Yee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=f6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Pee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function g6e(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 p6e(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 m6e(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 E6e(t){}function eS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function C6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function I6e(t){return t.controller.state==="aborted"}function y6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function B6e(t){return z4e[t.toLowerCase()]??t}function b6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _h(typeof e=="string"),e}var Q6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Vee(t,e,r=0,n=1){class s{ Line truncated
`);function e5e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function t5e(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 r5e(t,e){rS(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&&nS(t,X6e,i)||i.position===t.length-4&&nS(t,Z6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=n5e(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",e5e(u)||(u=""),h=new K6e([d],A,{type:u})):h=V6e(Buffer.from(d)),rS(nte(c)),rS(typeof h=="string"&&nte(h)||J6e(h)),s.push(z6e(c,h,A))}}function n5e(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=Up(a=>a!==10&&a!==13&&a!==58,t,e);if(o=SL(o,!0,!0,a=>a===9||a===32),!W6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Up(a=>a===32||a===9,t,e),Y6e(o)){case"content-disposition":{if(r=n=null,!nS(t,$6e,e)||(e.position+=17,r=ote(t,e),r===null))return"failure";if(nS(t,ite,e)){let a=e.position+ite.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ote(t,e),n===null))return"failure"}break}case"content-type":{let a=Up(c=>c!==10&&c!==13,t,e);a=SL(a,!1,!0,c=>c===9||c===32),s=ste(a);break}case"content-transfer-encoding":{let a=Up(c=>c!==10&&c!==13,t,e);a=SL(a,!1,!0,c=>c===9||c===32),i=ste(a);break}default:Up(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ote(t,e){rS(t[e.position-1]===34);let r=Up(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 Up(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function SL(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 nS(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}ate.exports={multipartFormDataParser:r5e,validateBoundary:t5e}});var Hp=E((oVt,Ete)=>{"use strict";var mI=lt(),{ReadableStreamFrom:s5e,isBlobLike:Ate,isReadableStreamLike:i5e,readableStreamClose:o5e,createDeferredPromise:a5e,fullyReadBody:c5e,extractMimeType:A5e,utf8DecodeBytes:dte}=Si(),{FormData:ute}=pI(),{kState:Op}=bl(),{webidl:u5e}=Jn(),{Blob:l5e}=b("node:buffer"),NL=b("node:assert"),{isErrored:hte,isDisturbed:d5e}=b("node:stream"),{isArrayBuffer:h5e}=b("node:util/types"),{serializeAMimeType:f5e}=Js(),{multipartFormDataParser:g5e}=cte(),TL;try{let t=b("node:crypto");TL=e=>t.randomInt(0,e)}catch{TL=t=>Math.floor(Math.random(t))}var sS=new TextEncoder;function p5e(){}var fte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,gte;fte&&(gte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!d5e(e)&&!hte(e)&&e.cancel("Response object has been garbage collected").catch(p5e)}));function pte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ate(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?sS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>o5e(c))},start(){},type:"bytes"}),NL(i5e(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(h5e(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(mI.isFormDataLike(t)){let c=`----formdata-undici-0${`${TL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=sS.encode(A+`; name="${u(l(I))}"\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(C),i+=C.byteLength}else{let C=sS.encode(`${A}; name="${u(l(I))}"`+(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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=sS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(Ate(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(mI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:s5e(t)}if((typeof s=="string"||mI.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(!hte(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 m5e(t,e=!1){return t instanceof ReadableStream&&(NL(!mI.isDisturbed(t),"The body has already been consumed."),NL(!t.locked,"The stream is locked.")),pte(t,e)}function E5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function C5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function I5e(t){return{blob(){return Pp(this,r=>{let n=lte(this);return n===null?n="":n&&(n=f5e(n)),new l5e([r],{type:n})},t)},arrayBuffer(){return Pp(this,r=>new Uint8Array(r).buffer,t)},text(){return Pp(this,dte,t)},json(){return Pp(this,B5e,t)},formData(){return Pp(this,r=>{let n=lte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=g5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ute;return i[Op]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ute;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 Pp(this,r=>new Uint8Array(r),t)}}}function y5e(t){Object.assign(t.prototype,I5e(t))}async function Pp(t,e,r){if(u5e.brandCheck(t,r),mte(t))throw new TypeError("Body is unusable: Body has already been read");C5e(t[Op]);let n=a5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Op].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await c5e(t[Op].body,i,s),n.promise)}function mte(t){let e=t[Op].body;return e!=null&&(e.stream.locked||mI.isDisturbed(e.stream))}function B5e(t){return JSON.parse(dte(t))}function lte(t){let e=t[Op].headersList,r=A5e(e);return r==="failure"?null:r}Ete.exports={extractBody:pte,safelyExtractBody:m5e,cloneBody:E5e,mixinBody:y5e,streamRegistry:gte,hasFinalizationRegistry:fte,bodyUnusable:mte}});var xte=E((aVt,Tte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:Cte}=Tp(),xL=uL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:b5e,RequestAbortedError:wte,HeadersTimeoutError:Q5e,HeadersOverflowError:w5e,SocketError:uS,InformationalError:Gp,BodyTimeoutError:S5e,HTTPParserError:N5e,ResponseExceededMaxSizeError:T5e}=Lt(),{kUrl:Ste,kReset:zs,kClient:vL,kParser:Fr,kBlocking:II,kRunning:os,kPending:x5e,kSize:Ite,kWriting:wl,kQueue:ba,kNoRef:EI,kKeepAliveDefaultTimeout:R5e,kHostHeader:D5e,kPendingIdx:k5e,kRunningIdx:Eo,kError:Co,kPipelining:cS,kSocket:qp,kKeepAliveTimeoutValue:lS,kMaxHeadersSize:RL,kKeepAliveMaxTimeout:v5e,kKeepAliveTimeoutThreshold:_5e,kHeadersTimeout:F5e,kBodyTimeout:M5e,kStrictContentLength:_L,kMaxRequests:yte,kCounter:L5e,kMaxResponseSize:U5e,kOnError:P5e,kResume:Ql,kHTTPContext:Nte}=Ir(),pc=gee(),O5e=Buffer.alloc(0),iS=Buffer[Symbol.species],oS=$e.addListener,H5e=$e.removeAllListeners,DL;async function G5e(){let t=process.env.JEST_WORKER_ID?hL():void 0,e;try{e=await WebAssembly.compile(Eee())}catch{e=await WebAssembly.compile(t||hL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onStatus(new iS(mc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderField(new iS(mc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderValue(new iS(mc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onBody(new iS(mc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var kL=null,FL=G5e();FL.catch();var fn=null,mc=null,aS=0,Ec=null,q5e=0,CI=1,Yp=2|CI,AS=4|CI,ML=8|q5e,LL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[RL])&&e[RL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(pc.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
`:p+=t[D5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[c_]&&!h[IA]?p+=`connection: keep-alive\r
`:t[cS]&&!h[zs]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return Cte.sendHeaders.hasSubscribers&&Cte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?bte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?bte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?Qte(f,c.stream(),t,e,h,u,p,l):j5e(f,c,t,e,h,u,p,l):$e.isStream(c)?z5e(f,c,t,e,h,u,p,l):$e.isIterable(c)?Qte(f,c,t,e,h,u,p,l):Ge(!1),!0}function z5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new dS({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(p){$e.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new wte;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[wl]&&r[os]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}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 bte(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(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
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zs]=!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
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Ql]()}catch(c){t(c)}}async function j5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Fh;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[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
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[Ql]()}catch(c){t(c)}}async function Qte(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===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)=>{Ge(c===null),s[Co]?h(s[Co]):c=d});s.on("close",A).on("drain",A);let l=new dS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Co])throw s[Co];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var dS=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[wl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Co])throw r[Co];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[_L])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!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[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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Yp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[wl]=!1,e[Co])throw e[Co];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
`,"latin1"),r!==null&&s!==r){if(n[_L])throw new Fh;process.emitWarning(new Fh)}e[Fr].timeout&&e[Fr].timeoutType===Yp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[Ql]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[wl]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Tte.exports=Y5e});var Lte=E((cVt,Mte)=>{"use strict";var Io=b("node:assert"),{pipeline:K5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:UL,RequestAbortedError:Rte,SocketError:yI,InformationalError:PL}=Lt(),{kUrl:hS,kReset:gS,kClient:Vp,kRunning:pS,kPending:$5e,kQueue:Sl,kPendingIdx:OL,kRunningIdx:Qa,kError:Sa,kSocket:Tn,kStrictContentLength:X5e,kOnError:HL,kMaxConcurrentStreams:Fte,kHTTP2Session:wa,kResume:Nl,kSize:Z5e,kHTTPContext:eHe}=Ir(),su=Symbol("open streams"),Dte,kte=!1,fS;try{fS=b("node:http2")}catch{fS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tHe,HTTP2_HEADER_METHOD:rHe,HTTP2_HEADER_PATH:nHe,HTTP2_HEADER_SCHEME:sHe,HTTP2_HEADER_CONTENT_LENGTH:iHe,HTTP2_HEADER_EXPECT:oHe,HTTP2_HEADER_STATUS:aHe}}=fS;function cHe(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 AHe(t,e){t[Tn]=e,kte||(kte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=fS.connect(t[hS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Fte]});r[su]=0,r[Vp]=t,r[Tn]=e,mt.addListener(r,"error",lHe),mt.addListener(r,"frameError",dHe),mt.addListener(r,"end",hHe),mt.addListener(r,"goaway",fHe),mt.addListener(r,"close",function(){let{[Vp]:s}=this,{[Tn]:i}=s,o=this[Tn][Sa]||this[Sa]||new yI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){Io(s[$5e]===0);let a=s[Sl].splice(s[Qa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){Io(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[Vp][HL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new yI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new yI("closed",mt.getSocketInfo(this));t[Tn]=null,this[wa]!=null&&this[wa].destroy(s),t[OL]=t[Qa],Io(t[pS]===0),t.emit("disconnect",t[hS],[t],s),t[Nl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return pHe(t,...s)},resume(){uHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function uHe(t){let e=t[Tn];e?.destroyed===!1&&(t[Z5e]===0&&t[Fte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function lHe(t){Io(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][Sa]=t,this[Vp][HL](t)}function dHe(t,e,r){if(r===0){let n=new PL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][Sa]=n,this[Vp][HL](n)}}function hHe(){let t=new yI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function fHe(t){let e=this[Sa]||new yI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Vp];if(r[Tn]=null,r[eHe]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[Tn],e),r[Qa]<r[Sl].length){let n=r[Sl][r[Qa]];r[Sl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[OL]=r[Qa]}Io(r[pS]===0),r.emit("disconnect",r[hS],[r],e),r[Nl]()}function gHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function pHe(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[hS];l[tHe]=i||`${h}${f?`:${f}`:""}`,l[rHe]=n;let p=N=>{e.aborted||e.completed||(N=N||new Rte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[Sl][t[Qa]++]=null,t[Nl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}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[su],t[Sl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Sl][t[Qa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[nHe]=s,l[sHe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){Dte??=Hp().extractBody;let[N,M]=Dte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),gHe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[X5e])return mt.errorRequest(t,e,new UL),!1;process.emitWarning(new UL)}m!=null&&(Io(u,"no body must not have content length"),l[iHe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[oHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[GHe]=c??3e5,this[HHe]=s??3e5,this[qHe]=C??!0,this[YHe]=N,this[VL]=O,this[xl]=null,this[jHe]=P>-1?P:-1,this[$He]=Z??100,this[zr]=null,this[Na]=[],this[ou]=0,this[Ta]=0,this[wI]=ce=>JL(this,ce),this[KHe]=ce=>jte(this,ce)}get pipelining(){return this[IS]}set pipelining(e){this[IS]=e,this[wI](!0)}get[TI](){return this[Na].length-this[Ta]}get[NI](){return this[Ta]-this[ou]}get[SI](){return this[Na].length-this[ou]}get[_He](){return!!this[zr]&&!this[Jp]&&!this[zr].destroyed}get[YL](){return!!(this[zr]?.busy(null)||this[SI]>=(zte(this)||1)||this[TI]>0)}[vHe](e){Kte(this),this.once("connect",e)}[zHe](e,r){let n=e.origin||this[Ic].origin,s=new NHe(n,e,r);return this[Na].push(s),this[Lh]||(Mh.bodyLength(s.body)==null&&Mh.isIterable(s.body)?(this[Lh]=1,queueMicrotask(()=>JL(this))):this[wI](!0)),this[Lh]&&this[Rl]!==2&&this[YL]&&(this[Rl]=2),this[Rl]<2}async[WHe](){return new Promise(e=>{this[SI]?this[xl]=e:e(null)})}async[JHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Mh.errorRequest(this,o,e)}let s=()=>{this[xl]&&(this[xl](),this[xl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[wI]()})}},e9e=CS();function jte(t,e){if(t[NI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ta]===t[ou]);let r=t[Na].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Mh.errorRequest(t,s,e)}iu(t[SI]===0)}}async function Kte(t){iu(!t[Jp]),iu(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Ic];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Jte.isIP(o)),r=o}t[Jp]=!0,Wp.beforeConnect.hasSubscribers&&Wp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI]});try{let i=await new Promise((o,a)=>{t[bI]({host:e,hostname:r,protocol:n,port:s,servername:t[Tl],localAddress:t[QI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Mh.destroy(i.on("error",Vte),new RHe);return}iu(i);try{t[zr]=i.alpnProtocol==="h2"?await ZHe(t,i):await XHe(t,i)}catch(o){throw i.destroy().on("error",Vte),o}t[Jp]=!1,i[VHe]=0,i[VL]=t[VL],i[kHe]=t,i[MHe]=null,Wp.connected.hasSubscribers&&Wp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI],socket:i}),t.emit("connect",t[Ic],[t])}catch(i){if(t.destroyed)return;if(t[Jp]=!1,Wp.connectError.hasSubscribers&&Wp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Tl],localAddress:t[QI]},connector:t[bI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[NI]===0);t[TI]>0&&t[Na][t[Ta]].servername===t[Tl];){let o=t[Na][t[Ta]++];Mh.errorRequest(t,o,i)}else jte(t,i);t.emit("connectionError",t[Ic],[t],i)}t[wI]()}function Wte(t){t[Rl]=0,t.emit("drain",t[Ic],[t])}function JL(t,e){t[Lh]!==2&&(t[Lh]=2,t9e(t,e),t[Lh]=0,t[ou]>256&&(t[Na].splice(0,t[ou]),t[Ta]-=t[ou],t[ou]=0))}function t9e(t,e){for(;;){if(t.destroyed){iu(t[TI]===0);return}if(t[xl]&&!t[SI]){t[xl](),t[xl]=null;return}if(t[zr]&&t[zr].resume(),t[YL])t[Rl]=2;else if(t[Rl]===2){e?(t[Rl]=1,queueMicrotask(()=>Wte(t))):Wte(t);continue}if(t[TI]===0||t[NI]>=(zte(t)||1))return;let r=t[Na][t[Ta]];if(t[Ic].protocol==="https:"&&t[Tl]!==r.servername){if(t[NI]>0)return;t[Tl]=r.servername,t[zr]?.destroy(new xHe("servername changed"),()=>{t[zr]=null,JL(t)})}if(t[Jp])return;if(!t[zr]){Kte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}$te.exports=WL});var zL=E((hVt,Xte)=>{"use strict";var yS=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)}};Xte.exports=class{constructor(){this.head=this.tail=new yS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new yS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var ere=E((fVt,Zte)=>{var{kFree:r9e,kConnected:n9e,kPending:s9e,kQueued:i9e,kRunning:o9e,kSize:a9e}=Ir(),Uh=Symbol("pool"),jL=class{constructor(e){this[Uh]=e}get connected(){return this[Uh][n9e]}get free(){return this[Uh][r9e]}get pending(){return this[Uh][s9e]}get queued(){return this[Uh][i9e]}get running(){return this[Uh][o9e]}get size(){return this[Uh][a9e]}};Zte.exports=jL});var tU=E((gVt,ure)=>{"use strict";var c9e=kp(),A9e=zL(),{kConnected:KL,kSize:tre,kRunning:rre,kPending:nre,kQueued:xI,kBusy:u9e,kFree:l9e,kUrl:d9e,kClose:h9e,kDestroy:f9e,kDispatch:g9e}=Ir(),p9e=ere(),js=Symbol("clients"),bs=Symbol("needDrain"),RI=Symbol("queue"),$L=Symbol("closed resolve"),XL=Symbol("onDrain"),sre=Symbol("onConnect"),ire=Symbol("onDisconnect"),ore=Symbol("onCo 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
`: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
\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
\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
\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"):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
\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
${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())}};pse.exports=tP});var PS=E((qVt,yse)=>{"use strict";var Ese=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Gqe}=Lt(),qqe=Kp();Ise()===void 0&&Cse(new qqe);function Cse(t){if(!t||typeof t.dispatch!="function")throw new Gqe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ese,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ise(){return globalThis[Ese]}yse.exports={setGlobalDispatcher:Cse,getGlobalDispatcher:Ise}});var OS=E((VVt,Bse)=>{"use strict";Bse.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 Qse=E((WVt,bse)=>{"use strict";var Yqe=ES();bse.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 Yqe(r,o,s,i);return r(a,c)}}});var Sse=E((JVt,wse)=>{"use strict";var Vqe=xS();wse.exports=t=>e=>function(n,s){return e(n,new Vqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Tse=E((zVt,Nse)=>{"use strict";var Wqe=lt(),{InvalidArgumentError:Jqe,RequestAbortedError:zqe}=Lt(),jqe=OS(),rP=class extends jqe{#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 Jqe("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=Wqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new zqe(`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 Kqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new rP({maxSize:i},s);return e(n,o)}}Nse.exports=Kqe});var Dse=E((jVt,Rse)=>{"use strict";var{isIP:$qe}=b("node:net"),{lookup:Xqe}=b("node:dns"),Zqe=OS(),{InvalidArgumentError:om,InformationalError:eYe}=Lt(),xse=Math.pow(2,31)-1,nP=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 eYe("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){Xqe(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===xse?(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===xse?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 sP(this,e,r)}},sP=class extends Zqe{#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":uae(i)&&(r[s]=i);break;case"id":lae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&uae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&lae(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}}};dae.exports={EventSourceStream:qP}});var yae=E((S7t,Iae)=>{"use strict";var{pipeline:uJe}=b("node:stream"),{fetching:lJe}=qI(),{makeRequest:dJe}=Am(),{webidl:lu}=Jn(),{EventSourceStream:hJe}=hae(),{parseMIMEType:fJe}=Js(),{createFastMessageEvent:gJe}=gm(),{isNetworkError:fae}=HI(),{delay:pJe}=HP(),{kEnumerableProperty:Zh}=lt(),{environmentSettingsObject:gae}=Si(),pae=!1,mae=3e3,ry=0,Eae=1,ny=2,mJe="anonymous",EJe="use-credentials",Im=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ry;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),pae||(pae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:mae};let s=gae,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=mJe;r.withCredentials&&(o=EJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=gae.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=dJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ny)return;this.#r=ry;let e={request:this.#s,dispatcher:this.#a},r=n=>{fae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(fae(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?fJe(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=Eae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(gJe(c.type,c.options))}});uJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=lJe(e)}async#A(){this.#r!==ny&&(this.#r=ry,this.dispatchEvent(new Event("error")),await pJe(this.#o.reconnectionTime),this.#r===ry&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){lu.brandCheck(this,t),this.#r!==ny&&(this.#r=ny,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}},Cae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ry,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Eae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ny,writable:!1}};Object.defineProperties(Im,Cae);Object.defineProperties(Im.prototype,Cae);Object.defineProperties(Im.prototype,{close:Zh,onerror:Zh,onmessage:Zh,onopen:Zh,readyState:Zh,url:Zh,withCredentials:Zh});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);Iae.exports={EventSource:Im,defaultReconnectionTime:mae}});var TN=E((N7t,Ye)=>{"use strict";var CJe=zp(),Bae=aI(),IJe=jp(),yJe=Cre(),BJe=Kp(),bJe=fU(),QJe=qre(),wJe=jre(),bae=Lt(),NN=lt(),{InvalidArgumentError:SN}=bae,ym=Fne(),SJe=AI(),NJe=jU(),TJe=mse(),xJe=XU(),RJe=MU(),DJe=xS(),{getGlobalDispatcher:Qae,setGlobalDispatcher:kJe}=PS(),vJe=OS(),_Je=ES(),FJe=CS();Object.assign(Bae.prototype,ym);Ye.exports.Dispatcher=Bae;Ye.exports.Client=CJe;Ye.exports.Pool=IJe;Ye.exports.BalancedPool=yJe;Ye.exports.Agent=BJe;Ye.exports.ProxyAgent=bJe;Ye.exports.EnvHttpProxyAgent=QJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?_O:C.type==="?"?vO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ee=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);ee+=ce;var fe=z.split("(").length-1,De=ce;for(p=0;p<fe;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==$N&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===$N)return[n,s];if(!s)return yKe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Mi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=IKe;function IKe(){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?_O:e.dot?dKe:hKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===af?r:typeof o=="string"?BKe(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}Mi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.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;fy.sep!=="/"&&(e=e.split(fy.sep).join("/")),e=e.split(fAe),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};an.prototype.matchOne=function(t,e,r){return e.indexOf(af)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===af){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===af){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 p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===af?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.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};an.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===af)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 yKe(t){return t.replace(/\\(.)/g,"$1")}function BKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var xm=E((TJt,yAe)=>{"use strict";var RKe="2.0.0",DKe=Number.MAX_SAFE_INTEGER||9007199254740991,kKe=16,vKe=250,_Ke=["major","premajor","minor","preminor","patch","prepatch","prerelease"];yAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:kKe,MAX_SAFE_BUILD_LENGTH:vKe,MAX_SAFE_INTEGER:DKe,RELEASE_TYPES:_Ke,SEMVER_SPEC_VERSION:RKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ey=E((xJt,BAe)=>{"use strict";var FKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};BAe.exports=FKe});var Rm=E((Tc,bAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:MO,MAX_SAFE_BUILD_LENGTH:MKe,MAX_LENGTH:LKe}=xm(),UKe=Ey();Tc=bAe.exports={};var PKe=Tc.re=[],OKe=Tc.safeRe=[],me=Tc.src=[],HKe=Tc.safeSrc=[],Ee=Tc.t={},GKe=0,LO="[a-zA-Z0-9-]",qKe=[["\\s",1],["\\d",LKe],[LO,MKe]],YKe=t=>{for(let[e,r]of qKe)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+"+MT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ket()+e+" "+t[0]}function ket(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vet(...t){return process.stderr.write(FT.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function _et(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Fet(){return process.env.DEBUG}function Met(t){t.inspectOpts={};let e=Object.keys(Rn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Rn.inspectOpts[e[r]]}MT.exports=S3()(Rn);var{formatters:Xle}=MT.exports;Xle.o=function(t){return this.inspectOpts.colors=this.useColors,FT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Xle.O=function(t){return this.inspectOpts.colors=this.useColors,FT.inspect(t,this.inspectOpts)}});var LT=E((iKt,x3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?x3.exports=Wle():x3.exports=Zle()});var rde=E(ni=>{"use strict";var Let=ni&&ni.__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]})),Uet=ni&&ni.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ede=ni&&ni.__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)&&Let(e,t,r);return Uet(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.req=ni.json=ni.toBuffer=void 0;var Pet=ede(b("http")),Oet=ede(b("https"));async function tde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ni.toBuffer=tde;async function Het(t){let r=(await tde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ni.json=Het;function Get(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Oet:Pet).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ni.req=Get});var D3=E(Pi=>{"use strict";var sde=Pi&&Pi.__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]})),qet=Pi&&Pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ide=Pi&&Pi.__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)&&sde(e,t,r);return qet(e,t),e},Yet=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&sde(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Agent=void 0;var Vet=ide(b("net")),nde=ide(b("http")),Wet=b("https");Yet(rde(),Pi);var Dc=Symbol("AgentBaseInternalState"),R3=class extends nde.Agent{constructor(e){super(e),this[Dc]={}}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 Vet.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)?Wet.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 nde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Dc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Dc].currentSocket;if(this[Dc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Dc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Dc]&&(this[Dc].defaultPort=e)}get protocol(){return this[Dc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Dc]&&(this[Dc].protocol=e)}};Pi.Agent=R3});var ode=E(Pm=>{"use strict";var Jet=Pm&&Pm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.parseProxyResponse=void 0;var zet=Jet(LT()),UT=(0,zet.default)("https-proxy-agent:parse-proxy-response");function jet(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(),UT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),UT("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){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){UT("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}UT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Pm.parseProxyResponse=jet});var dde=E(xo=>{"use strict";var Ket=xo&&xo.__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]})),$et=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=xo&&xo.__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)&&Ket(e,t,r);return $et(e,t),e},lde=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpsProxyAgent=void 0;var PT=ude(b("net")),ade=ude(b("tls")),Xet=lde(b("assert")),Zet=lde(LT()),ett=D3(),ttt=b("url"),rtt=ode(),ky=(0,Zet.default)("https-proxy-agent"),cde=t=>t.servername===void 0&&t.host&&!PT.isIP(t.host)?{...t,servername:t.host}:t,OT=class extends ett.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ttt.URL(e):e,this.proxyHeaders=r?.headers??{},ky("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?Ade(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:"?(ky("Creating `tls.Socket`: %o",this.connectOpts),s=ade.connect(cde(this.connectOpts))):(ky("Creating `net.Socket`: %o",this.connectOpts),s=PT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=PT.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 c=(0,rtt.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",ntt),r.secureEndpoint?(ky("Upgrading socket connection to TLS"),ade.connect({...Ade(cde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new PT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ky("Replaying proxy buffer for failed request"),(0,Xet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};OT.protocols=["http","https"];xo.HttpsProxyAgent=OT;function ntt(t){t.resume()}function Ade(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var gde=E(Ro=>{"use strict";var stt=Ro&&Ro.__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]})),itt=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fde=Ro&&Ro.__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)&&stt(e,t,r);return itt(e,t),e},ott=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpProxyAgent=void 0;var att=fde(b("net")),ctt=fde(b("tls")),Att=ott(LT()),utt=b("events"),ltt=D3(),hde=b("url"),Om=(0,Att.default)("http-proxy-agent"),HT=class extends ltt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new hde.URL(e):e,this.proxyHeaders=r?.headers??{},Om("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?dtt(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 hde.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;Om("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Om("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),Om("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Om("Creating `tls.Socket`: %o",this.connectOpts),i=ctt.connect(this.connectOpts)):(Om("Creating `net.Socket`: %o",this.connectOpts),i=att.connect(this.connectOpts)),await(0,utt.once)(i,"connect"),i}};HT.protocols=["http","https"];Ro.HttpProxyAgent=HT;function dtt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Pde=E(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.state=void 0;ZT.state={instrumenterImplementation:void 0}});var rhe=E(sx=>{"use strict";Object.defineProperty(sx,"__esModule",{value:!0});sx.state=void 0;sx.state={operationRequestMap:new WeakMap}});var Mge=E((ohr,Iat)=>{Iat.exports={name:"@actions/cache",version:"6.0.1",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 Uge=E((ahr,Lge)=>{var yat=Mge();Lge.exports={version:yat.version}});var MR=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.isJsonObject=u0.typeofJsonValue=void 0;function Rat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}u0.typeofJsonValue=Rat;function Dat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}u0.isJsonObject=Dat});var UR=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.base64encode=l0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),LR=[];for(let t=0;t<ku.length;t++)LR[ku[t].charCodeAt(0)]=t;LR[45]=ku.indexOf("+");LR[95]=ku.indexOf("/");function kat(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=LR[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)}l0.base64decode=kat;function vat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ku[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ku[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ku[s|n>>6],e+=ku[n&63],r=0;break}return r&&(e+=ku[s],e+="=",r==1&&(e+="=")),e}l0.base64encode=vat});var qge=E(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR.utf8read=void 0;var BH=t=>String.fromCharCode.apply(String,t);function _at(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(BH(n)),s=0);return r.length?(s&&r.push(BH(n.slice(0,s))),r.join("")):BH(n.slice(0,s))}PR.utf8read=_at});var TB=E(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.WireType=rA.mergeBinaryOptions=rA.UnknownFieldHandler=void 0;var Fat;(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])})(Fat=rA.UnknownFieldHandler||(rA.UnknownFieldHandler={}));function Mat(t,e){return Object.assign(Object.assign({},t),e)}rA.mergeBinaryOptions=Mat;var Lat;(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"})(Lat=rA.WireType||(rA.WireType={}))});var HR=E(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.varint32read=ui.varint32write=ui.int64toString=ui.int64fromString=ui.varint64write=ui.varint64read=void 0;function Uat(){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")}ui.varint64read=Uat;function Pat(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)}}ui.varint64write=Pat;var OR=65536*65536;function Oat(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>=OR&&(s=s+(n/OR|0),n=n%OR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}ui.int64fromString=Oat;function Hat(t,e){if(e>>>0<=2097151)return""+(OR*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)}ui.int64toString=Hat;function Gat(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)}}ui.varint32write=Gat;function qat(){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}ui.varint32read=qat});var ld=E(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.PbLong=ud.PbULong=ud.detectBi=void 0;var xB=HR(),ir;function Yge(){let t=new DataView(new ArrayBuffer(8));ir=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}ud.detectBi=Yge;Yge();function Vge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Wge=/^-?[0-9]+$/,qR=4294967296,GR=2147483648,YR=c Line truncated
`)}};fD.RpcError=jH});var $H=E(pD=>{"use strict";Object.defineProperty(pD,"__esModule",{value:!0});pD.mergeRpcOptions=void 0;var Bpe=ct();function lAt(t,e){if(!e)return t;let r={};gD(t,r),gD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Bpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Bpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},gD(t.meta,r.meta),gD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pD.mergeRpcOptions=lAt;function gD(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 ZH=E(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Deferred=Pf.DeferredState=void 0;var iA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(iA=Pf.DeferredState||(Pf.DeferredState={}));var XH=class{constructor(e=!0){this._state=iA.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!==iA.PENDING)throw new Error(`cannot resolve ${iA[this.state].toLowerCase()}`);this._resolve(e),this._state=iA.RESOLVED}reject(e){if(this.state!==iA.PENDING)throw new Error(`cannot reject ${iA[this.state].toLowerCase()}`);this._reject(e),this._state=iA.REJECTED}resolvePending(e){this._state===iA.PENDING&&this.resolve(e)}rejectPending(e){this._state===iA.PENDING&&this.reject(e)}};Pf.Deferred=XH});var t9=E(mD=>{"use strict";Object.defineProperty(mD,"__esModule",{value:!0});mD.RpcOutputStreamController=void 0;var bpe=ZH(),Of=ct(),e9=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){Of.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){Of.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){Of.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(){Of.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;Of.assert(e,"bad state"),Of.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 bpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Of.assert(n.state==bpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};mD.RpcOutputStreamController=e9});var n9=E(E0=>{"use strict";var dAt=E0&&E0.__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(E0,"__esModule",{value:!0});E0.UnaryCall=void 0;var r9=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 dAt(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}})}};E0.UnaryCall=r9});var i9=E(C0=>{"use strict";var hAt=C0&&C0.__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(C0,"__esModule",{value:!0});C0.ServerStreamingCall=void 0;var s9=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 UCe=E(LCe=>{"use strict";var Zq=Yu().Buffer;LCe._dbcs=Vu;var $n=-1,MCe=-2,Zo=-10,Ms=-1e3,Z0=new Array(256),Db=-1;for(q2=0;q2<256;q2++)Z0[q2]=$n;var q2;function Vu(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]=Z0.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(Z0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],c=48;c<=57;c++){if(a[c]===$n)a[c]=Ms-s;else if(a[c]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ms-a[c]],u=129;u<=254;u++){if(A[u]===$n)A[u]=Ms-i;else{if(A[u]===Ms-i)continue;if(A[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-A[u]],d=48;d<=57;d++)l[d]===$n&&(l[d]=MCe)}}}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 QCt(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(ACt.has(s)){r=s;break}}return r}function wCt(t,e){let r=QCt(e);r!==""&&(t.referrerPolicy=r)}function SCt(){return"allowed"}function NCt(){return"success"}function TCt(){return"success"}function xCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function RCt(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&&mV(t.origin)&&!mV(gg(t))&&(e=null);break;case"same-origin":Ob(t,gg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sE(t,e){return t}function DCt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sE(t.domainLookupStartTime,r),domainLookupEndTime:sE(t.domainLookupEndTime,r),connectionStartTime:sE(t.connectionStartTime,r),connectionEndTime:sE(t.connectionEndTime,r),secureConnectionStartTime:sE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function kCt(t){return sE(hCt.now(),t)}function vCt(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 fBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function _Ct(t){return{referrerPolicy:t.referrerPolicy}}function FCt(t){let e=t.referrerPolicy;Hb(e);let r=null;if(t.referrer==="client"){let i=ABe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else _d.is.URL(t.referrer)&&(r=t.referrer);let n=pV(r),s=pV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??pV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=gg(t);return Ob(n,i)?n:fg(n)&&!fg(i)?"no-referrer":s}case"same-origin":return Ob(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Ob(t,n)?n:s;case"no-referrer-when-downgrade":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":n}}}function pV(t,e=!1){return Hb(_d.is.URL(t)),t=new URL(t),EBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var MCt=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)$/),LCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function gBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),LCt(t)):MCt(t)}function UCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||gBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function fg(t){return _d.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:UCt(t.origin):!1}function PCt(t){}function Ob(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function OCt(t){return t.controller.state==="aborted"}function HCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function GCt(t){return gCt[t.toLowerCase()]??t}var qCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function pBe(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,qCt),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 YCt(t,e,r,n=0,s=1){let i=pBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _d.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _d.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ra(a=>SV(a)&&a!==59,t,e);i=QV.decode(o)}return{name:n,value:i}}function fIt(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 Ei("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ra(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wV(o,!0,!0,a=>a===9||a===32),!oIt.test(o.toString()))throw Ei("header name does not match the field-name token production");if(t[e.position]!==58)throw Ei("expected :");switch(e.position++,ra(a=>a===32||a===9,t,e),iIt(o)){case"content-disposition":{if(r=n=null,ra(c=>SV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ei("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=hIt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw Ei("name attribute is required in content-disposition header");break}case"content-type":{let a=ra(c=>c!==10&&c!==13,t,e);a=wV(a,!1,!0,c=>c===9||c===32),s=QBe(a);break}case"content-transfer-encoding":{let a=ra(c=>c!==10&&c!==13,t,e);a=wV(a,!1,!0,c=>c===9||c===32),i=QBe(a);break}default:ra(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ei("expected CRLF");e.position+=2}}function ra(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wV(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 gIt(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 Ei(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function pIt(t){return t<=31||t===127}function mIt(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 SV(t){return t<=127&&t!==32&&t!==9&&!pIt(t)&&!mIt(t)}wBe.exports={multipartFormDataParser:dIt,validateBoundary:lIt}});var Gb=E((uIr,NBe)=>{"use strict";function EIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}NBe.exports={createDeferredPromise:EIt}});var aE=E((lIr,kBe)=>{"use strict";var xV=Ze(),{ReadableStreamFrom:CIt,readableStreamClose:IIt,fullyReadBody:yIt,extractMimeType:BIt}=$i(),{FormData:TBe,setFormDataState:bIt}=fk(),{webidl:Za}=Xn(),NV=b("node:assert"),{isErrored:TV,isDisturbed:QIt}=b("node:stream"),{isUint8Array:wIt}=b("node:util/types"),{serializeAMimeType:SIt}=ta(),{multipartFormDataParser:NIt}=SBe(),{createDeferredPromise:TIt}=Gb(),{parseJSONFromBytes:xIt}=zu(),{utf8DecodeBytes:RIt}=ck(),{runtimeFeatures:DIt}=ju(),kIt=DIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),gk=new TextEncoder;function vIt(){}var _It=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!QIt(e)&&!TV(e)&&e.cancel("Response object has been garbage collected").catch(vIt)});function RBe(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),NV(Za.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(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let A=`----formdata-undici-0${`${kIt(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=qJ.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=gk.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
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=gk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.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
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=gk.encode(`--${A}--\r
`);h.push(I),o+=I.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=${A}`}else if(Za.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(xV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:CIt(t)}return(typeof i=="string"||wIt(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(TV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!TV(r)&&n.enqueue(typeof A=="string"?gk.encode(A):new Uint8Array(A));queueMicrotask(()=>IIt(n))})(),[{stream:r,source:i,length:o},a]}function FIt(t,e=!1){return Za.is.ReadableStream(t)&&(NV(!xV.isDisturbed(t),"The body has already been consumed."),NV(!t.locked,"The stream is locked.")),RBe(t,e)}function MIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function LIt(t,e){return{blob(){return oE(this,n=>{let s=xBe(e(this));return s===null?s="":s&&(s=SIt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return oE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return oE(this,RIt,t,e)},json(){return oE(this,xIt,t,e)},formData(){return oE(this,n=>{let s=xBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=NIt(n,s),o=new TBe;return bIt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new TBe;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 oE(this,n=>new Uint8Array(n),t,e)}}}function UIt(t,e){Object.assign(t.prototype,LIt(t,e))}function oE(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),DBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=TIt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(yIt(t.body,o,i),s.promise)}function DBe(t){let e=t.body;return e!=null&&(e.stream.locked||xV.isDisturbed(e.stream))}function xBe(t){let e=t.headersList,r=BIt(e);return r==="failure"?null:r}kBe.exports={extractBody:RBe,safelyExtractBody:FIt,cloneBody:MIt,mixinBody:UIt,streamRegistry:_It,bodyUnusable:DBe}});var qBe=E((dIr,GBe)=>{"use strict";var Ve=b("node:assert"),We=Ze(),{channels:vBe}=kd(),RV=lY(),{RequestContentLengthMismatchError:pg,ResponseContentLengthMismatchError:PIt,RequestAbortedError:PBe,HeadersTimeoutError:OIt,HeadersOverflowError:HIt,SocketError:Vb,InformationalError:cE,BodyTimeoutError:GIt,HTTPParserError:qIt,ResponseExceededMaxSizeError:YIt}=je(),{kUrl:OBe,kReset:Ci,kClient:LV,kParser:Yr,kBlocking:Wb,kRunning:gs,kPending:VIt,kSize:_Be,kWriting:Md,kQueue:ec,kNoRef:qb,kKeepAliveDefaultTimeout:WIt,kHostHeader:JIt,kPendingIdx:zIt,kRunningIdx:na,kError:sa,kPipelining:Ek,kSocket:AE,kKeepAliveTimeoutValue:Ik,kMaxHeadersSize:jIt,kKeepAliveMaxTimeout:KIt,kKeepAliveTimeoutThreshold:$It,kHeadersTimeout:XIt,kBodyTimeout:ZIt,kStrictContentLength:vV,kMaxRequests:FBe,kCounter:eyt,kMaxResponseSize:tyt,kOnError:ryt,kResume:Fd,kHTTPContext:HBe,kClosed:_V}=Kt(),fA=kye(),nyt=Buffer.alloc(0),pk=Buffer[Symbol.species],syt=We.removeAllListeners,DV;function iyt(){let t=process.env.JEST_WORKER_ID?nV():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(Fye())}catch{}return e||(e=new WebAssembly.Module(t||nV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onStatus(new pk(gA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onHeaderField(new pk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onHeaderValue(new pk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-pA+gA.byteOffset;return yn.onBody(new pk(gA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var kV=null,yn=null,gA=null,mk=0,pA=null,oyt=0,Yb=1,uE=2|Yb,Ck=4|Yb,FV=8|oyt,MV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(fA.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[jIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[tyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[HYr],i?p+=`connection: upgrade\r
`:p+=t[JIt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[JJ]&&!h[cc]?p+=`connection: keep-alive\r
`:t[Ek]&&!h[Ci]?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
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return vBe.sendHeaders.hasSubscribers&&vBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?LBe(f,null,t,e,h,u,p,l):We.isBuffer(c)?LBe(f,c,t,e,h,u,p,l):We.isBlobLike(c)?typeof c.stream=="function"?UBe(f,c.stream(),t,e,h,u,p,l):myt(f,c,t,e,h,u,p,l):We.isStream(c)?pyt(f,c,t,e,h,u,p,l):We.isIterable(c)?UBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function pyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new yk({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(p){We.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new PBe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Md]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.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 LBe(t,e,r,n,s,i,o,a){try{e?We.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[Ci]=!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[Fd]()}catch(c){t(c)}}async function myt(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 pg;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[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"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ci]=!0),r[Fd]()}catch(c){t(c)}}async function UBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===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[sa]?h(s[sa]):c=d});s.on("close",A).on("drain",A);let l=new yk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[sa])throw s[sa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var yk=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[sa])throw r[sa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[vV])throw new pg;process.emitWarning(new pg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ci]=!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[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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===uE&&r[Yr].timeout.refresh&&r[Yr].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[sa])throw e[sa];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[vV])throw new pg;process.emitWarning(new pg)}e[Yr].timeout&&e[Yr].timeoutType===uE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[Fd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};GBe.exports=ayt});var XBe=E((hIr,$Be)=>{"use strict";var oa=b("node:assert"),{pipeline:Eyt}=b("node:stream"),At=Ze(),{RequestContentLengthMismatchError:HV,RequestAbortedError:Cyt,SocketError:Kb,InformationalError:Ld,InvalidArgumentError:Iyt}=je(),{kUrl:jb,kReset:wk,kClient:Xi,kRunning:$b,kPending:yyt,kQueue:Ud,kPendingIdx:qV,kRunningIdx:tc,kError:Zi,kSocket:Rr,kStrictContentLength:Byt,kOnError:lE,kMaxConcurrentStreams:bk,kPingInterval:YBe,kHTTP2Session:$u,kHTTP2InitialWindowSize:byt,kHTTP2ConnectionWindowSize:Qyt,kResume:mA,kSize:wyt,kHTTPContext:YV,kClosed:GV,kBodyTimeout:Syt,kEnableConnectProtocol:Jb,kRemoteSettings:zb,kHTTP2Stream:Bk,kHTTP2SessionState:VV}=Kt(),{channels:VBe}=kd(),ia=Symbol("open streams"),WBe,Qk;try{Qk=b("node:http2")}catch{Qk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Nyt,HTTP2_HEADER_METHOD:JBe,HTTP2_HEADER_PATH:zBe,HTTP2_HEADER_SCHEME:UV,HTTP2_HEADER_CONTENT_LENGTH:Tyt,HTTP2_HEADER_EXPECT:xyt,HTTP2_HEADER_STATUS:PV,HTTP2_HEADER_PROTOCOL:Ryt,NGHTTP2_REFUSED_STREAM:Dyt,NGHTTP2_CANCEL:kyt}}=Qk;function OV(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 vyt(t,e){t[Rr]=e;let r=t[byt],n=t[Qyt],s=Qk.connect(t[jb],{createConnection:()=>e,peerMaxConcurrentStreams:t[bk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[ia]=0,s[Xi]=t,s[Rr]=e,s[VV]={ping:{interval:t[YBe]===0?null:setInterval(Lyt,t[YBe],s).unref()}},s[Jb]=!1,s[zb]=!1,n&&At.addListener(s,"connect",Fyt.bind(s,n)),At.addListener(s,"error",Uyt),At.addListener(s,"frameError",Pyt),At.addListener(s,"end",Oyt),At.addListener(s,"goaway",Hyt),At.addListener(s,"close",Gyt),At.addListener(s,"remoteSettings",Myt),s.unref(),t[$u]=s,e[$u]=s,At.addListener(e,"error",Yyt),At.addListener(e,"end",Vyt),At.addListener(e,"close",qyt),e[GV]=!1,e.on("close",Wyt),{version:"h2",defaultPipelining:1/0,write(i){return zyt(t,i)},resume(){_yt(t)},destroy(i,o){e[GV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[$b]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zb]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zb]===!1;return!1}}}function _yt(t){let e=t[Rr];e?.destroyed===!1&&(t[wyt]===0||t[bk]===0?(e.unref(),t[$u].unref()):(e.ref(),t[$u].ref()))}function Fyt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Myt(t){if(this[Xi][bk]=t.maxConcurrentStreams??this[Xi][bk],this[zb]===!0&&this[Jb]===!0&&t.enableConnectProtocol===!1){let e=new Ld("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Zi]=e,this[Xi][lE](e);return}this[Jb]=t.enableConnectProtocol??this[Jb],this[zb]=!0,this[Xi][mA]()}function Lyt(t){let e=t[VV];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[Xi],o=this[Xi];if(n!=null){let a=new Ld(`HTTP/2: "PING" errored - type ${n.message}`);o[Zi]=a,i[lE](a)}else i.emit("ping",s)}}function Uyt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Zi]=t,this[Xi][lE](t)}function Pyt(t,e,r){if(r===0){let n=new Ld(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Zi]=n,this[Xi][lE](n)}}function Oyt(){let t=new Kb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function Hyt(t){let e=this[Zi]||new Kb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Xi];if(r[Rr]=null,r[YV]=null,this.close(),this[$u]=null,At.destroy(this[Rr],e),r[tc]<r[Ud].length){let n=r[Ud][r[tc]];r[Ud][r[tc]++]=null,At.errorRequest(r,n,e),r[qV]=r[tc]}oa(r[$b]===0),r.emit("disconnect",r[jb],[r],e),r.emit("connectionError",r[jb],[r],e),r[mA]()}function Gyt(){let{[Xi]:t,[VV]:e}=this,{[Rr]:r}=t,n=this[Rr][Zi]||this[Zi]||new Kb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[YV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oa(t[yyt]===0);let s=t[Ud].splice(t[tc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function qyt(){let t=this[Zi]||new Kb("closed",At.getSocketInfo(this)),e=this[$u][Xi];e[Rr]=null,e[YV]=null,this[$u]!==null&&this[$u].destroy(t),e[qV]=e[tc],oa(e[$b]===0),e.emit("disconnect",e[jb],[e],t),e[mA]()}function Yyt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=t,this[Xi][lE](t)}function Vyt(){At.destroy(this,new Kb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;VBe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[xyt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Bk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Bk]=!0,O()),++n[ia],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[PV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),OV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Ud][t[tc]++]=null,t[mA]()):(m(new Ld("HTTP/2: stream half-closed (remote)")),t[Ud][t[tc]++]=null,t[qV]=t[tc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ld(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ld(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?jBe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?jBe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?KBe(m,f,d.stream(),t,e,t[Rr],y,C):Kyt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?jyt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?KBe(m,f,d,t,e,t[Rr],y,C):oa(!1)}}function jBe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(oa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[wk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function jyt(t,e,r,n,s,i,o,a){oa(a!==0||i[$b]===0,"stream body cannot be pipelined");let c=Eyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[wk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Kyt(t,e,r,n,s,i,o,a){oa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new HV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[wk]=!0),n[mA]()}catch(c){t(c)}}async function KBe(t,e,r,n,s,i,o,a){oa(o!==0||n[$b]===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)=>{oa(c===null),i[Zi]?d(i[Zi]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[Zi])throw i[Zi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[wk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}$Be.exports=vyt});var qd=E((fIr,abe)=>{"use strict";var Xu=b("node:assert"),nbe=b("node:net"),Xb=b("node:http"),mg=Ze(),{ClientStats:$yt}=OY(),{channels:dE}=kd(),Xyt=Iye(),Zyt=lg(),{InvalidArgumentError:fr,InformationalError:eBt,ClientDestroyedError:tBt}=je(),rBt=dg(),{kUrl:EA,kServerName:Gd,kClient:nBt,kBusy:WV,kConnect:sBt,kResuming:Eg,kRunning:rQ,kPending:nQ,kSize:Zb,kQueue:rc,kConnected:iBt,kConnecting:hE,kNeedDrain:Od,kKeepAliveDefaultTimeout:ZBe,kHostHeader:oBt,kPendingIdx:nc,kRunningIdx:Zu,kError:aBt,kPipelining:Sk,kKeepAliveTimeoutValue:cBt,kMaxHeadersSize:ABt,kKeepAliveMaxTimeout:uBt,kKeepAliveTimeoutThreshold:lBt,kHeadersTimeout:dBt,kBodyTimeout:hBt,kStrictContentLength:fBt,kConnector:eQ,kMaxRequests:JV,kCounter:gBt,kClose:pBt,kDestroy:mBt,kDispatch:EBt,kLocalAddress:tQ,kMaxResponseSize:CBt,kOnError:IBt,kHTTPContext:rn,kMaxConcurrentStreams:yBt,kHTTP2InitialWindowSize:BBt,kHTTP2ConnectionWindowSize:bBt,kResume:Hd,kPingInterval:QBt}=Kt(),wBt=qBe(),SBt=XBe(),Pd=Symbol("kClosedResolve"),NBt=Xb&&Xb.maxHeaderSize&&Number.isInteger(Xb.maxHeaderSize)&&Xb.maxHeaderSize>0?()=>Xb.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},ebe=()=>{};function sbe(t){return t[Sk]??t[rn]?.defaultPipelining??1}var zV=class extends Zyt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:fe}={}){if(A!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[hBt]=a??3e5,this[dBt]=n??3e5,this[fBt]=m??!0,this[JV]=N,this[Pd]=null,this[CBt]=O>-1?O:-1,this[rn]=null,this[yBt]=D??100,this[BBt]=ee??262144,this[bBt]=ce??524288,this[QBt]=fe??6e4,this[rc]=[],this[Zu]=0,this[nc]=0,this[Hd]=De=>jV(this,De),this[IBt]=De=>ibe(this,De)}get pipelining(){return this[Sk]}set pipelining(e){this[Sk]=e,this[Hd](!0)}get stats(){return new $yt(this)}get[nQ](){return this[rc].length-this[nc]}get[rQ](){return this[nc]-this[Zu]}get[Zb](){return this[rc].length-this[Zu]}get[iBt](){return!!this[rn]&&!this[hE]&&!this[rn].destroyed}get[WV](){return!!(this[rn]?.busy(null)||this[Zb]>=(sbe(this)||1)||this[nQ]>0)}[sBt](e){obe(this),this.once("connect",e)}[EBt](e,r){let n=new Xyt(this[EA].origin,e,r);return this[rc].push(n),this[Eg]||(mg.bodyLength(n.body)==null&&mg.isIterable(n.body)?(this[Eg]=1,queueMicrotask(()=>jV(this))):this[Hd](!0)),this[Eg]&&this[Od]!==2&&this[WV]&&(this[Od]=2),this[Od]<2}[pBt](){return new Promise(e=>{this[Zb]?this[Pd]=e:e(null)})}[mBt](e){return new Promise(r=>{let n=this[rc].splice(this[nc]);for(let i=0;i<n.length;i++){let o=n[i];mg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Hd]()})}};function ibe(t,e){if(t[rQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Xu(t[nc]===t[Zu]);let r=t[rc].splice(t[Zu]);for(let n=0;n<r.length;n++){let s=r[n];mg.errorRequest(t,s,e)}Xu(t[Zb]===0)}}function obe(t){Xu(!t[hE]),Xu(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");Xu(i!==-1);let o=r.substring(1,i);Xu(nbe.isIPv6(o)),r=o}t[hE]=!0,dE.beforeConnect.hasSubscribers&&dE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ]}),t[eQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Gd],localAddress:t[tQ]},(i,o)=>{if(i){tbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Hd]();return}if(t.destroyed){mg.destroy(o.on("error",ebe),new tBt),t[Hd]();return}Xu(o);try{t[rn]=o.alpnProtocol==="h2"?SBt(t,o):wBt(t,o)}catch(a){o.destroy().on("error",ebe),tbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Hd]();return}t[hE]=!1,o[gBt]=0,o[JV]=t[JV],o[nBt]=t,o[aBt]=null,dE.connected.hasSubscribers&&dE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ],socket:o}),t.emit("connect",t[EA],[t]),t[Hd]()})}function tbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[hE]=!1,dE.connectError.hasSubscribers&&dE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Gd],localAddress:t[tQ]},connector:t[eQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Xu(t[rQ]===0);t[nQ]>0&&t[rc][t[nc]].servername===t[Gd];){let o=t[rc][t[nc]++];mg.errorRequest(t,o,e)}else ibe(t,e);t.emit("connectionError",t[EA],[t],e)}}function rbe(t){t[Od]=0,t.emit("drain",t[EA],[t])}function jV(t,e){t[Eg]!==2&&(t[Eg]=2,TBt(t,e),t[Eg]=0,t[Zu]>256&&(t[rc].splice(0,t[Zu]),t[nc]-=t[Zu],t[Zu]=0))}function TBt(t,e){for(;;){if(t.destroyed){Xu(t[nQ]===0);return}if(t[Pd]&&!t[Zb]){t[Pd](),t[Pd]=null;return}if(t[rn]&&t[rn].resume(),t[WV])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>rbe(t))):rbe(t);continue}if(t[nQ]===0||t[rQ]>=(sbe(t)||1))return;let r=t[rc][t[nc]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Gd]!==r.servername){if(t[rQ]>0)return;t[Gd]=r.servername,t[rn]?.destroy(new eBt("servername changed"),()=>{t[rn]=null,jV(t)})}if(t[hE])return;if(!t[rn]){obe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[nc]++:t[rc].splice(t[nc],1)}}abe.exports=zV});var KV=E((pIr,cbe)=>{"use strict";var Nk=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)}};cbe.exports=class{constructor(){this.head=this.tail=new Nk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Nk),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 Tk=E((mIr,mbe)=>{"use strict";var{PoolStats:xBt}=OY(),RBt=lg(),DBt=KV(),{kConnected:$V,kSize:Abe,kRunning:ube,kPending:lbe,kQueued:sQ,kBusy:kBt,kFree:vBt,kUrl:_Bt,kClose:FBt,kDestroy:MBt,kDispatch:LBt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),iQ=Symbol("queue"),XV=Symbol("closed resolve"),ZV=Symbol("onDrain"),dbe=Symbol("onConnect"),hbe=Symbol("onDisconnect"),fbe=Symbol("onConnectionError"),e7=Symbol("get dispatcher"),gbe=Symbol("add client"),pbe=Symbol("remove client"),t7=class extends RBt{[iQ]=new DBt;[sQ]=0;[Gn]=[];[Ls]=!1;[ZV](e,r,n){let s=this[iQ],i=!1;for(;!i;){let o=s.shi 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())}};Pwe.exports=pW});var EW=E((zIr,qwe)=>{"use strict";var{InvalidArgumentError:_wt}=je(),{runtimeFeatures:Fwt}=ju();function Mwt(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 Owe=Fwt.has("crypto")?b("node:crypto"):null,Lwt=Owe?.hash?t=>Owe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Gwe(t){return Array.isArray(t)&&(t.length&1)===0}function Uwt(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 Pwt(t){let e={};if(!t)return e;if(Gwe(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 Hwe=["record","playback","update"];function Owt(t){if(!Hwe.includes(t))throw new _wt(`Invalid snapshot mode: ${t}. Must be one of: ${Hwe.join(", ")}`)}qwe.exports={createHeaderFilters:Mwt,hashId:Lwt,isUndiciHeaders:Gwe,normalizeHeaders:Pwt,isUrlExcludedFactory:Uwt,validateSnapshotMode:Owt}});var Xwe=E((jIr,$we)=>{"use strict";var{writeFile:Hwt,readFile:Gwt,mkdir:qwt}=b("node:fs/promises"),{dirname:Ywt,resolve:Ywe}=b("node:path"),{setTimeout:Vwt,clearTimeout:Vwe}=b("node:timers"),{InvalidArgumentError:Wwe,UndiciError:Wwt}=je(),{hashId:Jwt,isUrlExcludedFactory:zwt,normalizeHeaders:Jwe,createHeaderFilters:zwe}=EW();function CQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Jwe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:jwe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jwe(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 Kwe(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 IQ(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 Jwt(r)}var CW=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=zwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=zwt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=CQ(e,this.#a,this.matchOptions),s=IQ(n),i=Jwe(r.headers),o={statusCode:r.statusCode,headers:Kwe(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 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.#i&&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=CQ(e,this.#a,this.matchOptions),n=IQ(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 Wwe("Snapshot path is required");try{let n=await Gwt(Ywe(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 Wwt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Wwe("Snapshot path is required");let n=Ywe(r);await qwt(Ywt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Hwt(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${ro} (
-- 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${ro}_getValuesQuery ON cacheInterceptorV${ro}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_deleteByUrlQuery ON cacheInterceptorV${ro}(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${ro}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${cu} SET
UPDATE cacheInterceptorV${ro} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${cu} (
INSERT INTO cacheInterceptorV${ro} (
url,
method,
body,
@@ -331,137 +182,125 @@ ${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${ro} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ro}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ro}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${cu}
FROM cacheInterceptorV${ro}
ORDER BY cachedAt DESC
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){HW(e);let r=this.#h(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){HW(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.#h(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){HW(e),_St(r);let n=0,s=[],i=this;return new vSt({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}`}#h(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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!FSt(s[l],u[l])){A=!1;break}}if(A)return c}}};function FSt(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 kg=E((myr,iSe)=>{"use strict";var{kConstruct:MSt}=Kt(),{kEnumerableProperty:TE}=Ze(),{iteratorMixin:LSt,isValidHeaderName:QQ,isValidHeaderValue:eSe}=$i(),{webidl:wt}=Xn(),qW=b("node:assert"),iv=b("node:util");function Z1e(t){return t===10||t===13||t===9||t===32}function tSe(t){let e=0,r=t.length;for(;r>e&&Z1e(t.charCodeAt(r-1));)--r;for(;r>e&&Z1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});YW(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)YW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function YW(t,e,r){if(r=tSe(r),QQ(e)){if(!eSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sSe(t)==="immutable")throw new TypeError("immutable");return av(t).append(e,r,!1)}function USt(t){let e=av(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 nSe(t,e){return t[0]<e[0]?-1:1}var ov=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.headersMap.size! Line truncated
${i}`;break;case"retry":dTe(i)&&(r[s]=i);break;case"id":hTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&dTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&hTe(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}}};fTe.exports={EventSourceStream:NJ}});var bTe=E((Gyr,BTe)=>{"use strict";var{pipeline:tDt}=b("node:stream"),{fetching:rDt}=xQ(),{makeRequest:nDt}=RE(),{webidl:Ps}=Xn(),{EventSourceStream:sDt}=gTe(),{parseMIMEType:iDt}=ta(),{createFastMessageEvent:oDt}=kv(),{isNetworkError:pTe}=SQ(),{kEnumerableProperty:Og}=Ze(),{environmentSettingsObject:mTe}=$i(),ETe=!1,CTe=3e3,MQ=0,ITe=1,LQ=2,aDt="anonymous",cDt="use-credentials",OE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=MQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),ETe||(ETe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ps.converters.USVString(e),r=Ps.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=mTe,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=aDt;r.withCredentials===!0&&(o=cDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mTe.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=nDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===LQ)return;this.#r=MQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!pTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(pTe(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?iDt(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=ITe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new sDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(oDt(c.type,c.options))}});tDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=rDt(e)}#A(){this.#r!==LQ&&(this.#r=MQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===MQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==LQ&&(this.#r=LQ,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=Ps.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=Ps.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=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},yTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:MQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:ITe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:LQ,writable:!1}};Object.defineProperties(OE,yTe);Object.defineProperties(OE.prototype,yTe);Object.defineProperties(OE.prototype,{close:Og,onerror:Og,onmessage:Og,onopen:Og,readyState:Og,url:Og,withCredentials:Og});Ps.converters.EventSourceInitDict=Ps.dictionaryConverter([{key:"withCredentials",converter:Ps.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ps.converters.any},{key:"node",converter:Ps.dictionaryConverter([{key:"reconnectionTime",converter:Ps.converters["unsigned long"],defaultValue:()=>CTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);BTe.exports={EventSource:OE,defaultReconnectionTime:CTe}});var xTe=E((qyr,ge)=>{"use strict";var ADt=qd(),wTe=Fb(),uDt=Cg(),lDt=wbe(),dDt=xbe(),hDt=Bg(),fDt=y7(),gDt=m7(),pDt=dQe(),mDt=EQe(),EDt=yQe(),STe=je(),Vv=Ze(),{InvalidArgumentError:Yv}=STe,HE=rwe(),CDt=dg(),IDt=iW(),{MockCallHistory:yD 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}ge.exports.fetch=function(e,r=void 0){return kDt(e,r).catch(n=>{throw QTe?TTe(n,QTe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=kg().Headers;ge.exports.Response=SQ().Response;ge.exports.Request=RE().Request;ge.exports.FormData=fk().FormData;var{setGlobalOrigin:vDt,getGlobalOrigin:_Dt}=oV();ge.exports.setGlobalOrigin=vDt;ge.exports.getGlobalOrigin=_Dt;var{CacheStorage:FDt}=cNe(),{kConstruct:MDt}=Kt();ge.exports.caches=new FDt(MDt);var{deleteCookie:LDt,getCookies:UDt,getSetCookies:PDt,setCookie:ODt,parseCookie:HDt}=yNe();ge.exports.deleteCookie=LDt;ge.exports.getCookies=UDt;ge.exports.getSetCookies=PDt;ge.exports.setCookie=ODt;ge.exports.parseCookie=HDt;var{parseMIMEType:GDt,serializeAMimeType:qDt}=ta();ge.exports.parseMIMEType=GDt;ge.exports.serializeAMimeType=qDt;var{CloseEvent:YDt,ErrorEvent:VDt,MessageEvent:WDt}=kv(),{WebSocket:JDt,ping:zDt}=tTe();ge.exports.WebSocket=JDt;ge.exports.CloseEvent=YDt;ge.exports.ErrorEvent=VDt;ge.exports.MessageEvent=WDt;ge.exports.ping=zDt;ge.exports.WebSocketStream=ATe().WebSocketStream;ge.exports.WebSocketError=BJ().WebSocketError;ge.exports.request=UQ(HE.request);ge.exports.stream=UQ(HE.stream);ge.exports.pipeline=UQ(HE.pipeline);ge.exports.connect=UQ(HE.connect);ge.exports.upgrade=UQ(HE.upgrade);ge.exports.MockClient=IDt;ge.exports.MockCallHistory=yDt;ge.exports.MockCallHistoryLog=BDt;ge.exports.MockPool=QDt;ge.exports.MockAgent=bDt;ge.exports.SnapshotAgent=wDt;ge.exports.mockErrors=SDt;var{EventSource:jDt}=bTe();ge.exports.EventSource=jDt;function KDt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=KDt});var PQ=E(rh=>{"use strict";rh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");rh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");rh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";rh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);rh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);rh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());rh.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 DTe=E((Wyr,RTe)=>{"use strict";var{asciiLowercase:Wv,solelyContainsHTTPTokenCodePoints:$Dt,soleyContainsHTTPQuotedStringTokenCodePoints:XDt}=PQ();RTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Wv(String(e)),this._map.get(e)}has(e){return e=Wv(String(e)),this._map.has(e)}set(e,r){if(e=Wv(String(e)),r=String(r),!$Dt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!XDt(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=Wv(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 _Te=E((Jyr,vTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ZDt,removeTrailingHTTPWhitespace:kTe,isHTTPWhitespaceChar:e2t,solelyContainsHTTPTokenCodePoints:TJ,soleyContainsHTTPQuotedStringTokenCodePoints:t2t,asciiLowercase:xJ,collectAnHTTPQuotedString:r2t}=PQ();vTe.exports=t=>{t=ZDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!TJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=kTe(n),n.length===0||!TJ(n))return null;let s={type:xJ(r),subtype:xJ(n),parameters:new Map};for(;e<t.length;){for(++e;e2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=xJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=r2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=kTe(o),o==="")continue}i.length>0&&TJ(i)&&t2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var MTe=E((zyr,FTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:n2t}=PQ();FTe.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+="=",(!n2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var OTe=E((Kyr,PTe)=>{"use strict";var s2t=DTe(),i2t=_Te(),o2t=MTe(),{asciiLowercase:LTe,solelyContainsHTTPTokenCodePoints:UTe}=PQ();PTe.exports=class{constructor(e){e=String(e);let r=i2t(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 s2t(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=LTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!UTe(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=LTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!UTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return o2t(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 rxe=E((dbr,B2t)=>{B2t.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`,k,k,f,s);let P=f.type==="*"?Cz:f.type==="?"?Bz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=L2t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+Z,ce=D.split(")").length,fe=D.split("(").length-ce,De=Z;for(let st=0;st<fe;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==Iz?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Iz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return P2t(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?Cz:r.dot?F2t:M2t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?H2t(a):a===Os?Os:a._src).reduce((a,c)=>(a[a.length-1]===Os&&c===Os||a.push(c),a),[]),o.forEach((a,c)=>{a!==Os||o[c-1]===Os||(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]=Os))}),o.filter(a=>a!==Os).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;yz.sep!=="/"&&(e=e.split(yz.sep).join("/")),e=e.split(xxe),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 co.defaults(e).Minimatch}};co.Minimatch=zE});var Lxe=E((Gbr,Mxe)=>{Mxe.exports=Fxe;var wz=b("fs"),{EventEmitter:q2t}=b("events"),{Minimatch:Qz}=kxe(),{resolve:Y2t}=b("path");function V2t(t,e){return new Promise((r,n)=>{wz.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 vxe(t,e){return new Promise((r,n)=>{(e?wz.stat:wz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?vxe(t,!1):null):r(null):r(o)})})}async function*_xe(t,e,r,n,s,i){let o=await V2t(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 vxe(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*_xe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*W2t(t,e,r,n){yield*_xe("",t,e,r,n,!0)}function J2t(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 Xv=class extends q2t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=J2t(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 Qz(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 Qz(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 Qz(i,{dot:!0}))}this.iterator=W2t(Y2t(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
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function jC(Q){let B=zC(Q.toString()),w=B.match(cM);if(w||(w=B.match(AM)),!w)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[,F]=w;return F.replace(/\s/g,"").split(c1).map(G=>G.replace(A1,"").trim())}function KC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),w[F]=Y.concat(Y.length>0?te:G);else if(j)w[F]=G;else{if(Y=jC(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(G)(...Ft)}}),JC(w,B)}class $C{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):XC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):XC(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function XC(Q,B){Q.length=1,Q.head=Q.tail=B}function yp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,Sn;function po(Rh,...iI){if(Rh)return Pe?Sn(Rh):Cr();if(iI.length<=1)return Cr(iI[0]);Cr(iI)}var wp=Mt._createTaskItem(Ue,Pe?po:Nt||po);if(be?Mt._tasks.unshift(wp):Mt._tasks.push(wp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Rh,iI)=>{Cr=Rh,Sn=iI})}function go(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],po=Y.indexOf(Sn);po===0?Y.shift():po>0&&Y.splice(po,1),Sn.callback(be,...Pe),be!=null&&yt("error",be,Sn.data)}G<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Qp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let xh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,Sn)=>{if(Cr)return Nt(Cr);Pe(Sn)})});Se(Ue),j(Ue,be)};var sI=!1,Mt={_tasks:new $C,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!sI){for(sI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}G+=1,Mt._tasks.length===0&&yt("empty"),G===Mt.concurrency&&yt("saturated");var Sn=ee(go(Ue));F(be,Sn)}sI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return Y},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:xh("saturated")},unsaturated:{writable:!1,value:xh("unsaturated")},empty:{writable:!1,value:xh("empty")},drain:{writable:!1,value:xh("drain")},error:{writable:!1,value:xh("error")}}),Mt}function ZC(Q,B){return yp(Q,1,B)}function Bp(Q,B,w){return yp(Q,B,w)}function fo(Q,B,w,F){F=O(F);var G=I(w);return Ws(Q,(Y,J,j)=>{G(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var ya=m(fo,4);function bp(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=$A(),ya(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[KA]}}function u1(...Q){return bp(...Q.reverse())}function we(Q,B,w,F){return y(fe(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(Y,J)=>{G(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[es]||(Jxe=global[es]||[],jxe(kr,Jxe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||zxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,n_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),zxe()}return Object.defineProperty(e,n_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yg(kr[es]),b("assert").equal(kr[es].length,0)}));var Jxe;global[es]||jxe(global,kr[es]);xz.exports=Nz(rkt(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(xz.exports=Nz(kr),kr.__patched=!0);function Nz(t){ekt(t),t.gracefulify=Nz,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(ce,fe,De,Ke){return e(ce,fe,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?jE([ee,[ce,fe,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return n(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return i(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return a(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,st,Yt){return A(De,ce(De,Ke,st,Yt))}:function(De,Ke,st,Yt){return A(De,Ke,ce(De,Ke,st,Yt))};return ee(D,z,Z);function ce(fe,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?jE([ee,[fe,De,Ke],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=tkt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return k(fe,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function jE(t){Yg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Tz()}var r_;function zxe(){for(var t=Date.now(),e=0;e<kr[es].length;++e)kr[es][e].length>2&&(kr[es][e][3]=t,kr[es][e][4]=t);Tz()}function Tz(){if(clearTimeout(r_),r_=void 0,kr[es].length!==0){var t=kr[es].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Yg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yg("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?(Yg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}r_===void 0&&(r_=setTimeout(Tz,0))}}});var s_=E((Jbr,Kxe)=>{"use strict";var MA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";MA.writable=t=>MA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";MA.readable=t=>MA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};T2e.exports={AggregateError:lj,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 dj=E((nwr,x2e)=>{"use strict";x2e.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 Es=E((swr,k2e)=>{"use strict";var{format:wMt,inspect:b_}=dj(),{AggregateError:SMt}=Nr(),NMt=globalThis.AggregateError||SMt,TMt=Symbol("kIsNodeError"),xMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],RMt=/^([A-Z][a-z0-9]*)+$/,DMt="__node_internal_",Q_={};function Jg(t,e){if(!t)throw new Q_.ERR_INTERNAL_ASSERTION(e)}function R2e(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 kMt(t,e,r){if(typeof e=="function")return Jg(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 Jg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:wMt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(kMt(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[TMt]=!0,Q_[t]=n}function D2e(t){let e=DMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function vMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new NMt([e,t],e.message);return r.code=e.code,r}return t||e}var hj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Q_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};rs("ERR_ASSERTION","%s",Error);rs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Jg(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)Jg(typeof c=="string","All expected entries have to be of type string"),xMt.includes(c)?s.push(c.toLowerCase()):RMt.test(c)?i.push(c):(Jg(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+=V$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=V$(" "+s+"="+n[s]+`
`);return kt.from(r)};MC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.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};MC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.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 kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,yh(e.mode&YGt,6),100),kt.write(r,yh(e.uid,6),108),kt.write(r,yh(e.gid,6),116),$Gt(e.size,r,124),kt.write(r,yh(e.mtime.getTime()/1e3|0,11),136),r[156]=XF+jGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(ePe,r,Zw),kt.copy(HGt,r,W$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,yh(e.devmajor||0,6),329),kt.write(r,yh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,yh(rPe(r),6),148),r)};MC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-XF,i=FC(e,0,100,r),o=Ih(e,100,8),a=Ih(e,108,8),c=Ih(e,116,8),A=Ih(e,124,12),u=Ih(e,136,12),l=zGt(s),d=e[157]===0?null:FC(e,157,100,r),h=FC(e,265,32),f=FC(e,297,32),p=Ih(e,329,8),I=Ih(e,337,8),m=rPe(e);if(m===256)return null;if(m!==Ih(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(VGt(e))e[345]&&(i=FC(e,345,155,r)+"/"+i);else if(!WGt(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function VGt(t){return kt.equals(ePe,t.subarray(Zw,Zw+6))}function WGt(t){return kt.equals(GGt,t.subarray(Zw,Zw+6))&&kt.equals(qGt,t.subarray(W$,W$+2))}function JGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function zGt(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 jGt(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 tPe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function rPe(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 yh(t,e){return t=t.toString(8),t.length>e?OGt.slice(0,e)+" ":PGt.slice(0,e-t.length)+t+" "}function KGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function $Gt(t,e,r){t.toString(8).length>11?KGt(t,e,r):kt.write(e,yh(t,11),r)}function XGt(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 Ih(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return XGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=JGt(tPe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function FC(t,e,r,n){return kt.toString(t.subarray(e,tPe(t,0,e,e+r)),n)}function V$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var aPe=E((RSr,oPe)=>{var{Writable:ZGt,Readable:eqt,getStreamError:nPe}=Y$(),tqt=x$(),sPe=RC(),LC=J$(),rqt=sPe.alloc(0),j$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new tqt,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 rqt;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 sPe.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)}},K$=class extends eqt{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(nPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=iPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},$$=class extends ZGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function sO(t){process.exitCode=rO.Failure,Qo(t)}function ql(){return process.env.RUNNER_DEBUG==="1"}function V(t){yl("debug",{},t)}function Qo(t,e={}){yl("error",R1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){yl("warning",R1(e),t instanceof Error?t.toString():t)}function MN(t,e={}){yl("notice",R1(e),t instanceof Error?t.toString():t)}function ne(t){process.stdout.write(t+Uae.EOL)}function Pae(t){CM("group",t)}function Oae(){CM("endgroup")}function cy(t,e){if(process.env.GITHUB_STATE||"")return $X("STATE",XX(t,e));yl("save-state",{name:t},Il(e))}function Nc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Qze,existsSync as wze}from"fs";import{EOL as Sze}from"os";var Bm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(wze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Qze(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${Sze}`)}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 cO=pe(Vae(),1),Wae=pe(TN(),1),Pze=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 Jae(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 zae(t){return new cO.HttpClient().getAgent(t)}function Oze(t){return new cO.HttpClient().getAgentDispatcher(t)}function jae(t){let e=Oze(t);return(n,s)=>Pze(this,void 0,void 0,function*(){return(0,Wae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Kae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function AO(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 Yl(){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 qN(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)=>qN.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 $ae(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 Xae(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 Zae=Function.bind,ece=Zae.bind(Zae);function tce(t,e,r){let n=ece(Xae,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]=ece($ae,null).apply(null,i)})}function Gze(){let t=Symbol("Singular"),e={registry:{}},r=qN.bind(null,e,t);return tce(r,e,t),r}function qze(){let t={registry:{}},e=qN.bind(null,t);return tce(e,t),e}var rce={Singular:Gze,Collection:qze};var Yze="0.0.0-development",Vze=`octokit-endpoint.js/${Yze} ${Yl()}`,Wze={method:"GET",baseUrl:"htt Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Tje=class extends Error{constructor(t,e,r){super(Nje(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},xje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Rje=["query","method","url"],Sce=/\/api\/v3\/?$/;function Dje(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(Rje.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)=>xje.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 Sce.test(i)&&(s.url=i.replace(Sce,"/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 Tje(s,a,o.data)}return o.data.data})}function EO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Dje(r,s,i),{defaults:EO.bind(null,r),endpoint:r.endpoint})}var xWt=EO(ly,{headers:{"user-agent":`octokit-graphql.js/${Sje} ${Yl()}`},method:"POST",url:"/graphql"});function Nce(t){return EO(t,{method:"POST",url:"/graphql"})}var CO="(?:[a-zA-Z0-9_-]+)",Tce="\\.",xce=new RegExp(`^${CO}${Tce}${CO}${Tce}${CO}$`),kje=xce.test.bind(xce);async function vje(t){let e=kje(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 _je(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Fje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=_je(t),e(s)}var Rce=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(vje.bind(null,e),{hook:Fje.bind(null,e)})};var IO="7.0.6";var Dce=()=>{},Mje=console.warn.bind(console),Lje=console.error.bind(console);function Uje(t={}){return typeof t.debug!="function"&&(t.debug=Dce),typeof t.info!="function"&&(t.info=Dce),typeof t.warn!="function"&&(t.warn=Mje),typeof t.error!="function"&&(t.error=Lje),t}var kce=`octokit-core.js/${IO} ${Yl()}`,WN=class{static VERSION=IO;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 rce.Collection,n={baseUrl:ly.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} ${kce}`:kce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=ly.defaults(n),this.graphql=Nce(this.request).defaults(n),this.log=Uje(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=Rce(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 yO="17.0.0";var Pje={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}"],createOrgVaria Line truncated
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
`)}
`:`${Pce(t.status,e)}
${rBr(e)}
${NO[t.status]}
`}function Wce(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Pce(t,e){if(!Wce(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"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 zje(t){return t?Wje[t]:void 0}function jje(t){if(t)return t==="not-registered"?`Project state (build-logic and configuration cache) was not cached - this repository is not registered for advanced caching. [Register this repository](${Yce()}), or provide a \`develocity-access-key\` and \`develocity-server-url\`.`:Jje[t]}function Jce(t){if(t==="not-registered")return`Advanced caching (build-logic and configuration cache) was not enabled: this repository is not registered. Register it at ${Yce()}, or provide a develocity-access-key and develocity-server-url.`}function Kje(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Zs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Vje}) 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 $je(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=zce(e)?`Entries: ${r} restored (${zN(e,u=>u.restoredSize)}Mb), ${n} saved (${zN(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?zje(t.cleanup):void 0,o=jje(t.projectCache),a=Xje(t.entries),c=`<pre>
${Zje(t.entries)}</pre>`,A=[NO[t.status],i,o,a,c].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>
${A}
</details>`}function zce(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Xje(t){return zce(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>${Oce(t,e=>e.restoredSize)}</td>
<td>${zN(t,e=>e.restoredSize)}</td>
<td>${Hce(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>${Oce(t,e=>e.savedSize)}</td>
<td>${zN(t,e=>e.savedSize)}</td>
<td>${Hce(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function nBr(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
</table>`:""}function Zje(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: ${Gce(e.restoredSize)}
Time: ${qce(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Nje(e.savedSize)}
Time: ${Sje(e.savedTime)}
${iBr(e,t.cacheReadOnly)}
Size: ${Gce(e.savedSize)}
Time: ${qce(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 Oce(t,e){return t.filter(r=>e(r)).length}function zN(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function Hce(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Gce(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function qce(t){return t===void 0||t===0?"":`${t} ms`}import*as qB from"path";import*as Tm from"fs";function TO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as eT from"path";import*as wm from"path";import of from"assert";var Vl=process.platform==="win32";function Eu(t){if(t=mu(t),Vl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=wm.dirname(t);return Vl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function jN(t,e){if(of(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),of(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),dy(e))return e;if(Vl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return of(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(va(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return of(dy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Vl&&t.endsWith("\\")||(t+=wm.sep),t+e}function dy(t){return of(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=va(t),Vl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function hy(t){return of(t,"isRooted parameter 'itemPath' must not be empty"),t=va(t),Vl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function va(t){return t=t||"",Vl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=va(t),!t.endsWith(wm.sep)||t===wm.sep||Vl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var _a;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(_a||(_a={}));var jce=process.platform==="win32";function RO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=jce?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=jce?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Eu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Eu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Kce(t,e){let r=_a.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function $ce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as EAe from"os";import*as Nm from"path";var CAe=pe(mAe(),1);import uf from"assert";import*as cf from"path";import gy from"assert";var bKe=process.platform==="win32",Af=class{constructor(e){if(this.segments=[],typeof e=="string")if(gy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!hy(e))this.segments=e.split(cf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=cf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{gy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];gy(n,"Parameter 'itemPath' must not contain any empty segments"),n=va(e[r]),r===0&&hy(n)?(n=mu(n),gy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(gy(!n.includes(cf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(cf.sep)||bKe&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=cf.sep,e+=this.segments[n];return e}};var{Minimatch:QKe}=CAe.default,Cu=process.platform==="win32",py=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],uf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);uf(A&&dy(A),"Parameter 'segments' first element must be a root path"),i=new Af(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(`
`)}
</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>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new py(i));return n.searchPaths.push(...RO(n.patterns)),n})}static stat(e,r,n){return FO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Tm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 Tm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Tm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var TKe=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 IAe(t,e){return TKe(this,void 0,void 0,function*(){return yield ZN.create(t,e)})}var hle=pe(lle(),1);import*as gT from"crypto";import*as km from"fs";import*as lf from"path";import*as fle from"util";var by;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(by||(by={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Li;(function(t){t.GNU="gnu",t.BSD="bsd"})(Li||(Li={}));var hT=2,fT=5e3,r3=5e3,n3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,dle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qy="cache.tar",s3="manifest.txt",Czt=10*Math.pow(1024,3);var Dm=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())})},MZe=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)}},LZe="1.0";function wy(){return Dm(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=lf.join(n,"actions","temp")}let r=lf.join(e,gT.randomUUID());return yield kN(r),r})}function xc(t){return km.statSync(t).size}function i3(t){return Dm(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 IAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=MZe(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=lf.relative(a,s).replace(new RegExp(`\\${lf.sep}`,"g"),"/");V(`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 Sy(t){return Dm(this,void 0,void 0,function*(){return fle.promisify(km.unlink)(t)})}function gle(t){return Dm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield FN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){V(s.message)}return n=n.trim(),V(n),n})}function Ny(){return Dm(this,void 0,void 0,function*(){let t=yield gle("zstd",["--quiet"]),e=hle.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function jl(t){return t===Ts.Gzip?by.Gzip:by.Zstd}function ple(){return Dm(this,void 0,void 0,function*(){return km.existsSync(n3)?n3:(yield gle("tar")).toLowerCase().includes("gnu tar")?fu("tar"):""})}function o3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(LZe),gT.createHash("sha256").update(n.join("|")).digest("hex")}function mle(){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 A0 from"fs";import{URL as Bat}from"url";var Rc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as UZe}from"node:os";import PZe from"node:util";import OZe from"node:process";function Ele(t,...e){OZe.stderr.write(`${PZe.format(t,...e)}${UZe}`)}import Ty from"node:process";function mT(t){return Ty.env[t]}var Cle=typeof Ty.versions.deno=="string"&&Ty.versions.deno.length>0,Ile=typeof Ty.versions.bun=="string"&&Ty.versions.bun.length>0,ET=!0;var yle=mT("DEBUG"),ble,a3=[],c3=[],CT=[];yle&&A3(yle);var Qle=Object.assign(t=>wle(t),{enable:A3,enabled:u3,disable:HZe,log:Ele});function A3(t){ble=t,a3=[],c3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?c3.push(r.substring(1)):a3.push(r);for(let r of CT)r.enabled=u3(r.namespace)}function u3(t){if(t.endsWith("*"))return!0;for(let e of c3)if(Ble(t,e))return!1;for(let e of a3)if(Ble(t,e))return!0;return!1}function Ble(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 HZe(){let t=ble||"";return A3(""),t}function wle(t){let e=Object.assign(r,{enabled:u3(t),destroy:GZe,log:Qle.log,namespace:t,extend:qZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return CT.push(e),e}function GZe(){let t=CT.indexOf(this);return t>=0?(CT.splice(t,1),!0):!1}function qZe(t){let e=wle(`${this.namespace}:${t}`);return e.log=this.log,e}var _m=Qle;var l3=["verbose","info","warning","error"],Sle={verbose:400,info:300,warning:200,error:100};function Nle(t,e){e.log=(...r)=>{t.log(...r)}}function Tle(t){return l3.includes(t)}function IT(t){let e=new Set,r=mT(t.logLevelEnvVarName),n,s=_m(t.namespace);s.log=(...u)=>{_m.log(...u)};function i(u){if(u&&!Tle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${l3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);_m.enable(l.join(","))}r&&(Tle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${l3.join(", ")}.`));function o(u){return!!(n&&Sle[u.level]<=Sle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Nle(u,d),o(d)){let h=_m.disable();_m.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Nle(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 xle=IT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),YZe=xle.logger;function xy(t){return xle.createClientLogger(t)}function yT(t){return t.toLowerCase()}function VZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*WZe(t){for(let e of t.values())yield[e.name,e.value]}var d3=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(yT(e),{name:e,value:VZe(r)})}get(e){return this._headersMap.get(yT(e))?.value}has(e){return this._ Line truncated
${KZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Fm(t){return t instanceof xs?!0:hf(t)&&t.name==="RestError"}function ei(t,e){return Buffer.from(t,e)}import p3 from"node:http";import m3 from"node:https";import kle from"node:zlib";import{Transform as $Ze}from"node:stream";var ti=xy("ts-http-runtime");var XZe={};function Ry(t){return t&&typeof t.pipe=="function"}function vle(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 _le(t){return t&&typeof t.byteLength=="number"}var QT=class extends $Ze{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}},E3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Rc("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 Fa;ti.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=ret(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new QT(f);p.on("error",I=>{ti.error("Error in upload progress",I)}),Ry(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=ZZe(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?eet(A,u):A;let h=e.onDownloadProgress;if(h){let f=new QT(h);f.on("error",p=>{ti.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await tet(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ry(a)&&(A=vle(a));let u=Promise.resolve();Ry(c)&&(u=vle(c)),Promise.all([A,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((c,A)=>{let u=i?p3.request(a,c):m3.request(a,c);u.once("error",l=>{A(new xs(l.message,{code:l.code??xs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Rc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Ry(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):_le(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ti.error("Unrecognized body type",n),A(new xs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?p3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new p3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return m3.globalAgent;let s=e.tlsSettings??XZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ti.info("No cached TLS Agent exist, creating a new Agent"),i=new m3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ZZe(t){let e=Ui();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 eet(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=kle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=kle.createInflate();return t.pipe(n),n}return t}function tet(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 xs(`Error reading response as text: ${s.message}`,{code:xs.PARSE_ERROR}))})})}function ret(t){return t?Buffer.isBuffer(t)?t.length:Ry(t)?null:_le(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Fle(){return new E3}function wT(){return Fle()}var C3="logPolicy";function ST(t={}){let e=t.logger??ti.info,r=new Fa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:C3,asy Line truncated
`;return e}function wtt(t){return t instanceof Uint8Array?t.byteLength:vy(t)?t.size===-1?void 0:t.size:void 0}function Stt(t){let e=0;for(let r of t){let n=wtt(r);if(n===void 0)return;e+=n}return e}async function Ntt(t,e,r){let n=[ei(`--${r}`,"utf-8"),...e.flatMap(i=>[ei(`\r
`,"utf-8"),ei(Qtt(i.headers),"utf-8"),ei(`\r
`,"utf-8"),i.body,ei(`\r
--${r}`,"utf-8")]),ei(`--\r
\r
`,"utf-8")],s=Stt(n);s&&t.headers.set("Content-Length",s),t.body=await Nde(n)}var _y="multipartPolicy",Ttt=70,xtt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Rtt(t){if(t.length>Ttt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!xtt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function zT(){return{name:_y,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?Rtt(r):r=btt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ntt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function jT(){return bT()}var Tde=IT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),yXt=Tde.logger;function Do(t){return Tde.createClientLogger(t)}var kc=Do("core-rest-pipeline");function L3(t={}){return ST({logger:kc.info,...t})}var U3=WT;function P3(t={}){return JT(t)}import O3 from"node:os";import Xl from"node:process";function xde(){return"User-Agent"}async function Rde(t){if(Xl&&Xl.versions){let e=`${O3.type()} ${O3.release()}; ${O3.arch()}`;Xl.versions.bun?t.set("Bun",`${Xl.versions.bun} (${e})`):Xl.versions.deno?t.set("Deno",`${Xl.versions.deno} (${e})`):Xl.versions.node&&t.set("Node",`${Xl.versions.node} (${e})`)}}var KT="1.24.0";function Utt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Dde(){return xde()}async function $T(t){let e=new Map;e.set("core-rest-pipeline",KT),await Rde(e);let r=Utt(e);return t?`${t} ${r}`:r}var kde=Dde(),vde="userAgentPolicy";function H3(t={}){let e=$T(t.userAgentPrefix);return{name:vde,async sendRequest(r,n){return r.headers.has(kde)||r.headers.set(kde,await e),n(r)}}}var _de=Symbol("rawContent");function G3(t){return typeof t[_de]=="function"}function Fde(t){return G3(t)?t[_de]():t}var XT=_y;function q3(){let t=zT();return{name:XT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)G3(n.body)&&(n.body=Fde(n.body));return t.sendRequest(e,r)}}}var Y3=YT;function V3(){return VT()}function W3(t={}){return xT(t)}function J3(){return RT()}var Fy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function z3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Fy(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 Jtt="The delay was aborted.";function Hm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return z3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Jtt})}function Zl(t){if(hf(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 Mde(t){return hf(t)}function Gm(){return df()}var Wt=ET;function ed(t){return v3(t)}function K3(t,e){return qT(t,e)}var Lde="setClientRequestIdPolicy";function $3(t="x-ms-client-request-id"){return{name:Lde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function X3(t){return DT(t)}function Z3(t){return kT(t)}var qm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Ude(t={}){let e=new e8(t.parentContext);return t.span&&(e=e.setValue(qm.span,t.span)),t.namespace&&(e=e.setValue(qm.namespace,t.namespace)),e}var e8=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 Ode=pe(Pde(),1),ex=Ode.state;function ztt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function jtt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:ztt(),tracingContext:Ude({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function My(){return ex.instrumenterImplementation||(ex.instrumenterImplementation=jtt()),ex.instrumenterImplementation}function Ly(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=My().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span 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--),!mnt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Xr("InvalidTag",l,Rs(t,i))}let A=dnt(t,i);if(A===!1)return Xr("InvalidAttr","Attributes for '"+c+"' have open quote.",Rs(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=yhe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,Rs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Rs(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+c+"' has not been opened.",Rs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Rs(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Rs(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Rs(t,i));else{let l=yhe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rs(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rs(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=Ihe(t,i);continue}else if(t[i+1]==="?"){if(i=Che(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=gnt(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!Ehe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(Ehe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rs(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rs(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function Ehe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Che(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 Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Ihe(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 unt='"',lnt="'";function dnt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===unt||t[e]===lnt)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 hnt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function yhe(t,e){let r=Ax(t,hnt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Jy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Jy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Jy(r[s]));let i=r[s][2];if(!pnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Jy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Jy(r[s]))}return!0}function fnt(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 gnt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,fnt(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 Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function pnt(t){return E8(t)}function mnt(t){return E8(t)}function Rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Jy(t){return t.startIndex+t[1].length}var Bhe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},bhe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Qhe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ii("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Ky(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=jm(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=S8(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(),n="",a=u}else if(A===63){let u=N8(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 ii(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=jm(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){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=jm(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=N8(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=S8(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 I=r;I&&s.unpairedTagsSet.has(I.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,y={},N;N=qnt(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Gnt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ii(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=S8(s.transformTagName,l,h,s));let O=new ii(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ii(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ii(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function jnt(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 Knt(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 $nt(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 Xnt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Znt(t,e,r=">"){Line truncated
`;function ast(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(v8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Khe(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function k8(t,e){let r="";e.format&&(r=ost);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Gi(a)):a instanceof Gi&&n.push(a)}let s=ast(t,e),i=new Fc;return $he(t,e,r,i,n,s)}function $he(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=t.toString();return c=D8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=v8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Khe(u,!1,e,n,i),h=cst(A[":@"],e);n.push(d,h);let f=ust(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=D8(y,e)),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],N=Ix(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Cx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=jhe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=jhe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Xhe(A[u],e):C=$he(A[u],e,p,n,s,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,n.pop()}return o}function cst(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]=nd(t[s]),n=!0}return n?r:null}function Xhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=v8(s);if(i===e.textNodeName)r+=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=Ast(s[":@"],e),a=Xhe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Ast(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)}="${nd(s)}"`}return r}function v8(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 jhe(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:Khe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=D8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${nd(A)}"`}return i}function ust(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 D8(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 _8(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 lst={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 ai(t){if(this.options=Object.assign({},lst,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 Gi(r)):r instanceof Gi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function dst(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 F8(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ai.prototype.build=function(t){if(this.options.preserveOrder)return k8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Fc,r=dst(t,this.options);return this.j2x(t,0,e,r).val}};ai.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:F8(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=F8(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+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 p=t[c][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 I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+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&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=F8(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ai.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+nd(e)+'"'};function hst(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)}ai.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]=nd(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]=nd(t[n]),r=!0)}return r?e:null};ai.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.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>Dx(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=Tx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=xx(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 Mr=class extends bf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tB(e,r,this)}computeHMACSHA256(e){return wst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Qf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Do("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var id={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Sst=new Qf("The operation was aborted."),rB=class extends Mc{retryOptions;constructor(e,r,n=id){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:id.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):id.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:id.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:id.maxRetryDelayInMs):id.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:id.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:id.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=Nx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=sd(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.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(pn.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 pn.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 pn.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 pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.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')?(pn.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 ko.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),Rx(s,n,Sst)}};var nB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rB(e,r,this.retryOptions)}};var Nst="storageBrowserPolicy";function nfe(){return{name:Nst,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=sd(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Tst="StorageCorrectContentLengthPolicy";function sfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Tst,async sendRequest(e,r){return t(e),r(e)}}}var xst="storageRetryPolicy",$m={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Rst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Dst=new Qf("The operation was aborted.");function ife(t={}){let e=t.retryPolicyType??$m.retryPolicyType,r=t.maxTries??$m.maxTries,n=t.retryDelayInMs??$m.retryDelayInMs,s=t.maxRetryDelayInMs??$m.maxRetryDelayInMs,i=t.secondaryHost??$m.secondaryHost,o=t.tryTimeoutInMs??$m.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Rst)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=kst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Dx(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=Tx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=xx(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:vst,async sendRequest(i,o){return e(i),o(i)}}}var _st="storageRequestFailureDetailsParserPolicy";function ofe(){return{name:_st,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 Fst}from"node:crypto";var kx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Fst("sha256",this.key).update(e,"utf8").digest("base64")}};var vx="12.31.0",_x="2026-02-06";var Fx="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ma="",H8="*",Mst=1*1024*1024;var Lst=4*Mst;var afe="AES256",cfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Afe=["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"],ufe=["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"],lfe="BlobUsesCustomerSpecifiedEncryption",dfe="BlobDoesNotUseCustomerSpecifiedEncryption",hfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(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 sB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new sB([],e);return r._credential=t,r}function Ust(t){let e=[Pst,ffe,Ost,Hst,Gst,qst,Vst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Yst(s));return{wrappedPolicies:p8(r),afterRetry:n}}}}function G8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?m8(e):P8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${vx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Oy({...r,loggingOptions:{additionalAllowedHeaderNames:Afe,additionalAllowedQueryParameters:ufe,logger:Bx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:yx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:L8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Y3}),s.addPolicy(sfe()),s.addPolicy(ife(r.retryOptions),{phase:"Retry"}),s.addPolicy(ofe()),s.addPolicy(nfe());let a=Ust(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=q8(t);Oi(c)?s.addPolicy(Ym({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ha(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 Pot(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(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 Ha(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 Oot(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(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 Ha(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 Hot(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oa(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 Ha(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 Got(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(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 Ha(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 qot(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(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 Ha(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 Yot(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",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=Zc.parse(t.permissions.toString()).toString():s=eA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Oa(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 Ha(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 kf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vf(t){let e=t.version?t.version:_x;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 pB=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=Gm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(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!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};a0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mf=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"}};Mf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var hat=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())})},pH=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);ne(`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 Nge(t,e,r){return hat(this,void 0,void 0,function*(){var n;let s=new Ga(t),i=s.getBlockBlobClient(),o=new pH((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(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new xR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as xge from"buffer";import*as tA from"fs";import*as Rge from"stream";import*as Dge from"util";var RR=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 DR(t){return t?t>=200&&t<300:!1}function fat(t){return t?t>=500:!0}function gat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function pat(t){return RR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Tge(t,e,r){return RR(this,arguments,void 0,function*(n,s,i,o=hT,a=fT,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),!fat(d)))return l;if(d&&(h=gat(d),A=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){V(`${n} - Error is not retryable`);break}yield pat(a),u++}throw Error(`${n} failed: ${A}`)})}function wB(t,e){return RR(this,arguments,void 0,function*(r,n,s=hT,i=fT){return yield Tge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Qc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function c0(t,e){return RR(this,arguments,void 0,function*(r,n,s=hT,i=fT){return yield Tge(r,n,o=>o.message.statusCode,s,i)})}var Lo=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 mat(t,e){return Lo(this,void 0,void 0,function*(){yield Dge.promisify(Rge.pipeline)(t.message,e)})}var kR=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,V(`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);ne(`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||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function IH(t,e,r){return Ai(this,void 0,void 0,function*(){let n=new Bat(t),s=Fge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield vge(t,e,s):s.concurrentBlobDownloads?yield kge(t,e,s):yield vR(t,e):yield vR(t,e)})}function Gge(t,e,r){return Ai(this,void 0,void 0,function*(){let n=CH(),s=vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield wB("reserveCache",()=>Ai(this,void 0,void 0,function*(){return n.postJson(NB("caches"),i)}))})}function Oge(t,e){return`bytes ${t}-${e}/*`}function Sat(t,e,r,n,s){return Ai(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Oge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Oge(n,s)},o=yield c0(`uploadChunk (start: ${n}, end: ${s})`,()=>Ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!DR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Nat(t,e,r,n){return Ai(this,void 0,void 0,function*(){let s=xc(r),i=NB(`caches/${e.toString()}`),o=A0.openSync(r,"r"),a=mH(n),c=o3("uploadConcurrency",a.uploadConcurrency),A=o3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ai(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 Sat(t,i,()=>A0.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{A0.closeSync(o)}})}function Tat(t,e,r){return Ai(this,void 0,void 0,function*(){let n={size:r};return yield wB("commitCache",()=>Ai(this,void 0,void 0,function*(){return t.postJson(NB(`caches/${e.toString()}`),n)}))})}function yH(t,e,r,n){return Ai(this,void 0,void 0,function*(){if(mH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Nge(r,e,n)}else{let i=CH();V("Upload cache"),yield Nat(i,t,e,n),V("Commiting cache");let o=xc(e);ne(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Tat(i,t,o);if(!DR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ne("Cache saved successfully")}})}var Fpe=pe(d9(),1),tn=pe(ct(),1),Vi=pe(ct(),1),Hf=pe(ct(),1),Gf=pe(ct(),1),qf=pe(ct(),1);var p9=pe(ct(),1),m9=pe(ct(),1),kpe=pe(ct(),1),vpe=pe(ct(),1),_pe=pe(ct(),1);var h9=pe(ct(),1),f9=pe(ct(),1),xpe=pe(ct(),1),Rpe=pe(ct(),1),Dpe=pe(ct(),1),g9=class extends Dpe.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,Rpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xpe.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?f9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,h9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,h9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?f9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ID=new g9;var E9=class extends _pe.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:()=>ID}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,vpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,kpe.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(ID.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?m9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,p9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ID.internalBinaryWrite(e.scope[i],r.tag(2,p9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?m9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield v9(r,"create");yield _9(n,t)})}var S0=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())})},Va=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},w0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},bD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ppe(t){if(!t||t.length===0)throw new Va("Path Validation Error: At least one directory or file path is required")}function L9(t){if(t.length>512)throw new Va(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Va(`Key Validation Error: ${t} cannot contain commas.`)}function Ope(){return SB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Hpe(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=SB();return V(`Cache service version: ${A}`),Ppe(s),A==="v2"?yield VAt(s,i,o,a,c):yield YAt(s,i,o,a,c)})}function YAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)L9(d);let u=yield Ny(),l="";try{let d=yield Hge(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ne("Lookup only - skipping download"),d.cacheKey;l=qB.join(yield wy(),jl(u)),V(`Archive Path: ${l}`),yield IH(d.archiveLocation,l,a),ql()&&(yield GB(l,u));let h=xc(l);return ne(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield F9(l,u),ne("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Va.name)throw d;h instanceof Qc&&typeof h.statusCode=="number"&&h.statusCode>=500?Qo(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{yield Sy(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function VAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)L9(l);let u="";try{let l=k9(),d=yield Ny(),h={key:i,restoreKeys:o,version:vm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?ne(`Cache hit for restore-key: ${f.matchedKey}`):ne(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ne("Lookup only - skipping download"),f.matchedKey;u=qB.join(yield wy(),jl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield IH(f.signedDownloadUrl,u,a);let I=xc(u);return ne(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),ql()&&(yield GB(u,d)),yield F9(u,d),ne("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Va.name)throw l;d instanceof Qc&&typeof d.statusCode=="number"&&d.statusCode>=500?Qo(`Failed to restore: ${l.message}`):Xe(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Sy(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function Gpe(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){let a=SB();return V(`Cache service version: ${a}`),Ppe(n),L9(s),a==="v2"?yield JAt(n,s,i,o):yield WAt(n,s,i,o)})}function WAt(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Ny(),h=-1,f=yield i3(n);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.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 p=yield wy(),I=qB.join(p,jl(d));V(`Archive Path: ${I}`);try{yield M9(p,f,d),ql()&&(yield GB(I,d));let m=10*1024*1024*1024,C=xc(I);if(V(`File Size: ${C}`),C>m&&!EH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield Gge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new w0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield yH(h,I,"",i)}catch(m){let C=m;if(C.name===Va.name)throw m;C.name Line truncated
<h3>Job Summary for Gradle</h3>
<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=JB(),i=Fi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(eut(o));else throw o}}function eut(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 tut(t){return`${nut()}
${iut(t)}`}function rut(){let t=Wpe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function nut(){let t=Vpe();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>${wD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${NUr(e)}</li>`).join("")}
${t.map(e=>`<li>${sut(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 sut(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function iut(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -469,108 +308,102 @@ 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("")}
</tr>${t.map(e=>aut(e)).join("")}
</table>
`}function RUr(t){return`
`}function out(t){return t.some(e=>e.buildFailed)}function aut(t){return`
<tr>
<td>${lat(t.rootProjectName,30)}</td>
<td>${lat(t.requestedTasks,60)}</td>
<td>${Kpe(t.rootProjectName,30)}</td>
<td>${Kpe(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 align='center'>${cut(t)}</td>
<td>${Aut(t)}</td>
</tr>`}function cut(t){return t.buildFailed?":x:":":white_check_mark:"}function Aut(t){return t.buildScanFailed?O9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?O9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):O9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function O9({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 Kpe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function uut(){let t=pu;if(t.payload.pull_request==null){ne("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;ne(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Xpe(t),n=Fi(JB()),{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 Xe(`Failed to fetch comments: ${u}`)}let c=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>ne(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Xe(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function Xpe(t){return`<!-- gradle-job-summary: ${T0.constructJobCorrelator(t.workflow,t.job,P9())} -->`}var Zpe=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 Ho from"fs";import*as _u from"path";function eme(){return rme().map(e=>{let r=Ho.readFileSync(e,"utf8"),n=JSON.parse(r);return hut(e,n),n})}function tme(){rme().forEach(gut)}function rme(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Ho.existsSync(t)?Ho.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!fut(e)):[]}function hut(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Ho.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Ho.existsSync(n)){let s=Ho.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function fut(t){let e=`${t}.processed`;return Ho.existsSync(e)}function gut(t){let e=`${t}.processed`;Ho.writeFileSync(e,"")}import*as Lme from"fs";import*as Ume from"path";import{pathToFileURL as Dlt}from"url";import*as D0 from"fs";function H9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as kD from"path";import*as x0 from"path";import Vf from"assert";var gd=process.platform==="win32";function Mu(t){if(t=Fu(t),gd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=x0.dirname(t);return gd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function xD(t,e){if(Vf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Vf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),jB(e))return e;if(gd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Vf(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(Wa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Vf(jB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||gd&&t.endsWith("\\")||(t+=x0.sep),t+e}function jB(t){return Vf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Wa(t),gd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function KB(t){return Vf(t,"isRooted parameter 'itemPath' must not be empty"),t=Wa(t),gd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Wa(t){return t=t||"",gd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=Wa(t),!t.endsWith(x0.sep)||t===x0.sep||gd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ja;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ja||(Ja={}));var nme=process.platform==="win32";function q9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=nme?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=nme?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Mu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Mu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function sme(t,e){let r=Ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function ime(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as wme from"os";import*as 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 tb(i));return n.searchPaths.push(...q9(n.patterns)),n})}static stat(e,r,n){return K9(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield D0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 D0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield D0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as $9 from"crypto";import*as vD from"fs";import*as Sme from"stream";import*as Nme from"util";import*as Tme from"path";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())})},Nlt=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 xme(t,e){return Slt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ne:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=$9.createHash("sha256"),f=0;try{for(var p=!0,I=Nlt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Tme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(vD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=$9.createHash("sha256");yield Nme.promisify(Sme.pipeline)(vD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}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 Rme=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 X9(t,e){return Rme(this,void 0,void 0,function*(){return yield DD.create(t,e)})}function Dme(t){return Rme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield X9(e,{followSymbolicLinks:i});return xme(o,r,s)})}import*as Z9 from"path";var Tlt="Gradle User Home",vme="BASIC_CACHE_PRIMARY_KEY",_me="BASIC_CACHE_RESTORED_KEY",xlt="setup-java",Fme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],FD=class{async restore(e,r){let n=Mme(e),s=await Rlt();cy(vme,s);try{let i=await Hpe(n,s);i?(cy(_me,i),ne(`Basic caching restored from cache key: ${i}`)):ne("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Xe(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=Nc(vme),i=Nc(_me);if(n.readOnly)return{status:"read-only",entries:[_D({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 ne(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[_D({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Mme(e);try{return await Gpe(o,s),ne(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[_D({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 Xe(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[_D({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function _D(t){return{entryName:Tlt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcomLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Fme}], make sure you have checked out the target repository`);return`${xlt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var klt="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.",vlt="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.",tG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function Pme(t){return t.isCacheDisabled()?(eG("Cache is disabled: will not restore state from previous builds."),new tG):t.getCacheProvider()==="basic"?(eG(vlt),new FD):(eG(klt),_lt())}function Ome(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function _lt(){let t=Flt();return await import(Dlt(t).href)}function Flt(){let t=import.meta.dirname,e=Ume.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Lme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function eG(t){console.info(t)}import*as Vme from"util";var Glt=pe(Yme(),1);import*as rG from"fs";var Hgr=Vme.promisify(rG.readdir);var Ylt={_useHtmlParser2:!1};function k0(t,e){if(!t)return e??Ylt;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 SG={};Ba(SG,{contains:()=>KD,extract:()=>Udt,html:()=>_dt,merge:()=>f0e,parseHTML:()=>Mdt,root:()=>Ldt,text:()=>tg,xml:()=>Fdt});var Bd={};Ba(Bd,{DocumentPosition:()=>Vo,append:()=>pdt,appendChild:()=>gdt,compareDocumentPosition:()=>u0e,existsOne:()=>c0e,filter:()=>L0,find:()=>WD,findAll:()=>Idt,findOne:()=>JD,findOneChild:()=>Cdt,getAttributeValue:()=>ldt,getChildren:()=>M0,getElementById:()=>Qdt,getElements:()=>bdt,getElementsByClassName:()=>wdt,getElementsByTagName:()=>eg,getElementsByTagType:()=>Sdt,getFeed:()=>wG,getInnerHTML:()=>udt,getName:()=>hdt,getOuterHTML:()=>o0e,getParent:()=>a0e,getSiblings:()=>bG,getText:()=>qD,hasAttrib:()=>ddt,hasChildren:()=>tr,innerText:()=>ab,isCDATA:()=>v0,isComment:()=>Zf,isDocument:()=>Yo,isTag:()=>Qe,isText:()=>hi,nextElementSibling:()=>YD,prepend:()=>Edt,prependChild:()=>mdt,prevElementSibling:()=>VD,removeElement:()=>Ou,removeSubsets:()=>Ndt,replaceElement:()=>fdt,testElement:()=>Bdt,textContent:()=>Pu,uniqueSort:()=>Id});var qo={};Ba(qo,{CDATA:()=>lG,Comment:()=>aG,Directive:()=>oG,Doctype:()=>dG,ElementType:()=>bt,Root:()=>sG,Script:()=>cG,Style:()=>AG,Tag:()=>uG,Text:()=>iG,isTag:()=>nG});var bt;(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"})(bt||(bt={}));function nG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var sG=bt.Root,iG=bt.Text,oG=bt.Directive,aG=bt.Comment,cG=bt.Script,AG=bt.Style,uG=bt.Tag,lG=bt.CDATA,dG=bt.Doctype;var MD=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 _0(this,e)}},nb=class extends MD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},aA=class extends nb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Kf=class extends nb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},$f=class extends nb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},sb=class extends MD{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}},ib=class extends sb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ji=class extends sb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Xf=class extends sb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}} Line truncated
`:qD(t.children):v0(t)?qD(t.children):hi(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):tr(t)&&!Zf(t)?Pu(t.children):hi(t)?t.data:""}function ab(t){return Array.isArray(t)?t.map(ab).join(""):tr(t)&&(t.type===bt.Tag||v0(t))?ab(t.children):hi(t)?t.data:""}function M0(t){return tr(t)?t.children:[]}function a0e(t){return t.parent||null}function bG(t){let e=a0e(t);if(e!=null)return M0(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 ldt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function ddt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function hdt(t){return t.name}function YD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function VD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ou(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 fdt(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 gdt(t,e){if(Ou(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 pdt(t,e){Ou(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 mdt(t,e){if(Ou(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 Edt(t,e){Ou(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 L0(t,e,r=!0,n=1/0){return WD(t,Array.isArray(e)?e:[e],r,n)}function WD(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Cdt(t,e){return e.find(t)}function JD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=JD(t,i.children,!0);if(o)return o}}return null}function c0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&c0e(t,r.children))}function Idt(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]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var zD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(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=>hi(e)&&t(e.data):e=>hi(e)&&e.data===t}};function QG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function ydt(t,e){return r=>t(r)||e(r)}function A0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(zD,r)?zD[r](n):QG(r,n)});return e.length===0?null:e.reduce(ydt)}function Bdt(t,e){let r=A0e(t);return r?r(e):!0}function bdt(t,e,r,n=1/0){let s=A0e(t);return s?L0(s,e,r,n):[]}function Qdt(t,e,r=!0){return Array.isArray(e)||(e=[e]),JD(QG("id",t),e,r)}function eg(t,e,r=!0,n=1/0){return L0(zD.tag_name(t),e,r,n)}function wdt(t,e,r=!0,n=1/0){return L0(QG("class",t),e,r,n)}function Sdt(t,e,r=!0,n=1/0){return L0(zD.tag_type(t),e,r,n)}function Ndt(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 Vo;(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"})(Vo||(Vo={}));function u0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(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 Vo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Vo.FOLLOWING|Vo.CONTAINED_BY:Vo.FOLLOWING:a===t?Vo.PRECEDING|Vo.CONTAINS:Vo.PRECEDING}function Id(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=u0e(e,r);return n&Vo.PRECEDING?-1:n&Vo.FOLLOWING?1:0}),t}function wG(t){let e=jD(kdt,t);return e?e.name==="feed"?Tdt(e):xdt(e):null}function Tdt(t){var e;let r=t.children,n={type:"atom",items:eg("entry",r).map(o=>{var a;let{children:c}=o,A={media:l0e(c)};fi(A,"id","id",c),fi(A,"title","title",c);let u=(a=jD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=yd("summary",c)||yd("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 zo=pe(bd(),1);var GG={};function qG(t,e){return t===zo.default.falseFunc?zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function YG(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 HG(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 OG=(t,e,r,n,s)=>{let i=s(e,HG(r),n);return i===zo.default.trueFunc?t:i===zo.default.falseFunc?zo.default.falseFunc:o=>i(o)&&t(o)},c2={is:OG,matches:OG,where:OG,not(t,e,r,n,s){let i=s(e,HG(r),n);return i===zo.default.falseFunc?t:i===zo.default.trueFunc?zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=HG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(fb))?[GG]:void 0,c=s(e,o,a);if(c===zo.default.falseFunc)return zo.default.falseFunc;let A=qG(c,i);if(a&&c!==zo.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,...YG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function Z0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in c2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return c2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:a2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,X0e.parse)(A);return c2.is(t,u,r,n,s)}if(typeof c=="function")return PG(c,o,a,1),u=>c(u,a)&&t(u);if(o in W0)return W0[o](t,a,r,n);if(o in pb){let u=pb[o];return PG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var jo=pe(Y0(),1);function VG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function eEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case jo.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()),z0e[e.action](t,e,r)}case jo.SelectorType.Pseudo:return Z0e(t,e,r,n,s);case jo.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 jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=VG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=VG(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=VG(A,i));return!1};case jo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case jo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case jo.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 jo.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 jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function tEe(t,e,r){let n=A2(t,e,r);return qG(n,e.adapter)}function A2(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return u2(n,e,r)}function rEe(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(rEe)))}var bht={type:ja.SelectorType.Descendant},Qht={type:"_flexibleDescendant"},wht={type:ja.SelectorType.Pseudo,name:"scope",data:null};function Sht(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===GG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(EEe,`\r
`)}}).toArray()}var aq={};Ba(aq,{extract:()=>Hft});function Oft(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 Hft(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Oft(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 Sd=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}}};Sd.prototype.cheerio="[cheerio object]";Sd.prototype.splice=Array.prototype.splice;Sd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Sd.prototype,_G,nq,sq,iq,oq,aq);function CEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=k0(s),a=t(n,o,i,null);class c extends Sd{_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&&Wo(u))return u;let f=k0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Wo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&cb(u)?t(u,f,!1,null).children:Gft(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?cb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Wo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,SG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Gft(t){return!!t.name||t.type===qo.Root||t.type===qo.Text||t.type===qo.Comment}var qft=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]),ur="\uFFFD",S;(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"})(S||(S={}));var Fs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p2(t){return t>=55296&&t<=57343}function IEe(t){return t>=56320&&t<=57343}function yEe(t,e){return(t-55296)*1024+9216+e}function m2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function E2(t){return t>=64976&&t<=65007||qft.has(t)}var W;(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"]]),exe=new Map([...fz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function txe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of exe)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(exe.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.`);ne("Artifact name is valid!")}function gz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of fz)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(fz.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 ixe=pe(sxe(),1);function vA(){return`@actions/artifact-${ixe.version}`}var WE=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"}},ol=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},nh=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"}},cl=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"}};cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=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"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qg=class extends Error{};qg.prototype.name="InvalidTokenError";function Q2t(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 w2t(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 Q2t(e)}catch{return atob(e)}}function oxe(t,e){if(typeof t!="string")throw new qg("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 qg(`Invalid token specified: missing part #${r+1}`);let s;try{s=w2t(n)}catch(i){throw new qg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new qg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var jv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function _A(){let t=Jv(),e=oxe(t);if(!e.scp)throw jv;let r=e.scp.split(" ");if(r.length===0)throw jv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw jv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw jv}function axe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(wc(r),wc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function cxe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&axe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&axe(t.signed_url)}var Kv=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())})},pz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Jv();this.baseUrl=qTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new zn(e,[new hu(i)])}request(e,r,n,s){return Kv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Kv(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 Kv(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(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(cxe(A),V(`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(Gg.isUsageErrorMessage(A.msg))throw new Gg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Gg)throw a;if(cl.isNetworkErrorCode(a?.code))throw new cl(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);ne(`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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return Kv(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 FA(t){let e=new pz(vA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new zv(e)}import*as JE from"fs";import{normalize as Axe,resolve as uxe}from"path";function lxe(t){if(!JE.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&&Xe("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);ne(`Redirecting to blob download url: ${BOe(u)}`);try{ne(`Starting download of artifact to: ${r}`);let l=yield bOe(u,r,e?.skipDecompress);ne("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function SOe(){return HC(this,arguments,void 0,function*(t=YTe()){return(yield rYt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield mOe.mkdir(t,{recursive:!0})),t})}var sYt=5,iYt=[400,401,403,404,422];function GC(t,e=sYt,r=iYt){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 V(`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 NOe="6.0.0";function Ep(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})})}Ep.VERSION=NOe;var ROe=pe(TOe(),1);var nM=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 oYt="0.0.0-development";async function xOe(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 aYt(t,e,r,n){let s=new ROe.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(cYt.bind(null,t,e,r),n)}async function cYt(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 nM(s.data.errors[0].message,500,{request:n,response:s});return xOe(t,e,i,n)}return s}function Cp(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",xOe.bind(null,r,t)),t.hook.wrap("request",aYt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Cp.VERSION=oYt;var DOe=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 sM(t,e,r,n,s){return DOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:vA(),previews:void 0,retry:o,request:a},u=yield Fi(s,c,Cp,Ep).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 ol(`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 al(`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],V(`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 kOe(t){return DOe(this,void 0,void 0,function*(){var e;let r=FA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=_A(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ln.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new al(`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((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],V(`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?ao.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var vOe=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 _Oe(t,e,r,n,s){return vOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:vA(),previews:void 0,retry:o,request:a},A=Fi(s,c,Cp,Ep),u=yield sM(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 ol(`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 FOe(t){return vOe(this,void 0,void 0,function*(){let e=FA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=_A(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ln.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new al(`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],V(`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 ne(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var MOe=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())})},iM=JTe(),oM=100,AYt=Math.ceil(iM/oM);function LOe(t,e,r,n){return MOe(this,arguments,void 0,function*(s,i,o,a,c=!1){ne(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=GC(sf),d={log:void 0,userAgent:vA(),previews:void 0,retry:u,request:l},h=Fi(a,d,Cp,Ep),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oM,page:f}),I=Math.ceil(p.total_count/oM),m=p.total_count;m>iM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${iM}. Results will be incomplete as only the first ${iM} artifacts will be returned`),I=AYt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oM,page:f});for(let y of C.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=POe(A)),ne(`Found ${A.length} artifact(s)`),{artifacts:A}})}function UOe(){return MOe(this,arguments,void 0,function*(t=!1){let e=FA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=_A(),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?ao.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=POe(o)),ne(`Found ${o.length} artifact(s)`),{artifacts:o}})}function POe(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 o1=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())})},uYt=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},qC=class{uploadArtifact(e,r,n,s){return o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;return MPe(e,r,n,s)}catch(i){throw Xe(`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 o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=uYt(r,["findBy"]);return QOe(e,n,s,i,o)}return wOe(e,r)}catch(n){throw Xe(`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 o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return LOe(r,n,s,i,e?.latest)}return UOe(e?.latest)}catch(r){throw Xe(`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 o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return sM(e,n,s,i,o)}return kOe(e)}catch(n){throw Xe(`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 o1(this,void 0,void 0,function*(){try{if(qE())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return _Oe(e,i,n,s,o)}return FOe(e)}catch(n){throw Xe(`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 RTr=new qC;import*as aM from"path";import dX from"fs";var lYt="dependency-graph_";async function HOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await OOe(t,!1);return;case"generate-submit-and-upload":await OOe(t,!0);return;case"generate-and-upload":await dYt(t)}}catch(r){CYt(t,e,r)}}async function OOe(t,e){if(qOe()){ne("Dependency graph not supported in the ACT environment.");return}let r=await GOe();try{await hYt(r)}catch(n){try{await lX(r,t)}catch(s){ne(String(s))}throw n}e&&await lX(r,t)}async function dYt(t){if(qOe()){ne("Dependency graph not supported in the ACT environment.");return}await lX(await GOe(),t)}async function GOe(){let r=(await(await X9(`${pYt()}/**/*.json`)).glob()).filter(n=>!mYt(n));return r.forEach(EYt),ne(`Found dependency graph files: ${r.join(", ")}`),r}async function lX(t,e){if(t.length===0){ne("No dependency graph files found to upload.");return}let r=zB(),n=new qC;for(let s of t){let i=hX(s);ne(`Uploading dependency graph file: ${i}`);let o=`${lYt}${aM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function hYt(t){if(t.length===0){ne("No dependency graph files found to submit.");return}for(let e of t)try{await gYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=fYt(e,r)),r}}function fYt(t,e){let n=`Dependency submission failed for ${hX(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 gYt(t){let e=IYt(),r=dX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=pu.repo.owner,n.repo=pu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=hX(t);MN(`Submitted ${i}: ${s.data.message}`)}function pYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function mYt(t){let e=`${t}.processed`;return dX.existsSync(e)}function EYt(t){let e=`${t}.processed`;dX.writeFileSync(e,"")}function CYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new GE(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function IYt(){return Fi(JB())}function hX(t){let e=zB();return aM.relative(e,t)}function qOe(){return process.env.ACT!==void 0}function BYt(t=process.platform){return t==="win32"?50:0}async function YOe(t=process.platform){let e=BYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>kJ(t));async function bYt(){try{zpe(),Jpe(),await GTe(new SD,new VB,new ND)&&await HOe(new T0)}catch(t){kJ(t)}await YOe()}bYt();export{bYt 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> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -639,5 +472,13 @@ archiver/index.js:
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
@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 *)
*/
//# 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": ";s1BAAA,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
}
+115 -252
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 lse=Object.create;var CB=Object.defineProperty;var dse=Object.getOwnPropertyDescriptor;var gse=Object.getOwnPropertyNames;var hse=Object.getPrototypeOf,fse=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 m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nn=(t,e)=>{for(var r in e)CB(t,r,{get:e[r],enumerable:!0})},mse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of gse(e))!fse.call(t,n)&&n!==r&&CB(t,n,{get:()=>e[n],enumerable:!(s=dse(e,n))||s.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?lse(hse(t)):{},mse(e||!t||!t.__esModule?CB(r,"default",{value:t,enumerable:!0}):r,t));var nF=m(ZA=>{"use strict";var dYe=Q("net"),Qse=Q("tls"),wB=Q("http"),tF=Q("https"),yse=Q("events"),gYe=Q("assert"),bse=Q("util");ZA.httpOverHttp=wse;ZA.httpsOverHttp=Nse;ZA.httpOverHttps=Sse;ZA.httpsOverHttps=Tse;function wse(t){var e=new Ei(t);return e.request=wB.request,e}function Nse(t){var e=new Ei(t);return e.request=wB.request,e.createSocket=rF,e.defaultPort=443,e}function Sse(t){var e=new Ei(t);return e.request=tF.request,e}function Tse(t){var e=new Ei(t);return e.request=tF.request,e.createSocket=rF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||wB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=sF(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)})}bse.inherits(Ei,yse.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=NB({request:e},i.options,sF(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)}})};Ei.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=NB({},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")),no("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(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){no("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){no("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 no("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),no(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ei.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 rF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=NB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Qse.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function sF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function NB(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 no;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?no=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)}:no=function(){};ZA.debug=no});var SB=m((fYe,iF)=>{iF.exports=nF()});var je=m((mYe,oF)=>{oF.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 Se=m((pYe,RF)=>{"use strict";var aF=Symbol.for("undici.error.UND_ERR"),Ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aF]===!0}[aF]=!0},AF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TB=class extends Ze{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[AF]===!0}[AF]=!0},cF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DB=class extends Ze{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[cF]===!0}[cF]=!0},uF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xB=class extends Ze{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[uF]===!0}[uF]=!0},lF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),RB=class extends Ze{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[lF]===!0}[lF]=!0},dF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),kB=class extends Ze{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 qie(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(Tie.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Vie(){return"allowed"}function Jie(){return"success"}function Wie(){return"success"}function zie(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Kie(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&&yQ(t.origin)&&!yQ(Xl(t))&&(e=null);break;case"same-origin":Mf(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ac(t,e){return t}function Xie(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ac(t.domainLookupStartTime,r),domainLookupEndTime:Ac(t.domainLookupEndTime,r),connectionStartTime:Ac(t.connectionStartTime,r),connectionEndTime:Ac(t.connectionEndTime,r),secureConnectionStartTime:Ac(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function jie(t){return Ac(Fie.now(),t)}function Zie(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 VM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function $ie(t){return{referrerPolicy:t.referrerPolicy}}function eoe(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=OM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=QQ(r),n=QQ(r,!0);s.toString().length>4096&&(s=n);let i=Mf(t,s),o=Kl(s)&&!Kl(t.url);switch(e){case"origin":return n??QQ(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=Xl(t);return Mf(s,a)?s:Kl(s)&&!Kl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function QQ(t,e){return wa(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 Kl(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 toe(t,e){if(Ff===void 0)return!0;let r=JM(e);if(r==="no metadata"||r.length===0)return!0;let s=soe(r),n=noe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Ff.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)),ioe(A,a))return!0}return!1}var roe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=roe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();HM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function soe(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 noe(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 ioe(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 ooe(t){}function Mf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function aoe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Aoe(t){return t.controller.state==="aborted"}function coe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uoe(t){return Lie[t.toLowerCase()]??t}function loe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wa(typeof e=="string"),e}var doe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Goe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Yoe(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 qoe(t,e){Lf(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&&Pf(t,_oe,i)||i.position===t.length-4&&Pf(t,Hoe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Voe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=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,d==="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",Goe(u)||(u=""),h=new voe([g],c,{type:u})):h=Foe(Buffer.from(g)),Lf(iU(A)),Lf(typeof h=="string"&&iU(h)||Uoe(h)),n.push(Loe(A,h,c))}}function Voe(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=uc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xQ(o,!0,!0,a=>a===9||a===32),!Moe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,uc(a=>a===32||a===9,t,e),koe(o)){case"content-disposition":{if(r=s=null,!Pf(t,Ooe,e)||(e.position+=17,r=AU(t,e),r===null))return"failure";if(Pf(t,aU,e)){let a=e.position+aU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=AU(t,e),s===null))return"failure"}break}case"content-type":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),n=oU(a);break}case"content-transfer-encoding":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),i=oU(a);break}default:uc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function AU(t,e){Lf(t[e.position-1]===34);let r=uc(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 uc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xQ(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 Pf(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}cU.exports={multipartFormDataParser:qoe,validateBoundary:Yoe}});var gc=m((GYe,IU)=>{"use strict";var $l=me(),{ReadableStreamFrom:Joe,isBlobLike:lU,isReadableStreamLike:Woe,readableStreamClose:zoe,createDeferredPromise:Koe,fullyReadBody:Xoe,extractMimeType:joe,utf8DecodeBytes:hU}=Gr(),{FormData:dU}=Zl(),{kState:dc}=io(),{webidl:Zoe}=Ht(),{Blob:$oe}=Q("node:buffer"),RQ=Q("node:assert"),{isErrored:fU,isDisturbed:eae}=Q("node:stream"),{isArrayBuffer:tae}=Q("node:util/types"),{serializeAMimeType:rae}=Cr(),{multipartFormDataParser:sae}=uU(),kQ;try{let t=Q("node:crypto");kQ=e=>t.randomInt(0,e)}catch{kQ=t=>Math.floor(Math.random(t))}var vf=new TextEncoder;function nae(){}var mU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,pU;mU&&(pU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eae(e)&&!fU(e)&&e.cancel("Response object has been garbage collected").catch(nae)}));function EU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?vf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>zoe(A))},start(){},type:"bytes"}),RQ(Woe(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(tae(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($l.isFormDataLike(t)){let A=`----formdata-undici-0${`${kQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=w=>w.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=vf.encode(c+`; name="${u(d(w))}"\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
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=vf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.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(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=vf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(lU(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($l.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Joe(t)}if((typeof n=="string"||$l.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:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!fU(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 iae(t,e=!1){return t instanceof ReadableStream&&(RQ(!$l.isDisturbed(t),"The body has already been consumed."),RQ(!t.locked,"The stream is locked.")),EU(t,e)}function oae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function aae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aae(t){return{blob(){return lc(this,r=>{let s=gU(this);return s===null?s="":s&&(s=rae(s)),new $oe([r],{type:s})},t)},arrayBuffer(){return lc(this,r=>new Uint8Array(r).buffer,t)},text(){return lc(this,hU,t)},json(){return lc(this,uae,t)},formData(){return lc(this,r=>{let s=gU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=sae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new dU;return i[dc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new dU;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 lc(this,r=>new Uint8Array(r),t)}}}function cae(t){Object.assign(t.prototype,Aae(t))}async function lc(t,e,r){if(Zoe.brandCheck(t,r),CU(t))throw new TypeError("Body is unusable: Body has already been read");aae(t[dc]);let s=Koe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[dc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Xoe(t[dc].body,i,n),s.promise)}function CU(t){let e=t[dc].body;return e!=null&&(e.stream.locked||$l.isDisturbed(e.stream))}function uae(t){return JSON.parse(hU(t))}function gU(t){let e=t[dc].headersList,r=joe(e);return r==="failure"?null:r}IU.exports={extractBody:EU,safelyExtractBody:iae,cloneBody:oae,mixinBody:cae,streamRegistry:pU,hasFinalizationRegistry:mU,bodyUnusable:CU}});var RU=m((YYe,xU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:BU}=ec(),FQ=hQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:lae,RequestAbortedError:SU,HeadersTimeoutError:dae,HeadersOverflowError:gae,SocketError:qf,InformationalError:hc,BodyTimeoutError:hae,HTTPParserError:fae,ResponseExceededMaxSizeError:mae}=Se(),{kUrl:TU,kReset:Ir,kClient:PQ,kParser:nt,kBlocking:rd,kRunning:zt,kPending:pae,kSize:QU,kWriting:ao,kQueue:on,kNoRef:ed,kKeepAliveDefaultTimeout:Eae,kHostHeader:Cae,kPendingIdx:Iae,kRunningIdx:Is,kError:Bs,kPipelining:Gf,kSocket:fc,kKeepAliveTimeoutValue:Vf,kMaxHeadersSize:MQ,kKeepAliveMaxTimeout:Bae,kKeepAliveTimeoutThreshold:Qae,kHeadersTimeout:yae,kBodyTimeout:bae,kStrictContentLength:vQ,kMaxRequests:yU,kCounter:wae,kMaxResponseSize:Nae,kOnError:Sae,kResume:oo,kHTTPContext:DU}=je(),Fn=pM(),Tae=Buffer.alloc(0),Of=Buffer[Symbol.species],_f=Ae.addListener,Dae=Ae.removeAllListeners,UQ;async function xae(){let t=process.env.JEST_WORKER_ID?pQ():void 0,e;try{e=await WebAssembly.compile(IM())}catch{e=await WebAssembly.compile(t||pQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onStatus(new Of(Mn.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(wt.ptr===r),wt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderField(new Of(Mn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderValue(new Of(Mn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(wt.ptr===r),wt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onBody(new Of(Mn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var LQ=null,OQ=xae();OQ.catch();var wt=null,Mn=null,Hf=0,Un=null,Rae=0,td=1,mc=2|td,Yf=4|td,_Q=8|Rae,HQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[MQ])&&e[MQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Fn.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.header Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Cae],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Gf]&&!h[Ir]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return BU.sendHeaders.hasSubscribers&&BU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?wU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?wU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?NU(f,A.stream(),t,e,h,u,E,d):Pae(f,A,t,e,h,u,E,d):Ae.isStream(A)?Lae(f,A,t,e,h,u,E,d):Ae.isIterable(A)?NU(f,A,t,e,h,u,E,d):ee(!1),!0}function Lae(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Jf({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(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[ao]&&r[zt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).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 wU(t,e,r,s,n,i,o,a){try{e?Ae.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[Ir]=!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[oo]()}catch(A){t(A)}}async function Pae(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 Na;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[Ir]=!0),r[oo]()}catch(A){t(A)}}async function NU(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===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[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Jf=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[ao]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[vQ])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!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[nt].timeout&&r[nt].timeoutType===mc&&r[nt].timeout.refresh&&r[nt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ao]=!1,e[Bs])throw e[Bs];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[vQ])throw new Na;process.emitWarning(new Na)}e[nt].timeout&&e[nt].timeoutType===mc&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),s[oo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ao]=!1,e&&(ee(s[zt]<=1,"pipeline should only contain this request"),n(e))}};xU.exports=kae});var OU=m((qYe,vU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:vae}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:GQ,RequestAbortedError:kU,SocketError:sd,InformationalError:YQ}=Se(),{kUrl:Wf,kReset:Kf,kClient:pc,kRunning:Xf,kPending:Oae,kQueue:Ao,kPendingIdx:qQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:_ae,kOnError:VQ,kMaxConcurrentStreams:PU,kHTTP2Session:An,kResume:co,kSize:Hae,kHTTPContext:Gae}=je(),bi=Symbol("open streams"),FU,MU=!1,zf;try{zf=Q("node:http2")}catch{zf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yae,HTTP2_HEADER_METHOD:qae,HTTP2_HEADER_PATH:Vae,HTTP2_HEADER_SCHEME:Jae,HTTP2_HEADER_CONTENT_LENGTH:Wae,HTTP2_HEADER_EXPECT:zae,HTTP2_HEADER_STATUS:Kae}}=zf;function Xae(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 jae(t,e){t[xt]=e,MU||(MU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zf.connect(t[Wf],{createConnection:()=>e,peerMaxConcurrentStreams:t[PU]});r[bi]=0,r[pc]=t,r[xt]=e,Ee.addListener(r,"error",$ae),Ee.addListener(r,"frameError",eAe),Ee.addListener(r,"end",tAe),Ee.addListener(r,"goaway",rAe),Ee.addListener(r,"close",function(){let{[pc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new sd("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[Oae]===0);let a=n[Ao].splice(n[an]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[An]=r,e[An]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[pc][VQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new sd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new sd("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[qQ]=t[an],Qs(t[Xf]===0),t.emit("disconnect",t[Wf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return nAe(t,...n)},resume(){Zae(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Zae(t){let e=t[xt];e?.destroyed===!1&&(t[Hae]===0&&t[PU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function $ae(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[pc][VQ](t)}function eAe(t,e,r){if(r===0){let s=new YQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[pc][VQ](s)}}function tAe(){let t=new sd("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function rAe(t){let e=this[cn]||new sd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[pc];if(r[xt]=null,r[Gae]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),Ee.destroy(this[xt],e),r[an]<r[Ao].length){let s=r[Ao][r[an]];r[Ao][r[an]++]=null,Ee.errorRequest(r,s,e),r[qQ]=r[an]}Qs(r[Xf]===0),r.emit("disconnect",r[Wf],[r],e),r[co]()}function sAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function nAe(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],v=c[D+1];if(Array.isArray(v))for(let k=0;k<v.length;k++)d[U]?d[U]+=`,${v[k]}`:d[U]=v[k];else d[U]=v}let g,{hostname:h,port:f}=t[Wf];d[Yae]=i||`${h}${f?`:${f}`:""}`,d[qae]=s;let E=D=>{e.aborted||e.completed||(D=D||new kU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[Ao][t[an]++]=null,t[co]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null}),g.once("close",()=>{r[bi]-=1,r[bi]===0&&r.unref()}),!0;d[Vae]=n,d[Jae]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){FU??=gc().extractBody;let[D,U]=FU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),sAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[_ae])return Ee.errorRequest(t,e,new GQ),!1;process.emitWarning(new GQ)}p!=null&&(Qs(u,"no body must not have content length"),d[Wae]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[zae]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[xAe]=A??3e5,this[DAe]=n??3e5,this[RAe]=y??!0,this[kAe]=D,this[KQ]=v,this[lo]=null,this[PAe]=O>-1?O:-1,this[OAe]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[ad]=fe=>jQ(this,fe),this[vAe]=fe=>jU(this,fe)}get pipelining(){return this[em]}set pipelining(e){this[em]=e,this[ad](!0)}get[ud](){return this[un].length-this[ln]}get[cd](){return this[ln]-this[Ni]}get[Ad](){return this[un].length-this[Ni]}get[QAe](){return!!this[gt]&&!this[Cc]&&!this[gt].destroyed}get[zQ](){return!!(this[gt]?.busy(null)||this[Ad]>=(XU(this)||1)||this[ud]>0)}[BAe](e){ZU(this),this.once("connect",e)}[LAe](e,r){let s=e.origin||this[Pn].origin,n=new fAe(s,e,r);return this[un].push(n),this[Ta]||(Sa.bodyLength(n.body)==null&&Sa.isIterable(n.body)?(this[Ta]=1,queueMicrotask(()=>jQ(this))):this[ad](!0)),this[Ta]&&this[go]!==2&&this[zQ]&&(this[go]=2),this[go]<2}async[MAe](){return new Promise(e=>{this[Ad]?this[lo]=e:e(null)})}async[UAe](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];Sa.errorRequest(this,o,e)}let n=()=>{this[lo]&&(this[lo](),this[lo]=null),r(null)};this[gt]?(this[gt].destroy(e,n),this[gt]=null):queueMicrotask(n),this[ad]()})}},GAe=$f();function jU(t,e){if(t[cd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wi(t[ln]===t[Ni]);let r=t[un].splice(t[Ni]);for(let s=0;s<r.length;s++){let n=r[s];Sa.errorRequest(t,n,e)}wi(t[Ad]===0)}}async function ZU(t){wi(!t[Cc]),wi(!t[gt]);let{host:e,hostname:r,protocol:s,port:n}=t[Pn];if(r[0]==="["){let i=r.indexOf("]");wi(i!==-1);let o=r.substring(1,i);wi(KU.isIP(o)),r=o}t[Cc]=!0,Ec.beforeConnect.hasSubscribers&&Ec.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id]});try{let i=await new Promise((o,a)=>{t[id]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[od]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sa.destroy(i.on("error",WU),new EAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await HAe(t,i):await _Ae(t,i)}catch(o){throw i.destroy().on("error",WU),o}t[Cc]=!1,i[FAe]=0,i[KQ]=t[KQ],i[IAe]=t,i[bAe]=null,Ec.connected.hasSubscribers&&Ec.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],socket:i}),t.emit("connect",t[Pn],[t])}catch(i){if(t.destroyed)return;if(t[Cc]=!1,Ec.connectError.hasSubscribers&&Ec.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[cd]===0);t[ud]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];Sa.errorRequest(t,o,i)}else jU(t,i);t.emit("connectionError",t[Pn],[t],i)}t[ad]()}function zU(t){t[go]=0,t.emit("drain",t[Pn],[t])}function jQ(t,e){t[Ta]!==2&&(t[Ta]=2,YAe(t,e),t[Ta]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function YAe(t,e){for(;;){if(t.destroyed){wi(t[ud]===0);return}if(t[lo]&&!t[Ad]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[zQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>zU(t))):zU(t);continue}if(t[ud]===0||t[cd]>=(XU(t)||1))return;let r=t[un][t[ln]];if(t[Pn].protocol==="https:"&&t[uo]!==r.servername){if(t[cd]>0)return;t[uo]=r.servername,t[gt]?.destroy(new pAe("servername changed"),()=>{t[gt]=null,jQ(t)})}if(t[Cc])return;if(!t[gt]){ZU(t);return}if(t[gt].destroyed||t[gt].busy(r))return;!r.aborted&&t[gt].write(r)?t[ln]++:t[un].splice(t[ln],1)}}$U.exports=XQ});var ZQ=m((KYe,eL)=>{"use strict";var tm=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)}};eL.exports=class{constructor(){this.head=this.tail=new tm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var rL=m((XYe,tL)=>{var{kFree:qAe,kConnected:VAe,kPending:JAe,kQueued:WAe,kRunning:zAe,kSize:KAe}=je(),Da=Symbol("pool"),$Q=class{constructor(e){this[Da]=e}get connected(){return this[Da][VAe]}get free(){return this[Da][qAe]}get pending(){return this[Da][JAe]}get queued(){return this[Da][WAe]}get running(){return this[Da][zAe]}get size(){return this[Da][KAe]}};tL.exports=$Q});var iy=m((jYe,dL)=>{"use strict";var XAe=nc(),jAe=ZQ(),{kConnected:ey,kSize:sL,kRunning:nL,kPending:iL,kQueued:ld,kBusy:ZAe,kFree:$Ae,kUrl:ece,kClose:tce,kDestroy:rce,kDispatch:sce}=je(),nce=rL(),Br=Symbol("clients"),ir=Symbol("needDrain"),dd=Symbol("queue"),ty=Symbol("closed resolve"),ry=Symbol("onDrain"),oL=Symbol("onConnect"),aL=Symbol("onDisconnect"),AL=Symbol("onConnectionError"),sy=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())}};E3.exports=ib});var Cm=m((wqe,y3)=>{"use strict";var I3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:xle}=Se(),Rle=Qc();Q3()===void 0&&B3(new Rle);function B3(t){if(!t||typeof t.dispatch!="function")throw new xle("Argument agent must implement Agent");Object.defineProperty(globalThis,I3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Q3(){return globalThis[I3]}y3.exports={setGlobalDispatcher:B3,getGlobalDispatcher:Q3}});var Im=m((Sqe,b3)=>{"use strict";b3.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 N3=m((Tqe,w3)=>{"use strict";var kle=Zf();w3.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 kle(r,o,n,i);return r(a,A)}}});var T3=m((Dqe,S3)=>{"use strict";var Fle=cm();S3.exports=t=>e=>function(s,n){return e(s,new Fle({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var x3=m((xqe,D3)=>{"use strict";var Mle=me(),{InvalidArgumentError:Ule,RequestAbortedError:Lle}=Se(),Ple=Im(),ob=class extends Ple{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ule("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.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=Mle.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Lle(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function vle({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ob({maxSize:i},n);return e(s,o)}}D3.exports=vle});var F3=m((Rqe,k3)=>{"use strict";var{isIP:Ole}=Q("node:net"),{lookup:_le}=Q("node:dns"),Hle=Im(),{InvalidArgumentError:kc,InformationalError:Gle}=Se(),R3=Math.pow(2,31)-1,ab=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.#s,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 Gle("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}`)}}#s(e,r,s){_le(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===R3?(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===R3?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 Ab(this,e,r)}},Ab=class extends Hle{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=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.#s.onError(r);le Line truncated
${i}`;break;case"retry":d4(i)&&(r[n]=i);break;case"id":g4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&d4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&g4(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}}};h4.exports={EventSourceStream:Wb}});var y4=m((AVe,Q4)=>{"use strict";var{pipeline:Zfe}=Q("node:stream"),{fetching:$fe}=wd(),{makeRequest:eme}=Uc(),{webidl:Ri}=Ht(),{EventSourceStream:tme}=f4(),{parseMIMEType:rme}=Cr(),{createFastMessageEvent:sme}=Hc(),{isNetworkError:m4}=yd(),{delay:nme}=Vb(),{kEnumerableProperty:qa}=me(),{environmentSettingsObject:p4}=Gr(),E4=!1,C4=3e3,vd=0,I4=1,Od=2,ime="anonymous",ome="use-credentials",Jc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=vd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),E4||(E4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e,s,"url"),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:C4};let n=p4,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=ime;r.withCredentials&&(o=ome,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p4.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=eme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Od)return;this.#s=vd;let e={request:this.#i,dispatcher:this.#a},r=s=>{m4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(m4(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?rme(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.#s=I4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new tme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(sme(A.type,A.options))}});Zfe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=$fe(e)}async#c(){this.#s!==Od&&(this.#s=vd,this.dispatchEvent(new Event("error")),await nme(this.#o.reconnectionTime),this.#s===vd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==Od&&(this.#s=Od,this.#n.abort(),this.#i=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}},B4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:I4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Od,writable:!1}};Object.defineProperties(Jc,B4);Object.defineProperties(Jc.prototype,B4);Object.defineProperties(Jc.prototype,{close:qa,onerror:qa,onmessage:qa,onopen:qa,readyState:qa,url:qa,withCredentials:qa});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);Q4.exports={EventSource:Jc,defaultReconnectionTime:C4}});var Ap=m((cVe,re)=>{"use strict";var ame=Ic(),b4=Yl(),Ame=Bc(),cme=BL(),ume=Qc(),lme=Ey(),dme=VL(),gme=jL(),w4=Se(),ap=me(),{InvalidArgumentError:op}=w4,Wc=PP(),hme=Vl(),fme=$y(),mme=C3(),pme=rb(),Eme=_y(),Cme=cm(),{getGlobalDispatcher:N4,setGlobalDispatcher:Ime}=Cm(),Bme=Im(),Qme=Zf(),yme=$f();Object.assign(b4.prototype,Wc);re.exports.Dispatcher=b4;re.exports.Client=ame;re.exports.Pool=Ame;re.exports.BalancedPool=cme;re.exports.Agent=ume;re.exports.ProxyAgent=lme;re.exports.EnvHttpProxyAgent=dme;re.exports.RetryAgent=gme;re.exports.RetryHandle 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 P_=m(L_=>{"use strict";var Zw=_i().Buffer;L_._dbcs=Hi;var Gt=-1,U_=-2,Ls=-10,lr=-1e3,fu=new Array(256),Eg=-1;for(I0=0;I0<256;I0++)fu[I0]=Gt;var I0;function Hi(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]=fu.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(fu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[lr-o[s]],A=48;A<=57;A++){if(a[A]===Gt)a[A]=lr-n;else if(a[A]>lr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[lr-a[A]],u=129;u<=254;u++){if(c[u]===Gt)c[u]=lr-i;else{if(c[u]===lr-i)continue;if(c[u]>lr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[lr-c[u]],g=48;g<=57;g++)d[g]===Gt&&(d[g]=U_)}}}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 Zbe(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(Pbe.has(n)){r=n;break}}return r}function $be(t,e){let r=Zbe(e);r!==""&&(t.referrerPolicy=r)}function e1e(){return"allowed"}function t1e(){return"success"}function r1e(){return"success"}function s1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n1e(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&&mS(t.origin)&&!mS(uA(t))&&(e=null);break;case"same-origin":Sg(t,uA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Iu(t,e){return t}function i1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Iu(t.domainLookupStartTime,r),domainLookupEndTime:Iu(t.domainLookupEndTime,r),connectionStartTime:Iu(t.connectionStartTime,r),connectionEndTime:Iu(t.connectionEndTime,r),secureConnectionStartTime:Iu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function o1e(t){return Iu(Hbe.now(),t)}function a1e(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 g9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function A1e(t){return{referrerPolicy:t.referrerPolicy}}function c1e(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let i=A9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=fS(r),n=fS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??fS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=uA(t);return Sg(s,i)?s:cA(s)&&!cA(i)?"no-referrer":n}case"same-origin":return Sg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Sg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":s}}}function fS(t,e=!1){return Tg(Go.is.URL(t)),t=new URL(t),p9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var u1e=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)$/),l1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function h9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),l1e(t)):u1e(t)}function d1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||h9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function cA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:d1e(t.origin):!1}function g1e(t){}function Sg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h1e(t){return t.controller.state==="aborted"}function f1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function m1e(t){return Ybe[t.toLowerCase()]??t}var p1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function f9(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 d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,p1e),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 E1e(t,e,r,s=0,n=1){let i=f9(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Os(a=>wS(a)&&a!==59,t,e);i=yS.decode(o)}return{name:s,value:i}}function G1e(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 Rr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Os(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bS(o,!0,!0,a=>a===9||a===32),!M1e.test(o.toString()))throw Rr("header name does not match the field-name token production");if(t[e.position]!==58)throw Rr("expected :");switch(e.position++,Os(a=>a===32||a===9,t,e),F1e(o)){case"content-disposition":{if(r=s=null,Os(A=>wS(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Rr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=H1e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Rr("name attribute is required in content-disposition header");break}case"content-type":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),n=y9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),i=y9(a);break}default:Os(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Rr("expected CRLF");e.position+=2}}function Os(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function bS(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 Y1e(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 Rr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function q1e(t){return t<=31||t===127}function V1e(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 wS(t){return t<=127&&t!==32&&t!==9&&!q1e(t)&&!V1e(t)}b9.exports={multipartFormDataParser:_1e,validateBoundary:O1e}});var Dg=m((pXe,N9)=>{"use strict";function J1e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}N9.exports={createDeferredPromise:J1e}});var yu=m((EXe,R9)=>{"use strict";var TS=ce(),{ReadableStreamFrom:W1e,readableStreamClose:z1e,fullyReadBody:K1e,extractMimeType:X1e}=rs(),{FormData:S9,setFormDataState:j1e}=V0(),{webidl:Bn}=Yt(),NS=Q("node:assert"),{isErrored:SS,isDisturbed:Z1e}=Q("node:stream"),{isUint8Array:$1e}=Q("node:util/types"),{serializeAMimeType:ewe}=vs(),{multipartFormDataParser:twe}=w9(),{createDeferredPromise:rwe}=Dg(),{parseJSONFromBytes:swe}=qi(),{utf8DecodeBytes:nwe}=O0(),{runtimeFeatures:iwe}=Vi(),owe=iwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J0=new TextEncoder;function awe(){}var Awe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Z1e(e)&&!SS(e)&&e.cancel("Response object has been garbage collected").catch(awe)});function D9(t,e=!1){let r=null,s=null;Bn.is.ReadableStream(t)?r=t:Bn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),NS(Bn.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(Bn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bn.is.BufferSource(t))i=Bn.util.getCopyOfBytesHeldByBufferSource(t);else if(Bn.is.FormData(t)){let c=`----formdata-undici-0${`${owe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let d=p=>p.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=p=>p.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=J0.encode(u+`; name="${d(g(p))}"\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(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=J0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.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(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=J0.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Bn.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(TS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:W1e(t)}return(typeof i=="string"||$1e(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 d of u){if(SS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!SS(r)&&s.enqueue(typeof c=="string"?J0.encode(c):new Uint8Array(c));queueMicrotask(()=>z1e(s))})(),[{stream:r,source:i,length:o},a]}function cwe(t,e=!1){return Bn.is.ReadableStream(t)&&(NS(!TS.isDisturbed(t),"The body has already been consumed."),NS(!t.locked,"The stream is locked.")),D9(t,e)}function uwe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function lwe(t,e){return{blob(){return Qu(this,s=>{let n=T9(e(this));return n===null?n="":n&&(n=ewe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Qu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Qu(this,nwe,t,e)},json(){return Qu(this,swe,t,e)},formData(){return Qu(this,s=>{let n=T9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=twe(s,n),o=new S9;return j1e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new S9;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 Qu(this,s=>new Uint8Array(s),t,e)}}}function dwe(t,e){Object.assign(t.prototype,lwe(t,e))}function Qu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),x9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=rwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(K1e(t.body,o,i),n.promise)}function x9(t){let e=t.body;return e!=null&&(e.stream.locked||TS.isDisturbed(e.stream))}function T9(t){let e=t.headersList,r=X1e(e);return r==="failure"?null:r}R9.exports={extractBody:D9,safelyExtractBody:cwe,cloneBody:uwe,mixinBody:dwe,streamRegistry:Awe,bodyUnusable:x9}});var G9=m((CXe,H9)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:k9}=_o(),DS=uN(),{RequestContentLengthMismatchError:lA,ResponseContentLengthMismatchError:gwe,RequestAbortedError:v9,HeadersTimeoutError:hwe,HeadersOverflowError:fwe,SocketError:kg,InformationalError:bu,BodyTimeoutError:mwe,HTTPParserError:pwe,ResponseExceededMaxSizeError:Ewe}=oe(),{kUrl:O9,kReset:kr,kClient:LS,kParser:at,kBlocking:Fg,kRunning:rr,kPending:Cwe,kSize:F9,kWriting:qo,kQueue:Qn,kNoRef:xg,kKeepAliveDefaultTimeout:Iwe,kHostHeader:Bwe,kPendingIdx:Qwe,kRunningIdx:_s,kError:Hs,kPipelining:K0,kSocket:wu,kKeepAliveTimeoutValue:j0,kMaxHeadersSize:ywe,kKeepAliveMaxTimeout:bwe,kKeepAliveTimeoutThreshold:wwe,kHeadersTimeout:Nwe,kBodyTimeout:Swe,kStrictContentLength:kS,kMaxRequests:M9,kCounter:Twe,kMaxResponseSize:Dwe,kOnError:xwe,kResume:Yo,kHTTPContext:_9,kClosed:FS}=Me(),zn=RH(),Rwe=Buffer.alloc(0),W0=Buffer[Symbol.species],kwe=ne.removeAllListeners,xS;function Fwe(){let t=process.env.JEST_WORKER_ID?rS():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(MH())}catch{}return e||(e=new WebAssembly.Module(t||rS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onStatus(new W0(Kn.buffer,o,i))},wasm_on_message_begin:s=>(se(Nt.ptr===s),Nt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderField(new W0(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderValue(new W0(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(Nt.ptr===s),Nt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onBody(new W0(Kn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var RS=null,Nt=null,Kn=null,z0=0,Xn=null,Mwe=0,Rg=1,Nu=2|Rg,X0=4|Rg,MS=8|Mwe,US=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zn.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[ywe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Dwe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Bwe],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[K0]&&!h[kr]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return k9.sendHeaders.hasSubscribers&&k9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?L9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?L9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?P9(f,A.stream(),t,e,h,u,E,d):Vwe(f,A,t,e,h,u,E,d):ne.isStream(A)?qwe(f,A,t,e,h,u,E,d):ne.isIterable(A)?P9(f,A,t,e,h,u,E,d):se(!1),!0}function qwe(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"stream body cannot be pipelined");let A=!1,c=new Z0({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(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new v9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[qo]&&r[rr]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).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 L9(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(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[kr]=!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"):(se(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Yo]()}catch(A){t(A)}}async function Vwe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new lA;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[kr]=!0),r[Yo]()}catch(A){t(A)}}async function P9(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===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)=>{se(A===null),n[Hs]?h(n[Hs]):A=g});n.on("close",c).on("drain",c);let d=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Hs])throw n[Hs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Z0=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[qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[kS])throw new lA;process.emitWarning(new lA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!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[at].timeout&&r[at].timeoutType===Nu&&r[at].timeout.refresh&&r[at].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qo]=!1,e[Hs])throw e[Hs];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[kS])throw new lA;process.emitWarning(new lA)}e[at].timeout&&e[at].timeoutType===Nu&&e[at].timeout.refresh&&e[at].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[qo]=!1,e&&(se(s[rr]<=1,"pipeline should only contain this request"),n(e))}};H9.exports=Uwe});var j9=m((IXe,X9)=>{"use strict";var Ys=Q("node:assert"),{pipeline:Jwe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:_S,RequestAbortedError:Wwe,SocketError:Pg,InformationalError:Vo,InvalidArgumentError:zwe}=oe(),{kUrl:Lg,kReset:rE,kClient:ss,kRunning:vg,kPending:Kwe,kQueue:Jo,kPendingIdx:GS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:Xwe,kOnError:Su,kMaxConcurrentStreams:eE,kPingInterval:Y9,kHTTP2Session:Wi,kHTTP2InitialWindowSize:jwe,kHTTP2ConnectionWindowSize:Zwe,kResume:jn,kSize:$we,kHTTPContext:YS,kClosed:HS,kBodyTimeout:eNe,kEnableConnectProtocol:Mg,kRemoteSettings:Ug,kHTTP2Stream:$0,kHTTP2SessionState:qS}=Me(),{channels:q9}=_o(),Gs=Symbol("open streams"),V9,tE;try{tE=Q("node:http2")}catch{tE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tNe,HTTP2_HEADER_METHOD:J9,HTTP2_HEADER_PATH:W9,HTTP2_HEADER_SCHEME:PS,HTTP2_HEADER_CONTENT_LENGTH:rNe,HTTP2_HEADER_EXPECT:sNe,HTTP2_HEADER_STATUS:vS,HTTP2_HEADER_PROTOCOL:nNe,NGHTTP2_REFUSED_STREAM:iNe,NGHTTP2_CANCEL:oNe}}=tE;function OS(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 aNe(t,e){t[st]=e;let r=t[jwe],s=t[Zwe],n=tE.connect(t[Lg],{createConnection:()=>e,peerMaxConcurrentStreams:t[eE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[qS]={ping:{interval:t[Y9]===0?null:setInterval(lNe,t[Y9],n).unref()}},n[Mg]=!1,n[Ug]=!1,s&&he.addListener(n,"connect",cNe.bind(n,s)),he.addListener(n,"error",dNe),he.addListener(n,"frameError",gNe),he.addListener(n,"end",hNe),he.addListener(n,"goaway",fNe),he.addListener(n,"close",mNe),he.addListener(n,"remoteSettings",uNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",ENe),he.addListener(e,"end",CNe),he.addListener(e,"close",pNe),e[HS]=!1,e.on("close",INe),{version:"h2",defaultPipelining:1/0,write(i){return QNe(t,i)},resume(){ANe(t)},destroy(i,o){e[HS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[vg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1;return!1}}}function ANe(t){let e=t[st];e?.destroyed===!1&&(t[$we]===0||t[eE]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function cNe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uNe(t){if(this[ss][eE]=t.maxConcurrentStreams??this[ss][eE],this[Ug]===!0&&this[Mg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][Su](e);return}this[Mg]=t.enableConnectProtocol??this[Mg],this[Ug]=!0,this[ss][jn]()}function lNe(t){let e=t[qS];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[ss],o=this[ss];if(s!=null){let a=new Vo(`HTTP/2: "PING" errored - type ${s.message}`);o[ns]=a,i[Su](a)}else i.emit("ping",n)}}function dNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][Su](t)}function gNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][Su](s)}}function hNe(){let t=new Pg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function fNe(t){let e=this[ns]||new Pg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[YS]=null,this.close(),this[Wi]=null,he.destroy(this[st],e),r[yn]<r[Jo].length){let s=r[Jo][r[yn]];r[Jo][r[yn]++]=null,he.errorRequest(r,s,e),r[GS]=r[yn]}Ys(r[vg]===0),r.emit("disconnect",r[Lg],[r],e),r.emit("connectionError",r[Lg],[r],e),r[jn]()}function mNe(){let{[ss]:t,[qS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Pg("closed",he.getSocketInfo(r));if(t[st]=null,t[YS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[Kwe]===0);let n=t[Jo].splice(t[yn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function pNe(){let t=this[ns]||new Pg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[YS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[GS]=e[yn],Ys(e[vg]===0),e.emit("disconnect",e[Lg],[e],t),e[jn]()}function ENe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][Su](t)}function CNe(){he.destroy(this,new Pg("other side closed",he.getSocketInfo(this)))}function INe() Line truncated
`;q9.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[sNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[vS]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),OS(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jo][t[yn]++]=null,t[jn]()):(p(new Vo("HTTP/2: stream half-closed (remote)")),t[Jo][t[yn]++]=null,t[GS]=t[yn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Vo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function v(){!g||N===0?z9(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?z9(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?K9(p,f,g.stream(),t,e,t[st],N,y):bNe(p,f,g,t,e,t[st],N,y):he.isStream(g)?yNe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?K9(p,f,g,t,e,t[st],N,y):Ys(!1)}}function z9(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(Ys(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function yNe(t,e,r,s,n,i,o,a){Ys(a!==0||i[vg]===0,"stream body cannot be pipelined");let A=Jwe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[rE]=!0),i[jn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bNe(t,e,r,s,n,i,o,a){Ys(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _S;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(A){t(A)}}async function K9(t,e,r,s,n,i,o,a){Ys(o!==0||s[vg]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{Ys(A===null),i[ns]?g(i[ns]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[ns])throw i[ns];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}X9.exports=aNe});var jo=m((BXe,oG)=>{"use strict";var zi=Q("node:assert"),rG=Q("node:net"),Og=Q("node:http"),dA=ce(),{ClientStats:wNe}=ON(),{channels:Tu}=_o(),NNe=CH(),SNe=oA(),{InvalidArgumentError:Ke,InformationalError:TNe,ClientDestroyedError:DNe}=oe(),xNe=aA(),{kUrl:Zn,kServerName:Xo,kClient:RNe,kBusy:VS,kConnect:kNe,kResuming:gA,kRunning:Yg,kPending:qg,kSize:_g,kQueue:bn,kConnected:FNe,kConnecting:Du,kNeedDrain:zo,kKeepAliveDefaultTimeout:Z9,kHostHeader:MNe,kPendingIdx:wn,kRunningIdx:Ki,kError:UNe,kPipelining:sE,kKeepAliveTimeoutValue:LNe,kMaxHeadersSize:PNe,kKeepAliveMaxTimeout:vNe,kKeepAliveTimeoutThreshold:ONe,kHeadersTimeout:_Ne,kBodyTimeout:HNe,kStrictContentLength:GNe,kConnector:Hg,kMaxRequests:JS,kCounter:YNe,kClose:qNe,kDestroy:VNe,kDispatch:JNe,kLocalAddress:Gg,kMaxResponseSize:WNe,kOnError:zNe,kHTTPContext:ft,kMaxConcurrentStreams:KNe,kHTTP2InitialWindowSize:XNe,kHTTP2ConnectionWindowSize:jNe,kResume:Ko,kPingInterval:ZNe}=Me(),$Ne=G9(),eSe=j9(),Wo=Symbol("kClosedResolve"),tSe=Og&&Og.maxHeaderSize&&Number.isInteger(Og.maxHeaderSize)&&Og.maxHeaderSize>0?()=>Og.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},$9=()=>{};function sG(t){return t[sE]??t[ft]?.defaultPipelining??1}var WS=class extends SNe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:v,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ge,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new Ke("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ke("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ke("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ke("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new Ke("unsupported maxK Line truncated
`,this[HNe]=a??3e5,this[_Ne]=s??3e5,this[GNe]=p??!0,this[JS]=D,this[Wo]=null,this[WNe]=v>-1?v:-1,this[ft]=null,this[KNe]=_??100,this[XNe]=ue??262144,this[jNe]=fe??524288,this[ZNe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>zS(this,lt),this[zNe]=lt=>nG(this,lt)}get pipelining(){return this[sE]}set pipelining(e){this[sE]=e,this[Ko](!0)}get stats(){return new wNe(this)}get[qg](){return this[bn].length-this[wn]}get[Yg](){return this[wn]-this[Ki]}get[_g](){return this[bn].length-this[Ki]}get[FNe](){return!!this[ft]&&!this[Du]&&!this[ft].destroyed}get[VS](){return!!(this[ft]?.busy(null)||this[_g]>=(sG(this)||1)||this[qg]>0)}[kNe](e){iG(this),this.once("connect",e)}[JNe](e,r){let s=new NNe(this[Zn].origin,e,r);return this[bn].push(s),this[gA]||(dA.bodyLength(s.body)==null&&dA.isIterable(s.body)?(this[gA]=1,queueMicrotask(()=>zS(this))):this[Ko](!0)),this[gA]&&this[zo]!==2&&this[VS]&&(this[zo]=2),this[zo]<2}[qNe](){return new Promise(e=>{this[_g]?this[Wo]=e:e(null)})}[VNe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];dA.errorRequest(this,o,e)}let n=()=>{this[Wo]&&(this[Wo](),this[Wo]=null),r(null)};this[ft]?(this[ft].destroy(e,n),this[ft]=null):queueMicrotask(n),this[Ko]()})}};function nG(t,e){if(t[Yg]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[wn]===t[Ki]);let r=t[bn].splice(t[Ki]);for(let s=0;s<r.length;s++){let n=r[s];dA.errorRequest(t,n,e)}zi(t[_g]===0)}}function iG(t){zi(!t[Du]),zi(!t[ft]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let o=r.substring(1,i);zi(rG.isIPv6(o)),r=o}t[Du]=!0,Tu.beforeConnect.hasSubscribers&&Tu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg]}),t[Hg]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Gg]},(i,o)=>{if(i){eG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){dA.destroy(o.on("error",$9),new DNe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?eSe(t,o):$Ne(t,o)}catch(a){o.destroy().on("error",$9),eG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Du]=!1,o[YNe]=0,o[JS]=t[JS],o[RNe]=t,o[UNe]=null,Tu.connected.hasSubscribers&&Tu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],socket:o}),t.emit("connect",t[Zn],[t]),t[Ko]()})}function eG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Du]=!1,Tu.connectError.hasSubscribers&&Tu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[Yg]===0);t[qg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];dA.errorRequest(t,o,e)}else nG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function tG(t){t[zo]=0,t.emit("drain",t[Zn],[t])}function zS(t,e){t[gA]!==2&&(t[gA]=2,rSe(t,e),t[gA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function rSe(t,e){for(;;){if(t.destroyed){zi(t[qg]===0);return}if(t[Wo]&&!t[_g]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[VS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>tG(t))):tG(t);continue}if(t[qg]===0||t[Yg]>=(sG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[Xo]!==r.servername){if(t[Yg]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new TNe("servername changed"),()=>{t[ft]=null,zS(t)})}if(t[Du])return;if(!t[ft]){iG(t);return}if(t[ft].destroyed||t[ft].busy(r))return;!r.aborted&&t[ft].write(r)?t[wn]++:t[bn].splice(t[wn],1)}}oG.exports=WS});var KS=m((yXe,aG)=>{"use strict";var nE=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)}};aG.exports=class{constructor(){this.head=this.tail=new nE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nE),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 iE=m((bXe,mG)=>{"use strict";var{PoolStats:sSe}=ON(),nSe=oA(),iSe=KS(),{kConnected:XS,kSize:AG,kRunning:cG,kPending:uG,kQueued:Vg,kBusy:oSe,kFree:aSe,kUrl:ASe,kClose:cSe,kDestroy:uSe,kDispatch:lSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Jg=Symbol("queue"),jS=Symbol("closed resolve"),ZS=Symbol("onDrain"),lG=Symbol("onConnect"),dG=Symbol("onDisconnect"),gG=Symbol("onConnectionError"),$S=Symbol("get dispatcher"),hG=Symbol("add client"),fG=Symbol("remove client"),eT=class extends nSe{[Jg]=new iSe;[Vg]=0;[Pt]=[];[dr]=!1;[ZS](e,r,s){let n=this[Jg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[Vg]--,i 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())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{InvalidArgumentError:ADe}=oe(),{runtimeFeatures:cDe}=Vi();function uDe(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 Oq=cDe.has("crypto")?Q("node:crypto"):null,lDe=Oq?.hash?t=>Oq.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Hq(t){return Array.isArray(t)&&(t.length&1)===0}function dDe(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 gDe(t){let e={};if(!t)return e;if(Hq(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 _q=["record","playback","update"];function hDe(t){if(!_q.includes(t))throw new ADe(`Invalid snapshot mode: ${t}. Must be one of: ${_q.join(", ")}`)}Gq.exports={createHeaderFilters:uDe,hashId:lDe,isUndiciHeaders:Hq,normalizeHeaders:gDe,isUrlExcludedFactory:dDe,validateSnapshotMode:hDe}});var jq=m((rje,Xq)=>{"use strict";var{writeFile:fDe,readFile:mDe,mkdir:pDe}=Q("node:fs/promises"),{dirname:EDe,resolve:Yq}=Q("node:path"),{setTimeout:CDe,clearTimeout:qq}=Q("node:timers"),{InvalidArgumentError:Vq,UndiciError:IDe}=oe(),{hashId:BDe,isUrlExcludedFactory:QDe,normalizeHeaders:Jq,createHeaderFilters:Wq}=p2();function oh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Jq(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:zq(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function zq(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 Kq(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 ah(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 BDe(r)}var E2=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=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=Wq(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=QDe(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=oh(e,this.#a,this.matchOptions),n=ah(s),i=Jq(r.headers),o={statusCode:r.statusCode,headers:Kq(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.#n&&this.#s&&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=oh(e,this.#a,this.matchOptions),s=ah(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.#s;if(!r)throw new Vq("Snapshot path is required");try{let s=await mDe(Yq(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 IDe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");let s=Yq(r);await pDe(EDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fDe(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${as} (
-- 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${as}_getValuesQuery ON cacheInterceptorV${as}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${as}_deleteByUrlQuery ON cacheInterceptorV${as}(deleteAt);
`),this.#s=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${as}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Yi} SET
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${as} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -152,7 +152,7 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Yi} (
INSERT INTO cacheInterceptorV${as} (
url,
method,
body,
@@ -166,214 +166,77 @@ ${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${as} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${as}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${as} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${as}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Yi}
FROM cacheInterceptorV${as}
ORDER BY cachedAt DESC
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){_2(e);let r=this.#l(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){_2(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(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.#d(),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))}createWriteStream(e,r){_2(e),ARe(r);let s=0,n=[],i=this;return new aRe({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.#u(e))}#d(){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}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,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 d in u)if(!cRe(n[d],u[d])){c=!1;break}}if(c)return A}}};function cRe(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,s)=>r===e[s]):t===e}});var SA=m((bje,nJ)=>{"use strict";var{kConstruct:uRe}=Me(),{kEnumerableProperty:qu}=ce(),{iteratorMixin:lRe,isValidHeaderName:lh,isValidHeaderValue:$V}=rs(),{webidl:ye}=Yt(),G2=Q("node:assert"),LE=Q("node:util");function ZV(t){return t===10||t===13||t===9||t===32}function eJ(t){let e=0,r=t.length;for(;r>e&&ZV(t.charCodeAt(r-1));)--r;for(;r>e&&ZV(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function tJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y2(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)Y2(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y2(t,e,r){if(r=eJ(r),lh(e)){if(!$V(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sJ(t)==="immutable")throw new TypeError("immutable");return vE(t).append(e,r,!1)}function dRe(t){let e=vE(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 rJ(t,e){return t[0]<e[0]?-1:1}var PE=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.values()}get entriesList(){let e=[];if(this.headersMap.size!==0)for(let Line truncated
${i}`;break;case"retry":lW(i)&&(r[n]=i);break;case"id":dW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&lW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&dW(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}}};gW.exports={EventSourceStream:ND}});var QW=m((Kje,BW)=>{"use strict";var{pipeline:DUe}=Q("node:stream"),{fetching:xUe}=mh(),{makeRequest:RUe}=Ju(),{webidl:hr}=Yt(),{EventSourceStream:kUe}=hW(),{parseMIMEType:FUe}=vs(),{createFastMessageEvent:MUe}=cC(),{isNetworkError:fW}=gh(),{kEnumerableProperty:UA}=ce(),{environmentSettingsObject:mW}=rs(),pW=!1,EW=3e3,yh=0,CW=1,bh=2,UUe="anonymous",LUe="use-credentials",rl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=yh;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),pW||(pW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hr.converters.USVString(e),r=hr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=mW,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=UUe;r.withCredentials===!0&&(o=LUe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mW.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=RUe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===bh)return;this.#s=yh;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!fW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(fW(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?FUe(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.#s=CW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new kUe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(MUe(A.type,A.options))}});DUe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=xUe(e)}#c(){this.#s!==bh&&(this.#s=yh,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===yh&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hr.brandCheck(this,t),this.#s!==bh&&(this.#s=bh,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hr.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=hr.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=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},IW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:CW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bh,writable:!1}};Object.defineProperties(rl,IW);Object.defineProperties(rl.prototype,IW);Object.defineProperties(rl.prototype,{close:UA,onerror:UA,onmessage:UA,onopen:UA,readyState:UA,url:UA,withCredentials:UA});hr.converters.EventSourceInitDict=hr.dictionaryConverter([{key:"withCredentials",converter:hr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hr.converters.any},{key:"node",converter:hr.dictionaryConverter([{key:"reconnectionTime",converter:hr.converters["unsigned long"],defaultValue:()=>EW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);BW.exports={EventSource:rl,defaultReconnectionTime:EW}});var TW=m((Xje,H)=>{"use strict";var PUe=jo(),bW=Qg(),vUe=hA(),OUe=bG(),_Ue=TG(),HUe=pA(),GUe=IT(),YUe=mT(),qUe=lY(),VUe=pY(),JUe=IY(),wW=oe(),QC=ce(),{InvalidArgumentError:BC}=wW,sl=tq(),WUe=aA(),zUe=n2(),{MockCallHistory:KUe,MockCallHistoryLog:XUe}=a2(),jUe=m2( 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}H.exports.fetch=function(e,r=void 0){return oLe(e,r).catch(s=>{throw yW?SW(s,yW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=SA().Headers;H.exports.Response=gh().Response;H.exports.Request=Ju().Request;H.exports.FormData=V0().FormData;var{setGlobalOrigin:aLe,getGlobalOrigin:ALe}=iS();H.exports.setGlobalOrigin=aLe;H.exports.getGlobalOrigin=ALe;var{CacheStorage:cLe}=a7(),{kConstruct:uLe}=Me();H.exports.caches=new cLe(uLe);var{deleteCookie:lLe,getCookies:dLe,getSetCookies:gLe,setCookie:hLe,parseCookie:fLe}=I7();H.exports.deleteCookie=lLe;H.exports.getCookies=dLe;H.exports.getSetCookies=gLe;H.exports.setCookie=hLe;H.exports.parseCookie=fLe;var{parseMIMEType:mLe,serializeAMimeType:pLe}=vs();H.exports.parseMIMEType=mLe;H.exports.serializeAMimeType=pLe;var{CloseEvent:ELe,ErrorEvent:CLe,MessageEvent:ILe}=cC(),{WebSocket:BLe,ping:QLe}=eW();H.exports.WebSocket=BLe;H.exports.CloseEvent=ELe;H.exports.ErrorEvent=CLe;H.exports.MessageEvent=ILe;H.exports.ping=QLe;H.exports.WebSocketStream=AW().WebSocketStream;H.exports.WebSocketError=BD().WebSocketError;H.exports.request=wh(sl.request);H.exports.stream=wh(sl.stream);H.exports.pipeline=wh(sl.pipeline);H.exports.connect=wh(sl.connect);H.exports.upgrade=wh(sl.upgrade);H.exports.MockClient=zUe;H.exports.MockCallHistory=KUe;H.exports.MockCallHistoryLog=XUe;H.exports.MockPool=ZUe;H.exports.MockAgent=jUe;H.exports.SnapshotAgent=$Ue;H.exports.mockErrors=eLe;var{EventSource:yLe}=QW();H.exports.EventSource=yLe;function bLe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=bLe});var Nh=m(ua=>{"use strict";ua.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ua.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ua.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ua.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ua.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ua.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ua.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 xW=m(($je,DW)=>{"use strict";var{asciiLowercase:yC,solelyContainsHTTPTokenCodePoints:wLe,soleyContainsHTTPQuotedStringTokenCodePoints:NLe}=Nh();DW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=yC(String(e)),this._map.get(e)}has(e){return e=yC(String(e)),this._map.has(e)}set(e,r){if(e=yC(String(e)),r=String(r),!wLe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!NLe(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=yC(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 FW=m((eZe,kW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:SLe,removeTrailingHTTPWhitespace:RW,isHTTPWhitespaceChar:TLe,solelyContainsHTTPTokenCodePoints:SD,soleyContainsHTTPQuotedStringTokenCodePoints:DLe,asciiLowercase:TD,collectAnHTTPQuotedString:xLe}=Nh();kW.exports=t=>{t=SLe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=RW(s),s.length===0||!SD(s))return null;let n={type:TD(r),subtype:TD(s),parameters:new Map};for(;e<t.length;){for(++e;TLe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=TD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=xLe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=RW(o),o==="")continue}i.length>0&&SD(i)&&DLe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var UW=m((tZe,MW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:RLe}=Nh();MW.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+="=",(!RLe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var OW=m((sZe,vW)=>{"use strict";var kLe=xW(),FLe=FW(),MLe=UW(),{asciiLowercase:LW,solelyContainsHTTPTokenCodePoints:PW}=Nh();vW.exports=class{constructor(e){e=String(e);let r=FLe(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 kLe(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=LW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PW(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=LW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return MLe(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 KW=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.getProxyUrl=XLe;SC.checkBypass=zW;function XLe(t){let e=t.protocol==="https:";if(zW(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 NC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new NC(`http://${r}`)}else return}function zW(t){if(!t.hostname)return!1;let e=t.hostname;if(jLe(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`,U,U,y,s);var v=y.type==="*"?sx:y.type==="?"?rx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+v+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ge=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,lt=fe;for(E=0;E<Ie;E++)lt=lt.replace(/\)[+*?]?/,"");fe=lt;var Es="";fe===""&&e!==LC&&(Es="$");var Ia=Ne+Ge+fe+Es+ue;s=Ia}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return _3e(t);var Ba=r.nocase?"i":"";try{var pB=new RegExp("^"+s+"$",Ba)}catch{return new RegExp("$.")}return pB._glob=t,pB._src=s,pB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=O3e;function O3e(){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?sx:e.dot?R3e:k3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===vA?r:typeof o=="string"?H3e(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}ds.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.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;Rh.sep!=="/"&&(e=e.split(Rh.sep).join("/")),e=e.split(iK),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};bt.prototype.matchOne=function(t,e,r){return e.indexOf(vA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===vA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vA){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 d=t.slice(s,s+A.length);if(!this._matchOne(d,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 E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===vA?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var v=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[v--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.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],d=a[1];r<=d;){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};bt.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===vA)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)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 _3e(t){return t.replace(/\\(.)/g,"$1")}function H3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Al=m((tet,uK)=>{"use strict";var J3e="2.0.0",W3e=Number.MAX_SAFE_INTEGER||9007199254740991,z3e=16,K3e=250,X3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:z3e,MAX_SAFE_BUILD_LENGTH:K3e,MAX_SAFE_INTEGER:W3e,RELEASE_TYPES:X3e,SEMVER_SPEC_VERSION:J3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kh=m((ret,lK)=>{"use strict";var j3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lK.exports=j3e});var cl=m((ci,dK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nx,MAX_SAFE_BUILD_LENGTH:Z3e,MAX_LENGTH:$3e}=Al(),eve=kh();ci=dK.exports={};var tve=ci.re=[],rve=ci.safeRe=[],G=ci.src=[],sve=ci.safeSrc=[],Y=ci.t={},nve=0,ix="[a-zA-Z0-9-]",ive=[["\\s",1],["\\d",$3e],[ix,Z3e]],ove=t=>{for(let[e,r]of ive)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+"+iI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=kOe()+e+" "+t[0]}function kOe(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FOe(...t){return process.stderr.write(nI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function MOe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function UOe(){return process.env.DEBUG}function LOe(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}iI.exports=Px()(Ot);var{formatters:Nj}=iI.exports;Nj.o=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nj.O=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts)}});var oI=m((Ort,_x)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_x.exports=Ij():_x.exports=Sj()});var xj=m(Or=>{"use strict";var POe=Or&&Or.__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]})),vOe=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tj=Or&&Or.__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)&&POe(e,t,r);return vOe(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var OOe=Tj(Q("http")),_Oe=Tj(Q("https"));async function Dj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=Dj;async function HOe(t){let r=(await Dj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=HOe;function GOe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?_Oe:OOe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Or.req=GOe});var Gx=m(gs=>{"use strict";var kj=gs&&gs.__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]})),YOe=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fj=gs&&gs.__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)&&kj(e,t,r);return YOe(e,t),e},qOe=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kj(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var VOe=Fj(Q("net")),Rj=Fj(Q("http")),JOe=Q("https");qOe(xj(),gs);var ui=Symbol("AgentBaseInternalState"),Hx=class extends Rj.Agent{constructor(e){super(e),this[ui]={}}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 VOe.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)?JOe.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 Rj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ui].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ui].currentSocket;if(this[ui].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ui].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ui]&&(this[ui].defaultPort=e)}get protocol(){return this[ui].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ui]&&(this[ui].protocol=e)}};gs.Agent=Hx});var Mj=m(fl=>{"use strict";var WOe=fl&&fl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fl,"__esModule",{value:!0});fl.parseProxyResponse=void 0;var zOe=WOe(oI()),aI=(0,zOe.default)("https-proxy-agent:parse-proxy-response");function KOe(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(),aI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),aI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.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){aI("have not received end of HTTP headers yet..."),i();return}let h=d.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 E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),v=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,v]:Array.isArray(k)?k.push(v):y[U]=v}aI("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}fl.parseProxyResponse=KOe});var _j=m(Zs=>{"use strict";var XOe=Zs&&Zs.__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]})),jOe=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vj=Zs&&Zs.__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)&&XOe(e,t,r);return jOe(e,t),e},Oj=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var AI=vj(Q("net")),Uj=vj(Q("tls")),ZOe=Oj(Q("assert")),$Oe=Oj(oI()),e6e=Gx(),t6e=Q("url"),r6e=Mj(),Gh=(0,$Oe.default)("https-proxy-agent"),Lj=t=>t.servername===void 0&&t.host&&!AI.isIP(t.host)?{...t,servername:t.host}:t,cI=class extends e6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new t6e.URL(e):e,this.proxyHeaders=r?.headers??{},Gh("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?Pj(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:"?(Gh("Creating `tls.Socket`: %o",this.connectOpts),n=Uj.connect(Lj(this.connectOpts))):(Gh("Creating `net.Socket`: %o",this.connectOpts),n=AI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=AI.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,r6e.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",s6e),r.secureEndpoint?(Gh("Upgrading socket connection to TLS"),Uj.connect({...Pj(Lj(r),"host","path","port"),socket:n})):n;n.destroy();let d=new AI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Gh("Replaying proxy buffer for failed request"),(0,ZOe.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};cI.protocols=["http","https"];Zs.HttpsProxyAgent=cI;function s6e(t){t.resume()}function Pj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Yj=m($s=>{"use strict";var n6e=$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]})),i6e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gj=$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)&&n6e(e,t,r);return i6e(e,t),e},o6e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var a6e=Gj(Q("net")),A6e=Gj(Q("tls")),c6e=o6e(oI()),u6e=Q("events"),l6e=Gx(),Hj=Q("url"),ml=(0,c6e.default)("http-proxy-agent"),uI=class extends l6e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hj.URL(e):e,this.proxyHeaders=r?.headers??{},ml("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?d6e(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 Hj.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;ml("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ml("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),ml("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ml("Creating `tls.Socket`: %o",this.connectOpts),i=A6e.connect(this.connectOpts)):(ml("Creating `net.Socket`: %o",this.connectOpts),i=a6e.connect(this.connectOpts)),await(0,u6e.once)(i,"connect"),i}};uI.protocols=["http","https"];$s.HttpProxyAgent=uI;function d6e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var uZ=m(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.state=void 0;dI.state={instrumenterImplementation:void 0}});var QZ=m(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.state=void 0;mI.state={operationRequestMap:new WeakMap}});var ere=m((LIt,vHe)=>{vHe.exports={name:"@actions/cache",version:"6.0.1",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 rre=m((PIt,tre)=>{var OHe=ere();tre.exports={version:OHe.version}});var xI=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.isJsonObject=Nl.typeofJsonValue=void 0;function JHe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Nl.typeofJsonValue=JHe;function WHe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Nl.isJsonObject=WHe});var kI=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.base64encode=Sl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),RI=[];for(let t=0;t<so.length;t++)RI[so[t].charCodeAt(0)]=t;RI[45]=so.indexOf("+");RI[95]=so.indexOf("/");function zHe(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=RI[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)}Sl.base64decode=zHe;function KHe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}Sl.base64encode=KHe});var sre=m(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.utf8read=void 0;var YR=t=>String.fromCharCode.apply(String,t);function XHe(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(YR(s)),n=0);return r.length?(n&&r.push(YR(s.slice(0,n))),r.join("")):YR(s.slice(0,n))}FI.utf8read=XHe});var Xh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var jHe;(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])})(jHe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function ZHe(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=ZHe;var $He;(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"})($He=di.WireType||(di.WireType={}))});var UI=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.varint32read=_r.varint32write=_r.int64toString=_r.int64fromString=_r.varint64write=_r.varint64read=void 0;function e9e(){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")}_r.varint64read=e9e;function t9e(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)}}_r.varint64write=t9e;var MI=65536*65536;function r9e(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>=MI&&(n=n+(s/MI|0),s=s%MI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=r9e;function s9e(t,e){if(e>>>0<=2097151)return""+(MI*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,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}_r.int64toString=s9e;function n9e(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)}}_r.varint32write=n9e;function i9e(){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}_r.varint32read=i9e});var Ea=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PbLong=pa.PbULong=pa.detectBi=void 0;var jh=UI(),He;function nre(){let t=new DataView(new ArrayBuffer(8));He=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}pa.detectBi=nre;nre();function ire(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ore=/^-?[0-9]+$/,PI=4294967296,LI=2147483648,vI=c Line truncated
`)}};AB.RpcError=mk});var Ek=m(uB=>{"use strict";Object.defineProperty(uB,"__esModule",{value:!0});uB.mergeRpcOptions=void 0;var Lre=Et();function SGe(t,e){if(!e)return t;let r={};cB(t,r),cB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Lre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cB(t.meta,r.meta),cB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}uB.mergeRpcOptions=SGe;function cB(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 Ik=m(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});WA.Deferred=WA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=WA.DeferredState||(WA.DeferredState={}));var Ck=class{constructor(e=!0){this._state=fi.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!==fi.PENDING)throw new Error(`cannot resolve ${fi[this.state].toLowerCase()}`);this._resolve(e),this._state=fi.RESOLVED}reject(e){if(this.state!==fi.PENDING)throw new Error(`cannot reject ${fi[this.state].toLowerCase()}`);this._reject(e),this._state=fi.REJECTED}resolvePending(e){this._state===fi.PENDING&&this.resolve(e)}rejectPending(e){this._state===fi.PENDING&&this.reject(e)}};WA.Deferred=Ck});var Qk=m(lB=>{"use strict";Object.defineProperty(lB,"__esModule",{value:!0});lB.RpcOutputStreamController=void 0;var Pre=Ik(),zA=Et(),Bk=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){zA.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){zA.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){zA.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(){zA.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;zA.assert(e,"bad state"),zA.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 Pre.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;zA.assert(s.state==Pre.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};lB.RpcOutputStreamController=Bk});var bk=m(Ml=>{"use strict";var TGe=Ml&&Ml.__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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.UnaryCall=void 0;var yk=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 TGe(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}})}};Ml.UnaryCall=yk});var Nk=m(Ul=>{"use strict";var DGe=Ul&&Ul.__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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.ServerStreamingCall=void 0;var wk=class{constructor(e Line truncated
`:Ip(t.children):Kc(t)?Ip(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!za(t)?Ui(t.children):Nr(t)?t.data:""}function zd(t){return Array.isArray(t)?t.map(zd).join(""):ve(t)&&(t.type===Be.Tag||Kc(t))?zd(t.children):Nr(t)?t.data:""}function Zc(t){return ve(t)?t.children:[]}function aO(t){return t.parent||null}function B1(t){let e=aO(t);if(e!=null)return Zc(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 Ope(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _pe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Hpe(t){return t.name}function Bp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Qp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function Li(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 Gpe(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 Ype(t,e){if(Li(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 qpe(t,e){Li(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 Vpe(t,e){if(Li(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 Jpe(t,e){Li(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 $c(t,e,r=!0,s=1/0){return yp(t,Array.isArray(e)?e:[e],r,s)}function yp(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&&ve(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Wpe(t,e){return e.find(t)}function bp(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&ve(i)&&i.children.length>0){let o=bp(t,i.children,!0);if(o)return o}}return null}function AO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&AO(t,r.children))}function zpe(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]++];q(i)&&t(i)&&r.push(i),ve(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var wp={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(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=>Nr(e)&&t(e.data):e=>Nr(e)&&e.data===t}};function Q1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function Kpe(t,e){return r=>t(r)||e(r)}function cO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(wp,r)?wp[r](s):Q1(r,s)});return e.length===0?null:e.reduce(Kpe)}function Xpe(t,e){let r=cO(t);return r?r(e):!0}function jpe(t,e,r,s=1/0){let n=cO(t);return n?$c(n,e,r,s):[]}function Zpe(t,e,r=!0){return Array.isArray(e)||(e=[e]),bp(Q1("id",t),e,r)}function Ka(t,e,r=!0,s=1/0){return $c(wp.tag_name(t),e,r,s)}function $pe(t,e,r=!0,s=1/0){return $c(Q1("class",t),e,r,s)}function e0e(t,e,r=!0,s=1/0){return $c(wp.tag_type(t),e,r,s)}function t0e(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 Ts;(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"})(Ts||(Ts={}));function uO(t,e){let r=[],s=[];if(t===e)return 0;let n=ve(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ve(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 Ts.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:a===t?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function To(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=uO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function y1(t){let e=Np(o0e,t);return e?e.name==="feed"?r0e(e):s0e(e):null}function r0e(t){var e;let r=t.children,s={type:"atom",items:Ka("entry",r).map(o=>{var a;let{children:A}=o,c={media:lO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=Np("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Do("summary",A)||Do("content",A);d&&(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 Rs=ae(Ro(),1);var _1={};function H1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function G1(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 O1(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 v1=(t,e,r,s,n)=>{let i=n(e,O1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},Op={is:v1,matches:v1,where:v1,not(t,e,r,s,n){let i=n(e,O1(r),s);return i===Rs.default.falseFunc?t:i===Rs.default.trueFunc?Rs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=O1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tg))?[_1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=H1(A,i);if(a&&A!==Rs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...G1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function $O(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in Op))throw new Error(`Unknown pseudo-class :${o}(${a})`);return Op[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:vp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ZO.parse)(c);return Op.is(t,u,r,s,n)}if(typeof A=="function")return P1(A,o,a,1),u=>A(u,a)&&t(u);if(o in Au)return Au[o](t,a,r,s);if(o in sg){let u=sg[o];return P1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ae(ou(),1);function Y1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function e6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ks.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ks.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ks.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()),zO[e.action](t,e,r)}case ks.SelectorType.Pseudo:return $O(t,e,r,s,n);case ks.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 ks.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=Y1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=Y1(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=Y1(c,i));return!1};case ks.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ks.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ks.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case ks.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 d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case ks.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function t6(t,e,r){let s=_p(t,e,r);return H1(s,e.adapter)}function _p(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return Hp(s,e,r)}function r6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(r6)))}var j0e={type:pn.SelectorType.Descendant},Z0e={type:"_flexibleDescendant"},$0e={type:pn.SelectorType.Pseudo,name:"scope",data:null};function eEe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===_1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(E6,`\r
`)}}).toArray()}var iw={};nn(iw,{extract:()=>fCe});function hCe(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 fCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=hCe(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 Mo=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}}};Mo.prototype.cheerio="[cheerio object]";Mo.prototype.splice=Array.prototype.splice;Mo.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Mo.prototype,k1,tw,rw,sw,nw,iw);function C6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=zc(n),a=t(s,o,i,null);class A extends Mo{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Ds(u))return u;let f=zc(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Ds(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Kd(u)?t(u,f,!1,null).children:mCe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Kd(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Ds(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,b1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function mCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var pCe=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]),Ve="\uFFFD",C;(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"})(C||(C={}));var ur={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Wp(t){return t>=55296&&t<=57343}function I6(t){return t>=56320&&t<=57343}function B6(t,e){return(t-55296)*1024+9216+e}function zp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Kp(t){return t>=64976&&t<=65007||pCe.has(t)}var x;(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:
`)}`}},wC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as WLe,existsSync as zLe}from"fs";import{EOL as KLe}from"os";var nl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zLe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(WLe(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${KLe}`)}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 UD=ae(jW(),1),ZW=ae(Ap(),1),APe=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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function $W(t){return new UD.HttpClient().getAgent(t)}function cPe(t){return new UD.HttpClient().getAgentDispatcher(t)}function ez(t){let e=cPe(t);return(s,n)=>APe(this,void 0,void 0,function*(){return(0,ZW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function tz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function la(){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 kC(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)=>kC.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 rz(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 sz(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 nz=Function.bind,iz=nz.bind(nz);function oz(t,e,r){let s=iz(sz,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]=iz(rz,null).apply(null,i)})}function lPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return oz(r,e,t),r}function dPe(){let t={registry:{}},e=kC.bind(null,t);return oz(e,t),e}var az={Singular:lPe,Collection:dPe};var gPe="0.0.0-development",hPe=`octokit-endpoint.js/${gPe} ${la()}`,fPe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":hPe},mediaType:{format:""}};function mPe(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function pPe(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 uz(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{pPe(e[s])?s in t?r[s]=uz(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function Az(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function PD(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=mPe(r.headers),Az(r),Az(r.headers);let s=uz(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine 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 jPe=class extends Error{constructor(t,e,r){super(XPe(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},ZPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],$Pe=["query","method","url"],Rz=/\/api\/v3\/?$/;function e3e(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($Pe.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)=>ZPe.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 Rz.test(i)&&(n.url=i.replace(Rz,"/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 jPe(n,a,o.data)}return o.data.data})}function qD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>e3e(r,n,i),{defaults:qD.bind(null,r),endpoint:r.endpoint})}var GZe=qD(Dh,{headers:{"user-agent":`octokit-graphql.js/${KPe} ${la()}`},method:"POST",url:"/graphql"});function kz(t){return qD(t,{method:"POST",url:"/graphql"})}var VD="(?:[a-zA-Z0-9_-]+)",Fz="\\.",Mz=new RegExp(`^${VD}${Fz}${VD}${Fz}${VD}$`),t3e=Mz.test.bind(Mz);async function r3e(t){let e=t3e(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 s3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function n3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=s3e(t),e(n)}var Uz=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(r3e.bind(null,e),{hook:n3e.bind(null,e)})};var JD="7.0.6";var Lz=()=>{},i3e=console.warn.bind(console),o3e=console.error.bind(console);function a3e(t={}){return typeof t.debug!="function"&&(t.debug=Lz),typeof t.info!="function"&&(t.info=Lz),typeof t.warn!="function"&&(t.warn=i3e),typeof t.error!="function"&&(t.error=o3e),t}var Pz=`octokit-core.js/${JD} ${la()}`,UC=class{static VERSION=JD;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 az.Collection,s={baseUrl:Dh.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} ${Pz}`:Pz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Dh.defaults(s),this.graphql=kz(this.request).defaults(s),this.log=a3e(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=Uz(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 WD="17.0.0";var A3e={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}"],createOrgVariable:["POST /orgs/{or 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"}};TI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var DI=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"}};DI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _He=ae(rre(),1);var Xre=ae(Yre(),1),Ct=ae(Et(),1),ps=ae(Et(),1),KA=ae(Et(),1),XA=ae(Et(),1),jA=ae(Et(),1);var Lk=ae(Et(),1),Pk=ae(Et(),1),Wre=ae(Et(),1),zre=ae(Et(),1),Kre=ae(Et(),1);var Fk=ae(Et(),1),Mk=ae(Et(),1),qre=ae(Et(),1),Vre=ae(Et(),1),Jre=ae(Et(),1),Uk=class extends Jre.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,Vre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qre.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?Mk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Fk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Fk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Mk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hB=new Uk;var vk=class extends Kre.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:()=>hB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Wre.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(hB.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?Pk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Lk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hB.internalBinaryWrite(e.scope[i],r.tag(2,Lk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Pk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new vk;var Ok=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>mi},{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,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.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=mi.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?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&mi.internalBinaryWrite(e.metadata,r.tag(1,Ct.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,Ct.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ct.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ps.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jre=new Ok,_k=class extends jA.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,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.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?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,Ct.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;sYe.push(s),Fi(s)}function nse(t=!0){if(sse.length>0){No(`This job uses deprecated functionality from the '${fB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of sse)jt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var ose="GRADLE_ACTION_ID";var ise=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ase("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return ar("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return ar("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return ar("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return ar("develocity-token-expiry")}getDevelocityInjectionEnabled(){return mB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return mB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return mB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return mB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new zk}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:(No("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},zk=class{getUrl(){return Wk("gradle-plugin-repository-url")}getUsername(){return Wk("gradle-plugin-repository-username")}getPassword(){return Wk("gradle-plugin-repository-password")}};function fB(){return process.env[ose]}function ase(t){L4(ose,t)}function Wk(t){let e=ar(t);if(e.length>0)return e}function Ase(t,e=!1){let r=ar(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 mB(t){if(ar(t)!=="")return Ase(t)}var Kk=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function cse(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)up(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&jt(e.stack)}else t instanceof Kk?(Fi(String(t)),t.stack&&jt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&jt(t.stack))}async function iYe(){try{fB()==="gradle/wrapper-validation-action"&&Jk("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),ase("gradle/actions/wrapper-validation");let t=await JW(use.resolve("."),ar("allow-snapshots")==="true",ar("allow-checksums").split(","));if(t.isValid()){jt(t.toDisplayString());let e=+ar("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}.`;Fi(r)}}else Fi(`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&&P4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);nse(!1)}catch(t){cse(t)}}iYe();export{iYe 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 *)
*/
//# 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": ";s1BAAA,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'
+238 -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,44 @@ 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.
```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 +177,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.
@@ -243,18 +187,22 @@ Specifically:
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.
## How Gradle User Home caching works
## Enhanced Caching
### Properties of the GitHub Actions cache
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 +214,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 +238,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 +252,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 +266,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 +360,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 +420,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).
@@ -465,20 +534,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 +576,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 +614,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 +626,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 +684,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 +718,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 +736,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 +766,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 +817,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 +839,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 +857,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 +879,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 +911,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 +921,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.4.2` 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 +979,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
@@ -933,4 +1007,3 @@ Each of the plugins is signed by Gradle, and you can simply add the following sn
</trusted-key>
</trusted-keys>
```
+4 -4
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
@@ -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
+8
View File
@@ -9,6 +9,14 @@ 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.
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
+1148 -2877
View File
File diff suppressed because it is too large. Load diff
+18 -26
View File
@@ -5,7 +5,6 @@
"type": "module",
"description": "Execute Gradle Build",
"scripts": {
"postinstall": "patch-package",
"prettier-write": "prettier --write 'src/**/*.ts'",
"prettier-check": "prettier --check 'src/**/*.ts'",
"lint": "eslint 'src/**/*.ts'",
@@ -36,45 +35,38 @@
"node": ">=24.0.0"
},
"dependencies": {
"@actions/artifact": "6.1.0",
"@actions/cache": "4.0.5",
"@actions/core": "3.0.0",
"@actions/artifact": "6.2.1",
"@actions/cache": "6.0.1",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.0.0",
"@actions/glob": "0.6.1",
"@actions/http-client": "4.0.0",
"@actions/github": "9.1.1",
"@actions/glob": "0.7.0",
"@actions/http-client": "4.0.1",
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.7.4",
"semver": "7.8.3",
"string-argv": "0.3.2",
"unhomoglyph": "1.0.6",
"which": "6.0.1"
"which": "7.0.0"
},
"devDependencies": {
"@jest/globals": "30.2.0",
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "25.3.0",
"@types/node": "25.9.2",
"@types/semver": "7.7.1",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.56.1",
"dedent": "1.7.1",
"esbuild": "0.27.3",
"eslint": "10.0.1",
"globals": "17.3.0",
"jest": "30.2.0",
"@typescript-eslint/eslint-plugin": "8.61.0",
"dedent": "1.7.2",
"esbuild": "0.28.0",
"eslint": "10.4.1",
"globals": "17.6.0",
"jest": "30.4.2",
"nock": "15.0.0",
"npm-run-all": "4.1.5",
"patch-package": "8.0.1",
"prettier": "3.8.1",
"ts-jest": "29.4.6",
"prettier": "3.8.4",
"ts-jest": "29.4.11",
"typescript": "5.9.3"
},
"overrides": {
"@azure/logger": "1.1.4",
"@octokit/request": "8.4.1",
"@octokit/request-error": "5.1.1",
"@octokit/plugin-paginate-rest": "9.2.2"
}
}
-248
View File
@@ -1,248 +0,0 @@
diff --git a/node_modules/@actions/cache/lib/cache.d.ts b/node_modules/@actions/cache/lib/cache.d.ts
index ef0928b..d06e675 100644
--- a/node_modules/@actions/cache/lib/cache.d.ts
+++ b/node_modules/@actions/cache/lib/cache.d.ts
@@ -21,7 +21,8 @@ export declare function isFeatureAvailable(): boolean;
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
* @returns string returns the key for the cache hit, otherwise returns undefined
*/
-export declare function restoreCache(paths: string[], primaryKey: string, restoreKeys?: string[], options?: DownloadOptions, enableCrossOsArchive?: boolean): Promise<string | undefined>;
+export declare function restoreCache(paths: string[], primaryKey: string, restoreKeys?: string[], options?: DownloadOptions, enableCrossOsArchive?: boolean): Promise<CacheEntry | undefined>;
+
/**
* Saves a list of files with the specified key
*
@@ -31,4 +32,12 @@ export declare function restoreCache(paths: string[], primaryKey: string, restor
* @param options cache upload options
* @returns number returns cacheId if the cache was saved successfully and throws an error if save fails
*/
-export declare function saveCache(paths: string[], key: string, options?: UploadOptions, enableCrossOsArchive?: boolean): Promise<number>;
+export declare function saveCache(paths: string[], key: string, options?: UploadOptions, enableCrossOsArchive?: boolean): Promise<CacheEntry>;
+
+// PATCHED: Add `CacheEntry` as return type for save/restore functions
+// This allows us to track and report on cache entry sizes.
+export declare class CacheEntry {
+ key: string;
+ size?: number;
+ constructor(key: string, size?: number);
+}
diff --git a/node_modules/@actions/cache/lib/cache.js b/node_modules/@actions/cache/lib/cache.js
index 41f2a37..2fe1600 100644
--- a/node_modules/@actions/cache/lib/cache.js
+++ b/node_modules/@actions/cache/lib/cache.js
@@ -165,26 +165,29 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`);
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
core.info('Cache restored successfully');
- return cacheEntry.cacheKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // warn on cache restore failure and continue build
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to restore: ${error.message}`);
- }
- else {
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
+
+ // PATCHED - Include size of restored entry
+ return new CacheEntry(cacheEntry.cacheKey, archiveFileSize);
}
+ // PATCHED - propagate errors
+ // catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else {
+ // // warn on cache restore failure and continue build
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to restore: ${error.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to restore: ${error.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -257,26 +260,29 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
}
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
core.info('Cache restored successfully');
- return response.matchedKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // Supress all non-validation cache related errors because caching should be optional
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to restore: ${error.message}`);
- }
- else {
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
+
+ // PATCHED - Include size of restored entry
+ return new CacheEntry(response.matchedKey, archiveFileSize);
}
+ // PATCHED - propagate errors
+ // catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else {
+ // // Supress all non-validation cache related errors because caching should be optional
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to restore: ${error.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to restore: ${error.message}`);
+ // }
+ // }
+ //}
finally {
try {
if (archivePath) {
@@ -367,27 +373,31 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
}
core.debug(`Saving Cache (ID: ${cacheId})`);
yield cacheHttpClient.saveCache(cacheId, archivePath, '', options);
+
+ // PATCHED - Include size of saved entry
+ return new CacheEntry(key, archiveFileSize);
}
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else if (typedError.name === ReserveCacheError.name) {
- core.info(`Failed to save: ${typedError.message}`);
- }
- else {
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to save: ${typedError.message}`);
- }
- else {
- core.warning(`Failed to save: ${typedError.message}`);
- }
- }
- }
+ // PATCHED - propagate errors
+ //catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else if (typedError.name === ReserveCacheError.name) {
+ // core.info(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to save: ${typedError.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -471,27 +481,31 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
}
cacheId = parseInt(finalizeResponse.entryId);
+
+ // PATCHED - Include size of saved entry
+ return new CacheEntry(key, archiveFileSize);
}
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else if (typedError.name === ReserveCacheError.name) {
- core.info(`Failed to save: ${typedError.message}`);
- }
- else {
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to save: ${typedError.message}`);
- }
- else {
- core.warning(`Failed to save: ${typedError.message}`);
- }
- }
- }
+ // PATCHED - propagate errors
+ //catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else if (typedError.name === ReserveCacheError.name) {
+ // core.info(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to save: ${typedError.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -504,4 +518,12 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
return cacheId;
});
}
+// PATCHED - CacheEntry class
+class CacheEntry {
+ constructor(key, size) {
+ this.key = key;
+ this.size = size;
+ }
+}
+
//# sourceMappingURL=cache.js.map
\ No newline at end of file
@@ -5,7 +5,7 @@ import * as dependencyGraph from '../../dependency-graph'
import {parseArgsStringToArgv} from 'string-argv'
import {
BuildScanConfig,
DevelocityConfig,
CacheConfig,
DependencyGraphConfig,
DependencyGraphOption,
@@ -15,6 +15,7 @@ import {
} from '../../configuration'
import {saveDeprecationState} from '../../deprecation-collector'
import {handleMainActionError} from '../../errors'
import {forceExit} from '../../force-exit'
/**
* The main entry point for the action, called by Github Actions for the step.
@@ -24,7 +25,7 @@ export async function run(): Promise<void> {
setActionId('gradle/actions/dependency-submission')
// Configure Gradle environment (Gradle User Home)
await setupGradle.setup(new CacheConfig(), new BuildScanConfig(), new WrapperValidationConfig())
await setupGradle.setup(new CacheConfig(), new DevelocityConfig(), new WrapperValidationConfig())
// Capture the enabled state of dependency-graph
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED']
@@ -67,7 +68,7 @@ export async function run(): Promise<void> {
}
// Explicit process.exit() to prevent waiting for hanging promises.
process.exit()
await forceExit()
}
run()
@@ -1,7 +1,8 @@
import * as setupGradle from '../../setup-gradle'
import {CacheConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
@@ -13,13 +14,13 @@ process.on('uncaughtException', e => handlePostActionError(e))
*/
export async function run(): Promise<void> {
try {
await setupGradle.complete(new CacheConfig(), new SummaryConfig())
await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())
} catch (error) {
handlePostActionError(error)
}
// Explicit process.exit() to prevent waiting for promises left hanging by `@actions/cache` on save.
process.exit()
await forceExit()
}
run()
Loaded 100 of 151 files, more files were not shown because too many files have changed in this diff. Show more